:root {
  --paper: #E9D9B4;
  --edge: #C9AE78;
  --ink: #2A1D13;
  --ink-soft: #604A34;
  --red: #B22234;
  --blue: #3C3B6E;
  --rule: rgba(42, 29, 19, 0.22);
  --fell: "IM Fell English", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --fell-sc: "IM Fell English SC", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --black: "UnifrakturMaguntia", "Old English Text MT", "IM Fell English", Georgia, serif;
  --script: "Pinyon Script", "Snell Roundhand", "Apple Chancery", "URW Chancery L", cursive;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1F1711;
    --edge: #0E0A07;
    --ink: #EADCBA;
    --ink-soft: #B9A582;
    --red: #E2626D;
    --blue: #A3A2E6;
    --rule: rgba(234, 220, 186, 0.2);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #1F1711;
  --edge: #0E0A07;
  --ink: #EADCBA;
  --ink-soft: #B9A582;
  --red: #E2626D;
  --blue: #A3A2E6;
  --rule: rgba(234, 220, 186, 0.2);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--fell);
  font-size: 1.1875rem;
  line-height: 1.62;
  overflow-x: hidden;
  overflow-wrap: break-word;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 90% 80% at 50% 45%, transparent 55%, var(--edge) 140%);
  z-index: 0;
}
::selection { background: var(--red); color: var(--paper); }

.page { position: relative; z-index: 1; }

a { color: inherit; text-decoration-color: var(--rule); text-underline-offset: 0.18em; }
a:hover { text-decoration-color: var(--red); }

/* Hero: the correction */
.hero {
  max-width: 54rem;
  margin: 0 auto;
  padding: clamp(3rem, 10vw, 6rem) 1.25rem 1rem;
  text-align: center;
}
.posted {
  font-style: italic;
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 26rem;
  margin: 0 auto;
}
.tweet {
  font-size: clamp(1.9rem, 7.2vw, 4.25rem);
  line-height: 1.15;
  margin: 0;
  padding-top: clamp(2.5rem, 7vw, 3.5rem);
}
.tweet .l1, .tweet .l2 { display: block; }
.tweet .l2 { padding-top: 0.7em; }
.swap { position: relative; display: inline-block; white-space: nowrap; }
.swap del { text-decoration: none; position: relative; color: inherit; }
.swap del::after {
  content: "";
  position: absolute;
  left: -0.14em;
  right: -0.14em;
  top: 50%;
  height: 0.07em;
  border-radius: 0.04em;
  background: var(--red);
  transform-origin: left center;
  transform: rotate(-9deg);
  animation: strike 0.45s 0.7s ease-out both;
}
.swap ins {
  position: absolute;
  left: 50%;
  bottom: 0.92em;
  font-family: var(--script);
  color: var(--red);
  text-decoration: none;
  font-size: 1.15em;
  line-height: 1;
  white-space: nowrap;
  transform: translateX(-52%) rotate(-6deg);
  animation: write 0.7s 1.2s ease-out both;
}
@keyframes strike {
  from { transform: rotate(-9deg) scaleX(0); }
  to { transform: rotate(-9deg) scaleX(1); }
}
@keyframes write {
  from { clip-path: inset(-0.6em 100% -0.6em -0.6em); }
  to { clip-path: inset(-0.6em -0.6em -0.6em -0.6em); }
}
@media (prefers-reduced-motion: reduce) {
  .swap del::after, .swap ins { animation: none; }
}

.title {
  font-family: var(--black);
  font-weight: 400;
  font-size: clamp(2.35rem, 9vw, 4.9rem);
  line-height: 1.06;
  margin: clamp(3.5rem, 11vw, 6rem) auto 1rem;
  max-width: 14ch;
}
.dateline {
  font-style: italic;
  color: var(--ink-soft);
  max-width: 24rem;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.5;
}
.stars {
  color: var(--blue);
  font-size: 0.72rem;
  letter-spacing: 0.55em;
  margin: 2.75rem 0 0;
  padding-left: 0.55em;
}

/* Interior page headers */
.pagehead {
  max-width: 36rem;
  margin: 0 auto;
  padding: clamp(3rem, 9vw, 5rem) 1.25rem 0;
  text-align: center;
}
.pagehead .title { font-size: clamp(2rem, 7vw, 3.2rem); margin-top: 0; max-width: 18ch; }
.pagehead .dateline { margin-top: 0.75rem; }

/* Body */
main {
  max-width: 36rem;
  margin: 0 auto;
  padding: 2.25rem 1.25rem 2rem;
}
main p { margin: 0 0 1.1em; }
.lede::first-letter {
  font-family: var(--black);
  float: left;
  font-size: 4.3em;
  line-height: 0.82;
  padding: 0.05em 0.1em 0 0;
}

h2 {
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.55rem, 4.6vw, 1.95rem);
  line-height: 1.2;
  text-align: center;
  margin: 3.5rem 0 1.4rem;
}

.fix del {
  color: inherit;
  text-decoration-line: line-through;
  text-decoration-color: var(--red);
  text-decoration-thickness: 0.09em;
}
.fix ins, ins.add {
  font-family: var(--script);
  color: var(--red);
  text-decoration: none;
  font-size: 1.32em;
  line-height: 0;
  padding: 0 0.06em;
}

.facts p { margin-bottom: 1.25em; }

.declare { font-style: italic; }
.article { margin: 0 0 1.75rem; }
.article h3, .qa h3, .src h3 {
  font-family: var(--fell-sc);
  font-weight: 400;
  color: var(--blue);
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  margin: 0 0 0.1rem;
}
.article .claim { font-style: italic; }

.pledge {
  font-size: 1.32rem;
  line-height: 1.8;
  text-align: center;
  margin: 0 auto 1.25rem;
}
.note {
  text-align: center;
  font-style: italic;
  color: var(--ink-soft);
  font-size: 1rem;
}

.glossary-intro { text-align: center; font-style: italic; color: var(--ink-soft); }
.glossary { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 1.05rem; line-height: 1.4; }
th {
  font-weight: 400;
  font-style: italic;
  text-align: left;
  color: var(--ink-soft);
  padding: 0.4rem 0.6rem 0.5rem 0;
  border-bottom: 1px solid var(--ink);
}
td {
  padding: 0.65rem 0.6rem 0.65rem 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
td:first-child { color: var(--ink-soft); width: 44%; }

/* Platform Q&A */
.qa { margin: 0 0 2.1rem; }
.qa h3 { margin-bottom: 0.35rem; }
.qa .q {
  font-style: italic;
  font-size: 1.22rem;
  line-height: 1.35;
  margin: 0 0 0.6em;
}

/* Sources */
.src { margin: 0 0 2rem; }
.src .claim {
  font-style: italic;
  margin: 0 0 0.5em;
}
.src .verdict {
  font-family: var(--fell-sc);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}
.src .verdict.caution { color: var(--red); }
.src ul { margin: 0.5em 0 0; padding-left: 1.1em; }
.src li { margin-bottom: 0.3em; font-size: 1.02rem; line-height: 1.45; }

/* Signing / sharing */
.act {
  max-width: 36rem;
  margin: 0 auto;
  padding: 0 1.25rem;
  text-align: center;
}
.act-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin: 1.5rem 0 0;
}
.btn {
  font-family: var(--fell-sc);
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink);
  padding: 0.62rem 1.3rem;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.3;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn-primary { border-color: var(--red); color: var(--red); }
.btn-primary:hover { background: var(--red); color: var(--paper); }

.signed { text-align: center; margin-top: 2.5rem; }
.signed .by { font-style: italic; margin: 0; }
.hancock {
  font-family: var(--script);
  font-size: clamp(2.6rem, 11vw, 3.7rem);
  line-height: 1.15;
  margin: 0.35rem 0 0;
}
.sig-line {
  width: min(20rem, 82%);
  margin: 2.5rem auto 0.35rem;
  border-top: 1px solid var(--ink);
}
.sig-label { font-style: italic; color: var(--ink-soft); font-size: 0.95rem; margin: 0; }

.closing { margin-top: 3.5rem; }

/* Footer + cross-page nav */
.sitenav {
  max-width: 36rem;
  margin: 3.5rem auto 0;
  padding: 1.5rem 1.25rem 0;
  border-top: 1px solid var(--rule);
  text-align: center;
  font-family: var(--fell-sc);
  font-size: 1rem;
  letter-spacing: 0.04em;
}
.sitenav a { margin: 0 0.55rem; display: inline-block; }

footer {
  max-width: 30rem;
  margin: 0 auto;
  padding: 1.75rem 1.25rem 3.5rem;
  text-align: center;
  font-style: italic;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
footer p { margin: 0 0 0.6em; }
