/* Design tokens for the ZTD Office website ("precise" look). Every colour, size, space, radius and timing the
   site uses is named here; site.css only refers to these. Contrast ratios are measured on --paper (or --ink for
   the dark tokens) and meet WCAG AA for the use given.

   Character: precise, calm, plain-spoken. A neutral base, one accent (the logo's navy, lifted for screens), and
   the logo's gold kept for one job only: marking something as done, on dark surfaces. */

@font-face {
  font-family: '42dot Sans';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('fonts/42dot-sans-latin-wght-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/instrument-sans-latin-wght-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/inter-latin-wght-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('fonts/jetbrains-mono-latin-wght-normal.woff2') format('woff2');
}

:root {
  /* Colour: light surfaces */
  --paper: #fafaf8;        /* page */
  --surface: #ffffff;      /* cards, windows */
  --sunk: #f2f2ef;         /* footer, table heads, quiet fills */
  --ink: #0b0c0e;          /* headings, primary text        18.7:1 */
  --title: #111111;        /* titles, the black buttons and the footer: a neutral near-black (Israel, 2026-11-26) 18.1:1; white on it 18.9:1 */
  --title-hover: #2a2a2a;
  --ink-2: #4a4e57;        /* body and secondary text        8.0:1 */
  --ink-3: #666a73;        /* smallest text allowed          5.2:1 (4.8:1 on --sunk) */
  --line: #e4e5e9;         /* hairlines (decorative)               */
  --line-strong: #cfd1d7;  /* control borders, rules that matter   */
  --accent: #0a4f9c;       /* links and focus rings             7.7:1; white on it 8.0:1 */
  --accent-hover: #083f7d;
  --accent-tint: #edf2f9;  /* selected rows, notes ( --accent on it 7.2:1 ) */
  --ok: #1f7a4d;           /* "set up", "inbox"                5.1:1 */
  --ok-tint: #e8f3ed;
  --bad: #b42318;          /* "junk"                           6.3:1 */
  --bad-tint: #fbeceb;
  --warn: #8a5300;         /* "coming soon"                    5.9:1 on its tint */
  --warn-tint: #fdf3e1;

  /* Colour: dark surfaces (the product demo stage, plan cards) */
  --night: #0b0c0e;
  --night-2: #15171b;      /* cards on night */
  --night-line: #2a2d33;
  --on-night: #fafaf8;     /* 18.7:1 */
  --on-night-2: #a7abb4;   /*  8.5:1 */
  --on-night-accent: #7fb0f0; /* links on night 8.7:1 */
  --gold: #ffc349;         /* "done" signal, on night only    12.3:1 */

  /* Colour: the home hero's stage ("Lavender", after Aave's hero; Israel's pick 2026-11-26): it starts in the page
     colour, so the header runs straight into it with no edge, and deepens to soft lavender at the bottom. Text is dark
     (the whole headline in the title charcoal) and the buttons purple pills. Worst case measured behind the text at
     390–1440px: headline 14.5:1, lead 7.7:1, fine print 7.3:1. */
  --stage:
    radial-gradient(40% 30% at 12% 78%, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0) 70%),
    radial-gradient(45% 32% at 86% 70%, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, #fafaf8 0%, #f9f8fd 22%, #f2f0ff 46%, #e6e2ff 70%, #d8d2ff 100%);
  --stage-narrow: linear-gradient(180deg, #fafaf8 0%, #f9f8fd 18%, #f2f0ff 42%, #e6e2ff 68%, #d8d2ff 100%);
  --on-stage: var(--title); /* headline */
  --on-stage-2: #4f4a55;     /* lead, fine print */
  --on-stage-quiet: #5b4fe0; /* the dots between the fine print */

  /* Colour: the "A peek inside" section, a deep shade of the button purple (#6a5df2) (Israel, 2026-11-26). White on
     it 9.5:1, the lead 6.7:1, the label 5.7:1. */
  --peek: #3b2fb0;
  --on-peek-2: #d9d4ff;
  --on-peek-3: #c9c2ff;
  --peek-line: rgba(255, 255, 255, 0.16);

  /* Colour: the footer panel, in the same charcoal as the titles and the black buttons (Israel, 2026-11-26) */
  --foot: var(--title);
  --foot-line: rgba(255, 255, 255, 0.14);
  --on-foot: #ffffff;      /* 18.9:1 */
  --on-foot-2: #b3aebb;    /*  8.7:1 */

  /* Type: Instrument Sans for titles, 42dot Sans for everything else, Inter for all text inside the product pictures
     (windows, mailboxes, the demo), JetBrains Mono for labels and data. Sizes are named by role. Headings are set at weight 600, letter spacing -4%, with room between
     lines (1.06–1.2); body copy is 16px on every screen with 1.55 line height. Each heading level steps down
     clearly from the one above, on desktop and phone:
       display   h1 on the home page          64 → 35
       title-xl  page titles                  60 → 36
       title     section headings (h2), closing 48 → 30
       heading   sub-sections (h3)            28 → 24
       t-20      card titles                  20
       lead      text under titles            16 (Israel, 2026-11-26)
       t-18      small titles                 18
       t-16      body, buttons                16
       t-15      nav, small buttons           15
       t-14      secondary text               14
       t-13      captions, fine print         13
       t-12      mono labels                  12 */
  --sans: '42dot Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --display: 'Instrument Sans', var(--sans);
  --ui: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; /* inside product pictures only */
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --t-display: clamp(2.2rem, 1.42rem + 3.47vw, 4rem);
  --t-title-xl: clamp(2.25rem, 1.6rem + 2.9vw, 3.75rem);
  --t-title: clamp(1.875rem, 1.4rem + 2.1vw, 3rem);
  --t-subtitle: clamp(1.75rem, 1.35rem + 1.3vw, 2.5rem); /* rows and panels inside a page   40 → 28 */
  --t-heading: clamp(1.5rem, 1.35rem + 0.6vw, 1.75rem);
  --t-20: 1.25rem;
  --t-lead: 1rem;
  --t-18: 1.125rem;
  --t-16: 1rem;
  --t-15: 0.9375rem;
  --t-14: 0.875rem;
  --t-13: 0.8125rem;
  --t-12: 0.75rem;
  --w-head: 600;           /* headings (42dot Sans runs lighter than Inter, so a step up) */
  --w-strong: 600;         /* bold in running text, small titles */
  --w-ui: 560;             /* buttons, nav, tabs */
  --lh-display: 1.06;
  --lh-title: 1.1;
  --lh-heading: 1.2;
  --lh-body: 1.55;
  --track-display: -0.04em;  /* -4% on every title level */
  --track-title: -0.04em;
  --track-heading: -0.04em;
  --track-label: 0.06em;

  /* Controls: one height ladder for buttons, tabs and the menu button */
  --h-control: 48px;       /* default button */
  --h-control-lg: 52px;    /* hero and closing buttons */
  --h-control-sm: 44px;    /* header buttons; also the smallest tap target */

  /* Space: a 4px base */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;

  /* Layout */
  --wrap: 1200px;
  --gutter: 24px;
  --margin: 40px;          /* page edge; 20px on phones */
  --header-h: 72px;

  /* Shape: radii for controls, buttons, cards and the hero stage; hairline borders; one shadow */
  --r-control: 8px;        /* tags, icon squares, inputs */
  --r-button: 999px;       /* buttons: fully rounded pills everywhere, as in the hero (Israel, 2026-11-27) */
  --r-card: 16px;
  --r-stage: 32px;         /* the hero stage only */
  --hair: 1px solid var(--line);
  --lift: 0 1px 0 rgba(11, 12, 14, 0.04), 0 24px 48px -24px rgba(11, 12, 14, 0.18);

  /* Motion: three durations, one curve. Movement explains a change; nothing moves for decoration. */
  --d-fast: 150ms;         /* hover, press */
  --d-base: 250ms;         /* reveals, tabs, menus */
  --d-slow: 400ms;         /* a status changing */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (max-width: 640px) {
  :root { --margin: 20px; --gutter: 16px; }
}
