:root {
  --bg: #F3F2EE;
  --surface: #FFFFFF;
  --ink: #12261B;
  --muted: #56665B;
  --rule: #D8DCD2;
  --signal: #3A7420;
  --noise: #B4483A;
  --brand: #0A2214;
  --lime: #9BC245;
  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --text: "Newsreader", Georgia, "Times New Roman", serif;
  --measure: 66ch;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B1A11;
    --surface: #12261A;
    --ink: #E9EFE6;
    --muted: #A0B2A5;
    --rule: #24392B;
    --signal: #9BC245;
    --noise: #E0806F;
    --brand: #06150C;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.125rem/1.65 var(--text);
  font-optical-sizing: auto;
}
a { color: var(--signal); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--bg); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 16px; }

h1, h2, h3, .mark, nav, .meta, label, button, .count, .crumb, .pager span, .tags, .qstatus {
  font-family: var(--display);
  font-stretch: 87%;
}
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.01em; margin: 0; }

/* header */
header.site, footer.site, main { max-width: 1120px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
header.site { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.bar { background: var(--brand); }
.mark { font-weight: 800; font-size: 1.25rem; color: #FFFFFF; text-decoration: none; display: inline-flex; align-items: center; gap: 12px; letter-spacing: -0.01em; }
.mark img { display: block; width: 44px; height: 44px; border-radius: 50%; }
header nav { display: flex; gap: 20px; flex-wrap: wrap; }
header nav a { color: #C9D6CC; text-decoration: none; font-weight: 600; font-size: 0.95rem; padding: 4px 0; }
header nav a:hover, header nav a[aria-current="page"] { color: #FFFFFF; }
header nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--lime); }
.bar :focus-visible { outline-color: var(--lime); }

/* hero: the noise, struck through, and the fact underneath */
.hero { padding: 32px 0 56px; border-bottom: 1px solid var(--rule); }
.cover { display: block; width: 100%; height: auto; border-radius: 6px; margin-bottom: 48px; }
.pairs-head { font-size: 1.05rem; font-weight: 700; color: var(--muted); margin-bottom: 18px; }
.pairs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 40px 56px; }
.pairs li:first-child { grid-column: 1 / -1; max-width: 26ch; max-width: min(100%, 980px); }
.pairs p { margin: 0; }
.noise { font-family: var(--display); font-stretch: 87%; font-weight: 700; color: var(--muted); line-height: 1.12; font-size: 1.35rem; }
.noise del { text-decoration: none; background: linear-gradient(var(--noise), var(--noise)) left 55% / 100% 0.09em no-repeat; }
.signal { margin-top: 10px !important; font-size: 1.1rem; max-width: 46ch; }
.pairs li:first-child .noise { font-size: clamp(2rem, 4.6vw, 3.6rem); color: var(--ink); letter-spacing: -0.02em; }
.pairs li:first-child .signal { font-size: clamp(1.25rem, 2.2vw, 1.6rem); margin-top: 18px !important; color: var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  .pairs li:first-child del { animation: strike 0.9s 0.4s cubic-bezier(.6,.1,.3,1) both; }
  .pairs li:first-child .signal { animation: arrive 0.6s 1.2s ease-out both; }
}
@keyframes strike { from { background-size: 0% 0.09em; } to { background-size: 100% 0.09em; } }
@keyframes arrive { from { opacity: 0; } to { opacity: 1; } }
.intro { max-width: 58ch; margin: 44px 0 0; font-size: 1.2rem; color: var(--muted); }

/* search */
.search { margin-top: 28px; max-width: 560px; }
.search label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 6px; }
.search .row { display: flex; gap: 8px; }
.search input { flex: 1; min-width: 0; width: 100%; font: inherit; font-size: 1.05rem; padding: 10px 12px; border: 1px solid var(--rule); background: var(--surface); color: var(--ink); border-radius: 4px; }
.search input:focus-visible { outline-offset: 0; }
button { font-size: 1rem; font-weight: 700; padding: 10px 18px; border: 0; border-radius: 4px; background: var(--brand); color: #FFFFFF; cursor: pointer; }
button:hover { background: var(--signal); }
.about-logo { display: block; width: 120px; height: 120px; border-radius: 50%; margin: 8px 0 24px; }
.qstatus { color: var(--muted); font-size: 0.95rem; margin: 8px 0 0; min-height: 1.5em; }

/* home layout */
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; padding: 48px 0 24px; }
.home-grid h2, .month h2 { font-size: 1.05rem; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.more { margin-top: 24px; font-family: var(--display); font-stretch: 87%; font-weight: 600; }

/* post lists */
.posts { list-style: none; margin: 0; padding: 0; }
.posts > li { padding: 20px 0; border-top: 1px solid var(--rule); max-width: var(--measure); }
.posts h3 { font-size: 1.3rem; font-weight: 700; margin: 4px 0 6px; }
.posts h3 a { color: var(--ink); text-decoration: none; }
.posts h3 a:hover { color: var(--signal); }
.excerpt { margin: 0; color: var(--muted); font-size: 1.02rem; line-height: 1.5; }
.meta { margin: 0; font-size: 0.88rem; color: var(--muted); display: flex; gap: 14px; flex-wrap: wrap; }
.meta .topic { color: var(--signal); text-decoration: none; font-weight: 600; }

/* topic index */
.topics { list-style: none; margin: 0; padding: 0; }
.topics li { border-top: 1px solid var(--rule); padding: 12px 0; }
.topics a { display: flex; justify-content: space-between; gap: 12px; text-decoration: none; color: var(--ink); font-family: var(--display); font-stretch: 87%; font-weight: 700; font-size: 1.08rem; }
.topics a:hover .name { color: var(--signal); }
.topics p { margin: 2px 0 0; font-size: 0.95rem; color: var(--muted); line-height: 1.45; }
.count { color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.month h2 { display: flex; gap: 10px; align-items: baseline; margin-top: 40px; }

/* listing + post pages */
.listing, .post, .prose-page { padding: 40px 0 24px; }
.listing h1, .prose-page h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; }
.lede { color: var(--muted); max-width: 60ch; font-size: 1.15rem; margin: 12px 0 8px; }
.crumb { margin: 0 0 8px; font-weight: 600; font-size: 0.95rem; }
.post { max-width: var(--measure); }
.post h1 { font-size: clamp(1.9rem, 4.2vw, 2.7rem); font-weight: 800; margin: 14px 0 28px; }
.prose p { margin: 0 0 1.05em; }
.prose ol { padding-left: 1.3em; }
.prose h2 { font-size: 1.4rem; margin: 1.6em 0 0.5em; }
.prose .tag { color: var(--muted); }
.prose .signoff { font-family: var(--display); font-stretch: 87%; font-weight: 700; color: var(--signal); margin: 1.6em 0 0.3em; }
.note { font-size: 0.98rem; color: var(--muted); border-left: 3px solid var(--rule); padding-left: 14px; }
.tags { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 0.88rem; color: var(--muted); }
.orig { margin-top: 24px; font-family: var(--display); font-stretch: 87%; font-weight: 600; }
.fine { font-size: 0.95rem; color: var(--muted); }
.pager { max-width: var(--measure); display: grid; grid-template-columns: 1fr 1fr; gap: 24px; border-top: 1px solid var(--rule); padding: 24px 0 8px; }
.pager a { text-decoration: none; color: var(--ink); line-height: 1.35; }
.pager a[rel="next"] { text-align: right; }
.pager a:hover { color: var(--signal); }
.pager span { display: block; color: var(--muted); font-size: 0.85rem; font-weight: 600; margin-bottom: 4px; }
mark { background: color-mix(in srgb, var(--signal) 22%, transparent); color: inherit; padding: 0 1px; }

footer.site { border-top: 1px solid var(--rule); margin-top: 48px; padding-top: 24px; padding-bottom: 40px; color: var(--muted); font-size: 0.95rem; }
footer.site p { max-width: 70ch; margin: 0; }

@media (max-width: 860px) {
  .home-grid { grid-template-columns: 1fr; gap: 40px; }
  .pairs { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 520px) {
  .mark { font-size: 1.1rem; }
  .cover { margin-bottom: 32px; border-radius: 4px; }
  header.site, footer.site, main { padding-left: 16px; padding-right: 16px; }
  body { font-size: 1.06rem; }
  .hero { padding-top: 28px; }
  .pager { grid-template-columns: 1fr; }
  .pager a[rel="next"] { text-align: left; }
}

/* post page with a side rail */
.post-wrap { display: grid; grid-template-columns: minmax(0, 66ch) 300px; justify-content: space-between; gap: 56px; }
.post figure { margin: 28px 0; }
.post figure img { display: block; max-width: 100%; height: auto; border: 1px solid var(--rule); border-radius: 4px; background: var(--surface); }
.rail { padding-top: 40px; }
.rail h2 { font-size: 1.05rem; color: var(--muted); font-weight: 700; margin-bottom: 8px; }
.rail ul { list-style: none; margin: 0; padding: 0; }
.rail li { border-top: 1px solid var(--rule); padding: 10px 0; line-height: 1.35; font-size: 1rem; }
.rail li a { color: var(--ink); text-decoration: none; }
.rail li a:hover { color: var(--signal); }
.rail p { font-family: var(--display); font-stretch: 87%; font-weight: 600; font-size: 0.95rem; }
@media (max-width: 1000px) {
  .post-wrap { grid-template-columns: 1fr; gap: 8px; }
  .rail { padding-top: 16px; max-width: 66ch; }
}

/* clickable noise/fact pairs */
.pairs a { display: block; color: inherit; text-decoration: none; }
.pairs .read { display: inline-block; margin-top: 10px; font-family: var(--display); font-stretch: 87%; font-weight: 600; font-size: 0.95rem; color: var(--signal); }
.pairs a:hover .read, .pairs a:focus-visible .read { text-decoration: underline; text-underline-offset: 0.18em; }
.pairs a:hover .signal { color: var(--signal); }
.hero .search { margin-top: 48px; }
footer.site p + p { margin-top: 8px; }
.cta { display: inline-block; background: var(--brand); color: #FFFFFF; text-decoration: none; font-family: var(--display); font-stretch: 87%; font-weight: 700; padding: 10px 18px; border-radius: 4px; }
.cta:hover { background: var(--signal); color: #FFFFFF; }
header nav a.book { color: var(--brand); background: var(--lime); padding: 4px 12px; border-radius: 4px; box-shadow: none; }
header nav a.book:hover { color: var(--brand); background: #B3D46A; }

/* testimonials */
.voices { padding: 48px 0 8px; border-top: 1px solid var(--rule); margin-top: 24px; }
.voices h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; margin-bottom: 24px; }
.quotes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.quotes.all { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 32px; }
.quotes li { background: var(--surface); border: 1px solid var(--rule); border-top: 4px solid var(--lime); border-radius: 6px; padding: 22px 22px 18px; display: flex; flex-direction: column; justify-content: space-between; }
.quotes blockquote { margin: 0; }
.quotes blockquote p { margin: 0; font-size: 1.04rem; line-height: 1.6; }
.quotes .who { margin: 16px 0 0; font-family: var(--display); font-stretch: 87%; font-size: 0.9rem; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; }
.quotes .name { color: var(--ink); font-weight: 700; }
.voices-links { margin: 28px 0 0; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; font-family: var(--display); font-stretch: 87%; font-weight: 600; }
@media (max-width: 860px) { .quotes, .quotes.all { grid-template-columns: 1fr; } }
.quotes.all { align-items: start; }
