/* SuperHi-Fi Radio — pitch deck system
   Locked palette + typography per brand spec. */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;800;900&display=swap');

:root {
  --ink: #0E0E0E;
  --ink-true: #000000;
  --cream: #F5EFE4;
  --orange: #fc8a14;
  --white: #FFFFFF;

  --hairline: rgba(252, 138, 20, 1);
  --rule-faint-on-dark: rgba(245, 239, 228, 0.18);
  --rule-faint-on-cream: rgba(14, 14, 14, 0.14);

  --margin: 96px;
  --eyebrow-tracking: 0.18em;
  --label-tracking: 0.16em;
}

html, body {
  margin: 0;
  padding: 0;
  background: #000;
  font-family: 'Montserrat', system-ui, sans-serif;
  font-feature-settings: "tnum" 1;
  color: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

deck-stage > section {
  width: 1920px;
  height: 1080px;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

/* ---------- Field treatments ---------- */
.field-dark {
  background: var(--ink);
  color: var(--white);
}
.field-cream {
  background: var(--cream);
  color: var(--ink);
}

/* Subtle film grain over dark slides */
.field-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.55'/></svg>");
  background-size: 240px 240px;
  opacity: 0.06;
  pointer-events: none;
  mix-blend-mode: screen;
  z-index: 1;
}

/* Soft vignette on dark slides */
.field-dark::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0) 55%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Content above effects */
.field-dark > *,
.field-cream > * {
  position: relative;
  z-index: 2;
}

/* ---------- Persistent chrome (per-slide) ---------- */
.eyebrow {
  position: absolute;
  top: var(--margin);
  left: var(--margin);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: var(--eyebrow-tracking);
  text-transform: uppercase;
  color: var(--cream);
  display: flex;
  align-items: center;
  gap: 18px;
}
.field-cream .eyebrow { color: var(--ink); }

.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 12px rgba(252,138,20,0.7);
}

.corner-mark {
  position: absolute;
  top: var(--margin);
  right: var(--margin);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.7;
}
.field-cream .corner-mark { color: var(--ink); opacity: 0.6; }

.page-num {
  position: absolute;
  left: var(--margin);
  bottom: var(--margin);
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-variant-numeric: tabular-nums;
}
.page-num .num {
  font-size: 56px;
  font-weight: 900;
  color: var(--orange);
  letter-spacing: -0.02em;
  line-height: 1;
}
.page-num .of {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.55;
}
.field-cream .page-num .of { color: var(--ink); opacity: 0.55; }

.logo-bug {
  position: absolute;
  right: var(--margin);
  bottom: var(--margin);
  height: 28px;
  width: auto;
  opacity: 0.95;
}

/* ---------- Type primitives ---------- */
.headline {
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 0.95;
  text-wrap: balance;
}

.subhead {
  font-weight: 500;
  line-height: 1.4;
  color: var(--cream);
}
.field-cream .subhead { color: var(--ink); opacity: 0.78; }

.label-caps {
  font-weight: 600;
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
}

/* ---------- Hairline rule (orange) ---------- */
.hairline {
  height: 1px;
  background: var(--orange);
  width: 100%;
}

/* ---------- Tabular numeral utility ---------- */
.numeral {
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
  line-height: 0.9;
}
