/* ============================================================
   TOKENS — Danial Movasaghi, Portfolio v3
   The ONLY place raw values live. Components use var(--…) only.
   Calm scale (12 Nov): 6 type sizes, 3 radii, 1 border width,
   9 spacing steps, 6 colours + 3 greys. Change a value here and
   it changes everywhere.
   ============================================================ */
:root{
  /* ---------- colour: flat only, no gradients ---------- */
  --ink:#141218;          /* text, plates, cold dots */
  --ground:#ffffff;       /* page */
  --hot:#f7590d;          /* heat: home ground, focus, numbers */
  --hot-deep:#c9440a;     /* boxes on orange, nav edge (white text 4.9:1) */
  --cold:#0040f2;         /* cooled: dots, links on white */
  --on-ink:#ffffff;       /* text on ink / on hot-deep */
  --on-ink-dim:rgba(255,255,255,.7);  /* nav words that aren't the current page */
  --black-deep:#07060b;   /* the unfold frames' own black, so the canvas edge never shows */
  --film-base:#0b0a0d;    /* film strip: negative base, a shade darker than ink */
  --film-print:#ffba03;   /* film strip: yellow edge print */

  /* glass: translucent fills + blur (nav, project boxes) */
  --glass-ink:rgba(20,18,24,.55);
  --glass-ink-hover:rgba(20,18,24,.78);
  --glass-hot:rgba(255,255,255,.06);
  --glass-tint:rgba(20,18,24,.07);
  --glass-white:rgba(255,255,255,.78);   /* white sections on pages with background motifs */
  --glass-edge:rgba(255,255,255,.5);
  --glass-shine:inset 0 1px 0 rgba(255,255,255,.35),0 8px 32px rgba(20,18,24,.18);
  --glass-blur:blur(18px) saturate(1.15);

  --ink-muted:#5c5866;    /* secondary text on white (6.6:1) */
  --line:#e6e3ea;         /* hairlines on white */
  --surface:#f5f4f7;      /* quiet panels */

  /* ---------- type ---------- */
  --font-title:'Bricolage Grotesque','Helvetica Neue',Arial,sans-serif;  /* titles (decided 18 Nov) */
  --font-text:'Hanken Grotesk','Helvetica Neue',Arial,sans-serif;   /* body, name, nav, labels */
  --font-mono:ui-monospace,Menlo,monospace;                         /* film edge print only */
  --font-tape:'Permanent Marker','Marker Felt','Comic Sans MS',cursive;  /* roll name on the canister tape */
  --font-film:'Josefin Slab',Rockwell,Georgia,serif;                      /* ISO on the canister */
  --font-display:'Archivo Black','Arial Black',Impact,sans-serif;   /* landing only */

  /* 6 sizes. That's it. */
  --fs-xs:13px;                                  /* labels, small tags */
  --fs-sm:15px;                                  /* captions, tags, notes */
  --fs-md:17px;                                  /* body */
  --fs-lg:clamp(19px,1.2vw + 14px,22px);         /* lede, chapter titles */
  --fs-xl:clamp(28px,2.4vw + 16px,40px);         /* section headings, card titles */
  --fs-2xl:clamp(40px,6vw + 12px,96px);          /* page title, hero */
  --fs-quote:clamp(32px,2.6vw + 8px,56px);       /* the About quotes: big and in your face */
  --fs-hero:clamp(40px,9.5vw,132px);             /* home hero title only: bigger than 2xl */

  --fw-thin:200; --fw-title:800; --fw-regular:400; --fw-medium:500; --fw-bold:600;
  --lh-tight:1.05; --lh-snug:1.3; --lh-body:1.6;
  --track-display:-.02em; /* Bricolage titles, every size */
  --track-heading:-.02em; /* Bricolage titles, every size */
  --track-label:.08em;    /* uppercase labels, buttons */
  --measure:62ch;         /* max line length for reading */

  /* ---------- space: 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;
  --wrap:1120px;
  --gutter:clamp(16px,4vw,24px);

  /* ---------- shape ---------- */
  --r:6px;                /* house radius: boxes, tags, media, buttons */
  --r-nav:14px;           /* nav exception only */
  --r-round:999px;        /* dots, icon buttons */
  --bw:1.5px;             /* every border */
  --ring-w:3px;            /* focus outline width */
  --ring-gap:4px;         /* focus outline offset */

  /* ---------- motion ---------- */
  --ease:cubic-bezier(.2,.8,.2,1);
  --ease-soft:cubic-bezier(.4,0,.2,1);  /* colour fades: even in and out */
  --t-fast:150ms;         /* tiny feedback */
  --t-hover:300ms;
  --t-grow:380ms;         /* fill growing out from the middle */        /* every colour change on hover/focus */
  --tr-colors:background-color var(--t-hover) var(--ease-soft),color var(--t-hover) var(--ease-soft),box-shadow var(--t-hover) var(--ease-soft),border-color var(--t-hover) var(--ease-soft);
  --t:350ms;              /* small moves */
  --t-slow:450ms;         /* open / close */
  --beat:2.8s;            /* square breathing */
}
