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

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

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

:root {
  --plate: #f4f0e8;
  --vellum: #ede7da;
  --ink: #15110e;
  --oxblood: #5c1a1f;
  --muted: #655e53;
  --faint: #81796d;
  --hair: rgba(21, 17, 14, 0.18);
  --serif: "Spectral", Georgia, "Times New Roman", serif;
  --mono: "Courier Prime", "Courier New", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html {
  background: var(--plate);
  color: var(--ink);
  font-size: 18px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--plate);
  color: var(--ink);
  font-family: var(--serif);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:focus-visible { outline: 2px solid var(--oxblood); outline-offset: 4px; }

.shell { width: min(760px, calc(100% - 40px)); margin: 0 auto; }

header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0 22px;
  border-bottom: 1px solid var(--hair);
}

.mark {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  text-decoration: none;
}

.mark::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--oxblood);
  content: "";
}

nav { display: flex; flex-wrap: wrap; gap: 4px 14px; font: 0.72rem var(--mono); }
nav a,
footer a {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}
nav a[aria-current="page"] { color: var(--oxblood); font-weight: 700; }

main { padding: clamp(54px, 9vw, 92px) 0 80px; }

.eyebrow {
  margin: 0 0 18px;
  color: var(--faint);
  font: 0.7rem var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1, h2 { text-wrap: balance; }

h1 {
  max-width: 15ch;
  margin: 0;
  font-size: clamp(2.35rem, 8vw, 4.4rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.06;
}

.updated { margin: 24px 0 0; color: var(--muted); font: 0.74rem var(--mono); }
.intro { max-width: 62ch; margin: 42px 0 58px; font-size: 1.1rem; }

section { padding: 30px 0; border-top: 1px solid var(--hair); }

h2 {
  margin: 0 0 14px;
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h3 { margin: 24px 0 8px; font-size: 1rem; }
p { margin: 0 0 1em; }
ul { margin: 0.5em 0 1em; padding-left: 1.25em; }
li { margin: 0.45em 0; }

.note {
  margin: 24px 0;
  padding: 18px 20px;
  border-left: 2px solid var(--oxblood);
  background: var(--vellum);
}

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 10px 17px;
  border: 1px solid var(--ink);
  text-decoration: none;
  font: 0.78rem var(--mono);
}
.button.primary { background: var(--ink); color: var(--plate); }

footer {
  padding: 26px 0 42px;
  border-top: 1px solid var(--hair);
  color: var(--muted);
  font: 0.7rem var(--mono);
}

footer .shell { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 24px; }

@media (max-width: 560px) {
  html { font-size: 17px; }
  header { align-items: flex-start; flex-direction: column; }
  nav { gap: 0 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
