:root {
  color-scheme: light dark;
  --bg: #f5f4f0;
  --fg: #141414;
  --muted: #6b6a66;
  --line: #dddad3;
  --soft: #ebe9e3;
  --accent: #d1360f;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101113;
    --fg: #f1f0ed;
    --muted: #9b9a96;
    --line: #2b2c30;
    --soft: #1e1f23;
    --accent: #ff6b45;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font: 1.0625rem/1.5 var(--sans);
  color: var(--fg);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

main {
  max-width: 780px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 56px) 20px 64px;
}

h1, h2, p { margin: 0; }

a { color: inherit; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.brand {
  font-family: var(--mono);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: clamp(36px, 7vw, 72px);
}

h1 {
  font-size: clamp(2.3rem, 7.5vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.lead {
  max-width: 34em;
  margin-top: 18px;
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  line-height: 1.45;
  color: var(--muted);
}

section { margin-top: 48px; }

/* Small uppercase section labels. */
.label {
  margin-bottom: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* The owner's block stands out with a heavy rule above it. */
.me { margin-top: 56px; padding-top: 16px; border-top: 3px solid var(--fg); }
.me-title { font-size: clamp(1.4rem, 3.4vw, 1.9rem); font-weight: 650; letter-spacing: -0.02em; line-height: 1.15; }
.me-text { margin: 6px 0 18px; color: var(--muted); }
.me .name { color: var(--accent); }

/* Rows: name on the left, a short note on the right. The whole row is the link. */
.list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.list li { border-bottom: 1px solid var(--line); break-inside: avoid; }
.list a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin: 0 -8px;
  padding: 11px 8px;
  text-decoration: none;
}
.list a:hover { background: var(--soft); }
.list a:hover .name { text-decoration: underline; text-underline-offset: 3px; }
.name { font-weight: 600; }
.note { color: var(--muted); text-align: right; }
.years { font-family: var(--mono); font-size: 0.92em; font-variant-numeric: tabular-nums; }

/* The kings fit in two columns on wider screens. */
@media (min-width: 640px) {
  .list.cols { columns: 2; column-gap: 40px; }
}

.foot {
  margin-top: 56px;
  font-size: 0.9375rem;
  color: var(--muted);
}
.foot a { color: var(--fg); text-underline-offset: 3px; }

/* On phones the note goes under the name. */
@media (max-width: 520px) {
  .list a { flex-direction: column; gap: 1px; }
  .note { text-align: left; }
  .list.cols a { flex-direction: row; }
}

/* 404 page */
.notfound h1 { font-size: clamp(2rem, 6vw, 3rem); }
.notfound p { margin-top: 16px; }
