:root {
  color-scheme: dark;
  --paper: #f2f2f0;
  --muted: #aaa9a3;
  --gold: #ffd400;
  --line: #292924;
}
* { box-sizing: border-box; }
body { margin: 0; background: #000; color: var(--paper); font: 1rem/1.65 "Helvetica Neue", Helvetica, Arial, sans-serif; }
h1, h2 { font-weight: 400; letter-spacing: -.035em; line-height: 1.1; margin: 0; }
p { margin: 0 0 1em; }
a { color: inherit; text-underline-offset: .28em; }
a:hover { color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }
[id] { scroll-margin-top: 6rem; }
.wrap { max-width: 1120px; margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }
header { position: sticky; top: 0; z-index: 2; background: #000e; backdrop-filter: blur(12px); }
.nav, .nav-links, .brand { display: flex; align-items: center; }
.nav { min-height: 4rem; justify-content: space-between; gap: .75rem; padding-block: .55rem; }
.nav a { text-decoration: none; }
.nav-links { gap: clamp(.75rem, 3vw, 2rem); flex-wrap: wrap; justify-content: flex-end; }
.nav-links a, .eyebrow, .foot { font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; }
.brand { gap: .7rem; font-size: .875rem; letter-spacing: .06em; font-weight: 750; text-transform: uppercase; line-height: 1.15; }
.brand img { flex: none; }
.eyebrow { color: var(--gold); margin-bottom: 1.35rem; }
.hero { padding-top: clamp(3.5rem, 7vw, 6rem); }
h1 { font-size: clamp(3rem, 7vw, 4rem); }
.lead { color: var(--muted); margin: 1.8rem 0 0; max-width: 37ch; }
.capital-hero { display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: clamp(1.5rem, 9vw, 8rem); }
.capital-hero h1 { font-size: clamp(3rem, 7.5vw, 6.5rem); }
.capital-hero .eyebrow { font-family: ui-monospace, Menlo, monospace; }
.plate { position: relative; justify-self: end; width: min(100%, 430px); }
.plate img { display: block; width: 100%; height: auto; aspect-ratio: 4/5; object-fit: cover; object-position: 50% 55%; mask-image: radial-gradient(ellipse at 54% 55%, #000 49%, transparent 76%); }
.signal { position: absolute; inset: 15% 13% auto auto; width: clamp(.85rem, 2.4vw, 1.85rem); aspect-ratio: 1; border-radius: 50%; background: var(--gold); }
@media (prefers-reduced-motion: no-preference) {
  .plate { isolation: isolate; }
  .plate img { animation: gold-current 12s ease-in-out infinite; }
  .plate::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse 70% 14% at 50% 48%, #ffe3a54d, transparent 75%);
    mask-image: radial-gradient(ellipse at 55% 54%, #000 36%, transparent 70%);
    mix-blend-mode: screen;
    animation: gold-light 12s ease-in-out infinite;
  }
  .signal { z-index: 1; }
}
@keyframes gold-current {
  0%, 100% { object-position: 50% 55%; }
  50% { object-position: 50% 63%; }
}
@keyframes gold-light {
  0%, 100% { opacity: 0; transform: translateY(-20%); }
  18% { opacity: .65; }
  60% { opacity: .85; }
  85% { opacity: 0; transform: translateY(19%); }
}
.overview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; padding-block: clamp(3rem, 7vw, 6rem); }
.overview h2 { font-size: 1.55rem; margin-bottom: .9rem; }
.overview p, .copy p, .contact p, .foot { color: var(--muted); }
.overview h2 a { text-decoration-color: var(--line); }
.band { border-top: 1px solid var(--line); }
.split { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(1.5rem, 6vw, 6rem); padding-block: clamp(3rem, 8vw, 7rem); }
.split h2 { font-size: clamp(2rem, 4.5vw, 3.6rem); }
.copy { max-width: 61ch; }
.copy p:last-child { margin-bottom: 0; }
.action { display: inline-block; color: var(--gold); margin-top: .5rem; }
.contact { padding-block: clamp(3rem, 7vw, 6rem); }
.mail { display: inline-block; font-size: clamp(1.1rem, 4vw, 1.5rem); overflow-wrap: anywhere; margin-bottom: .65rem; }
.foot { border-top: 1px solid var(--line); padding-block: 1.5rem; display: flex; gap: 1rem; justify-content: space-between; }
.skip { position: absolute; top: 0; left: 1rem; z-index: 4; padding: .5rem 1rem; background: #000; transform: translateY(-120%); }
.skip:focus { transform: none; }
.family-intro { padding-bottom: clamp(3rem, 7vw, 6rem); }
.family-intro h1 { max-width: 16ch; }
.notice { margin-top: 1.5rem; padding: 1rem 1.25rem; border-left: 2px solid var(--gold); background: #141410; max-width: 68ch; }
.notice p:last-child { margin: 0; }
details { padding: 1rem 0; border-bottom: 1px solid var(--line); }
summary { cursor: pointer; }
details p { margin: .85rem 0 0; }
.family-link { margin-inline-start: 1rem; }
.lucy-ask { margin-block: 1.25rem; }
.lucy-ask label { display: block; margin-bottom: .4rem; }
.lucy-ask textarea { display: block; width: 100%; resize: vertical; padding: .7rem; border: 1px solid #77766e; border-radius: .2rem; background: #111; color: inherit; font: inherit; }
.lucy-ask button { margin-top: .7rem; padding: .6rem 1rem; border: 0; border-radius: .2rem; background: var(--gold); color: #000; cursor: pointer; font: inherit; font-weight: 650; }
.lucy-answer { margin-top: .9rem; }
.privacy-note { display: block; max-width: 76ch; color: var(--muted); margin-bottom: 1rem; }
.lesson-lab { margin: 1.5rem 0; padding: clamp(.75rem, 3vw, 1.25rem); border: 1px solid var(--line); background: #10100e; }
.lesson-lab label { display: block; }
.lesson-lab input[type="range"] { display: block; width: 100%; margin: .8rem 0; accent-color: var(--gold); }
.lesson-lab output { color: var(--gold); }
#todo-mes ol { padding-inline-start: 1.4rem; margin: 0 0 1.3rem; }
#todo-mes li + li { margin-top: .75rem; }
.lesson-table { width: 100%; border-collapse: collapse; font-size: .875rem; font-variant-numeric: tabular-nums; }
.lesson-table caption { text-align: left; color: var(--muted); margin-bottom: .5rem; }
.lesson-table th, .lesson-table td { text-align: left; padding: .5rem .3rem; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.copy .formula { padding: .65rem .8rem; border-left: 2px solid var(--gold); background: #141410; color: var(--paper); font-variant-numeric: tabular-nums; }
.formula-sources { margin-top: 1rem; font-size: .9rem; }
@media (max-width: 680px) {
  .overview, .split, .capital-hero { grid-template-columns: 1fr; gap: 1.75rem; }
  .plate { width: min(100%, 330px); justify-self: center; }
  .nav-links a { letter-spacing: .04em; }
  .nav-links { row-gap: .3rem; }
}
