/* Vihreät B: sama typografia kuin hyväksytyssä fonttivertailussa.
   Palautus: index.html:n data-typography="original".
   Alkuperäiset tyylit ja Google Fonts -viittaukset ovat ennallaan. */

@font-face {
  font-family: "Krana Fat B";
  src: url("/fonts/krana-fat-b.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("/fonts/ibm-plex-sans-regular.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("/fonts/ibm-plex-sans-medium.woff") format("woff");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("/fonts/ibm-plex-sans-semibold.woff") format("woff");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("/fonts/ibm-plex-sans-bold.woff") format("woff");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("/fonts/ibm-plex-sans-italic.woff") format("woff");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/ibm-plex-mono-medium.woff") format("woff");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

html[data-typography="vihreat-b"] body {
  font-family: "IBM Plex Sans", Arial, sans-serif;
}

html[data-typography="vihreat-b"] h1,
html[data-typography="vihreat-b"] h2 {
  font-family: "Krana Fat B", sans-serif;
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.08;
}

html[data-typography="vihreat-b"] h1 {
  font-size: clamp(56px, 7.4vw, 96px);
}

html[data-typography="vihreat-b"] h2 {
  font-size: clamp(34px, 4.2vw, 50px);
}

html[data-typography="vihreat-b"] h3 {
  font-family: "IBM Plex Sans", Arial, sans-serif;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.25;
}

html[data-typography="vihreat-b"] #kirjoitukset .publication h3 {
  font-family: "IBM Plex Sans", Arial, sans-serif;
  font-size: 20px;
  font-weight: 600;
}

html[data-typography="vihreat-b"] .tag,
html[data-typography="vihreat-b"] .eyebrow {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 500;
}

html[data-typography="vihreat-b"] .quote {
  font-family: "IBM Plex Sans", Arial, sans-serif;
  font-style: italic;
}

@media (max-width: 760px) {
  html[data-typography="vihreat-b"] .theme h3 {
    font-size: 27px;
  }

  html[data-typography="vihreat-b"] #kirjoitukset .publication h3 {
    font-size: 18px;
  }
}
