* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg-deep);
  color: var(--parchment);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body {
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(201, 152, 44, 0.06), transparent 70%),
    radial-gradient(ellipse 60% 40% at 20% 80%, rgba(201, 152, 44, 0.04), transparent 70%),
    var(--bg-deep);
  min-height: 100vh;
}

/* parchment noise — subtle warmth */
body::before {
  content: "";
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 0.79 0 0 0 0 0.6 0 0 0 0 0.17 0 0 0 0.04 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
  opacity: 0.35;
  pointer-events: none;
  mix-blend-mode: screen;
  z-index: 1;
}

.mono { font-family: var(--mono); font-size: var(--fs-mono); letter-spacing: 0.08em; text-transform: uppercase; }
.serif-italic { font-family: var(--serif); font-style: italic; font-weight: 400; }
.parchment-muted { color: var(--parchment-muted); }
.gold { color: var(--gold); }
.gold-hi { color: var(--gold-hi); }
.gold-dim { color: var(--gold-dim); }

::selection { background: var(--gold); color: var(--bg-deep); }

button { background: none; border: none; color: inherit; font: inherit; cursor: pointer; }

/* hide scrollbar on webkit but keep scroll */
html { scrollbar-width: thin; scrollbar-color: var(--gold-dim) transparent; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 3px; }

/* =========================================================
   ACCESSIBILITY BASELINE
   ========================================================= */
:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 2px;
}

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