:root {
  color-scheme: light dark;

  --background-color: #fbfbfb;
  --text-color: #333333;

  --space-0: 5rem;
  --space-1: 2rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background-color: #061826;
    --text-color: #d6d6d6;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

p {
  text-wrap: pretty;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Geologica", sans-serif;
  font-weight: 800;
  letter-spacing: -0.1rem;
  text-wrap: balance;
}

h1 {
  font-size: 3.8rem;
  margin-bottom: var(--space-1);
}

html {
  font-size: 140%;

  padding-top: var(--space-0);
  padding-bottom: var(--space-0);
}

body {
  -webkit-font-smoothing: antialiased;

  background: var(--background-color);
  color: var(--text-color);
  font-family: "SN Pro", sans-serif;
  line-height: 1.5;
  margin-inline: auto;
  width: min(58ch, 100% - 2rem);
}

@font-face {
  font-display: swap;
  font-family: "Geologica";
  font-style: normal;
  font-weight: 100;
  src: url("/fonts/geologica/geologica-v5-latin_latin-ext-100.woff2")
    format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "Geologica";
  font-style: normal;
  font-weight: 200;
  src: url("/fonts/geologica/geologica-v5-latin_latin-ext-200.woff2")
    format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "Geologica";
  font-style: normal;
  font-weight: 300;
  src: url("/fonts/geologica/geologica-v5-latin_latin-ext-300.woff2")
    format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "Geologica";
  font-style: normal;
  font-weight: 400;
  src: url("/fonts/geologica/geologica-v5-latin_latin-ext-regular.woff2")
    format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "Geologica";
  font-style: normal;
  font-weight: 500;
  src: url("/fonts/geologica/geologica-v5-latin_latin-ext-500.woff2")
    format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "Geologica";
  font-style: normal;
  font-weight: 600;
  src: url("/fonts/geologica/geologica-v5-latin_latin-ext-600.woff2")
    format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "Geologica";
  font-style: normal;
  font-weight: 700;
  src: url("/fonts/geologica/geologica-v5-latin_latin-ext-700.woff2")
    format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "Geologica";
  font-style: normal;
  font-weight: 800;
  src: url("/fonts/geologica/geologica-v5-latin_latin-ext-800.woff2")
    format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "Geologica";
  font-style: normal;
  font-weight: 900;
  src: url("/fonts/geologica/geologica-v5-latin_latin-ext-900.woff2")
    format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "SN Pro";
  font-style: normal;
  font-weight: 200;
  src: url("/fonts/sn-pro/sn-pro-v1-latin_latin-ext-200.woff2") format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "SN Pro";
  font-style: italic;
  font-weight: 200;
  src: url("/fonts/sn-pro/sn-pro-v1-latin_latin-ext-200italic.woff2")
    format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "SN Pro";
  font-style: normal;
  font-weight: 300;
  src: url("/fonts/sn-pro/sn-pro-v1-latin_latin-ext-300.woff2") format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "SN Pro";
  font-style: italic;
  font-weight: 300;
  src: url("/fonts/sn-pro/sn-pro-v1-latin_latin-ext-300italic.woff2")
    format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "SN Pro";
  font-style: normal;
  font-weight: 400;
  src: url("/fonts/sn-pro/sn-pro-v1-latin_latin-ext-regular.woff2")
    format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "SN Pro";
  font-style: italic;
  font-weight: 400;
  src: url("/fonts/sn-pro/sn-pro-v1-latin_latin-ext-italic.woff2")
    format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "SN Pro";
  font-style: normal;
  font-weight: 500;
  src: url("/fonts/sn-pro/sn-pro-v1-latin_latin-ext-500.woff2") format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "SN Pro";
  font-style: italic;
  font-weight: 500;
  src: url("/fonts/sn-pro/sn-pro-v1-latin_latin-ext-500italic.woff2")
    format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "SN Pro";
  font-style: normal;
  font-weight: 600;
  src: url("/fonts/sn-pro/sn-pro-v1-latin_latin-ext-600.woff2") format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "SN Pro";
  font-style: italic;
  font-weight: 600;
  src: url("/fonts/sn-pro/sn-pro-v1-latin_latin-ext-600italic.woff2")
    format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "SN Pro";
  font-style: normal;
  font-weight: 700;
  src: url("/fonts/sn-pro/sn-pro-v1-latin_latin-ext-700.woff2") format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "SN Pro";
  font-style: italic;
  font-weight: 700;
  src: url("/fonts/sn-pro/sn-pro-v1-latin_latin-ext-700italic.woff2")
    format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "SN Pro";
  font-style: normal;
  font-weight: 800;
  src: url("/fonts/sn-pro/sn-pro-v1-latin_latin-ext-800.woff2") format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "SN Pro";
  font-style: italic;
  font-weight: 800;
  src: url("/fonts/sn-pro/sn-pro-v1-latin_latin-ext-800italic.woff2")
    format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "SN Pro";
  font-style: normal;
  font-weight: 900;
  src: url("/fonts/sn-pro/sn-pro-v1-latin_latin-ext-900.woff2") format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "SN Pro";
  font-style: italic;
  font-weight: 900;
  src: url("/fonts/sn-pro/sn-pro-v1-latin_latin-ext-900italic.woff2")
    format("woff2");
}
