/* ═══════════════════════════════════════════════════════════
   SGS Editorial Primitives
   Aesop / Apple / Scandinavian minimalism in a small bag of
   shared classes the games (and any editorial page) opt into.

   Centralized here so the same grain SVG / italic Cormorant /
   small-caps Montserrat / jade hairline doesn't have to be
   re-typed (with subtle drift) inside every game file.
   © 2026 Shear Genius Society
   ═══════════════════════════════════════════════════════════ */

/* ── Brand metrics — the values that need to stay in sync across nav,
   footer, and any page that places a logo or stage. Override per page
   only when there's a specific reason; default to these. ── */
:root {
  --sgs-logo-h-header:        48px;
  --sgs-logo-h-header-mobile: 38px;
  --sgs-logo-h-footer:        110px;
  /* Atelier stage — values consumed by .sgs-stage-* (see
     sgs-atelier-stage.css). Per-game overrides are allowed by setting
     the variable on the body or a wrapper element. */
  --sgs-stage-spot-height:    60%;
  --sgs-stage-spot-opacity:   0.22;
  --sgs-stage-spot-blur:      28px;
  --sgs-stage-floor-height:   34%;
  --sgs-stage-floor-opacity:  0.06;
  --sgs-stage-floor-line:     rgba(0, 201, 142, 0.40);
}

/* ── Grain overlay — subtle 4% noise on top of any backdrop ── */
.sgs-grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.7'/></svg>");
}

/* ── Eyebrow — small-caps Montserrat label ── */
.sgs-eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(0, 201, 142, 0.85);
}

/* ── Italic Cormorant title — used for numerals, headlines, callouts ── */
.sgs-title-italic {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: #f4f1ec;
}

/* ── Jade hairline rule — 1px divider, 32px wide by default ── */
.sgs-rule {
  display: block;
  width: 32px;
  height: 1px;
  background: rgba(0, 201, 142, 0.55);
  border: 0;
  margin: 12px 0;
}
.sgs-rule.is-wide  { width: 64px; }
.sgs-rule.is-full  { width: 100%; }

/* ── Reduced motion: nothing here animates, but keep the hook for
   any future variant that does. ── */
@media (prefers-reduced-motion: reduce) {
  .sgs-grain { opacity: 0; }
}
