/* Yana Tarnovetska Portfolio — tokens from the design system's tokens.json */
/* Hanken Grotesk, hosted with the site (SIL Open Font License). One variable file covers weights 400–700.
   Same subsets and ranges as Google Fonts: latin is preloaded in each page's <head>; latin-ext loads only if a page uses those letters. */
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("fonts/hanken-grotesk-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: "Hanken Grotesk"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("fonts/hanken-grotesk-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; }
:root {
  color-scheme: dark;
  /* color: dark theme is the page */
  --bg: #1a1c1c;
  --ink: #f9f4eb;
  --ink-soft: #c4bfb6;   /* running text: one step below --ink, so titles read first (about 9:1 on --bg) */
  --muted: #a3a3a3;
  --box: #2a2d2d;
  --rule: var(--ink);
  --rule-soft: #494949;   /* the softer line of tables and result rows */
  --white: #ffffff;   /* the /skills card: the one place pure white is used */

  /* type */
  --font-sans: "Hanken Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --fs-contact: clamp(56px, 10vw, 144px);
  --fs-h1: clamp(40px, 4.6vw, 64px);   /* Layout B title size */
  --fs-stat: clamp(40px, 4.2vw, 60px);
  --fs-h2: clamp(32px, 4vw, 56px);
  --fs-step-num: clamp(32px, 2.8vw, 40px);
  --fs-h3: clamp(24px, 2.2vw, 32px);
  /* reading and UI text: fixed sizes, only headings and display text are fluid */
  --fs-h4: 24px;
  --fs-lead: 24px;
  --fs-body: 18px;
  --fs-nav: 16px;
  --fs-small: 16px;
  /* label: the smallest text on the site (Yana's floor: meta 15, links 16, body 17).
     Corner and tool tags, step numbers, counts and the flow diagram's notes all use it, at every width. */
  --fs-label: 15px;
  --fs-axis: 12px;

  /* spacing: a proximity ladder. Pick the gap by how closely two things relate:
     xs the same thing · s parts of one block · m a group and its label · l sibling groups
     · xl big items in a sequence · 2xl sub-blocks · section (twice) sections */
  --space-xs: 8px;
  --space-s: 16px;
  --space-m: 24px;
  --link-pad: 12px;
  --row-pad: 12px;
  --axis-gap: 20px;
  --footer-top: 20px;
  --footer-bottom: 28px;
  --header-height: 60px;
  --bar-gap: 24px;   /* page colour above the header and below the footer */
  --bar-pad: 24px;   /* inside the header and footer, left and right (0 on this site, below) */
  --sticky-top: 96px;
  --m-mobile: 16px;
  --gut-mobile: 12px;

  /* fluid: each max is the value at the 1440 frame, so sizes stop growing there */
  --m: clamp(16px, 2.78vw, 40px);
  --gut: clamp(12px, 1.67vw, 24px);
  --space-l: clamp(36px, 3.33vw, 48px);
  --space-xl: clamp(56px, 5vw, 72px);
  --space-2xl: clamp(80px, 8.33vw, 120px);
  --section: clamp(56px, 6.12vw, 88px);
  --hero-top: clamp(56px, 8.06vw, 116px);
  --nav-gap: clamp(16px, 2vw, 28px);

  /* radius, size, grid */
  --radius-none: 0;
  --line: 1px;
  /* text measure: at most 70 characters per line, counted. 1ch is the width of "0", and Hanken Grotesk letters are narrower,
     so 70 counted characters fit in 52ch (measured: 52ch gives 69 at most, 53ch already 71) */
  --measure: 52ch;
  --measure-learnings: 52ch;
  --number-col: 11em;
  --chart-max: 440px;
  --arrow-gap: 0.4em;
  --arrow-gap-hover: 0.8em;
  --columns: 12;
  --frame: 1440px;
  --columns-mobile: 4;
}

/* the /skills card is light on the dark page, so its text flips to dark */
.sk-d {
  --ink: #1a1c1c;
  --muted: #535353;
}

/* header and footer: the page colour, with their lines */
.yt-header-in, .yt-footer-in {
  --bg: #1a1c1c;
  --bar-pad: 0px;
}

/* the dark section: the same colour as the page, so its lines mark it */
[data-theme="dark"] {
  --bg: #1a1c1c;
  --ink: #f9f4eb;
  --muted: #a3a3a3;
  --box: #2a2d2d;
  --rule: var(--ink);
}

/* type styles from tokens.json: line height, tracking and weight per role.
   Font size comes from the --fs-* tokens above; bundle.css applies them (caption-box is fixed). */
.contact { font-family: var(--font-sans); line-height: 1; letter-spacing: -0.045em; font-weight: 400; }
.h1 { font-family: var(--font-sans); line-height: 1.08; letter-spacing: -0.03em; font-weight: 400; }
.stat { font-family: var(--font-sans); line-height: 1; letter-spacing: -0.035em; font-weight: 400; }
.h2 { font-family: var(--font-sans); line-height: 1.1; letter-spacing: -0.025em; font-weight: 400; }
.step-num { font-family: var(--font-sans); line-height: 1; letter-spacing: -0.03em; font-weight: 400; }
.h3 { font-family: var(--font-sans); line-height: 1.2; letter-spacing: -0.012em; font-weight: 400; }
.h4 { font-family: var(--font-sans); line-height: 1.25; letter-spacing: -0.01em; font-weight: 400; }
.lead { font-family: var(--font-sans); line-height: 1.4; letter-spacing: 0; font-weight: 400; }
.body { font-family: var(--font-sans); line-height: 1.4; letter-spacing: 0; font-weight: 400; }
.nav { font-family: var(--font-sans); line-height: 1.3; letter-spacing: 0; font-weight: 400; }
.small { font-family: var(--font-sans); line-height: 1.3; letter-spacing: 0; font-weight: 400; }
.caption-box { font-family: var(--font-sans); font-size: 16px; line-height: 1.3; letter-spacing: 0; font-weight: 400; }
