@font-face {
  font-family: Fraunces;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/fraunces-5.2.1-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF, U+0218-021B;
}
@font-face {
  font-family: Fraunces;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/fraunces-5.2.1-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Fraunces;
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/fraunces-5.2.1-latin-ext-400-italic.woff2") format("woff2");
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF, U+0218-021B;
}
@font-face {
  font-family: Fraunces;
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/fraunces-5.2.1-latin-400-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Newsreader;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/newsreader-5.2.8-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF, U+0218-021B;
}
@font-face {
  font-family: Newsreader;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/newsreader-5.2.8-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Newsreader;
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/newsreader-5.2.8-latin-ext-400-italic.woff2") format("woff2");
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF, U+0218-021B;
}
@font-face {
  font-family: Newsreader;
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/newsreader-5.2.8-latin-400-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Newsreader;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/newsreader-5.2.8-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF, U+0218-021B;
}
@font-face {
  font-family: Newsreader;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/newsreader-5.2.8-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF, U+0218-021B;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --well: #07141c;
  --well-2: #0c2230;
  --paper: #f3ead4;
  --paper-2: #e7dcc2;
  --ink: #1a1410;
  --ink-soft: #3d342c;
  --thread: #9e2a2b;
  --thread-hot: #c44536;
  --garlic: #6b3a58;
  --breath: #d7e6ea;
  --ember: #c45c26;
  --line: color-mix(in srgb, var(--ink) 16%, transparent);
  --display: Fraunces, "Source Serif 4", "Times New Roman", serif;
  --body: Newsreader, "Iowan Old Style", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  color-scheme: light dark;
}

html[data-theme="dark"] {
  --well: #050b10;
  --well-2: #0a1822;
  --paper: #101820;
  --paper-2: #16222c;
  --ink: #efe6d4;
  --ink-soft: #c9bba4;
  --thread: #e05a4f;
  --thread-hot: #ff7a6a;
  --garlic: #c989b0;
  --breath: #8fb4be;
  --ember: #e07a3a;
  --line: color-mix(in srgb, var(--ink) 18%, transparent);
}

*,
*::before,
*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { max-width: 100%; }
a { color: var(--thread); text-underline-offset: 0.18em; }
a:hover { color: var(--thread-hot); }
:focus-visible {
  outline: 2px solid var(--thread);
  outline-offset: 3px;
}
.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  background: var(--thread);
  color: #fff;
  padding: 0.4rem 0.7rem;
  z-index: 20;
}
.skip-link:focus { top: 0.75rem; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.wrap {
  width: min(1120px, calc(100% - 2rem));
  max-width: 100%;
  margin-inline: auto;
}
.col { max-width: 38rem; min-width: 0; }
.top {
  background: var(--well);
  color: var(--breath);
  border-bottom: 1px solid color-mix(in srgb, var(--breath) 18%, transparent);
}
.top a { color: var(--breath); }
.top-in {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.7rem 0;
  flex-wrap: wrap;
  min-width: 0;
}
.brand {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}
.top-tools {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 0.78rem;
  min-width: 0;
  justify-content: flex-end;
}
.lang { display: flex; gap: 0.6rem; }
.lang a[aria-current="page"] {
  color: var(--thread-hot);
  text-decoration: none;
}
.theme-btn {
  font: inherit;
  font-family: var(--mono);
  font-size: 0.78rem;
  background: transparent;
  color: inherit;
  border: 1px solid color-mix(in srgb, var(--breath) 35%, transparent);
  padding: 0.2rem 0.45rem;
  cursor: pointer;
}
.theme-btn[aria-pressed="true"] {
  background: var(--thread);
  color: #fff;
  border-color: var(--thread);
}

.hero {
  background:
    radial-gradient(1200px 480px at 80% -10%, color-mix(in srgb, var(--garlic) 28%, transparent), transparent 60%),
    linear-gradient(180deg, var(--well) 0%, var(--well-2) 100%);
  color: var(--breath);
  padding: 3.2rem 0 3.6rem;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 12px;
  background-image: repeating-linear-gradient(
    90deg,
    var(--thread) 0 2px,
    transparent 2px 11px
  );
  opacity: 0.85;
}
.kicker {
  font-family: var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--thread-hot);
  margin: 0 0 1.1rem;
}
.hero h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(3.4rem, 11vw, 8.4rem);
  line-height: 0.88;
  letter-spacing: -0.03em;
  margin: 0 0 1.1rem;
  color: #f6efe2;
  max-width: 12ch;
}
.thread {
  width: min(28rem, 70%);
  height: 2px;
  background: var(--thread);
  margin: 0 0 1.4rem;
  position: relative;
}
.thread::before,
.thread::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--thread);
  transform: translateY(-50%);
}
.thread::before { left: 0; }
.thread::after { right: 0; }
.standfirst {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  line-height: 1.35;
  max-width: min(40rem, 100%);
  color: #e7dcc8;
  margin: 0 0 0.8rem;
  overflow-wrap: break-word;
}
.byline {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: color-mix(in srgb, var(--breath) 75%, transparent);
  margin: 0 0 2rem;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem 1.4rem;
  max-width: 52rem;
}
.stat b {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.stat span {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: color-mix(in srgb, var(--breath) 80%, transparent);
}

.page-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.2rem;
  padding: 0.9rem 0;
  font-family: var(--mono);
  font-size: 0.78rem;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}
.page-nav a {
  color: var(--ink-soft);
  text-decoration: none;
}
.page-nav a:hover { color: var(--thread); }

section { padding: 3.4rem 0; }
.snum {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--thread);
  display: block;
  margin-bottom: 0.6rem;
}
h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.7rem, 3.4vw, 2.55rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 1.1rem;
  max-width: 22ch;
}
p { margin: 0 0 1rem; overflow-wrap: break-word; }
p:last-child { margin-bottom: 0; }

.night {
  background: var(--well);
  color: var(--breath);
}
.night h2, .night .snum { color: var(--thread-hot); }
.night h2 { color: #f6efe2; }
.dusk {
  background: color-mix(in srgb, var(--well) 10%, var(--paper));
}

.verse-block {
  margin: 1.6rem 0 0;
  max-width: 22rem;
}
.verse-block p {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.28;
  margin: 0;
}
.caption {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink-soft);
  margin-top: 0.8rem;
}
.night .caption { color: color-mix(in srgb, var(--breath) 70%, transparent); }

.forms {
  list-style: none;
  margin: 1.6rem 0 0.8rem;
  padding: 0;
  border-left: 2px solid var(--thread);
}
.forms li {
  padding: 0.7rem 0 0.7rem 1.1rem;
  border-bottom: 1px solid var(--line);
}
.forms b {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--thread);
  margin-right: 0.55rem;
}
.forms strong {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
}
.note {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-top: 0.8rem;
}

.counts {
  display: grid;
  gap: 0.9rem;
  margin: 1.5rem 0 0.6rem;
}
.count {
  display: grid;
  grid-template-columns: minmax(7rem, 10rem) minmax(0, 1fr);
  gap: 1rem;
  align-items: baseline;
  border-top: 1px solid var(--line);
  padding-top: 0.7rem;
}
.count b {
  font-family: var(--display);
  font-size: 1.55rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--thread);
}

.loom {
  margin-top: 1.5rem;
}
.toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.7rem 0 1.2rem;
}
.toggles label {
  font-family: var(--mono);
  font-size: 0.78rem;
  border: 1px solid color-mix(in srgb, var(--breath) 30%, transparent);
  padding: 0.35rem 0.55rem;
  cursor: pointer;
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
}
.toggles input { accent-color: var(--thread-hot); }
.spoken {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  line-height: 1.3;
  color: #f6efe2;
  min-height: 6.5rem;
  overflow-wrap: break-word;
}
.spoken [data-bit] { color: #f6efe2; }
.spoken [data-bit][data-off] {
  color: color-mix(in srgb, var(--breath) 28%, transparent);
  text-decoration: line-through;
  text-decoration-color: var(--thread);
}
.broken {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--thread-hot);
  margin-top: 0.9rem;
  min-height: 2.6em;
}

.mats {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
}
.mats li {
  display: grid;
  grid-template-columns: minmax(8rem, 11rem) minmax(0, 1fr);
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding: 0.65rem 0;
}
.mats strong {
  font-family: var(--display);
  font-size: 1.05rem;
}

.close {
  background: var(--well);
  color: var(--breath);
  text-align: center;
  padding: 4.2rem 0 4.4rem;
}
.close h2 { color: #f6efe2; margin-inline: auto; }
.close .snum { color: var(--thread-hot); }
.close blockquote {
  margin: 0 auto 0.8rem;
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  line-height: 1.15;
  max-width: 16ch;
  color: #f6efe2;
}
.finale { padding-bottom: 1.2rem; }

.sources { list-style: none; margin: 1.2rem 0 0; padding: 0; }
.sources li {
  border-top: 1px solid var(--line);
  padding: 0.8rem 0;
}
.sources cite { font-style: normal; font-weight: 600; display: block; margin-bottom: 0.25rem; }
.sources span { color: var(--ink-soft); font-size: 0.95rem; }

.foot {
  border-top: 1px solid var(--line);
  padding: 1.2rem 0 2.4rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.to-top {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  min-width: 44px;
  min-height: 44px;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 0.75rem;
  background: var(--thread);
  color: #fff;
  text-decoration: none;
  padding: 0.4rem 0.6rem;
  opacity: 0;
  pointer-events: none;
  z-index: 8;
}
.to-top.is-on { opacity: 1; pointer-events: auto; }
.close-copy {
  margin-inline: auto;
  text-align: left;
  max-width: 38rem;
}
.toggles label,
.piece-all {
  min-height: 44px;
}
.piece-all {
  font: inherit;
  font-family: var(--mono);
  font-size: 0.78rem;
  background: var(--thread);
  color: #fff;
  border: 1px solid var(--thread);
  padding: 0.35rem 0.7rem;
  cursor: pointer;
}

@media (max-width: 800px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .count, .mats li { grid-template-columns: 1fr; gap: 0.2rem; }
  .hero { padding-top: 2.2rem; }
  .top-tools { width: 100%; justify-content: flex-start; }
  h2 { max-width: none; }
}
@media (max-width: 520px) {
  body { font-size: 1.05rem; }
  .wrap { width: calc(100% - 1.4rem); }
  .hero h1 { font-size: clamp(2.6rem, 16vw, 4.2rem); }
}
