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

@font-face {
  font-family: "Source Serif 4";
  src: url("/fonts/SourceSerif4-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

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

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

:root {
  --bg: #f5f1e8;
  --surface: #fffdf7;
  --screen: #101412;
  --on-screen: #f0ede2;
  --screen-dim: #9aa39a;
  --screen-hairline: rgba(240, 237, 226, 0.16);
  --ink: #1a1a1a;
  --body: #33302a;
  --muted: #5d564b;
  --faint: #645d51;
  --border: #cfd4cb;
  --border-strong: var(--ink);
  --gold: #876931;
  --gold-soft: #c9a86a;
  --gold-display: var(--gold);
  --gold-wash: #f1e6cf;
  --green: #2e7c57;
  --green-soft: #e4f0e7;
  --yellow: #966418;
  --yellow-soft: #f7eed6;
  --red: #cc3525;
  --red-soft: #f6e3df;
  --red-on-screen: #e05547;
  --locked: var(--muted);
  --read-running: #2b5681;
  --disp-advance: var(--green);
  --disp-conditions: var(--yellow);
  --disp-hold: var(--red);
  --disp-advance-soft: var(--green-soft);
  --disp-conditions-soft: var(--yellow-soft);
  --disp-hold-soft: var(--red-soft);
  --accent: var(--ink);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --brand: "Courier Prime", "Courier New", Courier, ui-monospace, monospace;
  --fw-reg: 600;
  --fw-bold: 700;
  --fs-display: clamp(2.4rem, 6vw, 4.6rem);
  --fs-h2: clamp(1.7rem, 3.4vw, 2.7rem);
  --fs-h3: clamp(1.25rem, 2vw, 1.55rem);
  --fs-lead: clamp(1.1rem, 1.7vw, 1.3rem);
  --fs-body-lg: 1.125rem;
  --fs-body: 1.0625rem;
  --fs-small: 0.9rem;
  --fs-slug: clamp(0.72rem, 1.1vw, 0.82rem);
  --fs-micro: 0.7rem;

  --space-0: 4px;
  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;
  --measure: 68ch;
  --page-max: 1120px;
  --section-anchor: 132px;
  --tap-min: 44px;
  --radius: 0;
  --radius-stamp: 2px;
  --offset: 6px 6px 0 var(--ink);
  --offset-sm: 3px 3px 0 var(--ink);
  --scrim: rgba(16, 20, 18, 0.62);
  --dur: 180ms;
  --dur-stamp: 520ms;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --z-sticky: 100;
  --z-dialog: 1000;
  --z-toast: 1100;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  font-size: 100%;
  min-height: 100%;
  scroll-padding-top: var(--section-anchor);
}

body {
  background: var(--bg);
  color: var(--body);
  font-family: var(--serif);
  font-size: var(--fs-body);
  line-height: 1.6;
  margin: 0;
  min-height: 100%;
}

h1,
h2,
h3,
h4 {
  color: var(--ink);
  font-family: var(--serif);
  text-wrap: balance;
}

p,
li,
dd {
  text-wrap: pretty;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: default;
  opacity: 0.55;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.hidden {
  display: none !important;
}

@media (max-width: 560px) {
  :root {
    --section-anchor: 104px;
  }
}
