/* Self-hosted Google Fonts: Nosifer (headings) + Rosarivo (body).
   Files live in /assets/fonts/ and are served locally — no CDN. */

@font-face {
  font-family: "Rosarivo";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/rosarivo-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-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

@font-face {
  font-family: "Rosarivo";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/rosarivo-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;
}

@font-face {
  font-family: "Nosifer";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/nosifer-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-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

@font-face {
  font-family: "Nosifer";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/nosifer-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;
}

/* Apply the pair: Rosarivo for body text, Nosifer for the H1 only.
   --pico-font-family is Pico's own hook for the base typeface. */
:root {
  --pico-font-family: "Rosarivo", "Segoe UI", system-ui, sans-serif;
}

h1,
h2 {
  font-family: "Nosifer", "Rosarivo", "Segoe UI", system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.3;
}

/* H3 and down use the body face. Pico applies the sizes through the
   --pico-font-size / --pico-typography-spacing-top hooks. */
h3,
h4,
h5,
h6 {
  font-family: var(--pico-font-family);
  line-height: 1.3;
}

/* Deliberately drastic scale: the H1 towers over everything, H3 is only
   a step above body text. */
h1 {
  --pico-font-size: 3rem;
  --pico-typography-spacing-top: 1.5rem;
}

h2 {
  --pico-font-size: 1.5rem;
  --pico-typography-spacing-top: 1.25rem;
}

h3 {
  --pico-font-size: 1.15rem;
}

h4 {
  --pico-font-size: 1.05rem;
}

h5,
h6 {
  --pico-font-size: 1rem;
}
