/* ============================================================
   AP v4 ATLAS — shared token layer (any page)
   Night ink + warm paper + signal ember + engraved brass.
   html:root (0,1,1) beats every :root (0,1,0), including
   stylesheets deferred-loaded after this file. Link BEFORE any
   page-specific ap-atlas-<page>.css layer.
   ============================================================ */

@font-face{font-family:'Schibsted Grotesk';src:url('../fonts/schibsted-grotesk-latin-var.woff2') format('woff2');font-weight:400 700;font-style:normal;font-display:swap}
@font-face{font-family:'IBM Plex Mono';src:url('../fonts/ibm-plex-mono-normal-400.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:'Cormorant Garamond';src:url('../fonts/cormorant-garamond-italic-500.woff2') format('woff2');font-weight:500;font-style:italic;font-display:swap}
@font-face{font-family:'Cinzel';src:url('../fonts/cinzel-normal-600.woff2') format('woff2');font-weight:600;font-style:normal;font-display:swap}

html:root{
  /* jet void → v4 night ink, warmed (dawn, not terminal) */
  --ap-jet-soft:#0a0908; --ap-jet-base:#0c0b09; --ap-jet-mid:#100f0c;
  --ap-jet-raised:#151310; --ap-jet-elevated:#1b1915;

  /* silver → warm paper */
  --ap-silver-bright:#f2ecdf;
  --ap-silver:#ddd3bf;
  --ap-silver-dim:rgba(242,236,223,.74);
  --ap-silver-faint:rgba(242,236,223,.56);
  --ap-chrome:#d8b46a;
  --ap-silver-a08:rgba(242,236,223,.08); --ap-silver-a12:rgba(242,236,223,.12);
  --ap-silver-a18:rgba(242,236,223,.18); --ap-silver-a28:rgba(242,236,223,.28);
  --ap-silver-a40:rgba(242,236,223,.40); --ap-silver-a55:rgba(242,236,223,.55);

  /* aurora ice → signal ember */
  --ap-aurora:#ff5a1f; --ap-aurora-bright:#ff7a45; --ap-aurora-deep:#d84815;
  --ap-aurora-violet:#d8b46a;
  --ap-aurora-a10:rgba(255,90,31,.10); --ap-aurora-a16:rgba(255,90,31,.16);
  --ap-aurora-a28:rgba(255,90,31,.28); --ap-aurora-a40:rgba(255,90,31,.40);

  /* gold aliases → engraved brass */
  --ap-gold-ink:#8a7648; --ap-gold-shadow:#a08a52;
  --ap-gold-core:#d8b46a; --ap-gold-bright:#ff5a1f;
  --ap-gold-vivid:#f2ecdf; --ap-gold-parchment:#f2ecdf;
  --gold:#d8b46a; --gold-light:#f2ecdf; --gold-pale:#e8d3a0;

  /* primary CTA → ember with dark ink (contrast-safe) */
  --ap-cta:#ff5a1f; --ap-cta-hover:#ff7a45; --ap-cta-ink:#1a0d05;
  --ap-focus-ring:#ff5a1f;

  /* enchanted layer → warm starfield */
  --ap-enchant-void:#08080b; --ap-enchant-deep:#08080b;
  --ap-enchant-indigo:#0f0f14; --ap-enchant-twilight:#14141a;
  --ap-enchant-nebula:rgba(216,180,106,.07);
  --ap-enchant-aurora:rgba(255,90,31,.05);
  --ap-enchant-star:rgba(242,236,223,.4);
  --ap-enchant-gold:#ff5a1f;
  --ap-enchant-gold-soft:rgba(255,90,31,.14);
  --ap-enchant-gold-glow:0 0 32px rgba(255,90,31,.12), 0 0 64px rgba(216,180,106,.07);
  --ap-enchant-gold-ring:0 0 0 1px rgba(216,180,106,.22), inset 0 1px 0 rgba(242,236,223,.06);
  --ap-enchant-sun:#f2ecdf;

  /* main-lite surfaces → warm plates on ink */
  --glass:rgba(242,236,223,.035); --glass-2:rgba(242,236,223,.05);
  --glass-3:rgba(10,10,14,.94); --glass-bg:rgba(242,236,223,.035);
  --surface:rgba(242,236,223,.035); --surface-2:rgba(242,236,223,.05);
  --surface-hover:rgba(242,236,223,.07);
  --glass-border:rgba(216,180,106,.16); --glass-border-glow:rgba(216,180,106,.45);
  --border:rgba(216,180,106,.16); --border-2:rgba(216,180,106,.30);
  --border-glow:rgba(216,180,106,.5);
  --hairline:rgba(216,180,106,.14);
  --rim-light:inset 0 1px 0 rgba(242,236,223,.06);
  --surface-raised:linear-gradient(158deg, rgba(242,236,223,.04), rgba(242,236,223,.02));
  --surface-overlay:rgba(12,12,16,.92);
  --glow-gold:rgba(216,180,106,.14); --glow-gold-2:rgba(216,180,106,.08);
  --shimmer-line:linear-gradient(90deg, transparent, rgba(216,180,106,.5), rgba(255,90,31,.28), transparent);

  /* text + type */
  --white:#f2ecdf;
  --silver:#ddd3bf; --silver-dim:rgba(242,236,223,.74);
  --silver-dark:rgba(242,236,223,.56);
  --ap-text-primary:#f2ecdf; --ap-text-secondary:rgba(242,236,223,.78);
  --font-body:'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display:'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-mono:'IBM Plex Mono', ui-monospace, monospace;
}
