/* ─────────────────────────────────────────────────────────────
   The Stone Halls — shared foundation
   ───────────────────────────────────────────────────────────── */

:root {
  --ink:        #f2ece1;
  --ink-dim:    #b5aa97;
  --ink-faint:  #7d7466;
  --stone-0:    #08080a;
  --stone-1:    #101014;
  --stone-2:    #16161b;
  --stone-3:    #1e1e25;
  --gold:       #c9a227;
  --gold-soft:  #e0c265;
  --candle:     #ffb765;
  --rule:       rgba(201,162,39,.28);

  --serif: "Cormorant Garamond", "EB Garamond", Garamond, "Times New Roman", serif;
  --sans:  "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-io: cubic-bezier(.65,.02,.24,1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--stone-0);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body { overscroll-behavior: none; }

a { color: inherit; }

::selection { background: rgba(201,162,39,.3); color: #fff; }

/* film grain + vignette laid over everything for a lit-room feel */
.grain {
  position: fixed; inset: -50%;
  pointer-events: none; z-index: 900;
  opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainshift 6s steps(6) infinite;
}
@keyframes grainshift {
  0%,100% { transform: translate(0,0) }
  20% { transform: translate(-2%,1%) }
  40% { transform: translate(1%,-2%) }
  60% { transform: translate(-1%,-1%) }
  80% { transform: translate(2%,1%) }
}

.vignette {
  position: fixed; inset: 0; pointer-events: none; z-index: 880;
  background:
    radial-gradient(130% 100% at 50% 45%, transparent 38%, rgba(0,0,0,.55) 88%, rgba(0,0,0,.85) 100%);
}

/* ── small shared bits ─────────────────────────────────────── */
.label {
  font-family: var(--sans);
  font-size: 10px; font-weight: 500;
  letter-spacing: .28em; text-transform: uppercase;
  color: var(--ink-faint);
}

.rule-gold {
  height: 1px; border: 0;
  background: linear-gradient(90deg, transparent, var(--rule) 18%, var(--rule) 82%, transparent);
}

.btn {
  font-family: var(--sans); font-size: 11px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ink-dim);
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.1);
  padding: 10px 18px; border-radius: 2px; cursor: pointer;
  transition: color .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.btn:hover { color: var(--gold-soft); border-color: var(--rule); background: rgba(201,162,39,.06); }

.sr { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }

@media (prefers-reduced-motion: reduce) {
  .grain { animation: none }
  * { scroll-behavior: auto !important }
}
