/*
 * Inter typography for Akia — self-hosted.
 *
 * The app historically referenced weight-named font families (Regular, Light,
 * Medium, Bold, HMedium, HSemibold, Normal) that were defined in an external
 * S3 stylesheet (akiafont.css). This file replaces that stylesheet: every
 * legacy family name is re-pointed at the Inter variable font, locked to a
 * fixed weight so the family name keeps carrying its weight — matching the
 * design-system convention that "the font-family infers the weight".
 *
 * Weight map:
 *   Light / Regular / Normal  -> Inter 400
 *   Medium / HMedium          -> Inter 500
 *   HSemibold                 -> Inter 600
 *   Bold                      -> Inter 700
 *
 * Defaults: body text is 400; h1–h6 are 600.
 *
 * Served at /fonts/inter.css via Plug.Static. Referenced from the page
 * templates in place of the old akiafont.css <link>.
 */

/* ---- Inter itself (variable, full weight axis) ---- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/https/api.akia.com/fonts/InterVariable.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("/https/api.akia.com/fonts/InterVariable-Italic.woff2") format("woff2");
}

/* ---- Regular -> Inter 400 ---- */
@font-face {
  font-family: "Regular";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/https/api.akia.com/fonts/InterVariable.woff2") format("woff2");
}
@font-face {
  font-family: "Regular";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/https/api.akia.com/fonts/InterVariable-Italic.woff2") format("woff2");
}

/* ---- Light -> Inter 400 (per request, not 300) ---- */
@font-face {
  font-family: "Light";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/https/api.akia.com/fonts/InterVariable.woff2") format("woff2");
}
@font-face {
  font-family: "Light";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/https/api.akia.com/fonts/InterVariable-Italic.woff2") format("woff2");
}

/* ---- Normal -> Inter 400 ---- */
@font-face {
  font-family: "Normal";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/https/api.akia.com/fonts/InterVariable.woff2") format("woff2");
}
@font-face {
  font-family: "Normal";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/https/api.akia.com/fonts/InterVariable-Italic.woff2") format("woff2");
}

/* ---- Medium -> Inter 500 ---- */
@font-face {
  font-family: "Medium";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/https/api.akia.com/fonts/InterVariable.woff2") format("woff2");
}
@font-face {
  font-family: "Medium";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("/https/api.akia.com/fonts/InterVariable-Italic.woff2") format("woff2");
}

/* ---- HMedium -> Inter 500 ---- */
@font-face {
  font-family: "HMedium";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/https/api.akia.com/fonts/InterVariable.woff2") format("woff2");
}
@font-face {
  font-family: "HMedium";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("/https/api.akia.com/fonts/InterVariable-Italic.woff2") format("woff2");
}

/* ---- HSemibold -> Inter 600 ---- */
@font-face {
  font-family: "HSemibold";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/https/api.akia.com/fonts/InterVariable.woff2") format("woff2");
}
@font-face {
  font-family: "HSemibold";
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url("/https/api.akia.com/fonts/InterVariable-Italic.woff2") format("woff2");
}

/* ---- Bold -> Inter 700 ---- */
@font-face {
  font-family: "Bold";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/https/api.akia.com/fonts/InterVariable.woff2") format("woff2");
}
@font-face {
  font-family: "Bold";
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url("/https/api.akia.com/fonts/InterVariable-Italic.woff2") format("woff2");
}

/*
 * Baseline typography. `body h1…h6` (specificity 0,0,2) beats the reset's
 * `h1…h6 { font: inherit }` (0,0,1) regardless of load order, while still
 * yielding to component rules like `.foo h1 { font-family: Medium }` (0,1,1).
 */
body {
  font-family: "Inter";
  font-weight: 400;
}

body h1,
body h2,
body h3,
body h4,
body h5,
body h6 {
  font-family: "Inter";
  font-weight: 600;
}
