/* Self-hosted fonts for the two families theme.css asks for.
 *
 * This is a SEPARATE file on purpose. theme.css is the design's source of
 * truth and gets re-exported from the design tool whenever the brand changes
 * — anything written into it by hand would be lost on the next export. So
 * everything Payama adds lives here and in app-tokens.css instead.
 *
 * Nothing loads from a CDN. The site works with no internet.
 *
 * Archivo   — SIL Open Font License, free to self-host. Variable weight
 *             400-700 in a single file, so one download covers body text,
 *             medium labels and bold headings.
 * Coolvetica — Typodermic. The copy in this repo came from a desktop-licensed
 *             download. Web embedding may need a separate webfont licence;
 *             flagged with the owner, who chose to proceed.
 */

/* ── Archivo: body and headings ───────────────────────────────────────────── */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url("/fonts/archivo-latin.woff2") format("woff2");
  /* Latin. Listed so the browser skips this file entirely for other scripts. */
  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: "Archivo";
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url("/fonts/archivo-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;
}

/* ── Coolvetica: wordmark and display headings ────────────────────────────── */

/* theme.css uses this at weight 400 only, so only the regular cut is
   registered. .otf rather than .woff2 because that is what the licensed
   download provides and every current browser reads it; converting would
   save about 25kb and add a build step. */
@font-face {
  font-family: "Coolvetica";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/coolvetica-regular.otf") format("opentype");
}

/* The compressed heavy cut, for the hero wordmark. Opt in with
   font-family: "Coolvetica Heavy" — it is not part of --font-display. */
@font-face {
  font-family: "Coolvetica Heavy";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/fonts/coolvetica-heavy-compressed.otf") format("opentype");
}

/* ── Caveat: one handwritten note ─────────────────────────────────────────── */

/* DESIGN.md lists this as "Accent (home only) — the one handwritten 'Move me!'
   note in the footer". Loaded here rather than on the home page alone because
   one 51kb subset is not worth a second stylesheet. */
@font-face {
  font-family: "Caveat";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/caveat-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;
}

/* Fraunces, italic only.
   
   Used for the status words that appear beside the mark while Payama is
   working -- "Bricklaying...", "Scaffolding..." A serif italic against
   Archivo's sans reads as a deliberate flourish rather than another line of
   interface text.
   
   One weight, one style, latin only: 22kb, and nothing else on the site uses
   it. Path is absolute like every other rule here -- the ../fonts/ form that
   Google Fonts hands out assumes the stylesheet sits in a css/ subfolder,
   and this one does not. */
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/fraunces-v38-latin-600italic.woff2") format("woff2");
}
