/* Typefaces.

   The design uses PP Hatton for all display type and Helvetica for body copy.
   The licensed OpenType files live in assets/fonts/ (copied from ./otf).

   These are .otf rather than .woff2 — every browser loads OpenType directly,
   and this machine has no font tooling to convert with. If you ever want the
   smaller files (~40% of the size, worth it over a slow connection), run the
   .otf files through any woff2 converter and swap the urls below.

   Note: over file:// Safari can refuse to load local font files, in which
   case the page falls back to Didot. If the display type looks wrong when
   opening index.html directly, serve the folder instead — no install needed:

     python3 -m http.server 8000                                             */

/* Added for the Selected work card title (Figma node 984:1543), the only
   place on the site that calls for this weight. */
@font-face {
  font-family: "PP Hatton";
  src: url("../assets/fonts/PPHatton-Ultralight.otf") format("opentype");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "PP Hatton";
  src: url("../assets/fonts/PPHatton-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "PP Hatton";
  src: url("../assets/fonts/PPHatton-MediumItalic.otf") format("opentype");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

/* The design calls for Hatton Semibold on the contact heading; Bold is the
   closest weight shipped in this family. */
@font-face {
  font-family: "PP Hatton";
  src: url("../assets/fonts/PPHatton-Bold.otf") format("opentype");
  font-weight: 600 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "PP Hatton";
  src: url("../assets/fonts/PPHatton-BoldItalic.otf") format("opentype");
  font-weight: 600 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --font-display: "PP Hatton", "Hatton", "Didot", "Bodoni 72", "Playfair Display",
    Georgia, serif;
  --font-body: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
