:root {
  color-scheme: light dark;
  --bg: #f7f7f4;
  --panel: #ffffff;
  --text: #1f2328;
  --muted: #5e6670;
  --line: #d8d8d2;
  --accent: #175f8f;
  --accent-strong: #0f4469;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17191c;
    --panel: #202328;
    --text: #f2f2ec;
    --muted: #b8b8af;
    --line: #383c42;
    --accent: #8bc8ef;
    --accent-strong: #b9dff5;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

.site-header,
main,
.footer {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
  border-bottom: 1px solid var(--line);
}

.brand {
  color: var(--text);
  font-weight: 900;
  text-decoration: none;
}

.site-header nav,
.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-header nav a,
.footer nav a,
.text-link {
  color: var(--accent);
  font-weight: 800;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.9fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  min-height: calc(100dvh - 72px);
  padding: clamp(3rem, 7vw, 6rem) 0;
}

.hero-copy {
  max-width: 42rem;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 1rem;
  font-size: clamp(3.25rem, 8vw, 6.5rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

p {
  color: var(--muted);
  font-size: 1.1rem;
}

strong {
  color: var(--text);
}

.hero-copy p {
  max-width: 36rem;
  margin-bottom: 1.5rem;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.2rem;
  border: 1px solid var(--accent-strong);
  border-radius: 999px;
  background: var(--accent-strong);
  color: var(--bg);
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.hero-panel {
  display: grid;
  gap: 1rem;
  padding: clamp(1rem, 3vw, 1.5rem);
  border: 1px solid var(--line);
  background: var(--panel);
}

.hero-panel div,
.tiles article,
.research-grid article {
  padding: 1.1rem;
  border: 1px solid var(--line);
  background: var(--bg);
}

.hero-panel span {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 900;
}

.hero-panel strong {
  display: block;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  line-height: 1.05;
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding: 1.25rem 0 3rem;
  border-top: 1px solid var(--line);
}

.signal-strip p {
  margin: 0;
}

.type-grid,
.slide-section,
.meaning,
.research,
.hall-of-fame,
.nominate {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
  border-top: 1px solid var(--line);
}

.section-head {
  max-width: 680px;
  margin-bottom: 1.5rem;
}

.section-head p {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.slider {
  display: grid;
  grid-auto-columns: minmax(18rem, 34%);
  grid-auto-flow: column;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--accent) transparent;
}

.slide {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 24rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  background:
    linear-gradient(150deg, color-mix(in srgb, var(--accent) 14%, transparent), transparent 55%),
    var(--panel);
  scroll-snap-align: start;
}

.slide:nth-child(even) {
  background: var(--bg);
}

.slide span {
  margin-bottom: auto;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 900;
}

.slide h3 {
  max-width: 12rem;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1;
}

.slide p {
  margin-bottom: 0;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.tiles article {
  min-height: 13rem;
}

.tiles article:nth-child(2),
.tiles article:nth-child(4) {
  background: var(--panel);
}

.meaning {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr);
}

.meaning p,
.nominate p {
  max-width: 48rem;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.research-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.hof-list {
  display: grid;
  gap: 0.75rem;
  max-width: 760px;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.hof-list li {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 0.15rem 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  background: var(--panel);
}

.hof-rank {
  grid-row: span 2;
  color: var(--accent);
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1;
}

.hof-name {
  color: var(--text);
  font-weight: 900;
}

.hof-note {
  color: var(--muted);
}

.nominate {
  text-align: center;
}

.nominate p {
  margin-right: auto;
  margin-left: auto;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
}

.footer p {
  margin: 0.25rem 0 0;
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .site-header,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .signal-strip,
  .tiles,
  .research-grid {
    grid-template-columns: 1fr;
  }

  .slider {
    grid-auto-columns: minmax(17rem, 82%);
  }

  .hero {
    min-height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
