@font-face {
  font-family: AtypDisplay;
  src: url("/fonts/AtypDisplay-Semibold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  color: #39332e;
  background: #fffcf8;
  font: 100%/1.65 system-ui, sans-serif;
}

body {
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
  max-width: 48rem;
  overflow-wrap: anywhere;
}

header, footer {
  padding: 1.25rem 0;
  border-color: #dbd3c9;
  border-style: solid;
  border-width: 0;
}

header {
  border-bottom-width: 1px;
}

footer {
  margin-top: 3rem;
  border-top-width: 1px;
}

h1, h2 {
  font-family: AtypDisplay, sans-serif;
  font-weight: 600;
  text-wrap: balance;
}

h1 {
  margin: 2.5rem 0;
  font-size: clamp(1.65rem, 4vw, 2.65rem);
  line-height: 1.18;
}

h2 {
  margin: 2.25rem 0 0.75rem;
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  line-height: 1.3;
}

p { margin: 0.65rem 0; }
a { color: #385e4b; text-underline-offset: 0.18em; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

@media print {
  :root { background: white; color: black; font-size: 10pt; }
  body { max-width: none; padding: 0; }
  header, footer { display: none; }
  h1, h2 { break-after: avoid; }
}
