:root {
  color-scheme: light dark;

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

  --text-small: 0.85rem;

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

@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;
  margin-bottom: var(--space-2);
}

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

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

h2 {
  font-size: 2.4rem;
  font-weight: 800;

  margin-top: var(--space-1);
  margin-bottom: var(--space-2);
}

h3 {
  border-bottom: 1px solid lightgray;

  font-size: 1.4rem;
  font-weight: 700;

  margin-bottom: var(--space-2);
  padding-bottom: var(--space-3);
}

h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: var(--space-3);
}

html {
  font-size: 130%;

  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(75ch, 100% - 4rem);
}

#employments > section {
  align-items: baseline;
  column-gap: 1rem;
  display: flex;
  flex-wrap: wrap;
  margin-bottom: var(--space-1);
}

#employments .date {
  flex: 0 0 22ch;
  font-size: var(--text-small);
  font-weight: 500;
}

#employments .detail {
  flex: 1 1 40ch;
}

.project + .project {
  margin-top: var(--space-1);
}

.tags {
  display: flex;
  flex-flow: row wrap;
  font-size: var(--text-small);
  gap: 0.6rem;
  list-style: none;
  padding: 0;
  text-transform: lowercase;
}

.tags li {
  background-color: #F3DE8A;
  color: #444;
  border-radius: 0.4rem;
  font-weight: 500;
  padding: 0.05rem 0.6rem;
}

@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");
}
