/* Design tokens — the portfolio's palette, type and spacing, from the
   desktop design's spec sheet (2026-11-18: the home page at 1440, measured
   in Figma px) and the résumé and project frames drawn in the same system.
   The meter, the dock and both pages read colour from here and nowhere
   else:
     --canvas --text --secondary --accent --action --on-action --rule
     --band --band-text --band-rule --contact --contact-text --contact-rule
     --meter-track --meter-dim --tile --scrim
   The spec keeps rust and action orange apart on purpose: rust (--accent)
   labels and links, orange (--action) is the one button. */

:root {
  color-scheme: light dark;

  /* palette — the spec sheet's eight */
  --canvas: #F4F1EA;         /* Paper: the page; text on the dark and rust bands */
  --text: #24231F;           /* Ink: primary text; the About band               */
  --secondary: #706D64;      /* Muted text: body copy, captions, meta: 4.6:1    */
  --accent: #B83E20;         /* Rust: section labels, link arrows, the monogram */
  --action: #D94B27;         /* Action orange: the Call button                  */
  --on-action: #FFFFFF;      /* that button's label and speaker                 */
  --rule: #C9C5BB;           /* Light rule: dividers, pills, the card outline   */

  /* the two full-width bands of the home page */
  --band: #24231F;           /* About: Ink, with Paper on it                    */
  --band-text: #F4F1EA;
  --band-rule: #57564F;      /* Dark rule: the divider inside About             */
  --contact: #B83E20;        /* Contact and footer: Rust, with Paper on it      */
  --contact-text: #F4F1EA;
  --contact-rule: #D18975;   /* Paper at about 40 % over Rust                   */

  --meter-track: #DEDAD1;    /* the meter at rest                               */
  --meter-dim: #98948A;      /* listening: room noise stays visible             */
  --tile: #C9C5BB;           /* an employer with no logo: the initial's tile    */
  --scrim: rgba(36, 35, 31, 0.7);   /* behind the project view: Ink at 70 %     */
  --float-shadow: 0 6px 24px rgba(36, 35, 31, 0.14);   /* the dock over a phone page */

  /* type — Inter for everything, Kumbh Sans for the featured project
     titles; both self-hosted from fonts/ (OFL), no third-party request */
  --font-sans: "Inter", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-title: "Kumbh Sans", "Inter", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

  /* the spec's scale. 12 is the dock's own (a turn's name); 16 and 20 are
     the phone's body and lead. The three display sizes are fluid: they
     reach the spec's number at the 1440 frame and shrink with the page. */
  --fs-12: 12px;
  --fs-14: 14px;   /* nav, actions, captions, labels            */
  --fs-16: 16px;   /* phone body                                */
  --fs-18: 18px;   /* body; the card's heading                  */
  --fs-20: 20px;   /* phone lead                                */
  --fs-24: 24px;   /* lead, premise, directory links            */
  --fs-title: clamp(30px, 2.92vw, 42px);        /* Kumbh Sans project titles: 42  */
  --fs-display: clamp(36px, 3.89vw, 56px);      /* section headings, the name: 56 */
  --fs-display-xl: clamp(46px, 7.78vw, 112px);  /* the hero and the contact: 112  */
  /* the hero's headline where the card stands beside it (from 900 up): the
     same 112, but never wider than its column — "Made with care." is 7.1 em
     long with its tracking, and the column is the page less the card */
  --fs-hero: clamp(46px, min(7.78vw, 12.6vw - 66px), 112px);

  /* line heights as the spec pairs them (size / line), unitless so they
     follow the fluid sizes */
  --lh-display-xl: 1;              /* 112 / 112 */
  --lh-display: calc(62 / 56);
  --lh-title: calc(40 / 42);       /* tight on purpose: the spec's own value */
  --lh-lead: calc(32 / 24);
  --lh-body: calc(28 / 18);
  --lh-meta: calc(22 / 14);
  --lh-label: calc(20 / 14);

  /* letter spacing, as the spec's percentages */
  --ls-display-xl: -0.04em;
  --ls-display: -0.03em;
  --ls-title: -0.02em;
  --ls-lead: -0.005em;
  --ls-label: 0.05em;

  /* spacing — the values the spec observed */
  --space-4: 4px;   --space-8: 8px;   --space-12: 12px; --space-16: 16px;
  --space-24: 24px; --space-32: 32px; --space-40: 40px; --space-48: 48px;
  --space-64: 64px; --space-72: 72px; --space-88: 88px; --space-96: 96px;
  --space-104: 104px;

  /* the page: 1440 wide at most, 72 in from each side at that width */
  --page-max: 1440px;
  --gutter: clamp(20px, 5vw, 72px);

  /* the voice dock's footprint. It floats above the page's bottom edge:
     its heading and the line under it at rest (three lines of it on a
     phone), the conversation while live. */
  --dock-r: 16px;
  --dock-h: 132px;
  --dock-h-live: 232px;
  --dock-inset: 12px;
}

/* on a wide screen the bar is 480 across and its line runs to two */
@media (min-width: 900px) {
  :root { --dock-h: 108px; }
}

/* Dark is not in the design: it is derived from the design's own dark
   band (Ink under Paper, the Dark rule) so a visitor in dark mode gets the
   same system rather than a white page. Rust is lifted to clear 4.5:1 on
   the dark canvas; the bands keep their colours. */
@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #1F1E1B;
    --text: #F4F1EA;
    --secondary: #A8A49A;
    --accent: #E0704F;
    --rule: #57564F;
    --band: #2B2A26;
    --meter-track: #3A3934;
    --meter-dim: #7E7B72;
    --tile: #3A3934;
    --scrim: rgba(0, 0, 0, 0.66);
    --float-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
  }
}

/* self-hosted fonts (latin subsets, SIL OFL 1.1 — licences beside them
   in fonts/) */
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
/* Kumbh Sans Medium, with its YOPQ axis at 300 as the design sets it */
@font-face {
  font-family: "Kumbh Sans";
  src: url("fonts/kumbh-sans-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
