@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/sourceserif4-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/sourceserif4-400i.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --paper: #FAFAF8;
  --ink: #141414;
  --secondary: #3A3A38;
  --muted: #8A8A85;
  --rule: #B8B8B4;
  --rule-faint: #E4E4E0;
  --red: #D8232A;

  --sans: "Archivo", system-ui, sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.page {
  max-width: 640px;
  margin: 0 auto;
  padding: 56px 32px 72px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---- roof: grotesque layer ---- */

.masthead {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 96px;
}

.wordmark {
  display: block;
  width: 116px;
  height: auto;
  fill: var(--ink);
}

.wordmark-link { display: block; line-height: 0; }

nav {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: -0.01em;
  display: flex;
  gap: 18px;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 90ms linear;
}

nav a:hover { color: var(--ink); }

nav a[aria-current="page"] { color: var(--ink); }

h1 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 42px;
  line-height: 1.08;
  letter-spacing: -0.045em;
  color: var(--ink);
  margin: 0 0 28px;
  max-width: 15ch;
}

h2 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: -0.005em;
  color: var(--muted);
  margin: 0 0 16px;
}

/* ---- body: serif layer ---- */

main { flex: 1; }

p {
  margin: 0 0 20px;
  max-width: 42ch;
  color: var(--secondary);
}

p.lede { color: var(--ink); }

a { color: var(--ink); text-decoration-color: var(--rule); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--red); }

.mission {
  font-style: italic;
  color: var(--ink);
  margin: 0;
}

.rule {
  border: 0;
  border-top: 1px solid var(--rule-faint);
  margin: 48px 0 20px;
}

/* the one red mark — grotesque layer only, never on the serif */
.mark {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--red);
  margin-bottom: 40px;
}

/* ---- record block: legal hub ---- */

.record {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  border-top: 1px solid var(--rule);
  margin-top: 8px;
}

.record dl {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 0;
  margin: 0;
}

.record dt {
  color: var(--muted);
  padding: 12px 0;
  border-bottom: 1px solid var(--rule-faint);
  font-size: 13px;
}

.record dd {
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule-faint);
  color: var(--ink);
}

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

/* ---- footer ---- */

footer {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: -0.005em;
  color: var(--muted);
  border-top: 1px solid var(--rule-faint);
  padding-top: 16px;
  margin-top: 88px;
}

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

@media (max-width: 600px) {
  .page { padding: 40px 24px 56px; }
  .masthead { margin-bottom: 64px; }
  h1 { font-size: 32px; }
  body { font-size: 17px; }
  .record dl { grid-template-columns: 1fr; }
  .record dt { border-bottom: 0; padding-bottom: 0; }
}

.h1-long { font-size: 32px; max-width: 22ch; letter-spacing: -0.035em; line-height: 1.15; }
@media (max-width: 600px) { .h1-long { font-size: 26px; } }

em { font-style: italic; color: var(--ink); }

h1 em { font-family: var(--serif); font-style: italic; letter-spacing: -0.01em; }

/* About's headline is a full sentence, not a phrase — it sizes down to stay a headline */
.h1-xlong { font-size: 26px; max-width: 30ch; letter-spacing: -0.025em; line-height: 1.25; }
@media (max-width: 600px) { .h1-xlong { font-size: 22px; } }
