/* ==========================================================================
   Handiwork — Typography
   Depends on tokens.css. Mirrors the Figma Desktop/Mobile type ramps.
   Headings: Changa One (400).  Body text: Manrope (400–800).
   Fonts are vendored locally in assets/fonts/ — fully offline, no CDN.
   ========================================================================== */

/* ------------------------------------------------------------- Changa One */
@font-face {
  font-family: "Changa One"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/changa-one-latin-400.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+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* --------------------------------------------------------------- Manrope */
/* latin */
@font-face { font-family:"Manrope"; font-style:normal; font-weight:400; font-display:swap;
  src:url("../fonts/manrope-latin-400.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+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family:"Manrope"; font-style:normal; font-weight:500; font-display:swap;
  src:url("../fonts/manrope-latin-500.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+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family:"Manrope"; font-style:normal; font-weight:600; font-display:swap;
  src:url("../fonts/manrope-latin-600.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+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family:"Manrope"; font-style:normal; font-weight:700; font-display:swap;
  src:url("../fonts/manrope-latin-700.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+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family:"Manrope"; font-style:normal; font-weight:800; font-display:swap;
  src:url("../fonts/manrope-latin-800.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+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
/* latin-ext */
@font-face { font-family:"Manrope"; font-style:normal; font-weight:400; font-display:swap;
  src:url("../fonts/manrope-latin-ext-400.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family:"Manrope"; font-style:normal; font-weight:500; font-display:swap;
  src:url("../fonts/manrope-latin-ext-500.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family:"Manrope"; font-style:normal; font-weight:600; font-display:swap;
  src:url("../fonts/manrope-latin-ext-600.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family:"Manrope"; font-style:normal; font-weight:700; font-display:swap;
  src:url("../fonts/manrope-latin-ext-700.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family:"Manrope"; font-style:normal; font-weight:800; font-display:swap;
  src:url("../fonts/manrope-latin-ext-800.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

/* ----------------------------------------------------------- Base defaults */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--hw-font-body);
  font-size: var(--hw-size-l);
  line-height: var(--hw-lh-l);
  color: var(--hw-content-primary);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--hw-font-heading);
  font-weight: var(--hw-weight-regular);
  color: var(--hw-text-primary);
  margin: 0;
}

/* ==========================================================================
   HEADINGS — Changa One.  Desktop ramp (default).
   Class scale matches Figma tokens: 5xl … 2xs
   ========================================================================== */
.hw-heading-5xl,
.hw-heading-4xl,
.hw-heading-3xl,
.hw-heading-2xl,
.hw-heading-xl,
.hw-heading-l,
.hw-heading-m,
.hw-heading-s,
.hw-heading-xs,
.hw-heading-2xs {
  font-family: var(--hw-font-heading);
  font-weight: var(--hw-weight-regular);
  color: var(--hw-text-primary);
  margin: 0;
}

.hw-heading-5xl { font-size: var(--hw-size-10xl); line-height: var(--hw-lh-10xl); letter-spacing: var(--hw-ls-xs); }
.hw-heading-4xl { font-size: var(--hw-size-9xl);  line-height: var(--hw-lh-9xl);  letter-spacing: var(--hw-ls-xs); }
.hw-heading-3xl { font-size: var(--hw-size-8xl);  line-height: var(--hw-lh-8xl);  letter-spacing: var(--hw-ls-s); }
.hw-heading-2xl { font-size: var(--hw-size-7xl);  line-height: var(--hw-lh-7xl);  letter-spacing: var(--hw-ls-s); }
.hw-heading-xl  { font-size: var(--hw-size-6xl);  line-height: var(--hw-lh-6xl);  letter-spacing: var(--hw-ls-s); }
.hw-heading-l   { font-size: var(--hw-size-5xl);  line-height: var(--hw-lh-5xl);  letter-spacing: var(--hw-ls-s); }
.hw-heading-m   { font-size: var(--hw-size-3xl);  line-height: var(--hw-lh-3xl);  letter-spacing: var(--hw-ls-s); }
.hw-heading-s   { font-size: var(--hw-size-2xl);  line-height: var(--hw-lh-2xl);  letter-spacing: var(--hw-ls-s); }
.hw-heading-xs  { font-size: var(--hw-size-l);    line-height: var(--hw-lh-l);    letter-spacing: var(--hw-ls-s); }
.hw-heading-2xs { font-size: var(--hw-size-m);    line-height: var(--hw-lh-m);    letter-spacing: var(--hw-ls-none); }

/* Mobile ramp — Figma "Mobile/Heading/*" (applied under 768px) */
@media (max-width: 767px) {
  .hw-heading-5xl { font-size: var(--hw-size-8xl); line-height: var(--hw-lh-8xl); letter-spacing: var(--hw-ls-s); }
  .hw-heading-4xl { font-size: var(--hw-size-7xl); line-height: var(--hw-lh-7xl); letter-spacing: var(--hw-ls-s); }
  .hw-heading-3xl { font-size: var(--hw-size-6xl); line-height: var(--hw-lh-6xl); letter-spacing: var(--hw-ls-s); }
  .hw-heading-2xl { font-size: var(--hw-size-5xl); line-height: var(--hw-lh-5xl); letter-spacing: var(--hw-ls-s); }
  .hw-heading-xl  { font-size: var(--hw-size-4xl); line-height: var(--hw-lh-4xl); letter-spacing: var(--hw-ls-none); }
  .hw-heading-l   { font-size: var(--hw-size-3xl); line-height: var(--hw-lh-3xl); letter-spacing: var(--hw-ls-s); }
  .hw-heading-m   { font-size: var(--hw-size-2xl); line-height: var(--hw-lh-2xl); letter-spacing: var(--hw-ls-s); }
  .hw-heading-s   { font-size: var(--hw-size-l);   line-height: var(--hw-lh-l);   letter-spacing: var(--hw-ls-s); }
  .hw-heading-xs  { font-size: var(--hw-size-m);   line-height: var(--hw-lh-m);   letter-spacing: var(--hw-ls-s); }
  .hw-heading-2xs { font-size: var(--hw-size-s);   line-height: var(--hw-lh-s);   letter-spacing: var(--hw-ls-none); }
}

/* ==========================================================================
   BODY TEXT — Manrope.  Desktop and Mobile ramps are identical in Figma.
   Use .hw-bold (or the -bold classes) for the 700 weight.
   ========================================================================== */
.hw-text-xl,
.hw-text-l,
.hw-text-m,
.hw-text-s,
.hw-text-xs {
  font-family: var(--hw-font-body);
  font-weight: var(--hw-weight-regular);
  letter-spacing: var(--hw-ls-none);
  color: var(--hw-content-primary);
}

.hw-text-xl { font-size: var(--hw-size-2xl); line-height: var(--hw-lh-2xl); }
.hw-text-l  { font-size: var(--hw-size-l);   line-height: var(--hw-lh-l); }
.hw-text-m  { font-size: var(--hw-size-m);   line-height: var(--hw-lh-m); }
.hw-text-s  { font-size: var(--hw-size-s);   line-height: var(--hw-lh-s); }
.hw-text-xs { font-size: var(--hw-size-xs);  line-height: var(--hw-lh-xs); }

/* Bold convenience classes */
.hw-text-xl-bold,
.hw-text-l-bold,
.hw-text-m-bold,
.hw-text-s-bold,
.hw-text-xs-bold { font-family: var(--hw-font-body); font-weight: var(--hw-weight-bold); letter-spacing: var(--hw-ls-none); }
.hw-text-xl-bold { font-size: var(--hw-size-2xl); line-height: var(--hw-lh-2xl); }
.hw-text-l-bold  { font-size: var(--hw-size-l);   line-height: var(--hw-lh-l); }
.hw-text-m-bold  { font-size: var(--hw-size-m);   line-height: var(--hw-lh-m); }
.hw-text-s-bold  { font-size: var(--hw-size-s);   line-height: var(--hw-lh-s); }
.hw-text-xs-bold { font-size: var(--hw-size-xs);  line-height: var(--hw-lh-xs); }

/* ------------------------------------------------------------- Utilities */
.hw-bold    { font-weight: var(--hw-weight-bold); }
.hw-regular { font-weight: var(--hw-weight-regular); }

/* Text color helpers */
.hw-text-primary   { color: var(--hw-content-primary); }
.hw-text-secondary { color: var(--hw-text-secondary); }
.hw-text-muted     { color: var(--hw-content-tertiary); }
.hw-text-body      { color: var(--hw-text-secondary); }
.hw-text-brand     { color: var(--hw-primary); }
