/* ==========================================================================
   Story skin: the 2026 look for the public site and the sign-in page.
   Loaded last. It re-points the existing tokens (so every component follows),
   brings in Nunito, and restyles the shared nav and footer. Dark only: the
   public pages are a night scene, so both theme settings get the same palette.
   ========================================================================== */

@font-face {
  font-family: 'Nunito';
  src: url('../fonts/nunito/nunito-latin-wght-normal.woff2') format('woff2');
  font-weight: 200 1000; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Nunito';
  src: url('../fonts/nunito/nunito-latin-ext-wght-normal.woff2') format('woff2');
  font-weight: 200 1000; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root, :root[data-theme="dark"], :root[data-theme="light"] {
  color-scheme: dark;
  --font-sans: 'Nunito', system-ui, -apple-system, "Segoe UI", sans-serif;
  --weight-display: 800;
  --track-display: -0.025em;
  --track-tight: -0.02em;

  --bg: #07090a;
  --bg-deep: #050607;
  --bg-raised: #0d1012;
  --surface-1: #111518;
  --surface-2: #171c20;
  --surface-3: #1d2328;
  --surface-panel: #111518;
  --surface-solid: #0d1012;
  --surface-overlay: rgba(7, 9, 10, 0.88);

  --text-primary: #f4f6f5;
  --text-secondary: rgba(244, 246, 245, 0.74);
  --text-tertiary: #8d9895;
  --text-quaternary: #5e6865;
  --text-inverse: #04101f;

  --border: rgba(255, 255, 255, 0.08);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.16);

  --accent: #7cc4ff;
  --accent-hover: #9ad2ff;
  --accent-pressed: #5fb0f0;
  --accent-fg: #04101f;
  --accent-soft: rgba(124, 196, 255, 0.12);
  --accent-tint: rgba(124, 196, 255, 0.06);
  --accent-border: rgba(124, 196, 255, 0.35);
  --accent-glow:       transparent;

  --invert-bg: #ffffff;
  --invert-fg: #000000;
  --scrim: rgba(0, 0, 0, 0.6);
}

html, body { background: var(--bg); color: var(--text-primary); }
body { font-family: var(--font-sans); }
.logo-mark--light { display: none !important; }
.logo-mark--dark { display: inline-block !important; }

/* ---- nav: quiet, transparent at the top, frosted once you scroll ---- */
.nav { background: transparent; border-bottom: 0 !important; box-shadow: none !important; }
.nav.is-stuck { background: rgba(7, 9, 10, 0.78) !important; backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); }
.nav__wordmark { font-weight: 800; letter-spacing: -0.01em; }
.nav__link, .nav__signin { font-weight: 600; color: var(--text-tertiary) !important; }
.nav__link:hover, .nav__signin:hover, .nav__link[aria-current="page"] { color: var(--text-primary) !important; }
.nav .btn--primary { background: #fff !important; color: #000 !important; border-color: transparent !important; font-weight: 800; }
.nav .btn--primary:hover { background: #e9ecee !important; }

/* ---- buttons ---- */
.btn { font-weight: 800; border-radius: 999px; }
.btn--primary { background: var(--accent); color: var(--accent-fg); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--secondary { background: rgba(255, 255, 255, 0.07); color: var(--text-primary); border-color: transparent; }

/* ---- type ---- */
.display, .sec__title, h1, h2, h3 { font-family: var(--font-sans); }
.kicker { color: var(--accent); font-weight: 800; letter-spacing: 0.02em; }
.display { font-weight: 800 !important; letter-spacing: -0.03em !important; line-height: 1.02 !important; }
.display__soft { font-weight: 700 !important; }
.sec__title { font-weight: 800; letter-spacing: -0.02em; }

/* ---- footer: the shared one, in the new palette; no theme switch here ---- */
.ft { background: var(--bg); border-top: 1px solid var(--border); }
.ft__wordmark { font-weight: 800; }
.ft__col-title { color: var(--text-primary); font-weight: 800; }
.ft__link { color: var(--text-tertiary); }
.ft__link:hover { color: var(--text-primary); }
.ft__theme { display: none !important; }
.ft__dot[data-state="ok"] { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* ---- the mobile menu built by home.js ---- */
#mobile-menu { background: rgba(7, 9, 10, 0.94) !important; }
.menu__item { font-weight: 700; }

/* No glows */
.ft__dot[data-state="ok"] { box-shadow: none !important; }
