@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader-latin.woff2") format("woff2");
  font-weight: 300 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f3f1ec;
  --ink: #171715;
  --muted: #6f6b64;
  --rule: #cfcbc3;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121211;
    --ink: #ebe8e1;
    --muted: #8c887f;
    --rule: #3a3834;
  }
}

* { box-sizing: border-box; margin: 0; }

html {
  background: var(--paper);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(24px, 5vw, 64px);
  font: 400 15px/1.5 var(--sans);
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--ink); color: var(--paper); }

header, footer {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px 24px;
  flex-wrap: wrap;
}

h1, .wordmark {
  font: 400 1.375rem/1 var(--serif);
  letter-spacing: -0.01em;
}

.muted { color: var(--muted); }

main {
  align-self: center;
  padding-block: 10vh;
}

.statement {
  font: 300 clamp(2.5rem, 6.5vw, 5.5rem)/1.02 var(--serif);
  letter-spacing: -0.025em;
}

a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  transition: border-color 0.2s ease;
}

a:hover, a:focus-visible { border-bottom-color: currentColor; }

a:focus-visible {
  outline: 1.5px solid currentColor;
  outline-offset: 5px;
  border-radius: 2px;
}

.wordmark { border-bottom: 0; }
