/* Attention Span: a broadsheet for AI news. Flat colour, no gradients. */
/* Two editions share one layout, both on a soft sage that is easy on the eyes:
   - Day edition (default): green-black ink on sage-grey paper, yellow only as a highlighter.
   - Night edition: pale sage ink on deep green-black, yellow highlighter. */
:root {
  --bg: #EDF0EA;
  --panel: #E2E7DF;
  --rule: #1F2420;
  --rule-soft: #C7CEC5;
  --ink: #1F2420;
  --ink-2: #4A524B;
  --ink-3: #646C65;
  --accent: #1F2420;
  --yellow: #FBBF24;
  --wash: rgba(251, 191, 36, 0.42);
  --link: #1F2420;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --nameplate: "Bodoni Moda", "Newsreader", Georgia, serif;
  --measure: 70ch;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}
:root[data-theme="night"] {
  --bg: #191E1B;
  --panel: #212823;
  --rule: #3A443D;
  --rule-soft: #2A322C;
  --ink: #E1E7DF;
  --ink-2: #A6B0A7;
  --ink-3: #87918A;
  --accent: #FBBF24;
  --wash: rgba(251, 191, 36, 0.18);
  --link: #B5DCCB;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--serif); font-size: 18px; line-height: 1.55;
  font-optical-sizing: auto; text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration-color: var(--ink-3); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.mono, time, code { font-family: var(--mono); font-size: 0.82em; letter-spacing: 0; }
code { color: var(--link); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.5;
  stroke-linecap: square; stroke-linejoin: miter; vertical-align: -4px; }
mark { background: var(--wash); color: var(--ink); }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------------- masthead ---------------- */
.masthead { border-bottom: 3px double var(--rule); padding: 28px 0 14px; }
.masthead .wrap { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.brand { text-decoration: none; display: block; }
.brand h1 { margin: 0; font-size: clamp(2.6rem, 7vw, 4.6rem); font-weight: 600; line-height: 0.95;
  letter-spacing: -0.02em; font-variation-settings: "opsz" 72; }
.brand .cursor { display: inline-block; width: 0.42em; height: 0.09em; background: var(--accent);
  margin-left: 0.06em; vertical-align: 0.05em; }
.tagline { margin: 8px 0 0; color: var(--ink-2); font-style: italic; font-size: 1.05rem; }
.edition-meta { text-align: right; color: var(--ink-2); font-size: 0.95rem; }
.edition-meta strong { color: var(--ink); font-weight: 500; display: block; font-size: 1.05rem; }

/* ---------------- nav ---------------- */
.nav { border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 20; background: var(--bg); }
.nav .wrap { display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.nav .wrap::-webkit-scrollbar { display: none; }
.nav a { display: inline-flex; align-items: center; gap: 7px; padding: 12px 12px 10px; text-decoration: none;
  color: var(--ink-2); white-space: nowrap; border-bottom: 3px solid transparent; font-size: 1.02rem; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.search-btn { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2);
  padding: 7px 10px; border: 1px solid var(--rule); white-space: nowrap; }
.search-btn:hover { color: var(--ink); border-color: var(--ink-3); }
.search-btn kbd { font-family: var(--mono); font-size: 0.75rem; color: var(--ink-3); border: 1px solid var(--rule);
  padding: 0 5px; }

main { padding: 28px 0 80px; min-height: 60vh; }
.page-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap;
  border-bottom: 1px solid var(--rule); padding-bottom: 12px; margin-bottom: 24px; }
.page-head h2 { margin: 0; font-size: clamp(1.7rem, 3.4vw, 2.3rem); font-weight: 600; letter-spacing: -0.01em; }
.page-head p { margin: 0; color: var(--ink-2); max-width: 60ch; }
.lede { color: var(--ink-2); max-width: var(--measure); margin: -8px 0 24px; }

/* ---------------- the span: 24-hour strip ---------------- */
.span { margin: 0 0 30px; }
.span-head { display: flex; justify-content: space-between; gap: 4px 16px; flex-wrap: wrap; color: var(--ink-2); font-size: 0.95rem; margin-bottom: 8px; }
.span-track { position: relative; height: 54px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.span-hour { position: absolute; top: 0; bottom: 0; border-left: 1px solid var(--rule-soft); }
.span-hour span { position: absolute; bottom: -22px; left: -10px; font-family: var(--mono); font-size: 0.7rem; color: var(--ink-3); }
.span-tick { position: absolute; top: 8px; bottom: 8px; width: 3px; margin-left: -1px; background: var(--ink-2); }
.span-tick.lead { background: var(--accent); width: 5px; margin-left: -2px; top: 4px; bottom: 4px; }
.span-tick:hover, .span-tick:focus-visible { background: var(--accent); }
.span-tick .tip { display: none; position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  width: max-content; max-width: 260px; background: var(--panel); border: 1px solid var(--rule); padding: 6px 9px;
  font-size: 0.85rem; color: var(--ink); z-index: 5; }
.span-tick:hover .tip, .span-tick:focus-visible .tip { display: block; }
.span-foot { height: 26px; }

/* ---------------- today ---------------- */
.today-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; }
.lead-story { border-bottom: 1px solid var(--rule); padding-bottom: 26px; margin-bottom: 8px; }
.story.lead-story h3 { font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.12; margin: 6px 0 12px; font-weight: 600;
  letter-spacing: -0.015em; font-variation-settings: "opsz" 60; max-width: 24ch; }
.story.lead-story .one-liner { font-size: 1.22rem; color: var(--ink); max-width: var(--measure); margin: 0 0 16px; }
.kicker { display: flex; gap: 14px; flex-wrap: wrap; align-items: baseline; color: var(--ink-2); font-size: 0.95rem; }
.kicker .rank { font-family: var(--mono); color: var(--ink); }
.kicker .spot { color: #161616; background: var(--yellow); padding: 0 7px; font-size: 0.86rem; }

.stories { display: grid; grid-template-columns: 1fr 1fr; column-gap: 34px; }
.story { border-bottom: 1px solid var(--rule); padding: 18px 0 16px; min-width: 0; }
.story h3 { margin: 4px 0 6px; font-size: 1.28rem; line-height: 1.22; font-weight: 600; }
.story .one-liner { margin: 0; color: var(--ink-2); }
.story.open { grid-column: 1 / -1; }
.more { margin-top: 10px; color: var(--ink-2); font-size: 0.95rem; display: inline-flex; gap: 6px; align-items: center;
  border-bottom: 1px solid var(--rule); padding-bottom: 1px; }
.more:hover { color: var(--ink); border-bottom-color: var(--accent); }

.detail { max-width: var(--measure); margin-top: 14px; }
.detail p { margin: 0 0 14px; }
.eli5 { border-left: 4px solid var(--yellow); background: var(--panel); padding: 12px 16px; margin: 16px 0; }
.eli5 h4, .why h4, .sources h4, .tags h4 { margin: 0 0 4px; font-size: 0.95rem; font-weight: 600; color: var(--ink-2); }
.eli5 p { margin: 0; font-size: 1.08rem; }
.why p { margin: 0 0 14px; }
.sources ol { margin: 6px 0 0; padding-left: 22px; }
.sources li { margin: 4px 0; color: var(--ink-2); }
.sources a { color: var(--link); }
.sources .kind { color: var(--ink-3); font-size: 0.85rem; }
.tags { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
.chip { display: inline-block; border: 1px solid var(--rule); padding: 1px 9px; text-decoration: none; color: var(--ink-2);
  font-size: 0.9rem; }
a.chip:hover { color: var(--ink); border-color: var(--accent); }
.chip.concept { border-style: dashed; }

aside.rail-box { border-left: 1px solid var(--rule); padding-left: 24px; }
aside.rail-box h4 { margin: 0 0 10px; font-size: 1rem; font-weight: 600; }
.contents { list-style: none; margin: 0 0 30px; padding: 0; counter-reset: c; }
.contents li { display: grid; grid-template-columns: 26px 1fr; gap: 6px; padding: 7px 0; border-bottom: 1px solid var(--rule-soft);
  font-size: 0.98rem; line-height: 1.35; }
.contents .n { font-family: var(--mono); font-size: 0.8rem; color: var(--ink-3); padding-top: 3px; }
.contents a { text-decoration: none; }
.contents a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.stat-line { color: var(--ink-2); font-size: 0.95rem; margin: 0 0 6px; }
.stat-line b { color: var(--ink); font-weight: 600; }
.archive { list-style: none; padding: 0; margin: 0; }
.archive li { padding: 8px 0; border-bottom: 1px solid var(--rule-soft); }
.archive time { color: var(--ink-2); display: block; }
.archive a { text-decoration: none; }
.archive a[aria-current="true"] { box-shadow: inset 3px 0 0 var(--accent); padding-left: 10px; display: block; }
.notice { border: 1px solid var(--rule); padding: 14px 16px; color: var(--ink-2); max-width: var(--measure); }

/* ---------------- timeline ---------------- */
.with-rail { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 36px; align-items: start; }
.era-ruler { position: sticky; top: 64px; list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--rule); }
.era-ruler li a { display: block; padding: 7px 0 7px 14px; margin-left: -1px; border-left: 3px solid transparent;
  text-decoration: none; color: var(--ink-2); line-height: 1.25; }
.era-ruler li a span { display: block; font-family: var(--mono); font-size: 0.74rem; color: var(--ink-3); margin-top: 2px; }
.era-ruler li a.here { border-left-color: var(--accent); color: var(--ink); }
.filters { display: flex; gap: 10px 14px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; color: var(--ink-2); }
.filters label { display: inline-flex; gap: 6px; align-items: center; font-size: 0.95rem; }
select, input[type="search"] { font: inherit; font-size: 0.95rem; color: var(--ink); background: var(--panel);
  border: 1px solid var(--rule); padding: 5px 8px; border-radius: 0; }
.era { margin-bottom: 34px; scroll-margin-top: 70px; }
.era > header { border-bottom: 2px solid var(--ink-3); margin-bottom: 4px; padding-bottom: 6px; }
.era > header h3 { margin: 0; font-size: 1.5rem; font-weight: 600; }
.era > header p { margin: 2px 0 0; color: var(--ink-2); }
.entry { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--rule-soft); }
.entry time { color: var(--ink-2); padding-top: 4px; }
.entry h4 { margin: 0 0 3px; font-size: 1.12rem; font-weight: 600; line-height: 1.3; }
.entry h4 button { text-align: left; }
.entry h4 button:hover { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.entry .one-liner { margin: 0; color: var(--ink-2); }
.entry .meta { margin-top: 4px; color: var(--ink-3); font-size: 0.88rem; }
.check { display: inline-flex; gap: 5px; align-items: center; color: var(--ink-2); font-size: 0.86rem; }
.check .icon { width: 16px; height: 16px; vertical-align: -3px; }
.check.verified { color: var(--ink); }
.check.verified .icon { color: var(--accent); }

/* ---------------- concepts ---------------- */
.letters { position: sticky; top: 49px; z-index: 10; background: var(--bg); display: flex; flex-wrap: wrap;
  border-bottom: 1px solid var(--rule); margin-bottom: 20px; padding: 6px 0; }
.letters a, .letters span { width: 34px; text-align: center; padding: 4px 0; font-size: 1.05rem; text-decoration: none; }
.letters span { color: var(--ink-3); opacity: 0.55; }
.letters a:hover, .letters a.here { background: var(--yellow); color: #161616; }
.letter-group { scroll-margin-top: 110px; margin-bottom: 18px; }
.letter-group > h3 { font-size: 2.4rem; margin: 0; font-weight: 600; line-height: 1; color: var(--accent);
  border-bottom: 1px solid var(--rule); padding-bottom: 6px; }
.index-cols { columns: 2 340px; column-gap: 36px; }
.term { break-inside: avoid; padding: 10px 0; border-bottom: 1px solid var(--rule-soft); }
.term a.name { font-weight: 600; font-size: 1.1rem; text-decoration: none; }
.term a.name:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.term .layer { color: var(--ink-3); font-size: 0.88rem; margin-left: 6px; }
.term p { margin: 2px 0 0; color: var(--ink-2); font-size: 0.98rem; }

.concept-page { max-width: 860px; }
.concept-page h2 { font-size: clamp(2rem, 4.5vw, 3rem); margin: 4px 0 6px; line-height: 1.05; font-weight: 600; }
.concept-page .aka { color: var(--ink-3); margin: 0 0 18px; }
.concept-page .def { font-size: 1.22rem; max-width: var(--measure); }
.lineage { margin: 28px 0; }
.lineage h4 { margin: 0 0 10px; font-weight: 600; }
.lineage-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; }
.lineage-col { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.lineage-col.from { align-items: flex-end; text-align: right; }
.lineage-col .chip { font-size: 0.95rem; }
.lineage-self { border: 2px solid var(--accent); padding: 8px 14px; font-weight: 600; text-align: center; }
.lineage-col .none { color: var(--ink-3); font-style: italic; font-size: 0.95rem; }
.lineage svg { display: block; }
.section-title { font-size: 1.25rem; font-weight: 600; border-bottom: 1px solid var(--rule); padding-bottom: 6px; margin: 32px 0 6px; }
.mini-list { list-style: none; padding: 0; margin: 0; }
.mini-list li { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--rule-soft); }
.mini-list time { color: var(--ink-2); padding-top: 3px; }
.mini-list .src { color: var(--ink-3); font-size: 0.88rem; }
.empty { color: var(--ink-3); font-style: italic; }

/* ---------------- labs and people ---------------- */
.ledger { width: 100%; border-collapse: collapse; }
.ledger th { text-align: left; font-weight: 600; color: var(--ink-2); font-size: 0.92rem; border-bottom: 2px solid var(--ink-3);
  padding: 6px 10px 6px 0; }
.ledger td { border-bottom: 1px solid var(--rule-soft); padding: 11px 10px 11px 0; vertical-align: top; }
.ledger td.num { font-family: var(--mono); font-size: 0.85rem; color: var(--ink-2); white-space: nowrap; }
.ledger a { font-weight: 600; text-decoration: none; }
.ledger a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.ledger .blurb { color: var(--ink-2); font-size: 0.95rem; display: block; font-weight: 400; }
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); column-gap: 34px; }
.person { border-bottom: 1px solid var(--rule); padding: 16px 0; display: grid; grid-template-columns: 56px 1fr; gap: 14px; }
.monogram { width: 56px; height: 56px; border: 1px solid var(--ink-3); display: grid; place-items: center;
  font-size: 1.35rem; font-weight: 600; font-variation-settings: "opsz" 40; }
.person h3 { margin: 0; font-size: 1.2rem; }
.person h3 a { text-decoration: none; }
.person h3 a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.person .role { color: var(--ink); margin: 2px 0 4px; font-size: 0.98rem; }
.person .known { color: var(--ink-2); margin: 0; font-size: 0.95rem; }
.asof { color: var(--ink-3); font-size: 0.85rem; }

/* ---------------- stack map ---------------- */
.stack { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--rule); }
.layer-band { display: grid; grid-template-columns: 250px minmax(0, 1fr); border-top: 1px solid var(--rule); }
.layer-band:first-child { border-top: 0; }
.layer-band > div:first-child { padding: 14px 16px; border-right: 1px solid var(--rule); }
.layer-band h3 { margin: 0; font-size: 1.12rem; font-weight: 600; }
.layer-band h3 .lvl { font-family: var(--mono); font-size: 0.75rem; color: var(--ink-3); margin-right: 8px; }
.layer-band p { margin: 4px 0 0; color: var(--ink-2); font-size: 0.92rem; }
.layer-band .chips { padding: 14px 16px; display: flex; flex-wrap: wrap; gap: 6px 8px; align-content: flex-start; }
.layer-band.data { background: var(--panel); }
.layer-band.data h3 .nm { box-shadow: inset 0 -0.4em 0 rgba(251, 191, 36, 0.25); }
.stack-note { color: var(--ink-2); margin: 8px 0 22px; max-width: var(--measure); }

/* ---------------- about ---------------- */
.prose { max-width: var(--measure); }
.prose h3 { font-size: 1.35rem; margin: 30px 0 6px; font-weight: 600; }
.prose ol, .prose ul { padding-left: 22px; }
.prose li { margin: 6px 0; }
.colophon { color: var(--ink-3); border-top: 1px solid var(--rule); margin-top: 40px; padding-top: 14px; font-size: 0.92rem; }

/* ---------------- search ---------------- */
dialog.search { width: min(720px, calc(100vw - 24px)); max-height: 80vh; margin: 9vh auto 0; padding: 0; background: var(--bg);
  color: var(--ink); border: 1px solid var(--ink-3); }
dialog.search::backdrop { background: rgba(10, 11, 18, 0.6); }
.search-field { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--rule); }
.search-field input { flex: 1; background: transparent; border: 0; font-size: 1.2rem; padding: 4px 0; color: var(--ink); }
.search-field input:focus { outline: none; }
.results { overflow-y: auto; max-height: calc(80vh - 64px); padding: 6px 16px 14px; }
.results h4 { margin: 14px 0 4px; font-size: 0.9rem; color: var(--ink-3); font-weight: 600; }
.results a { display: block; padding: 7px 8px; text-decoration: none; border-bottom: 1px solid var(--rule-soft); }
.results a:hover, .results a:focus-visible { background: var(--panel); outline: none; box-shadow: inset 3px 0 0 var(--accent); }
.results a small { display: block; color: var(--ink-2); font-size: 0.88rem; }

footer.site { border-top: 3px double var(--rule); padding: 18px 0 40px; color: var(--ink-3); font-size: 0.92rem; }
footer.site .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer.site a { color: var(--ink-2); }

/* ---------------- small screens ---------------- */
@media (max-width: 960px) {
  .today-grid { grid-template-columns: 1fr; }
  aside.rail-box { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); padding-top: 18px; }
  .with-rail { grid-template-columns: 1fr; }
  .era-ruler { position: static; display: flex; overflow-x: auto; border-left: 0; border-bottom: 1px solid var(--rule); }
  .era-ruler li a { border-left: 0; border-bottom: 3px solid transparent; padding: 6px 12px; white-space: nowrap; }
  .era-ruler li a.here { border-bottom-color: var(--accent); }
}
@media (max-width: 680px) {
  body { font-size: 17px; }
  .stories { grid-template-columns: 1fr; }
  .entry, .mini-list li { grid-template-columns: 1fr; gap: 2px; }
  .layer-band { grid-template-columns: 1fr; }
  .layer-band > div:first-child { border-right: 0; border-bottom: 1px solid var(--rule-soft); }
  .edition-meta { text-align: left; }
  .lineage-row { grid-template-columns: 1fr; }
  .lineage-col.from { align-items: flex-start; text-align: left; }
  .lineage svg { display: none; }
  .search-btn span { display: none; }
  .ledger .hide-sm { display: none; }
  .span-hour span { display: none; }
  .span-hour.label span { display: block; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
html { scroll-behavior: smooth; }

/* =====================================================================
   Broadsheet layer: the newspaper conventions, shared by both editions.
   ===================================================================== */
body { background: var(--bg); }

/* masthead: ears on both sides of a blackletter nameplate, then the folio line */
.masthead { border-bottom: 0; padding: 18px 0 0; }
.masthead .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; }
.ear { border: 1px solid var(--rule); padding: 7px 10px; font-size: 0.84rem; line-height: 1.3; color: var(--ink-2);
  max-width: 190px; }
.ear b { display: block; color: var(--ink); font-weight: 600; font-size: 0.92rem; }
.ear.right { justify-self: end; text-align: right; }
.brand { text-align: center; }
.brand h1 { font-family: var(--nameplate); font-weight: 700; font-size: clamp(2.6rem, 7.6vw, 5.2rem);
  letter-spacing: -0.012em; line-height: 1; font-variation-settings: "opsz" 96; }
.brand h1::selection, .brand::selection { background: var(--wash); }
.brand .cursor { display: none; }
.tagline { margin: 4px 0 10px; font-size: 1rem; }
.folio { border-top: 3px solid var(--rule); border-bottom: 1px solid var(--rule); margin-top: 10px; }
.folio .wrap { display: flex; justify-content: space-between; gap: 10px 24px; flex-wrap: wrap; padding-top: 6px;
  padding-bottom: 6px; font-size: 0.9rem; color: var(--ink-2); }
.folio b { color: var(--ink); font-weight: 600; }
.folio .mid { font-style: italic; }
.edition-meta { display: none; }

/* section bar */
.nav { border-bottom: 3px double var(--rule); }
.nav a { font-variant: small-caps; letter-spacing: 0.03em; font-size: 1.08rem; }
.theme-btn { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-2); padding: 7px 10px;
  border: 1px solid var(--rule-soft); white-space: nowrap; margin-left: 8px; }
.theme-btn:hover { color: var(--ink); border-color: var(--ink-3); }
.search-btn { border-color: var(--rule-soft); }

/* page heads read like section fronts */
.page-head { border-bottom: 3px solid var(--rule); }
.page-head h2 { font-variation-settings: "opsz" 72; }

/* front page */
.span-track { border-top-color: var(--rule); border-bottom-color: var(--rule); }
.span-tick { background: var(--ink-2); }
.span-tick.lead { background: var(--yellow); outline: 1px solid var(--ink); }
.today-grid { gap: 0; grid-template-columns: minmax(0, 1fr) 290px; }
.today-grid > div:first-child { padding-right: 26px; }
aside.rail-box { border-left: 1px solid var(--rule); padding-left: 22px; }
.story.lead-story { border-bottom: 3px double var(--rule); }
.story.lead-story h3 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); line-height: 1.04; max-width: none; letter-spacing: -0.02em;
  font-weight: 700; font-variation-settings: "opsz" 72; }
.story.lead-story .one-liner { font-style: italic; font-size: 1.3rem; color: var(--ink-2); }
.story.lead-story .detail { max-width: none; }
.story.lead-story .detail > p:first-child { column-count: 2; column-gap: 26px; column-rule: 1px solid var(--rule-soft);
  text-align: justify; hyphens: auto; }
.story.lead-story .detail > p:first-child::first-letter { float: left; font-size: 3.6em; line-height: 0.82;
  font-weight: 700; padding: 6px 8px 0 0; font-variation-settings: "opsz" 72; }
.kicker { font-variant: small-caps; letter-spacing: 0.04em; }
.kicker .rank { font-variant: normal; letter-spacing: 0; }

/* three columns with hairline column rules, like inside pages */
.stories { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 0; overflow: hidden; }
.stories > .story { border-left: 1px solid var(--rule-soft); margin-left: -1px; padding: 18px 16px 16px; }
.stories > .story.open { border-left: 0; margin-left: 0; padding-left: 0; padding-right: 0; border-bottom: 3px double var(--rule); }
.story h3 { font-weight: 700; font-variation-settings: "opsz" 40; }

.eli5 h4 { font-variant: small-caps; letter-spacing: 0.04em; }
.eli5 h4 span.hl, .why h4, .sources h4 { font-variant: small-caps; letter-spacing: 0.04em; }
:root:not([data-theme="night"]) .eli5 { background: transparent; border: 1px solid var(--rule); border-left: 6px solid var(--yellow); }
:root:not([data-theme="night"]) .chip { border-color: var(--ink-3); color: var(--ink); }
:root:not([data-theme="night"]) .contents a:hover,
:root:not([data-theme="night"]) .term a.name:hover { background: var(--wash); text-decoration: none; }
.letter-group > h3 { color: var(--ink); font-family: var(--nameplate); font-weight: 700; }
:root:not([data-theme="night"]) .lineage-self { border-color: var(--ink); background: var(--wash); }
:root:not([data-theme="night"]) .layer-band.data { background: var(--wash); }
:root:not([data-theme="night"]) .era > header { border-bottom-color: var(--rule); }
:root:not([data-theme="night"]) select, :root:not([data-theme="night"]) input[type="search"] { background: #FBF9F4; }
.monogram { font-family: var(--nameplate); font-weight: 700; font-size: 1.45rem; }
.era > header h3 { font-variation-settings: "opsz" 60; font-weight: 700; }
footer.site { border-top: 3px double var(--rule); }

@media (max-width: 960px) {
  .masthead .wrap { grid-template-columns: 1fr; }
  .ear { display: none; }
  .today-grid { grid-template-columns: 1fr; }
  .today-grid > div:first-child { padding-right: 0; }
  aside.rail-box { border-left: 0; padding-left: 0; border-top: 3px double var(--rule); }
  .stories { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .stories { grid-template-columns: 1fr; }
  .stories > .story { border-left: 0; margin-left: 0; padding: 16px 0; }
  .story.lead-story .detail > p:first-child { column-count: 1; text-align: left; }
  .folio .wrap { font-size: 0.82rem; }
  .theme-btn span { display: none; }
}
@media print {
  .nav, .span, aside.rail-box, footer.site, .more { display: none; }
  body { background: #fff; color: #000; }
}

/* archive */
.arch-month { margin-bottom: 30px; }
.arch-month > h3 { font-size: 1.6rem; font-weight: 700; margin: 0 0 4px; border-bottom: 3px solid var(--rule); padding-bottom: 6px;
  font-variation-settings: "opsz" 60; }
.arch-day { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--rule-soft); }
.arch-date { text-decoration: none; color: var(--ink-2); font-style: italic; }
.arch-lead { font-weight: 700; font-size: 1.22rem; line-height: 1.25; text-decoration: none; }
.arch-lead:hover, .arch-day li a:hover { background: var(--wash); }
.arch-day p.asof { margin: 2px 0 6px; }
.arch-day details summary { cursor: pointer; color: var(--ink-2); font-size: 0.95rem; }
.arch-day details ol { margin: 8px 0 0; padding-left: 22px; }
.arch-day li { margin: 4px 0; }
.arch-day li a { text-decoration: none; }
.arch-day li .asof { margin-left: 6px; }
@media (max-width: 680px) { .arch-day { grid-template-columns: 1fr; gap: 4px; } }

/* keep the section bar on one line at laptop widths */
.nav a { padding: 12px 4px 10px; gap: 4px; font-size: 0.95rem; letter-spacing: 0.01em; }
.nav .theme-btn span { display: none; }  /* sun or moon icon is enough; the button keeps its label for screen readers */
.nav .theme-btn { margin-left: 4px; }
.search-btn span { display: none; }  /* the icon and the "/" key are enough; keeps the bar on one line */
.arch-date time { font-family: var(--serif); font-size: 1rem; }

/* ---------------- Attention Heads ---------------- */
.filters .chip { cursor: pointer; font-size: 0.92rem; }
.filters .chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.heads-day > h3 { font-size: 1.05rem; font-weight: 600; font-style: italic; color: var(--ink-2); margin: 22px 0 0;
  padding-bottom: 6px; border-bottom: 1px solid var(--rule); }
.dispatch { padding: 18px 0 16px; border-bottom: 1px solid var(--rule-soft); }
.dispatch header { display: flex; align-items: center; gap: 12px; }
.dispatch .who b { display: block; font-size: 1.12rem; line-height: 1.2; }
.dispatch .who b a { text-decoration: none; }
.dispatch .who b a:hover { background: var(--wash); }
.monogram.sm { width: 40px; height: 40px; font-size: 1.05rem; display: inline-grid; place-items: center; flex: none;
  border: 1px solid var(--rule); }
.dispatch blockquote { margin: 12px 0 0; padding: 2px 0 2px 18px; border-left: 3px solid var(--ink); max-width: var(--measure); }
.dispatch blockquote p { margin: 0; font-size: 1.12rem; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere;
  font-variation-settings: "opsz" 24; }
.dispatch .ctx { display: flex; gap: 8px; align-items: baseline; margin: 10px 0 0 21px; color: var(--ink-2); font-size: 0.93rem;
  max-width: var(--measure); }
.dispatch .ctx .icon { width: 16px; height: 16px; vertical-align: -2px; }
.dispatch .means { margin: 14px 0 0; padding: 10px 14px; border: 1px solid var(--rule); border-left: 6px solid var(--yellow);
  max-width: var(--measure); }
.dispatch .means h4 { margin: 0 0 2px; font-size: 0.95rem; font-variant: small-caps; letter-spacing: 0.04em; }
.dispatch .means p { margin: 0; }
.dispatch footer { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; margin-top: 10px; font-size: 0.93rem;
  color: var(--ink-2); }
.dispatch footer .tags { margin: 0; }
.board { list-style: none; padding: 0; margin: 6px 0 12px; }
.board li { position: relative; display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 8px; align-items: baseline;
  padding: 6px 0 9px; border-bottom: 1px solid var(--rule-soft); }
.board .n { font-family: var(--mono); font-size: 0.78rem; color: var(--ink-3); }
.board .who a { text-decoration: none; }
.board .who a:hover { background: var(--wash); }
.board .count { font-family: var(--mono); font-size: 0.85rem; }
.board .bar { position: absolute; left: 34px; bottom: 3px; height: 3px; background: var(--ink); max-width: calc(100% - 34px); }
:root[data-theme="night"] .board .bar { background: var(--yellow); }
.roster { margin: 22px 0; }
.roster > h3 { font-size: 1.35rem; font-weight: 700; margin: 0 0 6px; font-variation-settings: "opsz" 60; }
.roster .profiles a { margin-right: 10px; }
.roster .ledger { table-layout: fixed; }
.roster th:nth-child(1) { width: 24%; }
.roster th:nth-child(3) { width: 15%; }
.roster th:nth-child(4) { width: 10%; }
.roster .show-sm { display: none; }
@media (max-width: 680px) {
  .roster .show-sm { display: block; }
  .roster th:nth-child(1) { width: auto; }
  .roster th:nth-child(3) { width: 28%; }
  .roster th:nth-child(4) { width: 18%; }
  .dispatch blockquote { padding-left: 12px; }
  .dispatch .ctx { margin-left: 15px; }
}

/* ---------------- Context Window, tabs and Week in Review ---------------- */
.subtabs { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: -6px 0 18px; border-bottom: 1px solid var(--rule-soft); }
.subtabs a { padding: 6px 0 8px; text-decoration: none; color: var(--ink-2); border-bottom: 3px solid transparent;
  font-variant: small-caps; letter-spacing: 0.03em; font-size: 1.02rem; }
.subtabs a:hover { color: var(--ink); }
.subtabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.subtabs.minor { margin-top: 0; }
.subtabs .n { font-family: var(--mono); font-size: 0.78rem; color: var(--ink-3); font-variant: normal; margin-left: 4px; }
.x-embed { margin: 12px 0 0; max-width: 550px; min-height: 60px; display: flow-root; }
.x-embed .twitter-tweet { margin-top: 0 !important; margin-bottom: 0 !important; }
.x-embed blockquote.twitter-tweet { margin: 0; padding: 10px 14px; border: 1px solid var(--rule); border-left: 3px solid var(--ink);
  font-size: 1.02rem; line-height: 1.5; }
.x-embed blockquote.twitter-tweet p { margin: 0 0 8px; white-space: pre-line; overflow-wrap: anywhere; }
.x-embed blockquote.twitter-tweet a { color: var(--link); }
.x-embed iframe { max-width: 100% !important; }
.means h4 .our { font-variant: normal; letter-spacing: 0; font-weight: 400; font-style: italic; color: var(--ink-3);
  font-size: 0.85rem; margin-left: 6px; }
.wk-top { list-style: none; counter-reset: wk; padding: 0; margin: 0 0 8px; }
.wk-top li { counter-increment: wk; position: relative; padding: 12px 0 12px 44px; border-bottom: 1px solid var(--rule-soft); }
.wk-top li::before { content: counter(wk, decimal-leading-zero); position: absolute; left: 0; top: 12px;
  font-family: var(--nameplate); font-weight: 700; font-size: 1.6rem; line-height: 1; }
.wk-top .kicker { display: flex; gap: 14px; color: var(--ink-3); font-size: 0.88rem; }
.wk-top .wk-title { display: block; font-weight: 700; font-size: 1.18rem; line-height: 1.25; text-decoration: none; margin: 2px 0 4px; }
.wk-top .wk-title:hover { background: var(--wash); }
.wk-top p { margin: 0; color: var(--ink-2); }
#copy-week { margin-top: 4px; }

/* ---------------- static pages (docs/s, e, w, c) for search engines ---------------- */
.static-head { padding: 16px 0 12px; border-bottom: 3px double var(--rule); }
.static-head .wrap { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; grid-template-columns: none; }
.static-name { font-family: var(--nameplate); font-weight: 700; font-size: 2.1rem; line-height: 1; }
.static-head .tagline { margin: 0; }
.static-body { max-width: 820px; padding-top: 26px; padding-bottom: 30px; }
.static-body h1 { font-size: clamp(1.9rem, 4.4vw, 2.8rem); line-height: 1.08; margin: 6px 0 10px; font-weight: 700;
  font-variation-settings: "opsz" 72; letter-spacing: -0.015em; }
.static-body h2 { font-size: 1.3rem; margin: 26px 0 8px; border-bottom: 1px solid var(--rule); padding-bottom: 4px; }
.static-kicker { color: var(--ink-3); font-variant: small-caps; letter-spacing: 0.04em; margin: 0; }
.static-kicker a { color: inherit; }
.static-body .one-liner { font-style: italic; font-size: 1.2rem; color: var(--ink-2); }
.static-list li { margin: 10px 0; }
.static-list li a { font-weight: 700; text-decoration: none; }
.static-list li p { margin: 2px 0 0; color: var(--ink-2); }
.static-app { margin-top: 30px; padding-top: 12px; border-top: 1px solid var(--rule-soft); color: var(--ink-2); }
.nav a .icon { width: 18px; height: 18px; }
.nav .theme-btn, .nav .search-btn { padding: 6px 8px; }
