:root {
  color-scheme: light;
  --ink: #12263f;
  --muted: #38536b;
  --gold: #e7ab54;
  --paper: #f5f1e9;
  --line: #dfd6c6;
  font: 1rem/1.6 system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-underline-offset: .24em; }
a:focus-visible { outline: 3px solid #916122; outline-offset: 3px; }
.top, main, footer { width: min(1120px, calc(100% - 3rem)); margin-inline: auto; }
.top { display: flex; padding: 1rem 0; gap: .75rem 1.5rem; align-items: center; flex-wrap: wrap; }
.brand { display: inline-flex; gap: .65rem; align-items: center; font-weight: 780; font-size: 1.25rem; text-decoration: none; }
.brand img { border-radius: .65rem; }
nav, .languages { display: flex; flex-wrap: wrap; gap: .25rem .4rem; align-items: center; }
nav { margin-inline-start: auto; }
nav a, .languages a { padding: .3rem .6rem; border-radius: .6rem; font-size: .89rem; text-decoration: none; }
nav a[aria-current], .languages a[aria-current] { background: #e8dcc5; font-weight: 740; }
nav a:hover, .languages a:hover { text-decoration: underline; }
.languages { padding-inline-start: .45rem; border-inline-start: 1px solid var(--line); }
.hero { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 28rem; border-radius: 2rem; overflow: hidden; }
.pitch { background: linear-gradient(135deg, var(--ink), #224563); color: #fff; padding: clamp(2rem, 5vw, 4.5rem); }
.eyebrow, .number { font-size: .83rem; letter-spacing: .13em; font-weight: 750; }
.eyebrow { color: var(--gold); }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(2.35rem, 5.3vw, 4.2rem); line-height: 1.13; letter-spacing: -.037em; }
h2 { font-size: 1.15rem; line-height: 1.25; }
.intro { font-size: 1.13rem; margin-top: 1.35rem; }
.status { display: inline-block; font-size: .84rem; margin-top: 1.35rem; color: #ddedf7; }
.art { display: grid; place-items: center; position: relative; background: radial-gradient(circle at 50% 30%, #fff8e0, #eac787); min-height: 17rem; }
.art img { position: absolute; inset: auto 9% 12% auto; width: clamp(3.75rem, 10vw, 6rem); height: auto; border-radius: 22%; box-shadow: 0 1.15rem 2rem #17253644; }
.sheet { position: relative; width: min(67%, 20rem); padding: 1.65rem; border-radius: 1rem; background: #fffdfa; box-shadow: 0 1.35rem 3.2rem #23426430; transform: rotate(-8deg); overflow: hidden; }
.sheet small { font-size: .69rem; letter-spacing: .09em; font-weight: 760; }
.line { height: .42rem; background: #abb9c5; margin-top: .75rem; border-radius: .25rem; }
.line.a { width: 79%; }.line.b { width: 61%; }.line.c { width: 84%; }.line.d { width: 47%; }
.blackout { width: 76%; height: 1.5rem; margin: 1rem 0; background: #080f18; border-radius: .2rem; }
.stamp { position: absolute; top: 74%; left: -10%; width: 120%; transform: rotate(-22deg); text-align: center; background: #edbe7173; color: #253953; font-size: .63rem; font-weight: 820; letter-spacing: .1em; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1.1rem 0; }
.features article, .panel, .legal { border: 1px solid var(--line); border-radius: 1.25rem; padding: clamp(1.25rem, 3.3vw, 2.4rem); background: #fffdfa; }
.number { color: #7e531a; margin-bottom: .65rem; }
.features p:not(.number), .panel p, .legal section p { color: var(--muted); margin-top: .6rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.2rem; margin-top: 1.35rem; }
.button { display: inline-block; padding: .6rem 1rem; border-radius: .65rem; background: var(--gold); color: #12263f; font-weight: 720; text-decoration: none; }
.button:hover { background: #f5c779; }
.pitch a:focus-visible { outline-color: #fff; }
.panel, .example { margin-block: 1rem; scroll-margin-top: 1rem; }
.panel h2, .example h2 { font-size: clamp(1.25rem, 2.6vw, 1.7rem); }
.panel h3 { font-size: 1.05rem; line-height: 1.35; margin: 0; }
.guide { max-width: 880px; margin-inline: auto; }
.guide-hero { border-radius: 1.4rem; }
.guide-hero h1 { font-size: clamp(2rem, 4.8vw, 3.6rem); margin-top: .4rem; }
.example { border: 1px solid var(--line); border-inline-start: .25rem solid var(--gold); background: #e8dcc5; padding: clamp(1.15rem, 3vw, 2rem); border-radius: .65rem; }
.example p { margin-top: .5rem; }
.sample { font: 650 1.04rem/1.5 ui-monospace, monospace; overflow-wrap: anywhere; }
.procedure ol { padding-inline-start: 1.6rem; margin-bottom: 0; }
.procedure li + li, .answer + .answer { margin-top: 1.3rem; }
.procedure li::marker { font-weight: 750; }
.answer { margin-top: 1rem; }
.panel table { width: 100%; margin-top: 1rem; border-collapse: collapse; table-layout: fixed; }
.panel th, .panel td { padding: .7rem .55rem; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; overflow-wrap: anywhere; }
.panel thead { background: var(--paper); }
#compare th:first-child { width: 32%; }
.panel .note { font-size: .9rem; }
.related ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: .65rem; padding: 0; margin-bottom: 0; list-style: none; }
.related a { display: block; height: 100%; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: .65rem; background: var(--paper); font-weight: 640; }
.related small { display: block; margin-bottom: .15rem; color: var(--muted); font-weight: 500; }
.legal { max-width: 760px; margin: .6rem auto 0; }
.legal h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
.legal section, .legal p:has(a) { margin-top: 1.5rem; }
footer { display: flex; flex-wrap: wrap; gap: .6rem 1.3rem; padding: 1.55rem 0 2rem; color: var(--muted); font-size: .85rem; }
@media (max-width: 840px) {
  nav { margin-inline-start: 0; }
  .languages { width: 100%; padding-inline-start: 0; border: 0; }
}
@media (max-width: 660px) {
  .top, main, footer { width: calc(100% - 1.6rem); }
  .top { gap: .6rem; }
  .hero, .features { grid-template-columns: 1fr; }
  .hero { border-radius: 1.4rem; }
  .art { min-height: 14.5rem; }
  .sheet { width: min(63%, 16rem); }
  .features { gap: .7rem; }
  .guide-hero { padding: 1.5rem; }
  .panel table { font-size: .93rem; }
}
@media (prefers-color-scheme: dark) {
  :root { color-scheme: dark; --ink: #f6f0e2; --muted: #b6cadd; --paper: #091623; --line: #314857; }
  .pitch { background: linear-gradient(135deg, #14283e, #224563); }
  .features article, .panel, .legal { background: #14283e; }
  nav a[aria-current], .languages a[aria-current], .example { background: #294359; }
  .sheet { color: #12263f; }
  .number { color: var(--gold); }
}
