/* ============================================================
   OpenBridge theme. Direction: tech, re-tuned light-first for a
   clean SaaS surface (the brief pins a light look; dark also ships).
   Subject: a suspension bridge at dawn over a river, the signal
   lights on its pylons, cables, deck, a usage meter.
   Load after foundation.css. Dark remap sits under @media screen.
   Check: python3 check_contrast.py theme.css
   ============================================================ */

@font-face { font-family: "Geologica"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/geologica-latin.woff2") format("woff2");
  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: "Geologica"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/geologica-latin-ext.woff2") format("woff2");
  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; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/onest-latin.woff2") format("woff2");
  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: "Onest"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/onest-latin-ext.woff2") format("woff2");
  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; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap;
  src: url("fonts/jetbrains-mono-latin.woff2") format("woff2");
  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: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap;
  src: url("fonts/jetbrains-mono-latin-ext.woff2") format("woff2");
  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 {
  --font-display: "Geologica", "Onest", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Onest", "Geologica", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --w-display: 640;
  --tr-display: -0.035em;
  --tr-h2: -0.03em;
  --lh-display: 0.98;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-button: 10px;
  --case-eyebrow: uppercase;
  --tr-eyebrow: 0.09em;
  --shadow-soft: 0 1px 2px rgba(15, 18, 34, 0.06), 0 18px 48px -18px rgba(40, 32, 120, 0.22);
  --bg: #f7f7fb;            /* morning fog over the river */
  --surface: #ffffff;       /* deck paint */
  --surface-2: #eef0f7;     /* concrete pier in daylight */
  --ink: #0f1222;           /* bridge steel at night */
  --muted-strong: #363b52;  /* weathered cable */
  --muted: #565c74;         /* river slate */
  --line: #e2e4ee;          /* hairline of a stay cable */
  --line-strong: #c8ccdb;
  --ink-field: #12143a;     /* night river, indigo */
  --on-ink: #eef0fb;
  --on-ink-muted: #b0b5d3;
  --accent: #5b3df5;        /* violet signal light on the pylon */
  --accent-fill: #5b3df5;
  --accent-on-fill: #ffffff;
  --accent-text: #4a2fd9;
  --accent-soft: #ece8ff;   /* signal glow on fog */
  --accent-2: #2f6bff;      /* blue span light, only on the bridge line */
  --ok: #157347;            /* green: connected */
  --field-1: #eef0f7;
  --field-1-ink: #0f1222;
  --field-2: #e7ecff;       /* dawn sky, blue wash */
  --field-2-ink: #0f1222;
  --field-3: #12143a;
  --field-3-ink: #eef0fb;
  color-scheme: light dark;
}

@media screen and (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c0e1a;
    --surface: #141729;
    --surface-2: #1a1e34;
    --ink: #eef0fb;
    --muted-strong: #c7cbe0;
    --muted: #9aa0bd;
    --line: rgba(238, 240, 251, 0.10);
    --line-strong: rgba(238, 240, 251, 0.20);
    --ink-field: #070814;
    --on-ink: #eef0fb;
    --on-ink-muted: #a9aecb;
    --accent: #a395ff;
    --accent-fill: #a395ff;
    --accent-on-fill: #0c0e1a;
    --accent-text: #b4a9ff;
    --accent-soft: #24204a;
    --accent-2: #6f9bff;
    --ok: #5fd39a;
    --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.4), 0 24px 60px -24px rgba(0, 0, 0, 0.7);
    --field-1: #1a1e34;
    --field-1-ink: #eef0fb;
    --field-2: #1c2246;
    --field-2-ink: #eef0fb;
    --field-3: #070814;
    --field-3-ink: #eef0fb;
  }
}
@media screen {
  :root[data-theme="dark"] {
    --bg: #0c0e1a;
    --surface: #141729;
    --surface-2: #1a1e34;
    --ink: #eef0fb;
    --muted-strong: #c7cbe0;
    --muted: #9aa0bd;
    --line: rgba(238, 240, 251, 0.10);
    --line-strong: rgba(238, 240, 251, 0.20);
    --ink-field: #070814;
    --on-ink: #eef0fb;
    --on-ink-muted: #a9aecb;
    --accent: #a395ff;
    --accent-fill: #a395ff;
    --accent-on-fill: #0c0e1a;
    --accent-text: #b4a9ff;
    --accent-soft: #24204a;
    --accent-2: #6f9bff;
    --ok: #5fd39a;
    --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.4), 0 24px 60px -24px rgba(0, 0, 0, 0.7);
    --field-1: #1a1e34;
    --field-1-ink: #eef0fb;
    --field-2: #1c2246;
    --field-2-ink: #eef0fb;
    --field-3: #070814;
    --field-3-ink: #eef0fb;
  }
  :root[data-theme="light"] { color-scheme: light; }
  :root[data-theme="dark"] { color-scheme: dark; }
}

/* signature: mono labels and figures */
.eyebrow, .label, .mono { font-family: var(--font-mono); }
