/* nawa legal — shared stylesheet. Tokens are documented in CLAUDE.md. */

/* ---------- Fonts (self-hosted; no third-party requests) ---------- */
/* WOFF2, subset to Latin. Newsreader is trimmed to opsz 36–72 (display sizes only) and uses
   font-display: block — the H1 is already fading in, and swapping from a regular-weight
   fallback serif caused a visible bold flash. */
@font-face { font-family: 'Newsreader'; src: url('../fonts/Newsreader-Variable.woff2') format('woff2'); font-weight: 200 800; font-display: block; }
@font-face { font-family: 'Newsreader'; src: url('../fonts/Newsreader-Italic-Variable.woff2') format('woff2'); font-weight: 200 800; font-style: italic; font-display: block; }
@font-face { font-family: 'Instrument Sans'; src: url('../fonts/InstrumentSans-Variable.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }
@font-face { font-family: 'Fragment Mono'; src: url('../fonts/FragmentMono-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }

/* ---------- Design tokens ---------- */
:root {
  --paper: #FFFFFF;
  --ink: #21262D;
  --body: #43464B;
  --muted: #6B675D;
  --muted-2: #8A867C;
  --muted-3: #B9B6AD;
  --hair: #E5E3DC;
  --hair-2: #E9E7E1;
  --burgundy: #600F11;
  --burgundy-hover: #85171A;
  --cream: #F5F2EA;

  --font-display: 'Newsreader', Georgia, serif;
  --font-body: 'Instrument Sans', system-ui, sans-serif;
  --font-mono: 'Fragment Mono', ui-monospace, monospace;

  --container: 1360px;
  --gutter: clamp(20px, 4vw, 56px);
  --radius-pill: 999px;
  --ease-out: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); -webkit-font-smoothing: antialiased; }
a { color: var(--burgundy); }
a:hover { color: var(--burgundy-hover); }
:focus-visible { outline: 2px solid var(--burgundy); outline-offset: 3px; }
.nowrap { white-space: nowrap; }

/* ---------- Layout ---------- */
.page { position: relative; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
.wrap { max-width: var(--container); width: 100%; min-width: 0; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.mono { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); }

/* ---------- Orbital ring motif ---------- */
.ring { position: absolute; top: 50%; right: -14vw; width: min(78vh, 760px); height: min(78vh, 760px); transform: translateY(-50%); pointer-events: none; z-index: 0; }
.ring i { position: absolute; border-radius: 50%; }
.ring .r1 { inset: 0; border: 1px solid var(--hair); }
.ring .r2 { inset: 11%; border: 1px solid var(--hair-2); }
.ring .r3 { inset: 24%; border: 1px dashed var(--hair); }
.ring .r4 { inset: 38%; border: 1px solid var(--hair-2); }
.ring .o { animation: orbit 70s linear infinite; }
.ring .o b { position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--burgundy); }
.ring .o2 { inset: 24%; animation: orbit-r 46s linear infinite; }
.ring .o2 b { width: 6px; height: 6px; margin-left: -3px; top: -3px; background: var(--muted-3); }
.ring .o3 { inset: 38%; animation: orbit 28s linear infinite; }
.ring .o3 b { width: 4px; height: 4px; margin-left: -2px; top: -2px; }

@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes orbit-r { to { transform: rotate(-360deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: .25; } }

/* ---------- Header ---------- */
header { position: relative; z-index: 2; padding-top: 28px; padding-bottom: 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
header a { display: block; flex: 0 1 auto; min-width: 0; }
header img { height: 17px; width: auto; max-width: 100%; object-fit: contain; object-position: left center; display: block; }
.clock { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; flex: 0 0 auto; }
.pulse { flex: 0 0 auto; width: 6px; height: 6px; border-radius: 50%; background: var(--burgundy); animation: blink 1.6s steps(1) infinite; }

/* ---------- Main ---------- */
main { position: relative; z-index: 2; flex: 1; padding-top: clamp(40px, 8vh, 96px); padding-bottom: clamp(48px, 8vh, 96px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: end; }
.lede { max-width: 760px; animation: rise .7s var(--ease-out) both; }
.lede .mono { margin: 0 0 28px; letter-spacing: .16em; }
h1 { margin: 0; font-family: var(--font-display); font-weight: 300; font-size: clamp(42px, 6.4vw, 88px); line-height: 1.02; letter-spacing: -.022em; color: var(--ink); text-wrap: balance; }
h1 em { font-style: italic; color: var(--burgundy); white-space: nowrap; }
.sub { margin: 30px 0 0; max-width: 50ch; font-size: clamp(16px, 1.3vw, 18px); line-height: 1.6; color: var(--body); text-wrap: pretty; }
.ctas { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.btn { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 24px; border-radius: var(--radius-pill); background: var(--burgundy); color: var(--cream); font-size: 15px; font-weight: 500; text-decoration: none; transition: background .2s ease; }
.btn:hover { background: var(--burgundy-hover); color: var(--cream); }
.link { font-size: 15px; color: var(--muted); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--muted-3); transition: color .2s ease; }
.link:hover { color: var(--burgundy-hover); }
.files { list-style: none; margin: 0; padding: 0 0 6px; display: grid; gap: 12px; animation: rise .7s .15s var(--ease-out) both; }
.files li { display: flex; gap: 16px; }
.files span { color: var(--muted-3); }

/* ---------- Footer ---------- */
footer { position: relative; z-index: 2; padding-top: 20px; padding-bottom: 28px; border-top: 1px solid var(--hair-2); display: flex; align-items: center; justify-content: space-between; gap: 24px; font-size: 10.5px; letter-spacing: .12em; }
.copy { line-height: 1.8; }
.copy > span { white-space: nowrap; }
footer img { height: 16px; width: auto; display: block; filter: invert(1) brightness(.35); }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  header a { max-width: 44%; }
  header img { height: 14px; }
  .clock-pre { display: none; }
  .files { display: none; }
  main { grid-template-columns: minmax(0, 1fr); }
  .ring { right: -40vw; top: 46%; width: 120vw; height: 120vw; opacity: .55; }
  footer { flex-direction: column-reverse; align-items: flex-start; gap: 22px; padding-top: 28px; padding-bottom: 36px; font-size: 10px; letter-spacing: .1em; }
}

@media (prefers-reduced-motion: reduce) {
  .ring .o, .ring .o2, .ring .o3, .pulse, .lede, .files { animation: none !important; }
}
