/* Ageshio Japan — self-hosted @font-face (SIL OFL / respective licences).
   THIS FILE IS FONTS ONLY. Layout/components live in components.css.

   URLs are RELATIVE to this file. Because fonts.css sits at the theme root and the
   woff2 files live in ./fonts/ beside it, a relative url('fonts/…') resolves against
   the stylesheet's own location — i.e. .../themes/ageshio-japan/fonts/… — on ANY
   install, with no PHP path substitution. The fonts ship INSIDE the theme .zip, so
   the single theme .zip is fully self-contained and portable to any WordPress
   (no dependency on the uploads/ folder). */
/* Bounded — VARIABLE weight axis 200–900 (one file covers every weight incl. the intermediate
   Medium/SemiBold/Bold the 3 static faces lacked). Was 3 static faces (200/400/900) which forced
   a jump straight from Regular to Black — the interior grid's bold lead phrases need SemiBold(600),
   which snapped to 900 and read far too heavy vs the reference. The variable file (223KB) is also
   smaller than the 3 statics combined and renders 200/400/900 identically for existing callers. */
@font-face {
  font-family: 'Bounded';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('fonts/Bounded-Variable.woff2') format('woff2-variations');
}

/* Red Rose — VARIABLE weight axis 400–700 (one file covers nav_link 400 + accent/link 700). */
@font-face {
  font-family: 'Red Rose';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/RedRose-Variable.woff2') format('woff2-variations');
}

/* Red Hat Display — body copy, Light 300 (static). */
@font-face {
  font-family: 'Red Hat Display';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/RedHatDisplay-Light.woff2') format('woff2');
}
/* Red Hat Display — Regular 400 (for copy that needs a touch more weight than Light, e.g. the
   About intro paragraphs). Only the 300 Light was bundled before, so any font-weight:400 request
   silently rendered Light — hence "not darker". latin + latin-ext subsets (covers es/de/nl). */
@font-face {
  font-family: 'Red Hat Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/RedHatDisplay-Regular.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: 'Red Hat Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/RedHatDisplay-Regular-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;
}

/* Shippori Mincho — SemiBold 600, subset to the JŌYŌ everyday-kanji set (the 2,136 government
   "common-use" kanji) + hiragana + katakana + CJK/full-width punctuation + ASCII → ~2,528 glyphs, ~460KB.
   WHY the whole Jōyō set and not just the glyphs we render: the decorative kanji are client-editable in
   Elementor, and the client works GUI-only (never re-subsets). Bundling all of Jōyō means any kanji they
   would realistically type (place names, karate terms, everyday words) renders in the designed face with
   no tofu and no dev step. The full JA face is ~1.35MB (6,745 glyphs); Jōyō is ~1/3 of that, the balance
   Simon chose 2026-09-23. Latin labels ("Okinawa","Tour") use Bounded — they never touch this face.
   History (v1→v4): started as a ~36-glyph "only what we render" subset; superseded by the Jōyō set → -v5.
   Regenerate (fresh -vN filename to bust the font cache) — the SemiBold source is not kept in-repo:
     curl -fsSL -o full.woff2 https://cdn.jsdelivr.net/npm/@fontsource/shippori-mincho@5/files/shippori-mincho-japanese-600-normal.woff2
     # unicodes = keys of a Jōyō list (e.g. davidluzgouveia/kanji-data kanji-jouyou.json) + U+0020-007E,
     #            U+3000-303F, U+3040-309F, U+30A0-30FF, U+FF00-FFEF  → /tmp/ship_subset_unicodes.txt
     pyftsubset full.woff2 --unicodes-file=/tmp/ship_subset_unicodes.txt --flavor=woff2 \
       --output-file=ShipporiMincho-SemiBold-vN.woff2 --layout-features='*' --no-hinting --desubroutinize */
@font-face {
  font-family: 'Shippori Mincho';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/ShipporiMincho-SemiBold-v5.woff2') format('woff2');
}
