/* Syne, self-hosted (the site's CSP allows fonts from 'self' only). Licence: /fonts/syne-OFL.txt */
@font-face {
  font-family: "Syne";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/fonts/syne-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Syne";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/fonts/syne-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;
}

/*
 * Design tokens
 * One typeface (Syne), three colours (black, gray, white).
 * Tints are opacity steps of the palette, never new hues.
 */
:root {
  /* Palette */
  --black: #1A191B;
  --gray: #ADABAD;
  --white: #FFFFFF;

  /* Opacity steps derived from the palette */
  --black-72: rgba(26, 25, 27, 0.72); /* secondary text on white (AA) */
  --black-12: rgba(26, 25, 27, 0.12);
  --black-06: rgba(26, 25, 27, 0.06);
  --black-03: rgba(26, 25, 27, 0.03);
  --gray-48: rgba(173, 171, 173, 0.48); /* hairlines */
  --white-12: rgba(255, 255, 255, 0.12);
  --white-06: rgba(255, 255, 255, 0.06);

  /* Semantic roles */
  --text: var(--black);
  --text-muted: var(--black-72);
  --surface: var(--white);
  --surface-sunken: var(--black-03);
  --line: var(--gray-48);

  /* Typography */
  --font: "Syne", system-ui, sans-serif;
  /* Only for the X interface mocked up in the hero phone, so it reads like the real app */
  --font-x: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --x-muted: rgba(26, 25, 27, 0.62);
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700; /* the heaviest weight used anywhere */

  --text-xs: 0.75rem;   /* 12 */
  --text-sm: 0.875rem;  /* 14 */
  --text-md: 1rem;      /* 16 */
  --text-lg: 1.125rem;  /* 18 */
  --text-xl: 1.375rem;  /* 22 */
  --text-2xl: clamp(1.5rem, 2.4vw, 2rem);
  --text-section: clamp(2.5rem, 5.6vw, 4.75rem);
  --text-display: clamp(3.5rem, 10.5vw, 9rem);

  --leading-tight: 0.92;
  --leading-snug: 1.15;
  --leading-body: 1.55;
  --tracking-display: -0.045em;
  --tracking-heading: -0.03em;
  --tracking-label: 0.08em;

  /* Space */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 144px;
  --gutter: clamp(16px, 4vw, 56px);

  /* Vertical rhythm: ~118px desktop, ~90px tablet, 72px mobile */
  --section-space: clamp(72px, 4.5vw + 54px, 128px);
  /* Heading block to its content: ~56px desktop, 40px tablet, 32px mobile */
  --head-space: clamp(32px, 2.5vw + 20px, 64px);
  --container: 1240px;

  /* Shape */
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  /* Elevation */
  --shadow-float: 0 18px 48px rgba(26, 25, 27, 0.14), 0 2px 6px rgba(26, 25, 27, 0.06);

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --duration: 220ms;
}
