/* bbs1 "Follow the call": design tokens. The whole site themes from these. */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("fonts/schibsted-grotesk-wght.woff2") format("woff2");
  font-weight: 400 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("fonts/figtree-wght.woff2") format("woff2");
  font-weight: 300 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("fonts/figtree-wght-italic.woff2") format("woff2");
  font-weight: 300 900; font-style: italic; font-display: swap;
}

:root {
  /* colour: dusk violet ground, one signal */
  --c-canvas: #100d18;      /* violet off-black, the page */
  --c-surface: #191424;     /* panels, form fields, sheet */
  --c-raised: #221b30;      /* hover, open panels */
  --c-ink: #f3f0f8;         /* text, 17.0:1 on canvas */
  --c-ink-soft: #bdb5ce;    /* secondary text, 9.8:1 on canvas */
  --c-ink-faint: #918aa5;   /* meta and captions only, 5.8:1 on canvas */
  --c-line: rgba(243, 240, 248, 0.14);   /* hairlines, the unlit route */
  --c-line-strong: rgba(243, 240, 248, 0.28);
  --c-signal: #fbe401;      /* BBS yellow: the lit route, the action, focus */
  --c-signal-ink: #16120a;  /* text on signal, 14.4:1 */
  --c-signal-dim: rgba(251, 228, 1, 0.16);
  --c-sky: #56cdf5;         /* only ever inside the BBS logo */
  --c-tile: #ffffff;        /* customer logo tiles */
  --c-error: #ff9b8a;       /* form errors, 8.8:1 on surface */

  /* type */
  --f-display: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --f-text: "Figtree", "Helvetica Neue", Arial, sans-serif;
  --t-xs: 0.8125rem;                                   /* 13: meta labels, station names on phones */
  --t-sm: 1rem;                                        /* 16: small body: lists, labels, footer (never below 16) */
  --t-nav: 0.9375rem;                                  /* 15: station names in the strip only */
  --t-base: 1.0625rem;                                 /* 17: body (never below 16) */
  --t-lg: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);   /* ledes */
  --t-xl: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);       /* h3, option names */
  --t-2xl: clamp(1.75rem, 1.4rem + 1.6vw, 2.625rem);      /* h2 */
  --t-3xl: clamp(2.25rem, 1.6rem + 3vw, 4rem);            /* inner-page h1 */
  --t-4xl: clamp(2.75rem, 1.6rem + 5.4vw, 6rem);          /* home hero only */
  --lh-tight: 1.02; --lh-snug: 1.18; --lh-body: 1.62;
  --track-tight: -0.032em; --track-snug: -0.018em; --track-label: 0.06em;
  --measure: 62ch;

  /* space: 4px base */
  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem; --s-5: 1.25rem; --s-6: 1.5rem;
  --s-7: 2rem; --s-8: 2.5rem; --s-9: 3rem; --s-10: 4rem; --s-11: 6rem; --s-12: 8rem;
  --gutter: clamp(1rem, 0.4rem + 3vw, 3.5rem);
  --section: clamp(3.5rem, 2rem + 6vw, 8rem);
  --wrap: 78rem;

  /* shape and depth */
  --r-1: 3px;      /* fields, tiles, buttons */
  --r-2: 6px;      /* panels, the sheet */
  --r-dot: 999px;  /* station dots only */
  --shadow-tint: 12, 8, 22;
  --e1: 0 1px 2px rgba(var(--shadow-tint), 0.5);
  --e2: 0 8px 24px -6px rgba(var(--shadow-tint), 0.7), 0 2px 6px rgba(var(--shadow-tint), 0.5);
  --e3: 0 24px 60px -12px rgba(var(--shadow-tint), 0.85), 0 6px 16px rgba(var(--shadow-tint), 0.55);
  --edge: inset 0 1px 0 rgba(243, 240, 248, 0.07);

  /* the route */
  --route-w: 2px;
  --dot: 11px;

  /* motion */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --d-fast: 140ms; --d-ui: 220ms;

  /* chrome */
  --strip-h: 60px;
}

@media (max-width: 1099px) {
  :root { --strip-h: 56px; }
}
