:root {
  color-scheme: light;
  --bg: #ffffff;
  --fg: #111;
  --muted: #555;
  --rule: #111;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--fg);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.45;
}

a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover,
a:focus-visible {
  color: var(--bg);
  background: var(--fg);
  outline: 0;
}

.page {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 24px 16px;
}

.ascii {
  margin: 0 0 18px;
  overflow-x: auto;
  white-space: pre;
}

.site-header {
  border-bottom: 1px solid var(--rule);
  margin-bottom: 18px;
  padding-bottom: 14px;
}

h1 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 700;
}

p {
  margin: 0 0 12px;
}

.muted,
.project-index,
.project-caption,
.project-url {
  color: var(--muted);
}

.projects {
  list-style: none;
  margin: 0;
  padding: 0;
}

.project {
  display: grid;
  grid-template-columns: 4ch minmax(0, 1fr);
  gap: 1ch;
  border-bottom: 1px dotted var(--rule);
  padding: 10px 0;
}

.project-main {
  min-width: 0;
}

.project-name {
  display: inline-block;
  font-weight: 700;
}

.project-caption,
.project-url {
  display: block;
  margin-top: 2px;
  overflow-wrap: anywhere;
}

@media (max-width: 520px) {
  body {
    font-size: 14px;
  }

  .page {
    padding: 18px 12px;
  }

  .project {
    grid-template-columns: 3ch minmax(0, 1fr);
  }
}
