/*
 * tokens.css — Design tokens for both versions of the site
 * ─────────────────────────────────────────
 * The one place colours, type, spacing and motion are defined. Lo-fi pages
 * load it before shared.css; the hi-fi site loads it (with bar.css) at /hifi/.
 * Change a value here and every page follows.
 */
/* every typeface, served from the site itself (no font CDN): assets/fonts/fonts.css */
@import url("assets/fonts/fonts.css");

:root {
  /* ── Colour ── */
  --c-paper:   #ffffff;   /* hi-fi paper, the bar */
  --c-ink:     #000000;   /* hi-fi ink, the bar */
  --c-warm:    #EAE0D1;   /* lo-fi page background: the hi-fi wall's plaster, a shade lighter */
  --c-plaster: #e2cba6;   /* the hi-fi wall's plaster itself */
  --c-maple:   #d6ad78;   /* the shelving */
  --c-clay:    #c4774d;   /* terracotta, from the ceramics */
  --c-night:   #161412;   /* lo-fi text and dark sections */
  --c-accent:  #E36216;   /* links, focus rings, scroll progress */
  --c-slot:    #efefed;   /* hover fill on light controls */

  /* One colour per section: menu dots, side nav, stars */
  --c-orange: #f97316;
  --c-cyan:   #06b6d4;
  --c-purple: #a855f7;
  --c-lime:   #84cc16;
  --c-blue:   #3b82f6;
  --c-violet: #9b8cf8;

  /* Lines and secondary text on light ground */
  --c-hair:   rgba(0, 0, 0, 0.14);
  --c-border: rgba(0, 0, 0, 0.34);
  --c-mute:   rgba(0, 0, 0, 0.64);

  /* The ink ramp on the beige page: three strengths of text, two of line.
     No text lighter than ink-3 (4.9:1 on --c-warm). */
  --c-ink-2:  rgba(22, 20, 18, 0.72);   /* reading text */
  --c-ink-3:  rgba(22, 20, 18, 0.64);   /* labels, captions */
  --c-line:   rgba(22, 20, 18, 0.1);    /* dividers */
  --c-line-2: rgba(22, 20, 18, 0.2);    /* outlines of controls */
  --c-on-dark-2: rgba(255, 255, 255, 0.72);   /* secondary text on dark */

  /* ── Layout: one column, one left edge on every page ── */
  --col: 984px;       /* text column (a 1080 box with 48 gutters) */
  --gutter: 48px;     /* 24 on phones */
  --edge: max(var(--gutter), calc((100% - var(--col)) / 2));

  /* ── Controls: two heights ── */
  --h-ctl: 40px; --h-ctl-lg: 48px; --icon: 16px;

  /* ── Type ── */
  /* Archivo for everything you read and press on both sites; Libre Caslon for
     the CHLOE MA wordmark and the reading text inside the hi-fi books. */
  --f-text:  'Archivo Site', -apple-system, Helvetica, Arial, sans-serif;
  --f-label: var(--f-text);                                                  /* the bar's Lo-fi / Hi-fi labels */
  --f-brand: 'Libre Caslon Text', Georgia, serif;
  --f-stretch: semi-condensed;                                               /* Archivo a touch condensed (87.5%), as on hi-fi */
  --t-xs: 14px; --t-sm: 14px; --t-md: 16px; --t-lg: 20px; --t-xl: 24px;

  /* Type styles. Set an element with both:  font: var(--type-x); letter-spacing: var(--track-x);
     Labels (eyebrow, meta) are also uppercase. Display sizes scale with the window.
     Text sizes and line heights sit on the 8px grid (lines of 24 or 32px); nothing under 14px. */
  --type-display:   700 var(--f-stretch) clamp(52px, 9vw, 130px)/0.9 var(--f-text);      --track-display: -0.045em;   /* homepage headlines */
  --type-title-1:   700 var(--f-stretch) clamp(38px, 5.8vw, 80px)/0.93 var(--f-text);    --track-title-1: -0.045em;   /* page and case-study titles */
  --type-title-2:   700 var(--f-stretch) clamp(26px, 3vw, 42px)/1.1 var(--f-text);       --track-title-2: -0.03em;    /* section headings */
  --type-title-3:   700 var(--f-stretch) 24px/32px var(--f-text);                          --track-title-3: -0.025em;   /* card and block headings */
  --type-stat:      700 var(--f-stretch) clamp(34px, 3.8vw, 52px)/1 var(--f-text);       --track-stat: -0.04em;       /* big numbers */
  --type-statement: 500 var(--f-stretch) clamp(26px, 3.6vw, 48px)/1.35 var(--f-text);    --track-statement: -0.025em; /* a sentence set large */
  --type-lead:      400 var(--f-stretch) 20px/32px var(--f-text);                         --track-lead: 0;             /* intro paragraphs */
  --type-pull:      italic 500 var(--f-stretch) 20px/32px var(--f-text);                  --track-pull: -0.01em;       /* pull quotes */
  --type-body:      400 var(--f-stretch) 18px/32px var(--f-text);                         --track-body: 0;             /* reading text */
  --type-note:      italic 400 var(--f-stretch) 16px/24px var(--f-text);                  --track-note: 0;             /* reflection notes */
  --type-small:     400 var(--f-stretch) 16px/24px var(--f-text);                         --track-small: 0;            /* facts, card text */
  --type-caption:   500 var(--f-stretch) 14px/24px var(--f-text);                          --track-caption: 0;          /* stat labels, footer */
  --type-eyebrow:   700 var(--f-stretch) 14px/24px var(--f-text);                          --track-eyebrow: 0.1em;      /* section numbers, labels */
  --type-meta:      600 var(--f-stretch) 14px/24px var(--f-text);                          --track-meta: 0.06em;        /* meta lines, tags, captions */
  --type-figure:    400 var(--f-stretch) 12px/16px var(--f-text);                          --track-figure: 0;           /* figure captions and legends: 12px by choice, the one exception to the 14px floor */
  --type-wordmark:  400 var(--t-xl)/1 var(--f-brand);                    --track-wordmark: 0.01em;    /* CHLOE and MA */

  /* ── Space (4px grid) ── */
  --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-40: 40px; --s-80: 80px;

  /* ── Shape ── */
  --r-sm: 4px; --r-btn: 8px; --r-md: 14px; --r-pill: 999px;
  --bar-h: 64px;

  /* ── Motion ── */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out-strong: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 200ms; --dur: 400ms; --dur-slow: 850ms;
}
@media (max-width: 899px) {
  :root { --bar-h: 56px; }
}
@media (max-width: 640px) {
  :root { --gutter: 24px; }
}
