@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/instrument-serif-latin-400.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/barlow-condensed-latin-700.woff2") format("woff2");
}

:root {
  --color-paper: #f8f5ed;
  --color-ink: #172019;
  --color-cinnabar: #c83b22;
  --color-mineral: #3e5f72;
  --color-line: rgb(23 32 25 / 24%);
  --font-display: "Instrument Serif", Georgia, serif;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-utility: "Barlow Condensed", "Helvetica Neue", sans-serif;
  --page-gutter: clamp(1.25rem, 5vw, 4.5rem);
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  line-height: 1.65;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

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

.masthead,
footer {
  min-height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem var(--page-gutter);
  border-bottom: 1px solid var(--color-line);
}

.wordmark,
.back-link,
.eyebrow,
.updated,
footer {
  font-family: var(--font-utility);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wordmark {
  font-size: clamp(1.65rem, 6vw, 2.4rem);
  letter-spacing: -0.05em;
  line-height: 0.9;
  text-decoration: none;
}

.back-link,
footer {
  font-size: 0.72rem;
}

main {
  width: min(100%, 50rem);
  margin-inline: auto;
  padding: clamp(4rem, 10vw, 7rem) var(--page-gutter);
}

.eyebrow,
.updated {
  color: var(--color-mineral);
  font-size: 0.75rem;
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 400;
  text-wrap: balance;
}

h1 {
  max-width: 11ch;
  margin: 0 0 1.5rem;
  font-size: clamp(3.7rem, 13vw, 6.8rem);
  letter-spacing: -0.055em;
  line-height: 0.88;
  text-transform: uppercase;
}

h2 {
  margin: 0 0 0.8rem;
  font-size: clamp(2rem, 6vw, 2.8rem);
  line-height: 1;
}

.intro {
  max-width: 42rem;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.updated {
  margin-bottom: 4rem;
}

section {
  border-top: 1px solid var(--color-line);
  padding-block: 2rem;
}

section p:last-child,
section ul:last-child {
  margin-bottom: 0;
}

ul {
  padding-left: 1.25rem;
}

li + li {
  margin-top: 0.65rem;
}

footer {
  border-top: 1px solid var(--color-line);
  border-bottom: 0;
}

@media (max-width: 420px) {
  .masthead {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 1.25rem;
  }
}
