:root {
  --gold: #f6b900;
  --gold-bright: #ffe21a;
  --gold-deep: #ed7a00;
  --ink: #15130f;
  --ink-soft: #29251e;
  --alloy: #f3f0e8;
  --surface: #e7e3da;
  --tin: #c9c7c0;
  --muted: #9d988e;
  --error: #8c251f;
  --success: #285b4b;
  --oxide: #b92f23;
  --container: 1280px;
  --gutter: clamp(20px, 5.55vw, 80px);
  --radius-sm: 8px;
  --radius-md: 12px;
  --focus: 0 0 0 3px rgba(255, 226, 26, 0.5);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--alloy);
  font-family: "Public Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.58;
  text-rendering: optimizeLegibility;
}

img, video { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

button, input, select, textarea { font: inherit; }

button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }

button { color: inherit; }

h1, h2, h3, p, dl, dd, figure { margin-top: 0; }

h1, h2, h3 {
  font-family: "Archivo", "Arial Narrow", Arial, sans-serif;
  font-stretch: expanded;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

h1 { font-size: clamp(4rem, 6.1vw, 5.5rem); line-height: 0.98; }
h2 { font-size: clamp(3rem, 4.45vw, 4rem); line-height: 1.02; }
h3 { font-size: clamp(1.25rem, 1.7vw, 1.5rem); }

p { max-width: 72ch; }

table { border-collapse: collapse; width: 100%; }

:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 4px;
}

::selection { background: var(--gold-bright); color: var(--ink); }

.page-shell {
  width: min(100%, var(--container));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section-dark {
  color: var(--alloy);
  background-color: var(--ink);
}

.section-alloy { color: var(--ink); background: var(--alloy); }
.section-gold { color: var(--ink); background: var(--gold); }

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  transform: translateY(-160%);
  padding: 10px 14px;
  background: var(--gold-bright);
  color: var(--ink);
  border-radius: var(--radius-sm);
}

.skip-link:focus { transform: translateY(0); }

.chapter-mark {
  margin-bottom: 18px;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

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