/* Deckhand website: the shared tokens and the one typeface.
   Every page links this file first, so every page gets the same values.
   Decisions (internal/plans/ui-review/decisions.md): D1 Hanken Grotesk on every website page,
   D2 one navy #0B1F3A, D3 input border #7F8899 on white fills, D6 muted text #56657C, D7 one cream #F7F5F0.
   On the website the main text colour is the navy itself (the brand), so --ink and --navy share a value. */

@font-face {
  font-family: "Hanken Grotesk"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(assets/home/fonts/hanken-grotesk-latin-wght-normal.woff2) format("woff2");
}
/* A local fallback tuned to Hanken Grotesk's width and line metrics: if the web font arrives after the
   first paint, the swap barely moves the layout (CLS, P7). Regular and bold need different widths. */
@font-face {
  font-family: "Hanken Fallback"; font-style: normal; font-weight: 100 500;
  src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("LiberationSans-Regular"), local("Helvetica");
  size-adjust: 99.1%; ascent-override: 100.9%; descent-override: 30.6%; line-gap-override: 0%;
}
@font-face {
  font-family: "Hanken Fallback"; font-style: normal; font-weight: 600 900;
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("LiberationSans-Bold"), local("Helvetica Bold");
  size-adjust: 95.4%; ascent-override: 104.8%; descent-override: 31.8%; line-gap-override: 0%;
}

:root {
  --navy: #0B1F3A;          /* dark surfaces, headers */
  --navy-2: #1B3358;        /* hover and active on navy */
  --ink: #0B1F3A;           /* main text */
  --ink-2: #344054;         /* secondary text, labels (10.5:1 on white) */
  --muted: #56657C;         /* meta and help text (5.9:1 on white, 5.4:1 on cream) */
  --blue: #1E63D6;          /* actions, links, focus */
  --blue-hover: #1849A9;
  --cream: #F7F5F0;         /* warm page background */
  --cream-2: #F1ECDF;       /* deeper warm surface */
  --white: #FFFFFF;
  --border: rgba(11,31,58,0.12);   /* decorative lines and card edges (#E2E4E7 on white) */
  --border-input: #7F8899;  /* inputs, selects, secondary-button edges (3.6:1 on white) */

  --on-navy: #C7D2E3;       /* body text on navy */
  --on-navy-2: #7F93B2;     /* small labels on navy */
  --link-on-navy: #8AB0F2;  /* links and highlights on navy */

  --success: #067647; --success-bg: #ECFDF3;
  --warning: #B54708; --warning-bg: #FFF6E5;
  --critical: #B42318; --critical-bg: #FEF3F2;
  --info: #1849A9; --info-bg: #EEF4FF;

  --font: "Hanken Grotesk", "Hanken Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* Tap targets (WCAG 2.2, 2.5.8): stand-alone footer links and the SMS consent box
   are at least 24px tall. Links inside sentences are exempt and keep their size. */
:where(footer a, .footer a) {  /* zero specificity: any existing display rule (block, flex) still wins */
  display: inline-block;
  min-height: 24px;
  line-height: 24px;
}
#optin-consent { width: 24px; height: 24px; }

/* App store buttons: pages that show an App Store and a Google Play button side by side mark them
   store-ios / store-android. A small script in the page head adds ua-ios or ua-android to <html>,
   so a phone sees only the button for its own store; computers see both. */
.ua-ios .store-android, .ua-android .store-ios { display: none !important; }
