/* =============================================================================
   TOMASZ FRYZEL — DESIGN SYSTEM · BASE
   =============================================================================
   The layer between tokens and components:

     tokens.css  →  raw VALUES (variables)
     base.css    →  applies them to bare HTML + a minimal reset + type ROLES
     components  →  built on top (next phases)

   Load order matters: tokens.css MUST come before base.css.
   ========================================================================== */


/* --- Font faces · Akkurat LL (licensed 13 Nov 2026) ------------------------
 *
 * Legal Disclaimer for Web licence
 *
 * Licence to use self-hosted webfonts for displaying dynamic text on specified
 * website domains. Our package includes WOFF and WOFF2 font formats.
 *
 * Should the license page views limit be exceeded the license holder will be
 * required to contact Lineto.com for an upgrade.
 *
 * It is strictly prohibited to rename the font and to download or use these
 * fonts in any other media.
 *
 * These Web fonts are licensed exclusively for the use on the following
 * domain(s) and their subdomains:
 *
 * tomaszfryzel.com (monthly pageviews: <50K)
 *
 * ---------------------------------------------------------------------------
 * File names are UNCHANGED from the delivery — the licence forbids renaming.
 * Use the "Web" cuts, never the "Sub" ones: Sub is a reduced subset whose
 * Polish diacritics are placeholder glyphs (all ą ć ę ź ż measure an identical
 * 44.38px). The Web cuts carry 618 real glyphs, Polish included.
 *
 * Akkurat ships Thin/Light/Regular/Bold/Black — there is NO Medium and no
 * weight above Black, which is why --weight-medium maps to Bold 700 and
 * --weight-extrablack resolves to 900 (see tokens.css).
 * -------------------------------------------------------------------------- */
@font-face{ font-family:'Akkurat LL';
  src:url('assets/fonts/AkkuratLLWeb-Regular.woff2') format('woff2'),
      url('assets/fonts/AkkuratLLWeb-Regular.woff')  format('woff');
  font-weight:400; font-style:normal; font-display:swap; }
@font-face{ font-family:'Akkurat LL';
  src:url('assets/fonts/AkkuratLLWeb-Bold.woff2') format('woff2'),
      url('assets/fonts/AkkuratLLWeb-Bold.woff')  format('woff');
  font-weight:700; font-style:normal; font-display:swap; }
@font-face{ font-family:'Akkurat LL';
  src:url('assets/fonts/AkkuratLLWeb-Black.woff2') format('woff2'),
      url('assets/fonts/AkkuratLLWeb-Black.woff')  format('woff');
  font-weight:900 1000; font-style:normal; font-display:swap; }

/* --- Minimal reset -------------------------------------------------------- */
*, *::before, *::after { box-sizing:border-box; }
html { -webkit-text-size-adjust:100%; }
body {
  margin:0;
  background:var(--color-bg);
  color:var(--color-text);
  font-family:var(--font-sans);
  font-size:var(--size-body);
  line-height:var(--lh-body);
  font-weight:var(--weight-regular);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
h1, h2, h3, p, figure { margin:0; }
a { color:inherit; }


/* --- Type roles ----------------------------------------------------------
   The "semantic" layer for type. Use the class anywhere (.t-h2), or just write
   semantic HTML (<h2>) — the element defaults below match the roles.
   Weight is rationed: only Display & H1 carry the heavy cuts.               */

.t-display {
  font-size:var(--size-display); line-height:var(--lh-display);
  font-weight:var(--weight-extrablack); letter-spacing:var(--track-tight);
}
h1, .t-h1 {
  font-size:var(--size-h1); line-height:var(--lh-h1);
  font-weight:var(--weight-black); letter-spacing:var(--track-snug);
}
h2, .t-h2 {
  font-size:var(--size-h2); line-height:var(--lh-h2);
  font-weight:var(--weight-regular); letter-spacing:var(--track-snug);   /* Regular since 2026-11-19 (his Figma H2; was Bold) */
}
h3, .t-h3 {
  font-size:var(--size-h3); line-height:var(--lh-h3);
  font-weight:var(--weight-medium); letter-spacing:var(--track-slight);
}
.t-lead {
  font-size:var(--size-lead); line-height:var(--lh-lead);
  font-weight:var(--weight-regular); letter-spacing:var(--track-slight);
}
.t-body {
  font-size:var(--size-body); line-height:var(--lh-body);
  font-weight:var(--weight-regular); letter-spacing:var(--track-normal);
}
.t-meta {
  font-size:var(--size-meta); line-height:var(--lh-meta);
  font-weight:var(--weight-medium); letter-spacing:var(--track-wide);
  text-transform:uppercase;
}


/* --- Shared a11y: a visible focus ring on keyboard nav -------------------- */
:focus-visible { outline:2px solid var(--color-focus); outline-offset:2px; }
