/* Copyright (c) 2026 Taddele Frew. All rights reserved. See LICENSE. */
/* ============================================================
   THE HUB GUIDE — DESIGN TOKENS
   The single source of truth. Change a color here, it changes
   everywhere.

   v3.0, Boston Curated. Warm ivory, charcoal ink, and the deep green
   of a Beacon Hill shutter for everything dark: the footer, the dark
   chapters, the pressed state of a control. Champagne is the one
   accent. The MBTA's line colors are still here, and still mean what
   they mean on the platform, but they are used only where something
   IS a line: the line map, station dots, stop chips, the board.
   ============================================================ */
/* ---- Typefaces: self-hosted, SIL Open Font License (see assets/fonts) ---- */
@font-face{font-family:'Public Sans';font-style:normal;font-weight:100 900;font-display:swap;src:url('../fonts/public-sans-var.woff2') format('woff2')}
@font-face{font-family:'Public Sans';font-style:italic;font-weight:100 900;font-display:swap;src:url('../fonts/public-sans-var-italic.woff2') format('woff2')}
@font-face{font-family:'Cormorant Garamond';font-style:normal;font-weight:300 700;font-display:swap;src:url('../fonts/cormorant-var.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:'Cormorant Garamond';font-style:italic;font-weight:300 700;font-display:swap;src:url('../fonts/cormorant-var-italic.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:'IBM Plex Mono';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/plex-mono-400.woff2') format('woff2')}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:500;font-display:swap;src:url('../fonts/plex-mono-500.woff2') format('woff2')}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:600;font-display:swap;src:url('../fonts/plex-mono-600.woff2') format('woff2')}

:root{
  --paper:#F7F4EE;         /* warm ivory: the page */
  --card:#FFFFFF;          /* a sheet laid on the page */
  --band:#EFEAE0;          /* pale stone: alternating bands */
  --stone:#DDD6CB;         /* warm stone: rules that need to be seen, photo frames */
  --ink:#202323;           /* charcoal: text */
  --muted:#5A5F5C;         /* secondary text (5.9:1 on ivory) */
  --hairline:rgba(32,35,35,.16);
  --forest:#183B35;        /* shutter green: dark bands, solid buttons, pressed controls */
  --forest-2:#12302B;      /* the same, a step deeper: footer, hover */
  --harbor:var(--forest);  /* older names for the dark surface, kept so every rule that used them follows */
  --harbor-2:var(--forest-2);
  --navy:var(--forest);
  --on-dark:#F1EDE4;       /* text on shutter green */
  --gold:#C8B58B;          /* champagne: rules, ornaments, and labels on green (6:1). Never small text on ivory */
  --gold-ink:#7A6233;      /* champagne darkened for labels on ivory (5.3:1) and pale stone (4.8:1) */
  --gold-lt:#D6C7A1;       /* champagne for small text on green (7:1) */

  /* the MBTA's own colors: wayfinding only */
  --red:#DA291C;           /* Red Line */
  --green:#00843D;         /* Green Line */
  --orange:#ED8B00;        /* Orange Line */
  --blue:#003DA5;          /* Blue Line */
  --purple:#80276C;        /* Commuter Rail */
  --silver:#7C878E;        /* Silver Line */

  /* a high-contrast serif for titles, a plain sans for everything people read; mono only for live data */
  --body:'Public Sans',-apple-system,'Segoe UI',sans-serif;
  --display:'Cormorant Garamond','Iowan Old Style','Palatino Linotype',Georgia,serif;
  --mono:'IBM Plex Mono','SF Mono',Consolas,monospace;
  --display-w:500;
  --display-ls:-.012em;

  /* type scale. The serif has a small x-height, so its sizes run larger than a sans would. */
  --t-hero:clamp(3.4rem,10.5vw,9.5rem);
  --t-h1:clamp(3rem,7.4vw,6.4rem);
  --t-h2:clamp(2.2rem,4.6vw,3.9rem);
  --t-h3:1.6rem;
  --t-lede:clamp(1.08rem,1.5vw,1.22rem);
  --t-label:.72rem;        /* small capitals above a title */
  --ls-label:.2em;

  /* spacing scale: use these, not one-off values */
  --s1:.25rem; --s2:.5rem; --s3:.75rem; --s4:1rem; --s5:1.5rem; --s6:2rem; --s7:3rem; --s8:4.5rem; --s9:6.5rem; --s10:9rem;

  /* state colors: text shades pass 4.5:1 on their own tint and on white */
  --ok:#0B6444; --ok-bg:#E3F1EA;
  --warn:#7A4F00; --warn-bg:#F7EEDA;
  --bad:#B02A1B; --bad-bg:#F8E3DF;
  --red-ink:#B8211A;       /* Red Line, darkened for small text */

  --max:1360px;
  --gut:clamp(1.25rem,5vw,4rem);   /* the page's side margin */
  --top-h:84px;            /* the header's height before the page has moved */
  --r:12px;                /* small controls and thumbnails */
  --r-lg:20px;             /* panels, cards and photographs: the same curve as the glass around them */
  --r-glass:26px;          /* glass panels */
  --r-pill:999px;          /* glass controls */
  /* Glass: the layer that floats above the page (header, menus, search, buttons, cards over photographs).
     A tint, a blur of what is behind, a bright rim, a soft shadow. Text goes only on the strong tints. */
  --glass:rgba(247,244,238,.64);
  --glass-strong:rgba(247,244,238,.9);      /* panels that carry small grey or champagne text */
  --glass-sheet:rgba(247,244,238,.94);      /* a sheet read at length over a dimmed page */
  --glass-clear:rgba(255,255,255,.14);
  --glass-forest:rgba(18,48,43,.74);
  --glass-edge:rgba(255,255,255,.7);
  --glass-edge-dim:rgba(255,255,255,.26);
  --glass-fx:blur(22px) saturate(1.7);
  --glass-shadow:inset 0 1px 0 rgba(255,255,255,.6),inset 0 -1px 0 rgba(255,255,255,.14),0 14px 34px -18px rgba(18,30,28,.42);
  --shadow:0 30px 70px -34px rgba(18,48,43,.45);
  --ease:cubic-bezier(.2,.7,.2,1);
  --ease-out:cubic-bezier(.16,1,.3,1);   /* long, soft landings: reveals */
  --ease-io:cubic-bezier(.7,0,.2,1);     /* a curtain: slow, quick, slow */
}

@media (max-width:899px){ :root{ --top-h:68px } }
