/* Shadow Ledger design tokens — Media family per Ecosystem Bible §15.
   Aligns with viupdate.com, loudenfiles.com, Straight Record, Louden Media.
   Zero border-radius per viupdate design direction. */

:root {
  /* Media-family canonical colors — aligned to viupdate.com theme.js so the
     whole ecosystem reads as one family when a reader moves between sites. */
  --sl-navy:       #1C3A5A;      /* primary — slate navy */
  --sl-navy-deep:  #0F2640;      /* footer/masthead accent */
  --sl-navy-soft:  #2E4E72;      /* hover/soft pairing */
  --sl-gold:       #F5B731;      /* Media-family primary gold */
  --sl-gold-ink:   #8a6a00;      /* text-safe gold pair (WCAG ≥4.5:1 on white) */
  --sl-blue:       #3B6FA0;      /* ecosystem-wide civic accent */
  --sl-crimson:    #A60032;      /* ecosystem-wide accent */
  --sl-red:        #C84B31;
  --sl-green:      #2d7a3a;

  /* Surfaces + text — Media family */
  --sl-warm-white: #faf9f6;      /* page background */
  --sl-surface:    #ffffff;      /* cards, inputs */
  --sl-surface-soft: #f3f1ec;    /* tinted surface for filter bar */
  --sl-ink:        #1a1a1a;      /* body */
  --sl-ink-soft:   #546170;      /* meta, captions */
  --sl-border:     #e8e5df;      /* cards, dividers */
  --sl-border-strong: #d6d2c8;   /* heavier dividers */

  /* Freshness dots (unchanged semantics) */
  --sl-dot-live:   var(--sl-green);
  --sl-dot-stale:  var(--sl-gold-ink);
  --sl-dot-out:    var(--sl-ink-soft);

  /* Typography — Media family */
  --sl-font-display: "Playfair Display", "Source Serif 4", Georgia, "Times New Roman", Times, serif;
  --sl-font-body:    "Source Serif 4", Georgia, "Times New Roman", Times, serif;
  --sl-font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Weights */
  --sl-w-body: 400;
  --sl-w-label: 500;
  --sl-w-display: 700;
  --sl-w-display-bold: 800;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sl-font-body);
  font-weight: var(--sl-w-body);
  color: var(--sl-ink);
  background: var(--sl-warm-white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--sl-font-display);
  font-weight: var(--sl-w-display);
  color: var(--sl-navy);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

a { color: var(--sl-navy); text-decoration: none; border-bottom: 1px solid rgba(28, 58, 90, 0.25); transition: border-color 120ms; }
a:hover { border-bottom-color: var(--sl-navy); }
a:focus-visible { outline: 2px solid var(--sl-navy); outline-offset: 2px; }

code, pre {
  font-family: var(--sl-font-mono);
  font-size: 0.92em;
}

::selection { background: var(--sl-gold); color: var(--sl-navy-deep); }
