:root {
  color-scheme: light;
  --paper: #f3f5ef;
  --ink: #1d2925;
  --muted: #68746d;
  --line: #d8ded5;
  --green: #27725d;
  --orange: #e27b4f;
  --blue: #477a93;
  --yellow: #e8c85b;
  --white: #fbfcf8;
  --sans: "DM Sans", "Segoe UI", sans-serif;
  --serif: "Newsreader", Georgia, serif;
  --mono: "DM Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image: radial-gradient(#8b9b8e22 0.65px, transparent 0.65px);
  background-size: 7px 7px;
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input, select { font: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.topbar {
  height: 67px;
  padding: 0 clamp(22px, 6vw, 88px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f3f5efeb;
}
.wordmark, .footer-mark { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 700; font-size: 16px; letter-spacing: 0; }
.mark { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; color: var(--white); background: var(--green); font-family: var(--serif); font-size: 17px; }
.topbar-note, .about-link, .eyebrow, .stamp-top, .stamp-bottom, .section-index, .story-meta, .story-category, .side-meta { font-family: var(--mono); letter-spacing: 0; }
.topbar-note { color: var(--muted); font-size: 9px; letter-spacing: .08em; }
.topbar-divider { padding: 0 9px; color: #a0aaa1; }
.live-dot { display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: var(--green); vertical-align: 1px; box-shadow: 0 0 0 3px #27725d1c; }
.about-link { text-decoration: none; color: var(--muted); font-size: 11px; }
.about-link span { color: var(--orange); }
.donate-link { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border: 1px solid var(--orange); color: #a64e2c; text-decoration: none; font-size: 10px; white-space: nowrap; }
.donate-link:hover { color: var(--white); background: var(--orange); }
.donate-link[hidden] { display: none; }

main { max-width: 1280px; margin: 0 auto; padding: 0 clamp(22px, 6vw, 88px); }
.intro { min-height: 313px; padding: 58px 0 49px; display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 1px solid var(--ink); animation: arrive .55s ease-out both; }
.eyebrow { margin: 0 0 15px; color: var(--green); text-transform: uppercase; font-size: 9px; letter-spacing: .12em; }
h1 { margin: 0; font-family: var(--serif); font-size: clamp(52px, 6.7vw, 82px); line-height: .91; font-weight: 500; letter-spacing: 0; }
h1 em { color: var(--green); font-weight: 500; }
.intro-description { max-width: 390px; margin: 22px 0 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.issue-stamp { min-width: 105px; height: 105px; margin: 0 2px 8px 30px; border: 1px solid var(--orange); border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--orange); transform: rotate(8deg); }
.stamp-top, .stamp-bottom { font-size: 7px; letter-spacing: .1em; }
.stamp-number { margin: 4px 0; font-family: var(--serif); font-size: 25px; }

.brief { padding: 27px 0 73px; }
.brief-head { display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brief-title { display: flex; align-items: baseline; gap: 13px; white-space: nowrap; }
.section-index { color: var(--orange); font-size: 10px; }
h2 { margin: 0; font-family: var(--serif); font-size: 26px; font-weight: 500; letter-spacing: 0; }
.story-count { color: var(--muted); font-family: var(--mono); font-size: 9px; }
.controls { display: flex; align-items: center; gap: 9px; }
.search-box, .select-wrap { height: 35px; border: 1px solid var(--line); background: var(--white); display: inline-flex; align-items: center; }
.search-box { width: 190px; padding: 0 10px; gap: 7px; }
.search-icon { color: var(--green); font-size: 20px; line-height: 1; transform: rotate(-20deg); }
.search-box input { width: 100%; min-width: 0; padding: 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 11px; }
.search-box input::placeholder { color: #8d9991; }
.select-wrap { position: relative; padding: 0 10px; gap: 9px; }
.select-wrap select { max-width: 130px; appearance: none; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 10px; cursor: pointer; }
.select-wrap > span:last-child { color: var(--muted); pointer-events: none; font-size: 13px; }
.sort-select select { max-width: 95px; }
.category-nav { min-height: 48px; margin-top: 21px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; align-items: stretch; gap: 25px; overflow-x: auto; scrollbar-width: thin; }
.category-button { flex: 0 0 auto; padding: 0 1px; border: 0; border-bottom: 2px solid transparent; color: var(--muted); background: transparent; font-size: 10px; cursor: pointer; }
.category-button.is-active { border-bottom-color: var(--green); color: var(--ink); font-weight: 700; }
.category-count { margin-left: 3px; color: #8c9890; font-family: var(--mono); font-size: 8px; }
.feed-layout { display: grid; grid-template-columns: minmax(0, 1fr) 205px; column-gap: clamp(28px, 5vw, 72px); }
.story-list { min-width: 0; }
.story-card { position: relative; padding: 23px 0 24px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 90px minmax(0, 1fr); column-gap: 22px; animation: arrive .35s ease-out both; }
.story-card:nth-child(2) { animation-delay: .04s; }
.story-card:nth-child(3) { animation-delay: .08s; }
.story-meta { padding-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.7; }
.story-category { display: inline-block; margin-bottom: 8px; color: var(--green); text-transform: uppercase; font-size: 8px; letter-spacing: .08em; }
.story-card:nth-child(3n) .story-category { color: var(--orange); }
.story-card:nth-child(3n + 2) .story-category { color: var(--blue); }
.story-body { min-width: 0; }
.story-title { max-width: 680px; margin: 0; font-family: var(--serif); font-size: 24px; line-height: 1.14; font-weight: 500; letter-spacing: 0; }
.story-title a { text-decoration: none; text-decoration-color: var(--orange); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.story-title a:hover { text-decoration: underline; }
.story-excerpt { max-width: 660px; margin: 9px 0 11px; color: #5d6962; font-size: 11px; line-height: 1.65; }
.story-source { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--muted); font-family: var(--mono); font-size: 8px; text-transform: uppercase; letter-spacing: .04em; }
.source-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--orange); }
.read-link { margin-left: 3px; color: var(--green); text-decoration: none; font-size: 8px; }
.read-link:hover { text-decoration: underline; }
.side-note { align-self: start; margin-top: 30px; padding: 18px 0 0 18px; border-left: 1px solid var(--orange); }
.side-note .eyebrow { margin-bottom: 19px; font-size: 8px; }
.side-quote { margin: 0; font-family: var(--serif); font-size: 21px; line-height: 1.16; }
.side-rule { width: 24px; height: 2px; margin: 20px 0 14px; background: var(--yellow); }
.side-copy { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.75; }
.side-meta { margin: 22px 0 0; color: var(--green); font-size: 7px; line-height: 1.8; letter-spacing: .06em; }
.loading-state { padding: 70px 0; display: flex; align-items: center; justify-content: center; gap: 11px; color: var(--muted); font-size: 11px; }
.loading-state p { margin: 0; }
.loading-mark { width: 13px; height: 13px; border: 1px solid var(--line); border-top-color: var(--green); border-radius: 50%; animation: spin .7s linear infinite; }
.empty-state, .error-state { padding: 65px 15px; text-align: center; }
.empty-symbol { color: var(--orange); font-family: var(--serif); font-size: 32px; }
.empty-state h3, .error-state h3 { margin: 8px 0; font-family: var(--serif); font-size: 24px; font-weight: 500; }
.empty-state p, .error-state p { color: var(--muted); font-size: 11px; }
.empty-state button, .error-state button { margin-top: 8px; padding: 8px 12px; border: 1px solid var(--green); color: var(--green); background: transparent; font-size: 10px; cursor: pointer; }
.footer { min-height: 74px; padding: 16px clamp(22px, 6vw, 88px); border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.footer-mark { font-family: var(--serif); font-size: 17px; }
.footer-mark span { color: var(--orange); }
.footer p, .back-top { color: var(--muted); font-family: var(--mono); font-size: 8px; }
.back-top { text-decoration: none; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes arrive { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 850px) {
  .topbar { padding-right: 25px; padding-left: 25px; }
  main { padding-right: 25px; padding-left: 25px; }
  .feed-layout { grid-template-columns: minmax(0, 1fr) 175px; column-gap: 27px; }
  .brief-head { align-items: flex-start; flex-direction: column; gap: 14px; }
  .controls { width: 100%; }
  .search-box { flex: 1; }
}
@media (max-width: 620px) {
  .topbar { height: 58px; padding: 0 18px; }
  .topbar-note { display: none; }
  .donate-link { padding: 6px 7px; font-size: 9px; }
  main { padding: 0 19px; }
  .intro { min-height: 270px; padding: 45px 0 34px; align-items: flex-end; }
  h1 { font-size: 57px; }
  .intro-description { max-width: 275px; margin-top: 17px; font-size: 11px; }
  .issue-stamp { min-width: 72px; height: 72px; margin: 0 0 4px 10px; }
  .stamp-top, .stamp-bottom { font-size: 5px; }
  .stamp-number { margin: 2px 0; font-size: 18px; }
  .brief { padding-top: 22px; }
  .brief-title { gap: 9px; }
  h2 { font-size: 24px; }
  .controls { flex-wrap: wrap; }
  .search-box { flex-basis: 100%; }
  .select-wrap { flex: 1; justify-content: space-between; }
  .select-wrap select { max-width: calc(100% - 13px); }
  .sort-select select { max-width: calc(100% - 13px); }
  .category-nav { gap: 19px; }
  .feed-layout { display: block; }
  .story-card { grid-template-columns: 1fr; gap: 8px; padding: 19px 0 21px; }
  .story-meta { display: flex; align-items: center; gap: 9px; padding: 0; }
  .story-category { margin: 0; }
  .story-title { font-size: 22px; }
  .story-excerpt { font-size: 10px; }
  .side-note { margin: 30px 0 0; padding: 14px 0 4px 15px; }
  .side-quote { max-width: 310px; font-size: 19px; }
  .side-copy { max-width: 340px; }
  .side-meta { margin-top: 13px; }
  .footer { padding: 16px 19px; flex-wrap: wrap; }
  .footer p { order: 3; width: 100%; margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}