@charset "UTF-8";

/* ============================================================
 *  pdfcx -- style.css
 *  an editorial manifesto, dressed as a scanned document.
 *  Apache 2.0
 * ============================================================ */

/* --- tokens ------------------------------------------------- */

:root {
  --paper:       #f6fafb;   /* photocopied off-white, cool, lifted */
  --ink:         #0b0a08;   /* toner black */
  --ink-hold:    #1c1a18;   /* bolder ink where we want weight */
  --ink-mid:     #464a4d;   /* second-pressing, slight cool */
  --ink-soft:    #72787d;   /* faded carbon */
  --ink-ghost:   #b2b7bd;   /* barely there, cool grey */
  --stamp:       #6b1a12;   /* rubber-stamp red, reserved, barely used */

  --measure:     38rem;
  --wide:        60rem;

  --display:     'Fraunces', 'Times New Roman', serif;
  --body:        'Newsreader', 'Iowan Old Style', 'Georgia', serif;
  --mono:        'Courier Prime', ui-monospace, 'Menlo', monospace;

  --edge:        1.25px solid var(--ink);
  --hair:        0.5px solid var(--ink);
}

/* --- reset ------------------------------------------------ */

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

html {
  font-size: clamp(15.5px, 0.55vw + 13.5px, 19px);
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--body);
  font-weight: 400;
  font-variation-settings: 'opsz' 16;
  font-feature-settings: 'ss01', 'onum', 'lnum' off;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* --- page surface effects --------------------------------- */

/*
 * .grain -- tileable SVG fractal noise, multiplied over the paper.
 * .vignette -- scanner drop-off at the edges.
 * Both are fixed, pointer-events: none, placed above content at low opacity.
 */

.grain {
  position: fixed;
  inset: -5%;
  pointer-events: none;
  z-index: 80;
  opacity: 0.22;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.92' numOctaves='2' stitchTiles='stitch' seed='3'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.55 0'/></filter><rect width='240' height='240' filter='url(%23n)'/></svg>");
  background-size: 240px 240px;
}

.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 81;
  background:
    radial-gradient(ellipse at 50% 42%, transparent 55%, rgba(0,0,0,0.10) 88%, rgba(0,0,0,0.22) 100%),
    linear-gradient(90deg, rgba(0,0,0,0.08) 0%, transparent 3%, transparent 97%, rgba(0,0,0,0.08) 100%);
}

/* decorative horizontal scan-error smears, placed inline */
.scan-smear {
  position: absolute;
  left: 50%;
  width: min(96vw, 64rem);
  height: 18px;
  transform: translateX(-50%);
  pointer-events: none;
  opacity: 0.22;
  mix-blend-mode: multiply;
  z-index: 5;
}

.scan-smear svg { display: block; width: 100%; height: 100%; }

.scan-smear--a { top: 8vh;  }
.scan-smear--b { top: 46vh; transform: translateX(-50%) rotate(-0.4deg); opacity: 0.14; }
.scan-smear--c { top: 82vh; opacity: 0.18; }

/* faint fold crease line, horizontal, across the whole page */
.fold {
  position: fixed;
  left: 0; right: 0;
  top: 50%;
  height: 3px;
  pointer-events: none;
  z-index: 4;
  background:
    linear-gradient(180deg, transparent 0, rgba(0,0,0,0.07) 45%, rgba(0,0,0,0.18) 50%, rgba(0,0,0,0.07) 55%, transparent 100%);
  opacity: 0.45;
}

/* hide decorative SVG filter definitions */
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* --- main layout ------------------------------------------ */

main {
  position: relative;
  z-index: 10;
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1.25rem, 4vw, 2.5rem) clamp(3rem, 6vw, 5rem);
}

@media (min-width: 720px) {
  main { max-width: var(--wide); }
}

/* --- masthead --------------------------------------------- */

.masthead {
  border-top:    var(--edge);
  border-bottom: var(--hair);
  padding: 0.5rem 0;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-hold);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: clamp(1rem, 2.5vw, 1.75rem);
}

.masthead > * { white-space: nowrap; }
.masthead .mh-mid { opacity: 0.7; }
.masthead .mh-gh {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  border-bottom: 1px solid transparent;
  transition: color 120ms ease, border-color 120ms ease;
}
.masthead .mh-gh:hover,
.masthead .mh-gh:focus-visible {
  color: #fff;
  border-bottom-color: #fff;
}
.masthead .gh-icon { display: inline-block; vertical-align: -2px; }

@media (max-width: 540px) {
  .masthead { font-size: 0.58rem; letter-spacing: 0.16em; gap: 0.5rem; }
  .masthead .mh-mid { display: none; }
}

/* --- hero ------------------------------------------------- */

.hero {
  padding: clamp(0.75rem, 2vw, 1.5rem) 0 clamp(1.25rem, 3vw, 2rem);
  position: relative;
}

.hero h1 {
  font-family: var(--display);
  font-weight: 380;
  font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 1;
  font-size: clamp(2.85rem, 10vw, 7rem);
  line-height: 0.9;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin-bottom: clamp(1rem, 2vw, 1.4rem);
  /* toner-bleed -- the edges of each stroke soak one step into the paper */
  text-shadow:
    0.4px 0 0 currentColor,
   -0.4px 0 0 currentColor,
    0 0.35px 0 currentColor,
    0 -0.35px 0 currentColor,
    1px 0.5px 1.5px rgba(0,0,0,0.12);
}

.hero h1 .line { display: block; }
.hero h1 .die {
  font-style: italic;
  font-weight: 420;
  font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 1;
  letter-spacing: -0.04em;
}
.hero h1 .die::after {
  content: '.';
  font-style: normal;
  color: var(--ink);
}

.hero .lede {
  font-family: var(--body);
  font-style: italic;
  font-size: clamp(1rem, 1.55vw, 1.25rem);
  max-width: 34rem;
  color: var(--ink-mid);
  line-height: 1.4;
}

.hero .lede::before {
  content: '';
  display: block;
  width: 2.4rem;
  height: 1.5px;
  background: var(--ink);
  margin-bottom: 0.85rem;
}

/* rubber-stamp overlay -- rotated, faded, in the top-right of the hero */
.stamp {
  position: absolute;
  top: -0.75rem;
  right: -1.5rem;
  padding: 0.7rem 1.35rem;
  border: 3.5px solid var(--stamp);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--stamp);
  line-height: 1.2;
  opacity: 0.78;
  transform: rotate(8deg);
  mix-blend-mode: multiply;
  text-align: center;
  pointer-events: none;
  /* uneven ink at the edges, like a real rubber stamp */
  text-shadow:
    0.2px 0 0 currentColor,
   -0.2px 0 0 currentColor;
  filter: contrast(1.05);
}
.stamp span { display: block; }
.stamp span:nth-child(2) { font-size: 0.8rem; opacity: 0.7; }

@media (max-width: 640px) {
  .stamp { top: -1rem; right: 0.25rem; transform: rotate(6deg) scale(0.82); }
}

/* --- section scaffolding ----------------------------------- */

section {
  padding: clamp(2.75rem, 7vw, 5rem) 0;
  position: relative;
}

section + section { border-top: var(--hair); }

.section-mark {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-mid);
  margin-bottom: clamp(1.25rem, 2vw, 1.75rem);
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.section-mark::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--ink);
  transform: translateY(1px);
}
.section-mark .sign { font-weight: 700; color: var(--ink); }

h2 {
  font-family: var(--display);
  font-weight: 420;
  font-variation-settings: 'opsz' 72, 'SOFT' 50, 'WONK' 1;
  font-size: clamp(1.9rem, 4.5vw, 3.1rem);
  line-height: 1.03;
  letter-spacing: -0.022em;
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
  max-width: 24ch;
  color: var(--ink);
}

section p {
  max-width: 36rem;
  margin-bottom: 1rem;
  font-size: clamp(1.05rem, 1.3vw, 1.18rem);
  line-height: 1.55;
}
section p:last-child { margin-bottom: 0; }

section p em { font-style: italic; }
section p strong { font-weight: 700; color: var(--ink); }

/* typewriter aside under section heads */
.aside {
  font-family: var(--mono);
  font-size: 0.85rem !important;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
  margin-top: -0.5rem;
  margin-bottom: 1.5rem !important;
}

/* --- pullquote -------------------------------------------- */

.pullquote {
  font-family: var(--display);
  font-style: italic;
  font-weight: 340;
  font-variation-settings: 'opsz' 100, 'SOFT' 100, 'WONK' 1;
  font-size: clamp(1.55rem, 3.6vw, 2.5rem);
  line-height: 1.18;
  letter-spacing: -0.018em;
  padding: clamp(1.5rem, 3vw, 2.25rem) 0;
  margin: clamp(2rem, 4vw, 3rem) 0 clamp(1.5rem, 3vw, 2rem);
  border-top:    var(--edge);
  border-bottom: var(--edge);
  color: var(--ink);
  position: relative;
  max-width: 32ch;
}
.pullquote::before {
  content: '\201C';
  position: absolute;
  left: -0.25em;
  top: 0.15em;
  font-size: 3.4em;
  line-height: 0.5;
  color: var(--ink-ghost);
  z-index: -1;
}

/* --- spec block ------------------------------------------- */

.spec {
  border: 2px solid var(--ink);
  padding: clamp(1.1rem, 2vw, 1.6rem) clamp(1.25rem, 2.5vw, 1.8rem);
  margin: clamp(1.5rem, 3vw, 2.25rem) 0;
  font-family: var(--mono);
  font-size: 0.95rem;
  line-height: 1.75;
  background: transparent;
  position: relative;
  transform: rotate(-0.35deg);
  max-width: 34rem;
  box-shadow: 3px 3px 0 -1px rgba(0,0,0,0.12);
}
.spec dt {
  display: inline-block;
  min-width: 7.5rem;
  font-weight: 700;
  color: var(--ink);
  text-transform: lowercase;
  letter-spacing: 0.08em;
}
.spec dt::after { content: '\00B7'; padding: 0 0.6em 0 0.5em; color: var(--ink-soft); }
.spec dd {
  display: inline;
  margin-right: 0;
  color: var(--ink-hold);
}
.spec dd::after { content: '\A'; white-space: pre; }
.spec dd:last-of-type::after { content: ''; }

code {
  font-family: var(--mono);
  background: var(--ink);
  color: var(--paper);
  padding: 0.02em 0.35em;
  font-size: 0.9em;
  letter-spacing: 0.02em;
}

/* --- one-liner (the whole spec, in one sentence) ---------- */

.one-liner {
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 clamp(1.5rem, 3vw, 2.25rem);
  padding: clamp(2.5rem, 5vw, 3.5rem) 0 clamp(2rem, 4vw, 3rem);
  border-top:    var(--edge);
  border-bottom: var(--edge);
  position: relative;
  max-width: 40rem;
}

/* centered "the spec" chip straddling the top rule */
.one-liner::before {
  content: 'the spec, in full';
  position: absolute;
  top: -0.72em;
  left: 50%;
  transform: translateX(-50%);
  background: var(--paper);
  padding: 0 0.9em;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}

.one-liner__lead {
  font-family: var(--body);
  font-style: italic;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--ink-mid);
  margin-bottom: clamp(1.5rem, 2.5vw, 2rem);
  max-width: 36ch;
}

.one-liner__rule {
  font-family: var(--display);
  font-weight: 400;
  font-variation-settings: 'opsz' 100, 'SOFT' 90, 'WONK' 1;
  font-size: clamp(1.55rem, 3.8vw, 2.4rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: clamp(1.2rem, 2vw, 1.6rem);
  max-width: 28ch;
  /* faint toner bleed */
  text-shadow:
    0.3px 0 0 currentColor,
   -0.3px 0 0 currentColor;
}

.one-liner__rule code {
  font-size: 0.82em;
  padding: 0.02em 0.35em;
  letter-spacing: 0.01em;
  vertical-align: 0.04em;
}

.one-liner__small {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-mid);
  margin-top: 0.5rem;
  max-width: none;
}


/* --- demo section ----------------------------------------- */

.demo h2 { max-width: 20ch; }

.demo-box {
  margin-top: clamp(1.5rem, 3vw, 2rem);
  border: 2px solid var(--ink);
  background: rgba(255,255,255,0.35);
  position: relative;
  transform: rotate(0.2deg);
}
.demo-box::before {
  /* paper-clip motif -- abstract */
  content: '';
  position: absolute;
  top: -14px; right: 28px;
  width: 26px; height: 48px;
  border: 1.6px solid var(--ink);
  border-bottom: none;
  border-radius: 14px 14px 0 0;
  background: var(--paper);
  z-index: 2;
}
.demo-box::after {
  content: '';
  position: absolute;
  top: -6px; right: 34px;
  width: 14px; height: 30px;
  border: 1.4px solid var(--ink);
  border-top: none;
  border-radius: 0 0 8px 8px;
  z-index: 3;
}

.dropzone {
  padding: clamp(2rem, 5vw, 3.5rem) 1.25rem;
  text-align: center;
  border: 2px dashed var(--ink);
  margin: 10px;
  background: transparent;
  transition: all 0.18s ease;
  cursor: pointer;
  font-family: var(--mono);
}
.dropzone:hover { background: rgba(0,0,0,0.03); }
.dropzone.over {
  background: var(--ink);
  color: var(--paper);
  border-style: solid;
  transform: scale(0.995);
}
.dropzone.over .linkish { color: var(--paper); border-color: var(--paper); }

.dropzone__big {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-variation-settings: 'opsz' 72, 'SOFT' 80;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  line-height: 1;
  margin-bottom: 0.8rem;
  letter-spacing: -0.01em;
}
.dropzone__small {
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--ink-mid);
}

button.linkish {
  background: none;
  border: none;
  border-bottom: 1.5px solid var(--ink);
  font: inherit;
  color: var(--ink);
  padding: 0 0.08em 0.04em;
  cursor: pointer;
  letter-spacing: 0.02em;
}
button.linkish:hover {
  background: var(--ink);
  color: var(--paper);
  border-bottom-color: transparent;
}

.demo-output {
  margin: 0 10px 10px;
  padding: clamp(1rem, 2vw, 1.4rem);
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  background: var(--ink);
  color: var(--paper);
  max-height: 30rem;
  min-height: 4rem;
  overflow: auto;
  letter-spacing: 0.01em;
  position: relative;
}

/* scanning state -- a subtle top-to-bottom sweep to reinforce that
   bytes are being pulled out of the PDF you just dropped. */
.demo-output[data-state="scanning"] {
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}
.demo-output[data-state="scanning"]::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 30%;
  top: -30%;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(193, 39, 45, 0.08) 40%,
    rgba(193, 39, 45, 0.22) 50%,
    rgba(193, 39, 45, 0.08) 60%,
    transparent 100%
  );
  animation: scanSweep 1.4s cubic-bezier(.4,.0,.4,1) infinite;
  pointer-events: none;
}

@keyframes scanSweep {
  0%   { top: -30%; }
  100% { top: 120%; }
}

.demo-output[data-state="error"] {
  background: transparent;
  color: var(--ink);
  border-top: 2px dashed var(--ink);
}
.demo-output[data-state="loading"] {
  background: transparent;
  color: var(--ink-mid);
  font-style: italic;
}

/* step-log lines (the "> reading..." scan sequence) -- dim against the payload */
.demo-output .step {
  color: rgba(246, 250, 251, 0.62);
}

/* blinking caret -- JS appends a .caret element at the tail of the animation */
.demo-output .caret {
  display: inline-block;
  width: 0.55em;
  background: currentColor;
  animation: caretBlink 0.85s steps(2) infinite;
  margin-left: 0.08em;
}
@keyframes caretBlink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .demo-output[data-state="scanning"]::after { animation: none; opacity: 0.18; }
  .demo-output .caret { animation: none; opacity: 0.6; }
}

/* --- roster (adopters / warned) --------------------------- */

.roster {
  list-style: none;
  margin: clamp(1rem, 2vw, 1.5rem) 0 0;
  padding: 0;
  border-top: 1.5px solid var(--ink);
  font-family: var(--mono);
}
.roster li {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0.75rem 0;
  border-bottom: 1px dotted var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.35;
}
.roster li .url {
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 55%;
}
.roster li .url a { border-bottom: none; color: inherit; }
.roster li .url a:hover { background: var(--ink); color: var(--paper); }
.roster li .leader {
  flex: 1;
  height: 1em;
  border-bottom: 1px dotted var(--ink-soft);
  min-width: 1.5rem;
  transform: translateY(-0.3em);
}
.roster li .flags {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: lowercase;
  color: var(--ink-mid);
  white-space: nowrap;
}
.roster li .flags .flag-none { font-style: italic; color: var(--ink-ghost); }
.roster li.loading,
.roster li.empty {
  justify-content: center;
  color: var(--ink-soft);
  font-style: italic;
  padding: 1.75rem 0;
}
.roster li.empty::before { content: '--  '; margin-right: 0.5rem; }
.roster li.error {
  justify-content: center;
  color: var(--stamp);
  font-style: italic;
  padding: 1.75rem 0;
}

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

footer {
  margin-top: clamp(4rem, 8vw, 6rem);
  padding: clamp(2rem, 4vw, 3rem) 0 clamp(2rem, 4vw, 3rem);
  border-top: 2px solid var(--ink);
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--ink-hold);
}
footer .colophon p + p { margin-top: 0.5rem; color: var(--ink-mid); }
footer .links {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
}
footer .pagenum {
  margin-top: 2.5rem;
  text-align: center;
  font-family: var(--display);
  font-style: italic;
  font-size: 1rem;
  color: var(--ink-soft);
  letter-spacing: 0.3em;
}

/* --- links ------------------------------------------------ */

a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1.25px solid var(--ink);
  padding-bottom: 0.02em;
  transition: background 0.12s ease, color 0.12s ease;
}
a:hover {
  background: var(--ink);
  color: var(--paper);
  border-bottom-color: transparent;
}

/* --- animations ------------------------------------------- */

@keyframes inkFade {
  0%   { opacity: 0; filter: blur(5px); transform: translateY(0.4rem); }
  40%  { opacity: 0.6; filter: blur(1.5px); }
  100% { opacity: 1; filter: blur(0); transform: translateY(0); }
}

.hero h1 .line,
.hero .lede,
.stamp {
  animation: inkFade 1.05s cubic-bezier(.2,.6,.1,1) backwards;
}
.hero h1 .line:nth-child(1) { animation-delay: 0.08s; }
.hero h1 .line:nth-child(2) { animation-delay: 0.22s; }
.hero h1 .line:nth-child(3) { animation-delay: 0.38s; }
.hero h1 .line:nth-child(4) { animation-delay: 0.56s; }
.hero .lede { animation-delay: 0.9s; animation-duration: 1.2s; }
.stamp { animation-delay: 1.1s; animation-duration: 0.8s; }

@media (prefers-reduced-motion: reduce) {
  .hero h1 .line,
  .hero .lede,
  .stamp { animation: none; }
}

/* --- selection -------------------------------------------- */

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

/* ============================================================
 *  print stylesheet
 *  strips every photocopied-page effect so a printed copy reads
 *  as plain markdown-style typography. overlays, animations,
 *  and the browser demo are all hidden; links resolve to URLs.
 * ============================================================ */

@media print {
  .grain, .vignette, .fold, .scan-smear, .stamp, .demo, #demo {
    display: none !important;
  }

  html { font-size: 11pt; }
  body {
    background: #fff !important;
    color: #000 !important;
    font-family: Georgia, 'Times New Roman', serif !important;
    line-height: 1.4;
  }

  main {
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    position: static !important;
    z-index: auto !important;
  }

  .masthead {
    border: none !important;
    border-bottom: 1px solid #000 !important;
    padding: 0 0 0.5em 0 !important;
    margin-bottom: 1em !important;
    display: block !important;
    font-family: inherit !important;
    font-size: 9pt;
    letter-spacing: 0 !important;
    text-transform: none !important;
    color: #555;
  }
  .masthead > * { display: inline; }
  .masthead > * + *::before { content: " \00B7  "; color: #999; }
  .masthead .mh-mid { display: inline !important; opacity: 1 !important; }

  .hero { padding: 0.5em 0 !important; }
  .hero h1 {
    font-family: inherit !important;
    font-weight: 700 !important;
    font-variation-settings: normal !important;
    font-size: 22pt !important;
    line-height: 1.15 !important;
    letter-spacing: 0 !important;
    text-shadow: none !important;
    margin-bottom: 0.5em !important;
    animation: none !important;
  }
  .hero h1 .line { display: inline; }
  .hero h1 .line + .line::before { content: " "; }
  .hero h1 em, .hero h1 .die { font-style: normal !important; font-weight: 700 !important; }
  .hero .lede {
    font-family: inherit !important;
    font-style: italic;
    font-size: 12pt !important;
    color: #333 !important;
    max-width: none !important;
    animation: none !important;
  }
  .hero .lede::before { display: none !important; }

  section {
    padding: 0.5em 0 !important;
    border: none !important;
    page-break-inside: avoid;
  }
  section + section { border: none !important; }

  .section-mark {
    font-family: inherit !important;
    font-size: 9pt !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    color: #777 !important;
    margin-bottom: 0.35em !important;
    gap: 0.5em;
  }
  .section-mark::after { display: none !important; }
  .section-mark .sign { font-weight: 700; color: #000; }

  h2 {
    font-family: inherit !important;
    font-weight: 700 !important;
    font-variation-settings: normal !important;
    font-size: 15pt !important;
    letter-spacing: 0 !important;
    line-height: 1.2 !important;
    max-width: none !important;
    margin-bottom: 0.4em !important;
    page-break-after: avoid;
  }

  section p {
    font-size: 11pt !important;
    max-width: none !important;
    line-height: 1.4;
    orphans: 3;
    widows: 3;
    margin-bottom: 0.5em;
  }
  .aside {
    font-family: inherit !important;
    font-size: 10pt !important;
    font-style: italic;
    color: #555 !important;
  }

  .pullquote {
    font-family: inherit !important;
    font-style: italic;
    font-size: 13pt !important;
    font-variation-settings: normal !important;
    letter-spacing: 0 !important;
    padding: 0.4em 1em !important;
    margin: 0.5em 0 !important;
    border: none !important;
    border-left: 3px solid #888 !important;
    max-width: none !important;
  }
  .pullquote::before { display: none !important; }

  .spec {
    transform: none !important;
    border: 1px solid #000 !important;
    box-shadow: none !important;
    padding: 0.5em 0.75em !important;
    font-family: 'Courier New', monospace !important;
    font-size: 10pt !important;
    margin: 0.5em 0 !important;
    max-width: none !important;
  }
  .spec dt { font-weight: 700; }
  .spec dt::after { color: #666; }

  .one-liner {
    border: none !important;
    border-top: 1px solid #000 !important;
    border-bottom: 1px solid #000 !important;
    padding: 0.5em 0 !important;
    margin: 0.6em 0 !important;
    max-width: none !important;
  }
  .one-liner::before {
    position: static !important;
    display: block;
    transform: none !important;
    background: transparent !important;
    padding: 0 !important;
    color: #777 !important;
    margin-bottom: 0.3em;
    letter-spacing: 0 !important;
  }
  .one-liner__lead,
  .one-liner__rule,
  .one-liner__small {
    font-family: inherit !important;
    font-style: normal !important;
    font-variation-settings: normal !important;
    letter-spacing: 0 !important;
    max-width: none !important;
    text-shadow: none !important;
  }
  .one-liner__lead { color: #333 !important; font-style: italic !important; margin-bottom: 0.4em !important; }
  .one-liner__rule { font-weight: 700 !important; font-size: 13pt !important; margin-bottom: 0.4em !important; }
  .one-liner__small { color: #666 !important; font-size: 9pt !important; letter-spacing: 0 !important; }

  .roster {
    border: none !important;
    padding: 0 !important;
    margin: 0.5em 0 0 1.25em !important;
    list-style: disc !important;
    font-family: inherit !important;
  }
  .roster li {
    display: list-item !important;
    font-family: inherit !important;
    font-size: 11pt !important;
    padding: 0 !important;
    border: none !important;
    gap: 0;
    line-height: 1.4;
  }
  .roster li .url { font-weight: 700; max-width: none; }
  .roster li .leader { display: none !important; }
  .roster li .flags { color: #666; font-size: 10pt !important; letter-spacing: 0 !important; }
  .roster li .flags::before { content: " -- "; color: #999; }
  .roster li.loading, .roster li.empty, .roster li.error {
    list-style: none;
    color: #666;
    font-style: italic;
  }

  a {
    color: #000 !important;
    background: transparent !important;
    border: none !important;
    text-decoration: underline;
  }
  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-family: 'Courier New', monospace;
    font-size: 80%;
    color: #555;
    font-weight: normal;
    text-decoration: none;
  }

  code {
    background: #eee !important;
    color: #000 !important;
    padding: 0.05em 0.3em !important;
    font-family: 'Courier New', monospace !important;
    font-size: 95% !important;
  }

  footer {
    border-top: 1px solid #000 !important;
    margin-top: 1em !important;
    padding: 0.5em 0 !important;
    font-family: inherit !important;
    font-size: 9pt !important;
    color: #555 !important;
    letter-spacing: 0 !important;
  }
  footer .pagenum { display: none !important; }
  footer .colophon p { margin: 0; }
  footer .links {
    margin-top: 0.4em;
    gap: 0.3em 1em;
  }

  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }

  @page {
    margin: 0.75in;
    size: auto;
  }
}

/* --- gutter table-of-contents (wide viewports only) ------- */

.gutter-toc { display: none; }

@media (min-width: 1100px) and (min-height: 560px) {
  .gutter-toc {
    display: block;
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 5;
    max-width: none;
    padding: 0;
    white-space: nowrap;
    background: none;
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-mid);
    line-height: 1.55;
    pointer-events: auto;
  }
  .gutter-toc ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .gutter-toc li {
    list-style: none;
    margin: 0;
  }
  .gutter-toc li::marker { content: ""; }
  .gutter-toc a {
    display: block;
    padding: 0.08rem 0 0.08rem 1.1em;
    position: relative;
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 120ms ease, border-color 120ms ease;
  }
  .gutter-toc a::before {
    content: "";
    position: absolute;
    left: 0;
  }
  .gutter-toc a:hover {
    color: var(--paper);
    background: var(--ink);
    border-bottom-color: transparent;
  }
  .gutter-toc a.is-current {
    color: var(--ink);
    font-weight: 700;
  }
  .gutter-toc a.is-current::before { content: ">"; }
}

@media print { .gutter-toc { display: none !important; } }
