/* ==============
   TRUTHloveSOUNDS design tokens

   Neon + Dusk colour, Liner Notes type (decided 28 Nov 2026).
   Two modes on <html data-mode>: dark (default, the brand look) and light
   (light pages, dark header/menu/footer so the wordmark stays a lightbar).
   Visitors switch with the toggle in the header; site.js remembers it.
   Every other stylesheet reads only these tokens.
   ============== */

/* ==============
   Fonts (self-hosted, latin subset; OFL except TruthLove, the brand's own)
   ============== */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 400 900; font-stretch: 100% 125%; font-display: swap; src: url(../fonts/archivo.woff2) format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(../fonts/newsreader.woff2) format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 400 700; font-display: swap; src: url(../fonts/newsreader-italic.woff2) format("woff2"); }
@font-face { font-family: "Inconsolata"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(../fonts/inconsolata.woff2) format("woff2"); }
@font-face { font-family: "TruthLove"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/truthlove.otf) format("opentype"); }

/* ==============
   Shared constants
   ============== */
:root {
  /* the dusk gradient: sampled from the old homepage overlay
     (blue -> plum -> red over the studio photo) */
  --dusk: linear-gradient(115deg, #2b3a8f 0%, #6b3a78 52%, #b63a48 100%);
  --dusk-soft: linear-gradient(115deg, rgb(43 58 143 / 0.86) 0%, rgb(107 58 120 / 0.82) 52%, rgb(182 58 72 / 0.84) 100%);
  --logo-red: #ad0e0e;          /* the wordmark's own stroke colour */

  /* type scale (fluid, one scale for every page) */
  --t-xs: 0.78rem;
  --t-sm: 0.9rem;
  --t-md: 1.0625rem;
  --t-lg: 1.3rem;
  --t-xl: clamp(1.5rem, 1.15rem + 1.4vw, 2.25rem);
  --t-2xl: clamp(2.1rem, 1.3rem + 3.2vw, 3.75rem);
  --t-3xl: clamp(2.6rem, 1.4rem + 5.6vw, 6rem);

  /* space */
  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem; --s-5: 1.5rem;
  --s-6: 2rem; --s-7: 3rem; --s-8: 4.5rem; --s-9: 7rem;

  --radius: 6px;
  --radius-lg: 14px;
  --measure: 65ch;
  --wrap: 1200px;
  --head-h: 68px;
}

/* ==============
   Dark mode (default): Neon + Dusk
   Neon Night's dark ground, pulled toward C's indigo; the dusk gradient
   becomes the hero light and the footer/inverse bands; one rose-neon accent.
   ============== */
:root,
:root[data-mode="dark"] {
  --bg: #15122a;
  --bg-2: #1d1836;
  --surface: #251e40;
  --ink: #f7f0f0;
  --ink-2: #d3c9dd;
  --muted: #9d92b2;
  --line: rgb(247 240 240 / 0.13);
  --accent: #ff6f86;
  --accent-ink: #1b0b14;
  --accent-soft: rgb(255 111 134 / 0.15);
  --logo: #fff3f0;
  --glow: drop-shadow(0 0 2px rgb(255 240 236 / 0.9)) drop-shadow(0 0 10px rgb(255 111 134 / 0.55)) drop-shadow(0 0 30px rgb(140 90 220 / 0.4));
  --text-glow: 0 0 1px rgb(255 240 236 / 0.9), 0 0 16px rgb(255 111 134 / 0.5);
  --hero-ink: #fff7f4;
  --hero-overlay: linear-gradient(180deg, rgb(21 18 42 / 0.05) 0%, rgb(21 18 42 / 0.55) 72%, #15122a 100%), var(--dusk-soft);
  --hero-blend: normal;
  --inv-bg: var(--dusk);
  --inv-ink: #ffffff;
  --inv-muted: rgb(255 255 255 / 0.76);
  --card-shadow: none;
  --foot-glow: var(--glow);
  color-scheme: dark;
}

/* ==============
   Light mode: Neon + Dusk with a light body
   Page bodies go light (lilac paper, indigo ink, a rose deep enough for
   AA on paper). The chrome (header bar, mobile menu, search sheet, footer)
   stays on the Neon + Dusk night, so the glowing wordmark reads as a
   lightbar at the top and bottom of every page. The hero stays dark too,
   so the top of each page is one dark band the bar sits in.
   ============== */
:root[data-mode="light"] {
  --bg: #f6f2f6;
  --bg-2: #ece5f0;
  --surface: #ffffff;
  --ink: #1d1733;
  --ink-2: #423a5a;
  --muted: #6a6181;
  --line: rgb(29 23 51 / 0.12);
  --accent: #c22d58;
  --accent-ink: #ffffff;
  --accent-soft: rgb(194 45 88 / 0.08);
  --logo: #c22d58;
  --glow: drop-shadow(0 0 2px rgb(255 240 236 / 0.9)) drop-shadow(0 0 10px rgb(255 111 134 / 0.55)) drop-shadow(0 0 30px rgb(140 90 220 / 0.4));
  --text-glow: none;
  --hero-ink: #fff7f4;
  --hero-overlay: linear-gradient(180deg, rgb(21 18 42 / 0.05) 0%, rgb(21 18 42 / 0.6) 100%), var(--dusk-soft);
  --hero-blend: normal;
  --inv-bg: linear-gradient(180deg, rgb(21 18 42 / 0.94), rgb(21 18 42 / 0.82)), var(--dusk);
  --inv-ink: #ffffff;
  --inv-muted: rgb(255 255 255 / 0.74);
  --card-shadow: 0 1px 2px rgb(29 23 51 / 0.06), 0 10px 28px rgb(29 23 51 / 0.07);
  /* the dark chrome */
  --chrome-bg: #15122a;
  --chrome-bg-2: #1d1836;
  --chrome-surface: #251e40;
  --chrome-ink: #f7f0f0;
  --chrome-ink-2: #d3c9dd;
  --chrome-muted: #9d92b2;
  --chrome-line: rgb(247 240 240 / 0.12);
  --chrome-accent: #ff6f86;
  --chrome-accent-ink: #1b0b14;
  --chrome-accent-soft: rgb(255 111 134 / 0.16);
  --chrome-logo: #fff3f0;
  --chrome-glow: var(--glow);
  --chrome-edge: 0 1px 0 rgb(255 111 134 / 0.35), 0 10px 28px -14px rgb(255 111 134 / 0.55);
  --foot-glow: var(--glow);
  color-scheme: light;
}

/* ==============
   Chrome tokens (header, menu/search sheets, footer glow).
   Default: follow the page (dark mode). Light mode overrides them to stay dark.
   ============== */
:root {
  --chrome-bg: var(--bg);
  --chrome-bg-2: var(--bg-2);
  --chrome-surface: var(--surface);
  --chrome-ink: var(--ink);
  --chrome-ink-2: var(--ink-2);
  --chrome-muted: var(--muted);
  --chrome-line: var(--line);
  --chrome-accent: var(--accent);
  --chrome-accent-ink: var(--accent-ink);
  --chrome-accent-soft: var(--accent-soft);
  --chrome-logo: var(--logo);
  --chrome-glow: var(--glow);
  --chrome-edge: none;
  --foot-glow: none;
}

/* ==============
   Type A: Liner Notes (wide grotesk display, reading serif, mono labels)
   ============== */
:root {
  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Newsreader", "Iowan Old Style", Georgia, serif;
  --f-ui: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-label: "Inconsolata", ui-monospace, Menlo, monospace;
  --f-hand: "TruthLove", "Archivo", sans-serif;
  --d-weight: 800;
  --d-stretch: 118%;
  --d-track: -0.01em;
  --d-case: uppercase;
  --d-size: 1;
  --d-lh: 0.98;
}
