/* Fonts — see FONTS.md for provenance, licence status and how these were made.
 *
 * WOFF 1.0, not subset WOFF2: no subsetter (fontTools/pyftsubset) and no woff2
 * encoder exists on the build machine and this template may not install
 * packages, so tools/make_fonts.py repacks the client's TTFs as WOFF with the
 * stdlib. Every browser that supports woff2 supports woff.
 * TODO(production): re-cut as subset woff2 — command in FONTS.md.
 */

@font-face {
  font-family: 'Hello Bride';
  src: url('../assets/fonts/hello-bride-400.woff?v=8') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Rungkut';
  src: url('../assets/fonts/rungkut-400.woff?v=8') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../assets/fonts/cormorant-garamond-600.woff?v=8') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-script: 'Hello Bride', 'Snell Roundhand', cursive;
  --font-amp: 'Rungkut', 'Hello Bride', cursive;
  --font-serif: 'Cormorant Garamond', 'Cormorant', Garamond, 'Times New Roman', serif;

  /* TODO(production): missing licensed font BROWNaustin.
     The PSD sets "Save the Date" and "Our Special Day" in BROWNaustin, which
     the client did not supply. Until it arrives these two strings render in a
     clean geometric sans from the system stack. Add the licensed webfont here
     and point --font-sans at it — no other file needs to change. */
  --font-sans: 'Montserrat', 'Avenir Next', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  /* Baseline-correction factors: with `line-height: 0` a line box puts its
     baseline at   top + font-size * (ascent - descent) / (2 * upm).
     Values read straight from each face's metrics (hhea; Cormorant sets
     USE_TYPO_METRICS so its typo values are the ones browsers apply). The
     sans figure is Montserrat's, used for the BROWNaustin stand-in. */
  --bl-script: 0.25;
  --bl-amp: 0.5769;
  --bl-serif: 0.3185;
  --bl-sans: 0.3585;
}
