/* Melion screen typography. Font files are the unmodified Google Fonts v7 distribution. */
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("./fonts/schibsted-grotesk/v7/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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("./fonts/schibsted-grotesk/v7/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;
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  src: url("./fonts/schibsted-grotesk/v7/latin-ext-italic.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  src: url("./fonts/schibsted-grotesk/v7/latin-italic.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;
}

@media screen {
  :root {
    --melion-sans: "Schibsted Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;

    --melion-type-h1: clamp(2.375rem, 3.8vw + 0.75rem, 4.25rem);
    --melion-type-h2: clamp(1.875rem, 2.45vw + 0.8rem, 3.25rem);
    --melion-type-h3: clamp(1.25rem, 0.75vw + 1rem, 1.625rem);
    --melion-type-lead: clamp(1.0625rem, 0.45vw + 0.95rem, 1.3125rem);
    --melion-type-body: 1.0625rem;
    --melion-type-ui: 0.9375rem;
    --melion-type-control: 1rem;
    --melion-type-input: 1.0625rem;
    --melion-type-label: 0.875rem;
    --melion-type-caption: 0.875rem;
    --melion-type-table: 0.9375rem;

    --melion-leading-title: 1.08;
    --melion-leading-section: 1.14;
    --melion-leading-copy: 1.6;
    --melion-leading-ui: 1.45;
    --melion-weight-title: 650;
  }

  .doc-body :where(a, td, th) { overflow-wrap: anywhere; }
}
