/* Maegen Online + Azakhan Studios - self-hosted type.
 *
 * Generated by brand/build_fonts.py. Do not hand-edit: the override
 * percentages are measured out of the font binaries (see metrics.json) and a
 * typo here shows up as layout shift, not as an error.
 *
 * All three families are SIL OFL 1.1. The full licence text for each travels
 * with the binaries in ./licences/ - that is the licence condition met.
 *
 * Every family is paired with a metric-matched local fallback so that
 * `font-display: swap` costs ZERO layout shift (brief section 4). The pattern:
 * declare the local face as its own @font-face with size-adjust and the three
 * overrides, then name it immediately after the webfont in the stack.
 */

@font-face{
  font-family:'Cormorant Garamond';
  src:url('./cormorant-garamond.woff2') format('woff2');
  font-weight:300 700;
  font-style:normal;
  font-display:swap;
  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;
}

/* metric-matched fallback for Cormorant Garamond, measured against Times New Roman.ttf */
@font-face{
  font-family:'Cormorant Fallback';
  src:local('Times New Roman'),local('Times');
  size-adjust:86.30%;
  ascent-override:107.07%;
  descent-override:33.26%;
  line-gap-override:0.00%;
}

@font-face{
  font-family:'Source Serif 4';
  src:url('./source-serif-4.woff2') format('woff2');
  font-weight:400 600;
  font-style:normal;
  font-display:swap;
  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;
}

/* metric-matched fallback for Source Serif 4, measured against Georgia.ttf */
@font-face{
  font-family:'Source Serif Fallback';
  src:local('Georgia'),local('Georgia');
  size-adjust:98.66%;
  ascent-override:105.01%;
  descent-override:33.95%;
  line-gap-override:0.00%;
}

@font-face{
  font-family:'Inter';
  src:url('./inter.woff2') format('woff2');
  font-weight:400 600;
  font-style:normal;
  font-display:swap;
  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;
}

/* metric-matched fallback for Inter, measured against Arial.ttf */
@font-face{
  font-family:'Inter Fallback';
  src:local('Arial'),local('Arial');
  size-adjust:103.30%;
  ascent-override:93.78%;
  descent-override:23.35%;
  line-gap-override:0.00%;
}


:root{
  /* DESIGN-SPEC 4.1. The hard size gap that keeps two serifs from reading
     muddy is a RULE, not a suggestion: Cormorant never appears below 32px,
     Source Serif never above 20px. Anything small is Inter. */
  --font-display: 'Cormorant Garamond','Cormorant Fallback',Georgia,'Times New Roman',serif;
  --font-body:    'Source Serif 4','Source Serif Fallback',Georgia,serif;
  --font-ui:      'Inter','Inter Fallback',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  --font-mono:    ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
}
