/* Shared styling for the /about/* pages. The player keeps its CSS inline for
   first paint; these are ordinary documents and can afford a request.
   No build step, no framework — same constraint as the player. */

:root {
  --ink:        #12161c;
  --ink-soft:   #3c4551;
  --muted:      #566070;
  --paper:      #faf9f7;
  --card:       #ffffff;
  --hairline:   #e2e5ea;
  --brand:      #0b4f9e;
  --rust:       #9a2617;
  --warn-bg:    #fff4d6;
  --warn-edge:  #8a6100;
  --warn-ink:   #3d2c00;

  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;

  --measure: 34rem;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
  background:
    radial-gradient(90rem 40rem at 50% -14%, #e8f0fa 0%, rgba(232,240,250,0) 62%),
    var(--paper);
  background-attachment: fixed;
}

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 2.5rem 1.25rem calc(2rem + env(safe-area-inset-bottom));
}

.back {
  display: inline-block;
  margin-bottom: 2rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}
.back:hover, .back:focus-visible { color: var(--ink); }

h1 {
  margin: 0 0 1.75rem;
  font-family: var(--serif);
  font-size: clamp(1.75rem, 6vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.018em;
  line-height: 1.1;
}

h2 {
  margin: 2.25rem 0 0.6rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--brand); font-weight: 600; text-underline-offset: 0.15em; }

ul { margin: 0 0 1rem; padding-left: 1.25rem; }
li { margin-bottom: 0.4rem; }

.lede {
  font-family: var(--serif);
  font-size: 1.0625rem;
  color: var(--ink-soft);
}

.notice {
  background: var(--warn-bg);
  border: 3px solid var(--warn-edge);
  border-radius: 0.6rem;
  color: var(--warn-ink);
  padding: 0.85rem 1rem;
  font-weight: 700;
  margin: 0 0 1.75rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  margin: 0 0 1rem;
}

.updated {
  margin-top: 2.5rem;
  font-size: 0.875rem;
  color: var(--muted);
}

:where(a, button, [tabindex]):focus-visible {
  outline: 4px solid var(--ink);
  outline-offset: 3px;
  border-radius: 0.3rem;
}

/* Footer — arc-codex's pattern: centred, small, uppercase, wide tracking,
   muted, brightening on hover. Middot separators, as arc uses elsewhere. */
.site-footer {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 2.5rem 1.25rem calc(2.5rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--hairline);
  text-align: center;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--muted);
}
.site-footer a {
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}
.site-footer a:hover, .site-footer a:focus-visible { color: var(--ink); }
.site-footer .sep { margin: 0 0.55em; opacity: 0.55; }

@media (prefers-contrast: more) {
  :root { --muted: #2b3340; --hairline: #6b7280; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
}
