:root {
  color-scheme: light;
  --background: #fafbff;
  --text: #19223b;
  --muted: #505a72;
  --accent: #3155c6;
  --line: #d9dfef;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font: 1.125rem/1.65 system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 44rem;
  margin: clamp(3rem, 10vh, 6rem) auto;
  padding: 0 1.75rem;
}

.home { margin-top: clamp(4rem, 16vh, 10rem); }

a {
  color: var(--accent);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

a:hover { text-decoration-thickness: 2px; }

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
  border-radius: 2px;
}

.domain {
  margin: 0 0 2.5rem;
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.page-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 3rem;
  font-size: 1rem;
}

.page-header .domain { margin: 0; }

h1 {
  margin: 0 0 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 7vw, 3.5rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.15;
  overflow-wrap: break-word;
}

.home h1 {
  font-size: clamp(1.25rem, 6.8vw, 3.25rem);
  letter-spacing: -0.045em;
  line-height: 1.1;
  white-space: nowrap;
}

.welcome, .scope { margin: 0; color: var(--muted); }
.home-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
  margin-top: 2rem;
}

.social-links { display: flex; gap: 0.75rem; margin-top: 1rem; }
.social-links a { display: inline-flex; align-items: center; justify-content: center; min-width: 2.75rem; min-height: 2.75rem; color: var(--muted); text-decoration: none; }
.social-links a:hover, .social-links a:focus-visible { color: var(--accent); }
.social-links svg { display: block; width: 1.25rem; height: 1.25rem; }
.social-lw { font: 600 1.3rem/1 Georgia, "Times New Roman", serif; letter-spacing: -0.07em; }

.post-list, .benchmark-list, .project-list {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
}

.post-list > li, .benchmark-list > li, .project-list > li {
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
}

.post-list h2, .benchmark-list h2, .project-list h2 {
  margin: 0 0 0.6rem;
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.4;
}

.ai-marker { font-family: system-ui, sans-serif; font-size: 0.7em; vertical-align: 0.1em; cursor: help; }
.project-subheading { margin: 1.5rem 0 0.5rem; font-size: 1rem; font-weight: 500; }
.project-features { margin: 0; padding-left: 1.25rem; color: var(--muted); font-size: 1rem; }
.project-features li { margin: 0.2rem 0; }
.project-meta { margin: 1.5rem 0 0; color: var(--muted); font-size: 0.875rem; }
.project-meta span { font-variant-numeric: tabular-nums; }
.project-note { margin: 0.4rem 0 0; color: var(--muted); font-size: 0.875rem; }

.benchmark-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 1rem 0 0;
  font-size: 1rem;
}

.status {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.outline {
  margin: 2.5rem 0 0;
  padding: 2rem 0 0 1.65rem;
  border-top: 1px solid var(--line);
}

.outline > li { padding-left: 0.4rem; margin-bottom: 1.6rem; }
.outline > li::marker { color: var(--muted); }
.outline h2 { margin: 0; font-size: 1.2rem; font-weight: 500; line-height: 1.5; }
.outline ul { margin: 0.5rem 0 0; padding-left: 1.3rem; color: var(--muted); font-size: 1rem; }

[hidden] { display: none !important; }
.leaderboard-page { max-width: 66rem; }
.leaderboard-controls { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 1rem 2rem; margin: 2.5rem 0 1.5rem; }
.leaderboard-controls > a { font-size: 1rem; padding-bottom: 0.65rem; }
.track-field { display: grid; gap: 0.4rem; flex: 0 1 20rem; }
.track-field label { font-size: 0.875rem; font-weight: 600; }
.track-field select { width: 100%; min-height: 2.9rem; padding: 0.5rem 0.75rem; border: 1px solid var(--line); border-radius: 4px; background: var(--background); color: var(--text); font: inherit; font-size: 1rem; }
.track-field select:focus-visible, .table-scroll:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.result-summary { font-size: 0.875rem; color: var(--muted); }
.result-summary:empty { display: none; }
.empty-results { padding: 2rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.empty-results h2, .scoring-notes h2 { margin: 0 0 0.6rem; font-size: 1.2rem; font-weight: 500; }
.empty-results p { max-width: 40rem; margin: 0; color: var(--muted); }
.table-scroll { overflow-x: auto; }
.leaderboard-table { width: 100%; min-width: 48rem; border-collapse: collapse; font-size: 1rem; text-align: left; }
.overall-table .leaderboard-table { min-width: 30rem; }
.leaderboard-table th, .leaderboard-table td { padding: 1rem 0.9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.leaderboard-table th { font-weight: 500; }
.leaderboard-table thead th { font-size: 0.875rem; color: var(--muted); white-space: nowrap; }
.leaderboard-table .numeric { font-variant-numeric: tabular-nums; }
.leaderboard-table time { white-space: nowrap; }
.result-detail { display: block; margin-top: 0.3rem; color: var(--muted); font-size: 0.875rem; font-weight: 400; }
.evidence-links { display: grid; gap: 0.3rem; }
.scoring-notes { max-width: 44rem; margin-top: 2.5rem; font-size: 1rem; color: var(--muted); }
.scoring-notes h2 { color: var(--text); }
.scoring-notes p { margin: 0 0 1rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

@media screen and (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --background: #121722;
    --text: #f0f3fb;
    --muted: #b3bdd0;
    --accent: #a4b8ff;
    --line: #343e54;
  }
}

@media screen {
  :root[data-theme="dark"] {
    color-scheme: dark;
    --background: #121722;
    --text: #f0f3fb;
    --muted: #b3bdd0;
    --accent: #a4b8ff;
    --line: #343e54;
  }
}

.page-header-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 0.75rem 1.25rem; }
.theme-toggle { border: 1px solid var(--line); border-radius: 4px; padding: 0.2rem 0.55rem; background: transparent; color: var(--accent); font: inherit; font-size: 0.8rem; line-height: 1.5; white-space: nowrap; cursor: pointer; }
.theme-toggle:hover { border-color: var(--accent); }
.theme-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
@media print { .theme-toggle { display: none; } }
