/* Theme tokens */
:root,
[data-theme="dark"] {
  --ink: #0d1714;
  --ink-soft: #1a2e27;
  --paper: #f3efe4;
  --mute: #8a948c;
  --accent: #c8f135;
  --accent-deep: #9bc40a;
  --accent-2: #7dd3c0;
  --line: rgba(243, 239, 228, 0.12);
  --glow: rgba(200, 241, 53, 0.18);
  --glow-2: rgba(90, 140, 110, 0.25);
  --desc: rgba(243, 239, 228, 0.72);
  --btn-text: #0d1714;
  --atmosphere-a: #0d1714;
  --atmosphere-b: #13241d;
  --atmosphere-c: #0a1210;
  --confetti-opacity: 0;
  --font-display: "Bricolage Grotesque", Georgia, serif;
  --font-body: "Figtree", system-ui, sans-serif;
  color-scheme: dark;
}

[data-theme="light"] {
  --ink: #f6f3eb;
  --ink-soft: #ffffff;
  --paper: #14231c;
  --mute: #5d6b63;
  --accent: #0f8a6a;
  --accent-deep: #0b6b52;
  --accent-2: #e85d04;
  --line: rgba(20, 35, 28, 0.12);
  --glow: rgba(15, 138, 106, 0.14);
  --glow-2: rgba(232, 93, 4, 0.1);
  --desc: rgba(20, 35, 28, 0.72);
  --btn-text: #f6f3eb;
  --atmosphere-a: #f8f5ed;
  --atmosphere-b: #ebe6d8;
  --atmosphere-c: #f3efe4;
  --confetti-opacity: 0;
  color-scheme: light;
}

[data-theme="party"] {
  --ink: #14061a;
  --ink-soft: #24112e;
  --paper: #fff7fb;
  --mute: #d7b8c8;
  --accent: #ff4d9a;
  --accent-deep: #ffd60a;
  --accent-2: #3dfff3;
  --line: rgba(255, 247, 251, 0.16);
  --glow: rgba(255, 77, 154, 0.35);
  --glow-2: rgba(61, 255, 243, 0.28);
  --desc: rgba(255, 247, 251, 0.78);
  --btn-text: #14061a;
  --atmosphere-a: #1a0822;
  --atmosphere-b: #2a1040;
  --atmosphere-c: #0e0614;
  --confetti-opacity: 1;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden;
}

body {
  display: block !important;
  margin: 0 !important;
  min-height: 100vh;
  width: 100% !important;
  max-width: 100% !important;
  font-family: var(--font-body);
  color: var(--paper);
  background: var(--ink);
  line-height: 1.5;
  transition: background-color 0.35s ease, color 0.35s ease;
}

/*
  AdSense Auto Ads (live only) injects in-page units + sometimes side rails.
  Keep our shell full-width so scroll ads can sit between people without
  collapsing the list into a skinny column.
*/
main,
.site-header,
.site-footer {
  display: block !important;
  float: none !important;
  width: min(72rem, calc(100% - 2rem)) !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box;
}

.results,
.people {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
}

.person {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  box-sizing: border-box;
}

.person .body {
  min-width: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}

.google-auto-placed {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 1.25rem 0 !important;
  float: none !important;
  clear: both !important;
}

ins.adsbygoogle,
[id^="aswift_"],
[id^="google_ads_iframe"] {
  max-width: 100% !important;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, var(--glow), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 20%, var(--glow-2), transparent 50%),
    linear-gradient(165deg, var(--atmosphere-a) 0%, var(--atmosphere-b) 45%, var(--atmosphere-c) 100%);
  transition: background 0.45s ease;
}

[data-theme="dark"] .atmosphere {
  animation: drift 18s ease-in-out infinite alternate;
}

[data-theme="light"] .atmosphere {
  background:
    radial-gradient(ellipse 70% 45% at 15% 0%, var(--glow), transparent 55%),
    radial-gradient(ellipse 50% 35% at 85% 15%, var(--glow-2), transparent 50%),
    linear-gradient(180deg, var(--atmosphere-a) 0%, var(--atmosphere-b) 55%, var(--atmosphere-c) 100%);
}

[data-theme="party"] .atmosphere {
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 77, 154, 0.45), transparent 28%),
    radial-gradient(circle at 82% 12%, rgba(255, 214, 10, 0.35), transparent 26%),
    radial-gradient(circle at 70% 70%, rgba(61, 255, 243, 0.3), transparent 32%),
    repeating-linear-gradient(
      -18deg,
      transparent 0 18px,
      rgba(255, 255, 255, 0.03) 18px 36px
    ),
    linear-gradient(155deg, var(--atmosphere-a), var(--atmosphere-b) 50%, var(--atmosphere-c));
  animation: party-pulse 6s ease-in-out infinite alternate;
}

@keyframes drift {
  from { filter: hue-rotate(0deg); }
  to { filter: hue-rotate(8deg); }
}

@keyframes party-pulse {
  from {
    filter: saturate(1) brightness(1);
    transform: scale(1);
  }
  to {
    filter: saturate(1.2) brightness(1.08);
    transform: scale(1.02);
  }
}

/* Confetti layer (party only) */
.confetti {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  opacity: var(--confetti-opacity);
  transition: opacity 0.4s ease;
}

.confetti span {
  position: absolute;
  top: -12vh;
  width: 0.55rem;
  height: 0.9rem;
  border-radius: 2px;
  opacity: 0.85;
  animation: fall linear infinite;
}

.confetti span:nth-child(odd) {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
}

.confetti span:nth-child(3n) { background: #ff4d9a; }
.confetti span:nth-child(3n + 1) { background: #ffd60a; }
.confetti span:nth-child(3n + 2) { background: #3dfff3; }

.confetti span:nth-child(1) { left: 4%; animation-duration: 7.2s; animation-delay: -1s; }
.confetti span:nth-child(2) { left: 12%; animation-duration: 8.1s; animation-delay: -3.2s; }
.confetti span:nth-child(3) { left: 21%; animation-duration: 6.4s; animation-delay: -0.4s; }
.confetti span:nth-child(4) { left: 33%; animation-duration: 9s; animation-delay: -4.1s; }
.confetti span:nth-child(5) { left: 41%; animation-duration: 7.7s; animation-delay: -2.5s; }
.confetti span:nth-child(6) { left: 52%; animation-duration: 6.8s; animation-delay: -5s; }
.confetti span:nth-child(7) { left: 63%; animation-duration: 8.6s; animation-delay: -1.8s; }
.confetti span:nth-child(8) { left: 71%; animation-duration: 7s; animation-delay: -3.7s; }
.confetti span:nth-child(9) { left: 79%; animation-duration: 9.4s; animation-delay: -0.9s; }
.confetti span:nth-child(10) { left: 88%; animation-duration: 6.2s; animation-delay: -4.6s; }
.confetti span:nth-child(11) { left: 94%; animation-duration: 8.3s; animation-delay: -2.1s; }
.confetti span:nth-child(12) { left: 27%; animation-duration: 7.5s; animation-delay: -5.5s; }

@keyframes fall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0;
  }
  10% { opacity: 0.9; }
  100% {
    transform: translateY(110vh) rotate(540deg);
    opacity: 0.2;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Top bar */
.site-header {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0 0;
}

.site-header .brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--paper);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.site-header .brand span {
  color: var(--accent);
}

[data-theme="party"] .site-header .brand span {
  background: linear-gradient(90deg, var(--accent), var(--accent-deep), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.theme-switcher {
  display: inline-flex;
  padding: 0.2rem;
  gap: 0.15rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink-soft) 88%, transparent);
  backdrop-filter: blur(8px);
}

.theme-switcher button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--mute);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.theme-switcher button:hover {
  color: var(--paper);
}

.theme-switcher button[aria-pressed="true"] {
  background: var(--accent);
  color: var(--btn-text);
}

[data-theme="party"] .theme-switcher button[aria-pressed="true"] {
  background: linear-gradient(120deg, var(--accent), var(--accent-deep));
  color: var(--btn-text);
  animation: party-btn 1.2s ease-in-out infinite alternate;
}

@keyframes party-btn {
  from { filter: brightness(1); }
  to { filter: brightness(1.12); }
}

main {
  padding: 2rem 0 4rem;
}

.hero {
  min-height: min(62vh, 560px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 2.5rem;
  animation: rise 0.8s ease-out both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.brand-hero {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 8vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--paper);
}

.brand-hero span {
  color: var(--accent);
}

.seo-headline {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.45rem, 3.8vw, 2.15rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--paper);
  max-width: 22ch;
}

[data-theme="party"] .brand-hero span {
  background: linear-gradient(100deg, var(--accent) 0%, var(--accent-deep) 45%, var(--accent-2) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 2.8s linear infinite;
}

@keyframes shimmer {
  from { background-position: 0% 50%; }
  to { background-position: 200% 50%; }
}

.lede {
  margin: 0 0 2rem;
  max-width: 34rem;
  font-size: 1.125rem;
  color: var(--mute);
}

.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: end;
  animation: rise 0.9s 0.15s ease-out both;
}

.controls label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mute);
}

.controls select,
.controls input,
.controls button {
  font: inherit;
  font-size: 1rem;
  text-transform: none;
  letter-spacing: 0;
  border-radius: 0.4rem;
  border: 1px solid var(--line);
  background: var(--ink-soft);
  color: var(--paper);
  padding: 0.7rem 0.85rem;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

.controls input {
  width: 4.5rem;
}

.controls button {
  background: var(--accent);
  color: var(--btn-text);
  border-color: var(--accent);
  font-weight: 600;
  cursor: pointer;
}

.controls button:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  transform: translateY(-1px);
}

[data-theme="party"] .controls button {
  background: linear-gradient(120deg, var(--accent), var(--accent-deep));
  border: 0;
  box-shadow: 0 0 0 0 rgba(255, 77, 154, 0.4);
  animation: party-cta 1.6s ease-in-out infinite;
}

@keyframes party-cta {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 77, 154, 0.35); }
  50% { box-shadow: 0 0 0 10px rgba(255, 77, 154, 0); }
}

.results {
  border-top: 1px solid var(--line);
  padding-top: 2rem;
}

.results-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.results-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  letter-spacing: -0.03em;
}

[data-theme="party"] .results-head h2 {
  animation: wiggle 2.4s ease-in-out infinite;
}

@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-0.6deg); }
  75% { transform: rotate(0.6deg); }
}

.count {
  margin: 0;
  color: var(--mute);
  font-size: 0.95rem;
}

.people {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

.person {
  display: grid;
  grid-template-columns: 2.75rem 5rem minmax(0, 1fr);
  gap: 1rem 1.15rem;
  align-items: start;
  width: 100%;
  max-width: 100%;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
  animation: rise 0.55s ease-out both;
  animation-delay: calc(var(--i) * 35ms);
}

.person .body {
  min-width: 0;
  width: 100%;
}

.headshot-link {
  display: block;
  width: 5rem;
  height: 5rem;
  border-radius: 0.85rem;
  overflow: hidden;
}

.headshot {
  width: 5rem;
  height: 5rem;
  object-fit: cover;
  object-position: center top;
  border-radius: 0.85rem;
  background: color-mix(in srgb, var(--line) 70%, transparent);
  display: block;
}

.headshot-fallback {
  width: 5rem;
  height: 5rem;
  border-radius: 0.85rem;
  background:
    linear-gradient(
      145deg,
      color-mix(in srgb, var(--accent) 28%, transparent),
      color-mix(in srgb, var(--line) 80%, transparent)
    );
}

@media (max-width: 560px) {
  .person {
    grid-template-columns: 2rem 4rem minmax(0, 1fr);
    gap: 0.75rem;
  }

  .headshot-link,
  .headshot,
  .headshot-fallback {
    width: 4rem;
    height: 4rem;
    border-radius: 0.7rem;
  }
}

[data-theme="party"] .person:hover .rank {
  transform: scale(1.15) rotate(-8deg);
}

.rank {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--accent);
  opacity: 0.85;
  transition: transform 0.2s ease;
}

[data-theme="party"] .person:nth-child(3n) .rank { color: var(--accent); }
[data-theme="party"] .person:nth-child(3n + 1) .rank { color: var(--accent-deep); }
[data-theme="party"] .person:nth-child(3n + 2) .rank { color: var(--accent-2); }

.name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--paper);
  text-decoration: none;
  transition: color 0.15s ease;
}

.name:hover {
  color: var(--accent);
}

[data-theme="party"] .name:hover {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0.55rem;
  margin: 0.25rem 0 0.35rem;
  font-size: 0.9rem;
  color: var(--mute);
}

.meta > * {
  white-space: nowrap;
}

.tag {
  color: var(--accent);
  text-transform: capitalize;
}

[data-theme="light"] .tag {
  color: var(--accent-2);
}

[data-theme="party"] .tag {
  color: var(--accent-deep);
}

.pop {
  font-variant-numeric: tabular-nums;
}

.alive-alive {
  color: var(--accent);
  text-transform: capitalize;
}

.alive-deceased {
  color: var(--mute);
  text-transform: capitalize;
}

.wiki-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.wiki-link:hover {
  text-decoration: underline;
}

.desc {
  margin: 0;
  max-width: 60rem;
  color: var(--desc);
  font-size: 0.98rem;
}

.empty {
  color: var(--mute);
  max-width: 36rem;
}

.empty code {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.2rem 0.45rem;
  background: var(--ink-soft);
  border-radius: 0.3rem;
  color: var(--accent);
  font-size: 0.85rem;
}

.hero-compact {
  padding-bottom: 1.25rem;
}

.day-grid {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr));
  gap: 0.65rem;
}

.day-grid a {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.7rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  text-decoration: none;
  color: var(--paper);
  background: color-mix(in srgb, var(--ink-soft) 70%, transparent);
  transition: border-color 160ms ease, transform 160ms ease;
}

.day-grid a:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.day-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
}

.day-count {
  color: var(--mute);
  font-size: 0.75rem;
}

.hub-days h2,
.results h2 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

.person-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
}

.person-hero-shot {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 1rem;
  border: 2px solid var(--line);
  background: var(--ink-soft);
}

.person-meta,
.person-links {
  margin: 0.65rem 0 0;
}

.person-blurb {
  font-size: 1.05rem;
  max-width: 46rem;
}

.landing-cta {
  margin: 1rem 0 0;
}

.cta-link {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  font-size: 1.05rem;
}

.cta-link:hover {
  text-decoration: underline;
}

@media (max-width: 560px) {
  .person-hero {
    grid-template-columns: 1fr;
  }
}

.site-footer {
  padding: 0 0 3rem;
  color: var(--mute);
  font-size: 0.85rem;
}

.site-footer p {
  margin: 0 0 0.65rem;
}

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

.faq h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  letter-spacing: -0.02em;
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--paper);
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::before {
  content: "+ ";
  color: var(--accent);
  font-weight: 700;
}

.faq details[open] summary::before {
  content: "– ";
}

.faq details p {
  margin: 0.55rem 0 0.15rem;
  color: var(--desc);
  max-width: 40rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.text-link {
  color: var(--mute);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.text-link:hover {
  color: var(--accent);
}

/* —— Ads —— */
.ad-zone {
  margin: 1.75rem 0 2rem;
  padding: 1rem 0 0;
  border-top: 1px solid var(--line);
}

.ad-zone-label {
  margin: 0 0 0.75rem;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
}

.ad-zone-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.85rem;
}

.ad-unit {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 120px;
  padding: 0.9rem 1rem;
  border: 1px dashed var(--line);
  border-radius: 0.55rem;
  background: color-mix(in srgb, var(--ink-soft) 80%, transparent);
  overflow: hidden;
}

.ad-unit.ad-direct {
  text-decoration: none;
  color: inherit;
  border-style: solid;
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, transparent), transparent 55%),
    var(--ink-soft);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.ad-unit.ad-direct:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.ad-unit.ad-direct img {
  width: 100%;
  max-height: 120px;
  object-fit: cover;
  border-radius: 0.35rem;
  margin-bottom: 0.35rem;
}

.ad-unit.ad-direct strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.ad-network {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.ad-hint {
  color: var(--mute);
  font-size: 0.9rem;
  line-height: 1.4;
}

.ad-cta {
  margin-top: 0.35rem;
  align-self: flex-start;
  padding: 0.4rem 0.7rem;
  border-radius: 0.35rem;
  background: var(--accent);
  color: var(--btn-text);
  font-size: 0.85rem;
  font-weight: 700;
}

.ad-placeholder {
  justify-content: center;
}

.person-ad {
  list-style: none;
  padding: 0.5rem 0 0.25rem;
  border-bottom: 1px solid var(--line);
}

.person-ad .ad-zone {
  margin: 0;
  border-top: 0;
  padding-top: 0.5rem;
}

.cookie-note {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  max-width: 920px;
  margin: 0 auto;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: color-mix(in srgb, var(--ink-soft) 92%, transparent);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

.cookie-note[hidden] {
  display: none !important;
}

.cookie-note p {
  margin: 0;
  color: var(--mute);
  font-size: 0.9rem;
}

.cookie-note button {
  border: 0;
  border-radius: 0.4rem;
  background: var(--accent);
  color: var(--btn-text);
  font: inherit;
  font-weight: 700;
  padding: 0.5rem 0.85rem;
  cursor: pointer;
}

.legal-main {
  width: min(720px, 100% - 2.5rem);
  margin: 0 auto;
  padding: 2.5rem 0 4rem;
}

.legal-card {
  margin: 1.5rem 0;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
}

.legal-card h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.legal-card p,
.legal-card li {
  color: var(--desc);
}

.legal-card ul {
  padding-left: 1.2rem;
}

.legal-card code {
  font-size: 0.85em;
  padding: 0.1rem 0.35rem;
  border-radius: 0.25rem;
  background: var(--ink-soft);
  color: var(--accent);
}

@media (max-width: 720px) {
  .brand-hero {
    font-size: clamp(2.1rem, 11vw, 3rem);
  }

  .theme-switcher button {
    padding: 0.4rem 0.55rem;
    font-size: 0.72rem;
  }

  .hero {
    min-height: auto;
    padding-top: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .confetti {
    display: none;
  }
}
