:root {
  --paper: #fbfaf6;
  --ink: #1a1a1a;
  --muted: #6b6b6b;
  --accent: #9d2933;
  --rule: #e3ded3;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #141311;
    --ink: #ece8e1;
    --muted: #9a958c;
    --accent: #d08b8b;
    --rule: #2c2823;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  font-size: clamp(1.02rem, 0.96rem + 0.3vw, 1.18rem);
  line-height: 1.65;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}

header, main, footer {
  max-width: 36rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* Masthead ------------------------------------------------------------- */

.masthead {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding-top: 2.5rem;
}

.mark {
  width: 26px;
  height: 26px;
  flex: none;
}

@media (prefers-color-scheme: dark) {
  .mark { filter: brightness(1.9) saturate(0.85); }
}

.wordmark {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* Body ----------------------------------------------------------------- */

main { padding-top: 3.5rem; }

.eyebrow {
  margin: 0 0 1.2rem;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

h1 {
  margin: 0 0 1.6rem;
  font-weight: 400;
  font-size: clamp(2.1rem, 1.5rem + 3vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

p { margin: 0 0 1.1em; }

.lede {
  font-size: 1.14em;
  line-height: 1.55;
  margin-bottom: 1.15em;
}

.series {
  margin: 2.8rem 0 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}

.series h2 {
  margin: 0 0 0.55rem;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.series p { margin: 0; }

.status {
  margin-top: 1.6rem;
  font-style: italic;
  color: var(--muted);
}

/* Footer --------------------------------------------------------------- */

footer {
  margin-top: 4.5rem;
  padding-top: 1.5rem;
  padding-bottom: 3.5rem;
  border-top: 1px solid var(--rule);
  font-size: 0.86rem;
  color: var(--muted);
}

.contact { margin-bottom: 1.4rem; }

.colophon {
  margin: 0;
  line-height: 1.55;
  font-size: 0.82rem;
}

/* Links and details ---------------------------------------------------- */

a {
  color: var(--accent);
  text-decoration: none;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover { text-decoration: underline; }

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

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

.nowrap { white-space: nowrap; }
