/* Design tokens. Raw colours and sizes live ONLY here; every other stylesheet uses var(--…).
   The palette is taken from paper sea charts: white deep water, pale-blue shallows, buff land,
   dark ink, and the magenta that charts use for anything added on top (routes, notes, lights). */

@font-face {
  font-family: 'Libre Caslon Text';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/vendor/fonts/libre-caslon-text/libre-caslon-text-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Libre Caslon Text';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/vendor/fonts/libre-caslon-text/libre-caslon-text-latin-400-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Cabin Variable';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/vendor/fonts/cabin/cabin-latin-wght-normal.woff2') format('woff2-variations');
}

:root {
  /* Colour */
  --paper: #f7f9f5; /* deep water / chart paper */
  --shallows: #d6e8ef; /* shallow water */
  --shallows-pale: #e9f2f4;
  --land: #ecdfae; /* buff */
  --land-edge: #a8985a;
  --ink: #16273b;
  --ink-soft: #4b5b6d;
  --line: #c5d0d4;
  --magenta: #a1246f;
  --magenta-deep: #7c1a55;
  --on-magenta: #ffffff;
  --white: #ffffff;
  --danger: #a3261b;
  --danger-pale: #fbeceb;
  --success: #1f6b4a;
  --success-pale: #e7f3ed;

  /* Type */
  --font-display: 'Libre Caslon Text', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --font-body: 'Cabin Variable', 'Gill Sans', 'Gill Sans MT', 'Trebuchet MS', sans-serif;
  --text-sm: 1rem; /* 16px, the smallest text on any page */
  --text-base: 1.125rem; /* 18px */
  --text-md: 1.333rem;
  --text-lg: 1.777rem;
  --text-xl: 2.369rem;
  --text-2xl: 3.157rem;
  --text-3xl: 4.209rem;
  --leading-body: 1.55;
  --leading-tight: 1.12;

  /* Space */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --space-9: 7rem;

  /* Shape */
  --radius-sm: 4px;
  --radius-md: 8px;
  --wrap: 74rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --measure: 62ch;
  --touch: 48px;
  --focus-ring: 3px solid var(--magenta);
}
