@font-face {
  font-family: "Scrawl";
  src: url("./fonts/Scrawl-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #faf8f3;
  --ink: #292722;
  --muted: #686258;
  --accent: #76442f;
  --selection: #eadccb;
  background: var(--paper);
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.65;
}

* { box-sizing: border-box; }
body { margin: 0; }
main {
  width: min(100% - 3rem, 34rem);
  margin: clamp(3.5rem, 13vh, 8rem) auto 4rem;
}
h1 {
  margin: 0 0 2rem;
  font-family: "Scrawl", Georgia, "Times New Roman", serif;
  font-size: clamp(2.25rem, 7vw, 3.25rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
h2 {
  font-family: "Scrawl", Georgia, "Times New Roman", serif;
}
p { margin: 0 0 1rem; }
.introduction { max-width: 31rem; }
nav { margin-top: 2.5rem; }
ul { padding: 0; margin: 0; list-style: none; }
li { margin: 0.25rem 0; }
a {
  display: inline-block;
  padding-block: 0.35rem;
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.23em;
}
a:hover { color: var(--accent); text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.note { margin-left: 0.35rem; color: var(--muted); font-size: 0.85rem; }
::selection { background: var(--selection); color: var(--ink); }
@media (max-width: 380px) {
  main { width: calc(100% - 2rem); }
}
