:root {
  --bg: #f7f5f0;
  --ink: #1a1a18;
  --muted: #7a776f;
  --rule: #dcd8ce;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121211;
    --ink: #ecebe6;
    --muted: #8d8a82;
    --rule: #2c2b28;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

main {
  max-width: 640px;
  margin: 0 auto;
  padding: clamp(64px, 14vh, 160px) 24px clamp(48px, 10vh, 120px);
}

header { margin-bottom: 4.5rem; }

h1 {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.lede {
  font-size: clamp(1.25rem, 1rem + 1.2vw, 1.5rem);
  line-height: 1.35;
  max-width: 28ch;
}

section { margin-bottom: 3rem; }

h2 {
  font-family: ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

ul { list-style: none; }

li { border-top: 1px solid var(--rule); }
li:last-child { border-bottom: 1px solid var(--rule); }

li > a, li > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.85rem 0;
  color: inherit;
  text-decoration: none;
}

.note {
  font-family: ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", sans-serif;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
}

li > a { -webkit-tap-highlight-color: transparent; }
li > a .name { transition: opacity 0.15s ease; }
li > a:active .name { opacity: 0.55; }
@media (hover: hover) {
  li > a:hover .name { opacity: 0.55; }
  li > a:hover .note { color: var(--ink); }
}
li > a:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }

footer {
  margin-top: 5rem;
  font-family: ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", sans-serif;
  font-size: 0.75rem;
  color: var(--muted);
}

@media (max-width: 480px) {
  body { font-size: 17px; }
  main { padding-left: 16px; padding-right: 16px; }
}

/* Narrow phones: stack the note under the name instead of squeezing both. */
@media (max-width: 359px) {
  li > a, li > div {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
  }
  .note { text-align: left; white-space: normal; }
}
