@font-face {
  font-family: "Familjen Grotesk";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("fonts/familjen-grotesk-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: "Newsreader";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("fonts/newsreader-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;
}

:root {
  --paper: #e7eef3;
  --sheet: #f6f9fb;
  --ink: #1a242c;
  --muted: #52606c;
  --line: #c5d0d8;
  --mark: #c4482d;
  --focus: #1a242c;
}

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

html {
  background: var(--paper);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--paper);
  font-family: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  font-size: 1.125rem;
  line-height: 1.6;
}

.site-header,
main,
footer {
  width: min(40rem, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-block: 1.25rem 0.75rem;
  border-bottom: 1px solid var(--line);
}

.site-name {
  color: inherit;
  font-family: "Familjen Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
  text-decoration: none;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  font-family: "Familjen Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
}

nav a {
  color: var(--muted);
  text-decoration: none;
}

nav a[aria-current="page"] {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--mark);
}

main {
  padding-block: 2.5rem 3rem;
}

.kicker {
  margin: 0 0 0.75rem;
  color: var(--mark);
  font-family: "Familjen Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2 {
  font-family: "Familjen Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h1 {
  margin: 0 0 1.25rem;
  max-width: 18ch;
  font-size: clamp(2rem, 5vw, 2.75rem);
}

h2 {
  margin: 0 0 0.4rem;
  font-size: 1.25rem;
}

.lead {
  font-size: 1.25rem;
  line-height: 1.45;
}

p {
  margin: 0 0 1rem;
}

section {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

a.text-link {
  color: inherit;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--mark);
}

a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

footer {
  padding-bottom: 2rem;
  color: var(--muted);
  font-family: "Familjen Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  font-size: 0.85rem;
}

footer p {
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

@media (max-width: 36rem) {
  body {
    font-size: 1.05rem;
  }

  main {
    padding-top: 1.75rem;
  }
}
