/* A quiet newspaper, with the same reading rhythm on a phone and a desk. */
.newspaper { background: color-mix(in srgb, var(--paper) 86%, var(--forest)); }
.newspaper .grain { opacity: var(--texture-opacity, .12); filter: grayscale(1) sepia(.35) blur(2px); }
.paper { position: relative; isolation: isolate; width: min(calc(100% - 64px), var(--max)); margin: 28px auto; padding: 0 40px; background: var(--paper); box-shadow: 0 4px 36px #28332612; border: 1px solid #464b3020; }
.paper::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: url('/assets/newsprint-bg.webp') center top / 1400px auto; opacity: calc(var(--texture-opacity, .12) * .22); filter: grayscale(1); }
.no-grain .paper::before { display: none; }
.newspaper .site-header, .newspaper main, .newspaper footer { width: 100%; }
.newspaper .site-header { min-height: 108px; height: auto; padding: 22px 0 18px; gap: 20px; border-bottom: 3px double var(--forest); }
.newspaper .brand { gap: 12px; min-width: 0; }
.brand-mark { display: block; flex-shrink: 0; width: calc(var(--size-logo) * 2.6); height: calc(var(--size-logo) * 2.6); overflow: hidden; opacity: .85; }
.brand-mark img { display: block; height: 100%; width: auto; max-width: none; }
.newspaper .masthead { position: static; transform: none; font-family: var(--font-editorial); font-size: var(--size-masthead); font-weight: 700; letter-spacing: -.055em; white-space: nowrap; color: var(--forest); }
.newspaper .main-nav { align-items: center; gap: 22px; flex-shrink: 0; }
.newspaper .main-nav a { min-height: 44px; display: inline-flex; align-items: center; font-weight: 600; }
.main-nav .nav-support { padding: 0 15px; border: 1px solid #315c4350; border-radius: 5px; }
.newspaper a { text-underline-offset: 4px; }
.newspaper a:hover { color: var(--forest); }
.newspaper a:focus-visible, .newspaper button:focus-visible, .newspaper summary:focus-visible, .newspaper input:focus-visible { outline: 2px solid var(--forest); outline-offset: 4px; }
.newspaper ::selection { background: var(--acid); color: var(--ink); }
.edition-line { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; color: var(--muted); font-size: var(--size-hero); border-bottom: 1px solid var(--line); }
.edition-line p { margin: 0; }
.edition-line time { white-space: nowrap; font-size: 12px; font-variant-numeric: tabular-nums; }
.newspaper .hero-rule { justify-content: flex-start; padding-top: 12px; }
.topic-filters { display: flex; flex-wrap: wrap; gap: 7px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.topic-filters a { display: inline-flex; align-items: center; padding: 7px 11px; min-height: 36px; border: 1px solid #315c4333; border-radius: 5px; font: 500 12px/1.3 var(--font-ui); color: var(--forest); background: #fff7; white-space: nowrap; }
.topic-filters a:hover { background: var(--acid); }
.topic-filters a[aria-current] { background: var(--forest); border-color: var(--forest); color: var(--paper); }
.topic-short { display: none; }
.newspaper .digest-grid { grid-template-columns: 225px minmax(0, 1fr); gap: 40px; padding: 28px 0 48px; }
.newspaper .issue-summary { padding-top: 14px; border-top: 3px solid var(--forest); top: 24px; }
.newspaper .eyebrow { letter-spacing: .09em; font-size: var(--size-small); font-weight: 700; line-height: 1.6; }
.issue-summary h1 { font: 500 var(--size-summary)/1.13 var(--font-editorial); letter-spacing: -.03em; margin: 12px 0 14px; text-wrap: pretty; }
.newspaper .issue-summary .dek { font: 400 14px/1.6 var(--font-ui); color: var(--muted); }
.issue-links { display: flex; flex-direction: column; gap: 7px; border-top: 1px solid var(--line); margin-top: 20px; padding-top: 14px; font-size: 12px; color: var(--forest); }
.issue-toc { display: grid; gap: 7px; margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); }
.issue-toc span { margin-bottom: 2px; color: var(--muted); font: 700 10px/1.4 var(--font-ui); letter-spacing: .1em; text-transform: uppercase; }
.issue-toc a { color: var(--ink); font: 500 12px/1.35 var(--font-ui); text-decoration: none; }
.issue-toc a:hover { color: var(--forest); text-decoration: underline; }
.sidebar-note { margin: 30px 0 0; font: 400 12px/1.8 var(--font-ui); color: var(--muted); }
.mobile-dek { display: none; }
.newspaper .issue { min-width: 0; max-width: 760px; }
.newspaper .news-section + .news-section { margin-top: 30px; }
.newspaper .section-label { display: flex; align-items: center; gap: 14px; padding: 0; margin: 0 0 18px; border: 0; font: 700 var(--size-small)/1.5 var(--font-ui); color: var(--forest); letter-spacing: .1em; }
.section-label::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.newspaper .news-item { margin: 0; padding: 0 0 22px; }
.story-label { margin: 0 0 7px !important; color: var(--forest); font: 750 10px/1.4 var(--font-ui) !important; letter-spacing: .1em; text-transform: uppercase; }
.story-sources { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-top: 14px; padding-top: 10px; border-top: 1px dotted var(--line); color: var(--muted); font: 600 11px/1.4 var(--font-ui); }
.story-sources a, .story-permalink { color: var(--forest); font: 650 11px/1.4 var(--font-ui); }
.story-permalink { display: inline-block; margin-top: 11px; opacity: .82; }
.newspaper .news-item + .news-item { border-top: 1px solid var(--line); padding-top: 22px; }
.newspaper .prose h3 { margin: 0 0 12px; font-family: var(--font-editorial); font-size: var(--size-news-title); line-height: 1.16; font-weight: 500; letter-spacing: -.025em; text-wrap: pretty; }
.prose h3 a { text-decoration: none; }
.prose h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.newspaper .prose p, .newspaper .prose li { font-family: var(--font-ui); font-size: var(--size-prose); line-height: var(--line-prose); }
.newspaper .prose p { margin: 0 0 12px; }
.newspaper .prose p:last-child { margin-bottom: 0; }
.section-note { padding: 18px 20px; border-left: 2px solid var(--forest); background: #315c4308; }
.newspaper .sources { margin: 28px 0 0; padding: 22px; background: #315c4309; border: 1px solid #315c432a; border-radius: 4px; color: var(--ink); }
.sources-caption { font-size: 13px; color: var(--muted); margin: 5px 0 14px; }
.newspaper .sources li { grid-template-columns: 22px minmax(0, 1fr); gap: 10px; padding: 11px 0; border-color: var(--line); }
.newspaper .sources li::before { color: var(--forest); }
.newspaper .sources a { font: 500 13px/1.55 var(--font-ui); overflow-wrap: anywhere; }
.newspaper .sources span { display: block; color: var(--muted); font-size: 11px; margin-top: 3px; }
.newspaper .sources ol { margin: 0; }
.newspaper .support { gap: 30px; grid-template-columns: 225px minmax(0, 1fr); padding: 28px; border: 1px solid #315c4330; border-radius: 5px; background: color-mix(in srgb, var(--acid) 60%, var(--paper)); }
.newspaper .support h2, .newspaper .section-head h2 { font-size: var(--size-section); line-height: 1.1; margin: 6px 0 0; }
.newspaper .support p { font-size: 15px; margin: 0 0 12px; }
.newspaper .support .eyebrow { font-size: var(--size-small); }
.donation-label { display: block; color: var(--forest); font-size: 11px; font-weight: 700; letter-spacing: .1em; margin: 12px 0 6px; }
.donation-address { display: flex; gap: 8px; }
.donation-address input { min-width: 0; flex: 1; width: 100%; padding: 12px; font: 12px ui-monospace, monospace; color: var(--ink); border: 1px solid #315c4330; border-radius: 3px; background: #fff8; }
.donation-address button { font: 600 12px var(--font-ui); border: 1px solid var(--forest); color: var(--paper); background: var(--forest); border-radius: 3px; cursor: pointer; padding: 10px; }
.copy-status { display: block; font-size: 12px; min-height: 18px; margin-top: 5px; }
.support-placeholder { font-size: 13px; color: var(--muted); }
.newspaper .button { border-radius: 4px; font-size: 14px; font-weight: 600; }
.newspaper .archive { padding: 48px 0; }
.newspaper .section-head { display: flex; align-items: end; gap: 20px; padding-bottom: 20px; }
.rss-link { font-size: 12px; color: var(--forest); }
.newspaper .archive-list a { grid-template-columns: 145px minmax(0, 1fr) auto; gap: 20px; padding: 18px 0; }
.newspaper .archive-list strong { font-size: 22px; line-height: 1.2; }
.newspaper .archive-list time, .newspaper .archive-list span { font-size: 12px; }
.newspaper footer { padding: 24px 0 30px; font-size: 12px; align-items: flex-start; }
.newspaper footer > div:first-child { display: block; }
.newspaper footer strong { display: block; color: var(--forest); font: 700 22px var(--font-editorial); margin-bottom: 8px; }
.newspaper .footer-links { align-items: center; flex-wrap: wrap; }
.newspaper footer p { max-width: 490px; }
.empty-topic { padding: 28px 0; min-height: 200px; }
.empty-topic h2 { font: 500 30px/1.2 var(--font-editorial); }
.empty-topic p { color: var(--muted); }
.issue-empty { padding-block: 35px; }
.newspaper.summary-static .issue-summary { position: static; }
.newspaper.summary-top .digest-grid, .newspaper.summary-hidden .digest-grid { grid-template-columns: minmax(0, 760px); justify-content: center; }
.newspaper.summary-top .issue-summary { position: static; }
.newspaper.summary-top .sidebar-note { display: none; }
.newspaper.density-cozy .digest-grid { padding-top: 38px; gap: 44px; }
.newspaper.density-airy .digest-grid { padding-top: 50px; gap: 56px; }
.newspaper [hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; top: -100px; left: 16px; padding: 12px; background: var(--paper); z-index: 10; }
.skip-link:focus { top: 10px; }
.news-item, .news-section, #digest, #sources-title, #archive, #support { scroll-margin-top: 24px; }
@media (max-width: 1000px) {
  .paper { width: calc(100% - 32px); padding-inline: 28px; margin-block: 16px; }
  .newspaper .digest-grid { grid-template-columns: 195px minmax(0, 1fr); gap: 28px; }
  .newspaper .main-nav { gap: 14px; }
  .topic-filters a { font-size: 11px; padding: 7px 9px; }
}
@media (max-width: 760px) {
  .paper { width: 100%; margin: 0; padding: 0 20px; border: 0; box-shadow: none; }
  .newspaper .site-header { display: flex; min-height: 78px; padding: 16px 0 12px; gap: 8px; }
  .newspaper .brand { gap: 8px; }
  .brand-mark { width: 28px; height: 28px; }
  .newspaper .masthead { font-size: min(var(--size-masthead), 32px); }
  .newspaper .main-nav { gap: 14px; }
  .newspaper .main-nav a { font-size: 12px; min-height: 44px; }
  .newspaper .main-nav .nav-today { display: none; }
  .main-nav .nav-support { padding: 0; border: 0; }
  .edition-line { font-size: 12px; padding: 9px 0; }
  .edition-line p { max-width: 260px; }
  .edition-line time { display: none; }
  .topic-filters { padding: 12px 0; gap: 6px; }
  .topic-filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: -20px; padding-inline: 20px; scrollbar-width: none; scroll-snap-type: x proximity; }
  .topic-filters::-webkit-scrollbar { display: none; }
  .topic-filters a { flex: 0 0 auto; scroll-snap-align: start; }
  .topic-filters a { font-size: 11px; min-height: 36px; padding: 7px 9px; }
  .topic-full { display: none; }
  .topic-short { display: inline; }
  .newspaper .digest-grid, .newspaper.summary-top .digest-grid, .newspaper.summary-hidden .digest-grid { grid-template-columns: minmax(0, 1fr); padding: 18px 0 30px; gap: 22px; }
  .newspaper .issue-summary { position: static; padding: 0 0 14px; border-top: 0; border-bottom: 1px solid var(--line); max-width: none; }
  .issue-summary h1 { font-size: min(var(--size-summary), 25px); margin: 6px 0 4px; line-height: 1.15; }
  .newspaper .eyebrow { font-size: max(10px, var(--size-small)); }
  .desktop-dek, .issue-links, .issue-toc, .sidebar-note { display: none; }
  .mobile-dek { display: block; font-size: 13px; color: var(--muted); }
  .mobile-dek summary { cursor: pointer; min-height: 36px; padding-block: 8px; width: fit-content; }
  .mobile-dek .dek { padding: 6px 0 10px; }
  .newspaper .prose h3 { font-size: min(var(--size-news-title), 27px); line-height: 1.16; margin-bottom: 10px; }
  .newspaper .prose p, .newspaper .prose li { font-size: min(var(--size-prose), 19px); line-height: min(var(--line-prose), 1.65); }
  .newspaper .section-label { margin-bottom: 13px; }
  .newspaper .sources { margin-inline: 0; padding: 18px; }
  .newspaper .support { grid-template-columns: 1fr; gap: 16px; padding: 22px; }
  .newspaper .support h2, .newspaper .section-head h2 { font-size: min(var(--size-section), 30px); }
  .donation-address { flex-wrap: wrap; }
  .donation-address input { flex-basis: 100%; }
  .donation-address button { min-height: 42px; }
  .newspaper .archive { padding: 36px 0; }
  .newspaper .section-head { display: block; }
  .rss-link { display: inline-block; margin-top: 15px; }
  .newspaper .archive-list a { grid-template-columns: minmax(0, 1fr); gap: 7px; }
  .newspaper .archive-list time { grid-column: auto; }
  .newspaper .archive-list span { display: none; }
  .newspaper footer { gap: 20px; flex-direction: column; }
}
@media (max-width: 380px) {
  .paper { padding-inline: 16px; }
  .newspaper .main-nav { gap: 10px; }
}
/* Match the compact editorial proportions of the desktop reading column. */
@media (max-width: 760px) {
  .newspaper .site-header { min-height: 66px; padding: 9px 0; }
  .brand-mark { width: 25px; height: 25px; }
  .newspaper .masthead { font-size: clamp(20px, calc(var(--size-masthead) * .52), 26px); }
  .newspaper .main-nav a { font-size: 11px; }
  .edition-line { font-size: 11px; padding: 7px 0; }
  .topic-filters { padding: 9px 0; gap: 5px; }
  .topic-filters a { font-size: 10px; min-height: 30px; padding: 5px 7px; }
  .newspaper .digest-grid, .newspaper.summary-top .digest-grid, .newspaper.summary-hidden .digest-grid { padding: 13px 0 26px; gap: 13px; }
  .newspaper .issue-summary { padding-bottom: 8px; }
  .issue-summary h1 { font-size: clamp(17px, calc(var(--size-summary) * .65), 22px); line-height: 1.2; margin: 4px 0 2px; }
  .mobile-dek { font-size: 11px; }
  .mobile-dek summary { min-height: 30px; padding: 5px 0; }
  .newspaper .section-label { font-size: 10px; margin-bottom: 9px; }
  .newspaper .prose h3 { font-size: clamp(17px, calc(var(--size-news-title) * .66), 23px); line-height: 1.2; margin-bottom: 7px; }
  .newspaper .prose p, .newspaper .prose li { font-size: clamp(13px, calc(var(--size-prose) * .78), 17px); line-height: 1.58; }
  .newspaper .news-item { padding-bottom: 16px; }
  .newspaper .news-item + .news-item { padding-top: 16px; }
  .newspaper .news-section + .news-section { margin-top: 23px; }
  .newspaper .sources { padding: 15px; }
  .newspaper .sources a { font-size: 12px; }
  .newspaper .archive-list strong { font-size: 19px; }
}
/* One editorial introduction replaces the sidebar, chip row and repeated contents lists. */
.newspaper .digest-grid,
.newspaper.summary-top .digest-grid,
.newspaper.summary-hidden .digest-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  width: min(100%, 780px);
  margin-inline: auto;
  padding: 24px 0 42px;
}
.newspaper .issue-summary,
.newspaper.summary-top .issue-summary {
  position: static;
  top: auto;
  max-width: none;
  width: 100%;
  padding: 16px 0 20px;
  border-top: 3px double var(--forest);
  border-bottom: 1px solid var(--line);
}
.newspaper .issue-summary h1 {
  max-width: 24ch;
  margin: 5px 0 10px;
  font-size: clamp(28px, var(--size-summary), 44px);
  line-height: 1.08;
}
.newspaper .issue-summary .dek {
  max-width: 72ch;
  color: var(--ink);
  font: 400 16px/1.6 var(--font-ui);
}
.issue-hashtag {
  display: inline;
  color: var(--forest);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--forest) 38%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.issue-hashtag:hover,
.issue-hashtag[aria-current] {
  color: var(--ink);
  text-decoration-color: var(--forest);
  background: color-mix(in srgb, var(--forest) 10%, transparent);
}
.newspaper .issue { max-width: none; width: 100%; }
.newspaper .publication-meta { margin: 16px 0 18px; }
#stories { scroll-margin-top: 18px; }

@media (max-width: 760px) {
  .newspaper .digest-grid,
  .newspaper.summary-top .digest-grid,
  .newspaper.summary-hidden .digest-grid { padding: 15px 0 26px; }
  .newspaper .issue-summary,
  .newspaper.summary-top .issue-summary { padding: 8px 0 15px; }
  .newspaper .issue-summary h1 {
    max-width: none;
    margin: 4px 0 9px;
    font-size: clamp(25px, var(--size-summary), 32px);
    line-height: 1.12;
  }
  .newspaper .issue-summary .dek { font-size: 14px; line-height: 1.55; }
  .newspaper .publication-meta { margin: 13px 0 16px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* A small invitation to install the newspaper without pushing the stories away. */
.newspaper .brand-mark { opacity: 1; }
.newspaper .brand-mark img { width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 760px) { .newspaper .brand-mark { width: 34px; height: 34px; } }
.install-strip { display: flex; align-items: center; gap: 12px; margin: 12px auto 0; width: min(100%, 780px); padding: 8px 12px; border: 1px solid color-mix(in srgb, var(--forest) 27%, transparent); border-radius: 5px; background: color-mix(in srgb, var(--paper) 88%, white); font: 12px/1.4 var(--font-ui); }
.install-strip img { width: 38px; height: 38px; flex: none; }
.install-strip p { margin: 0; flex: 1; }
.install-strip strong { color: var(--forest); }
.install-strip > div { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.install-strip a { color: var(--forest); font-weight: 700; white-space: nowrap; }
.install-strip button, .install-main-button { cursor: pointer; border: 0; border-radius: 4px; padding: 9px 12px; background: var(--forest); color: var(--paper); font: 700 12px var(--font-ui); }
.install-page { max-width: 820px; margin-inline: auto; }
.install-page .page-heading { padding-bottom: 20px; }
.install-hero-logo { display: block; width: 96px; height: 96px; margin: 8px 0 18px; }
.install-main-button { margin-top: 16px; font-size: 14px; padding: 12px 16px; }
.install-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.install-steps section { padding: 18px; border: 1px solid var(--line); }
.install-steps h2 { margin: 0 0 10px; font: 600 22px/1.2 var(--font-editorial); }
.install-steps p { margin: 0; font: 13px/1.6 var(--font-ui); }
.install-note { margin: 22px 0 40px; color: var(--muted); font: 12px/1.6 var(--font-ui); }
@media (max-width: 760px) {
  .install-strip { gap: 9px; padding: 7px 9px; margin-top: 8px; font-size: 11px; }
  .install-strip img { width: 31px; height: 31px; }
  .install-strip p { min-width: 0; }
  .install-strip > div { margin-left: auto; }
  .install-strip button { padding: 8px 9px; }
  .install-steps { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 420px) {
  .install-strip { flex-wrap: wrap; }
  .install-strip p { flex-basis: calc(100% - 45px); }
  .install-strip > div { padding-left: 40px; margin-left: 0; }
}

/* Small editorial drawings give each story a visual cue without turning the page into cards. */
.story-head { display: grid; grid-template-columns: 58px minmax(0, 1fr); align-items: start; gap: 13px; margin: 0 0 12px; }
.story-head-copy { min-width: 0; }
.story-spot, .story-page-icon { display: block; width: 58px; height: 58px; padding: 2px; flex: none; overflow: visible; background: radial-gradient(circle, #e8dfbc 0 47%, transparent 72%); }
.newspaper .story-head h3, .newspaper .story-list .story-head h2 { margin: 0; }
.newspaper .story-head .story-label { margin: 1px 0 5px !important; }
.newspaper .story-list .story-head { margin-bottom: 10px; }
.story-page-heading .story-page-icon { width: 72px; height: 72px; margin: 0 0 12px; }
@media (max-width: 760px) {
  .story-head { grid-template-columns: 44px minmax(0, 1fr); gap: 10px; margin-bottom: 9px; }
  .story-spot { width: 44px; height: 44px; }
  .story-page-heading .story-page-icon { width: 58px; height: 58px; }
}
