:root {
  color-scheme: light;
  --paper: #f5f4ee;
  --ink: #202923;
  --muted: #68716b;
  --line: #d9ddd5;
  --green: #315c47;
  --lime: #c9dc76;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'Segoe UI', Arial, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
a { color: inherit; }
.masthead, main, .footer { width: min(1320px, calc(100% - 72px)); margin-inline: auto; }
.masthead { height: 76px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.wordmark { font-size: 17px; font-weight: 700; text-decoration: none; }
.wordmark span { margin-left: 6px; color: var(--green); font-weight: 400; }
.issue-note { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #71956c; }
.update-button { height: 40px; padding: 0 15px; border: 1px solid var(--ink); border-radius: 3px; background: transparent; color: var(--ink); font-size: 13px; font-weight: 600; cursor: pointer; }
.update-button span { margin-right: 6px; font-size: 18px; vertical-align: -1px; }
.update-button:hover { background: var(--ink); color: white; }
.update-button:disabled { opacity: .6; cursor: wait; }
.is-loading span { display: inline-block; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.intro { position: relative; display: grid; grid-template-columns: 1fr 320px; align-items: end; padding: 68px 0 48px; border-bottom: 1px solid var(--line); overflow: hidden; }
.eyebrow { margin: 0 0 14px; color: var(--green); font-size: 10px; font-weight: 700; letter-spacing: 1px; }
.intro h1 { margin: 0; font: 500 66px/.98 var(--serif); }
.intro h1 em { color: var(--green); font-weight: 500; }
.intro-deck { max-width: 300px; margin: 0 0 5px; color: #5f6961; font: 16px/1.65 var(--serif); }
.intro-mark { position: absolute; top: 28px; right: 25px; display: grid; width: 94px; height: 94px; place-items: center; border: 1px solid #ccd3c7; border-radius: 50%; color: #688269; font: 44px var(--serif); }
.intro-mark i { position: absolute; width: 1px; height: 111px; background: #d8ddd4; transform: rotate(45deg); }
.intro-mark i:nth-of-type(2) { transform: rotate(-45deg); }
.intro-mark i:nth-of-type(3) { height: 60px; transform: rotate(90deg); }
.featured { padding: 32px 0 66px; }
.feature-story { position: relative; display: flex; height: 390px; align-items: flex-end; overflow: hidden; background: #254637; color: white; }
.feature-story > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13,34,25,.84), rgba(13,34,25,.48) 48%, rgba(13,34,25,.04)), linear-gradient(0deg, rgba(13,34,25,.28), transparent 50%); }
.feature-copy { position: relative; z-index: 1; max-width: 740px; padding: 42px 48px; }
.feature-copy .eyebrow { color: var(--lime); }
.feature-copy h2 { max-width: 680px; margin: 0 0 12px; font: 600 36px/1.12 var(--serif); }
.feature-summary { display: -webkit-box; max-width: 630px; margin: 0 0 20px; overflow: hidden; color: #f0f2ec; font-size: 14px; line-height: 1.6; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.feature-meta { display: flex; align-items: center; gap: 22px; color: #e0e7df; font-size: 11px; }
.feature-meta a { color: var(--lime); font-weight: 600; text-decoration: none; }
.section-heading { display: flex; align-items: end; justify-content: space-between; padding-bottom: 19px; border-bottom: 1px solid var(--line); }
.section-heading .eyebrow { margin-bottom: 8px; }
.section-heading h2 { margin: 0; font: 500 29px/1.15 var(--serif); }
.story-count { margin: 0; color: var(--muted); font-size: 12px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 0 22px; }
.subject-filters { display: flex; flex-wrap: wrap; gap: 7px; }
.filter-chip { padding: 8px 11px; border: 1px solid transparent; border-radius: 2px; background: transparent; color: #5c665e; font-size: 11px; cursor: pointer; }
.filter-chip:hover { border-color: #aeb8ac; }
.filter-chip.active { background: var(--green); color: white; }
.search-box { display: flex; min-width: 240px; height: 38px; align-items: center; gap: 8px; border-bottom: 1px solid #9ea99d; color: var(--muted); }
.search-box > span { font-size: 20px; }
.search-box input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; font-size: 12px; }
.search-box kbd { padding: 2px 6px; border: 1px solid var(--line); color: #879087; font-size: 10px; }
.source-notice { margin: 0 0 15px; padding: 10px 12px; border-left: 2px solid #bb8d47; background: #f0ecde; color: #755e38; font-size: 12px; }
.story-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.story-card { display: flex; min-width: 0; min-height: 260px; flex-direction: column; padding: 19px 20px 17px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,254,250,.44); }
.story-card-top { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 10px; }
.story-card-top span { color: var(--green); font-weight: 700; }
.story-card-top time { text-align: right; white-space: nowrap; }
.story-card h3 { margin: 20px 0 10px; font: 600 21px/1.25 var(--serif); }
.story-card h3 a { text-decoration: none; }
.story-card h3 a:hover { color: var(--green); }
.story-card > p { display: -webkit-box; margin: 0 0 18px; overflow: hidden; color: #677068; font-size: 12px; line-height: 1.65; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
.story-image { height: 150px; margin: 17px -20px 0; }
.story-image img { width: 100%; height: 100%; object-fit: cover; }
.story-card:has(.story-image) h3 { margin-top: 15px; }
.story-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 15px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { padding: 5px 7px; background: #e6eadf; color: #506554; font-size: 9px; }
.read-link { width: 28px; height: 28px; color: var(--green); font-size: 19px; text-align: center; text-decoration: none; }
.empty-state { padding: 60px 15px; color: var(--muted); text-align: center; }
.empty-state > span { color: var(--green); font: 42px var(--serif); }
.empty-state p { font: 19px var(--serif); }
.empty-state button { border: 0; background: none; color: var(--green); text-decoration: underline; cursor: pointer; }
.load-error { padding: 24px; color: #725c39; font-size: 13px; }
.footer { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding: 25px 0 34px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.footer span:first-child { color: var(--green); font-weight: 700; }

@media (max-width: 900px) {
  .masthead, main, .footer { width: calc(100% - 48px); }
  .intro { grid-template-columns: 1fr 260px; padding-top: 62px; }
  .intro-mark { right: 0; }
  .story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toolbar { align-items: flex-start; flex-direction: column; }
  .search-box { align-self: flex-end; }
  .feature-story { height: 370px; }
  .feature-copy { padding: 34px; }
}

@media (max-width: 600px) {
  .masthead, main, .footer { width: calc(100% - 32px); }
  .masthead { height: 64px; }
  .wordmark { font-size: 14px; }
  .issue-note { max-width: 120px; font-size: 10px; }
  .update-button { height: 36px; padding: 0 10px; font-size: 12px; }
  .intro { display: block; padding: 49px 0 31px; }
  .intro h1 { font-size: 54px; }
  .intro-deck { max-width: 310px; margin-top: 22px; font-size: 15px; }
  .intro-mark { top: 34px; right: 4px; width: 62px; height: 62px; font-size: 31px; }
  .intro-mark i { height: 74px; }
  .intro-mark i:nth-of-type(3) { height: 42px; }
  .featured { padding: 22px 0 46px; }
  .feature-story { height: 440px; align-items: flex-end; }
  .feature-shade { background: linear-gradient(0deg, rgba(12,31,24,.9), rgba(12,31,24,.28) 75%, rgba(12,31,24,.04)); }
  .feature-copy { padding: 23px 20px; }
  .feature-copy h2 { font-size: 29px; }
  .feature-summary { font-size: 13px; -webkit-line-clamp: 4; }
  .feature-meta { flex-wrap: wrap; gap: 11px 18px; }
  .section-heading h2 { font-size: 25px; }
  .toolbar { gap: 11px; padding: 15px 0; }
  .subject-filters { width: calc(100vw - 32px); flex-wrap: nowrap; overflow: auto; padding-bottom: 4px; scrollbar-width: thin; }
  .filter-chip { padding: 8px 10px; white-space: nowrap; }
  .search-box { width: 100%; min-width: 0; align-self: stretch; }
  .story-grid { grid-template-columns: 1fr; }
  .story-card { min-height: 0; padding: 17px 16px 14px; }
  .story-card h3 { margin-top: 15px; font-size: 20px; }
  .story-card > p { -webkit-line-clamp: 3; }
  .story-image { margin-right: -16px; margin-left: -16px; }
  .footer { flex-direction: column; margin-top: 35px; padding: 20px 0 26px; }
}

@media (min-width: 1300px) {
  .story-card { min-height: 280px; padding: 22px 24px 18px; }
  .story-card h3 { font-size: 23px; }
}
