/* Public pages only: landing, how it works, access, about, privacy, terms.
   Same obsidian and gold tokens as the console, none of its controls. No
   external reference of any kind, no font file: the type is the system stack
   and the visual is the circuit substrate. Every interactive element is at least --tap square. */
:root {
  color-scheme: dark;
  --void: #05060a;
  --void-2: #0a0c12;
  --surface: #0e1119;
  --surface-2: #141824;
  --gold-100: #fff4d6;
  --gold-200: #ffe9a8;
  --gold-300: #f7d070;
  --gold: #e8b338;
  --gold-600: #c9901f;
  --gold-ink: #0a0c12;
  --trace: rgba(232, 179, 56, 0.22);
  --trace-dim: rgba(232, 179, 56, 0.08);
  --fg: #f2f4f8;
  --muted: #949cb0;
  --line: rgba(232, 179, 56, 0.16);
  --line-strong: rgba(232, 179, 56, 0.34);
  --focus: var(--gold-200);
  --tap: 44px;
  --radius: 14px;
  --step--1: clamp(0.8125rem, 0.79rem + 0.11vw, 0.875rem);
  --step-0: clamp(1rem, 0.96rem + 0.18vw, 1.0625rem);
  --step-1: clamp(1.125rem, 1.05rem + 0.36vw, 1.3125rem);
  --step-2: clamp(1.375rem, 1.2rem + 0.8vw, 1.875rem);
  --step-3: clamp(1.75rem, 1.3rem + 2.2vw, 2.75rem);
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100dvh;
  color: var(--fg);
  background-color: var(--void);
  background-image:
    radial-gradient(circle at 18% 12%, rgba(232, 179, 56, 0.1), transparent 42%),
    radial-gradient(circle at 82% 78%, rgba(201, 144, 31, 0.08), transparent 46%),
    linear-gradient(var(--trace-dim) 1px, transparent 1px),
    linear-gradient(90deg, var(--trace-dim) 1px, transparent 1px),
    linear-gradient(var(--trace) 1px, transparent 1px),
    linear-gradient(90deg, var(--trace) 1px, transparent 1px);
  background-size:
    100% 100%,
    100% 100%,
    28px 28px,
    28px 28px,
    140px 140px,
    140px 140px;
  background-attachment: fixed;
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  font-size: max(16px, var(--step-0));
  line-height: 1.6;
  overflow-x: hidden;
}
h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  text-wrap: balance;
}
p {
  margin: 0;
  text-wrap: pretty;
}
a {
  color: var(--gold-200);
  text-underline-offset: 0.18em;
}
:where(a, button):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 6px;
}
.skip {
  position: absolute;
  left: -9999px;
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
}
.skip:focus {
  left: 0.5rem;
  top: 0.5rem;
  z-index: 10;
  padding: 0 0.9rem;
  background: var(--gold);
  color: var(--gold-ink);
  border-radius: 10px;
}

/* ---------- header ---------- */
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  padding: 0.5rem 1rem;
  background: color-mix(in srgb, var(--void) 88%, transparent);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0 0.25rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: var(--step--1);
  color: var(--gold-200);
  text-decoration: none;
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  margin-left: auto;
}
.site-nav a,
.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0 0.6rem;
  color: var(--fg);
  text-decoration: none;
  border-radius: 8px;
}
.site-nav a:hover,
.site-footer a:hover {
  color: var(--gold-200);
  text-decoration: underline;
}
@media (min-width: 40rem) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 5;
  }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  min-width: var(--tap);
  padding: 0 1.1rem;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--gold-600);
  color: var(--gold-200);
  background: transparent;
}
.btn-primary {
  color: var(--gold-ink);
  background: var(--gold);
  box-shadow:
    0 0 0 1px var(--gold-600),
    0 0 32px -6px rgba(232, 179, 56, 0.55);
}
.btn-primary:hover {
  background: var(--gold-300);
}
.btn:hover {
  text-decoration: underline;
}

/* ---------- content ---------- */
main {
  width: min(100% - 2rem, 46rem);
  margin: 0 auto;
  padding: 2rem 0 3rem;
}
.hero {
  padding: 1.5rem 0 2rem;
}
.kicker {
  margin: 0 0 0.75rem;
  font-size: var(--step--1);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero h1,
.page-title {
  font-size: var(--step-3);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--gold);
  background: linear-gradient(100deg, var(--gold-300), var(--gold-100) 42%, var(--gold-600));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.page-title {
  font-size: var(--step-2);
}
.lede {
  margin-top: 1rem;
  font-size: var(--step-1);
  color: var(--fg);
  max-width: 38rem;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.section {
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.section h2,
.prose h2 {
  font-size: var(--step-1);
  color: var(--gold-100);
  margin-bottom: 0.6rem;
}
.prose p,
.section p {
  margin: 0.6rem 0;
}
.prose h2 {
  margin-top: 1.6rem;
}
.steps {
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 0.5rem;
}
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  gap: 0.6rem;
  align-items: baseline;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 86%, transparent);
}
.steps li::before {
  content: counter(step);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--gold-300);
}
.steps strong {
  color: var(--gold-100);
}
.steps span {
  grid-column: 2;
}
.facts {
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}
@media (min-width: 40rem) {
  .facts {
    grid-template-columns: repeat(3, 1fr);
  }
}
.facts li {
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface-2) 90%, transparent);
  color: var(--fg);
}
.band {
  margin-top: 2.25rem;
  padding: 1.25rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  box-shadow: 0 0 24px -8px rgba(232, 179, 56, 0.45);
}
.band .actions {
  margin-top: 0.9rem;
}

/* ---------- footer ---------- */
.site-footer {
  width: min(100% - 2rem, 46rem);
  margin: 0 auto;
  padding: 1.25rem 0 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--step--1);
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.25rem;
  margin: 0.5rem 0 0.75rem;
}
.site-footer p {
  margin: 0.25rem 0;
}

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