:root {
  --paper: #f3efe6;
  --ink: #17221c;
  --muted: #6f766f;
  --line: rgba(23, 34, 28, .16);
  --green: #173d2a;
  --acid: #d8f26a;
  --white: #fffdf8;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 76% 0%, rgba(216, 242, 106, .2), transparent 30rem),
    var(--paper);
  font-family: Manrope, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
button { font: inherit; }

.site-header {
  height: 84px;
  padding: 0 clamp(24px, 5vw, 80px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.brand { display: inline-flex; align-items: center; gap: 11px; width: fit-content; text-decoration: none; font-size: 20px; font-weight: 700; letter-spacing: -.04em; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--green); color: var(--acid); font: 500 12px "DM Mono", monospace; letter-spacing: -.05em; }
.top-nav { display: flex; gap: 34px; }
.top-nav a { color: var(--muted); text-decoration: none; font-size: 13px; }
.top-nav a:hover { color: var(--ink); }
.refresh-button { justify-self: end; display: flex; align-items: center; gap: 8px; padding: 10px 15px; border: 1px solid var(--line); border-radius: 99px; background: transparent; cursor: pointer; }
.refresh-button svg { width: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.refresh-button.loading svg { animation: spin .8s linear infinite; }

main { width: min(1160px, calc(100% - 48px)); margin: auto; }
.hero { padding: clamp(64px, 9vw, 130px) 0 96px; }
.edition-line { display: flex; justify-content: space-between; align-items: center; font: 400 11px "DM Mono", monospace; text-transform: uppercase; letter-spacing: .09em; }
.live-dot { display: flex; align-items: center; gap: 7px; }
.live-dot i { width: 7px; height: 7px; background: #dff75c; border: 1px solid var(--green); border-radius: 50%; box-shadow: 0 0 0 4px rgba(216,242,106,.35); }
h1 { max-width: 820px; margin: 42px 0 18px; font: 600 clamp(64px, 10vw, 142px)/.83 Newsreader, serif; letter-spacing: -.07em; }
.dek { max-width: 640px; margin: 0 0 58px auto; color: var(--muted); font: 400 clamp(17px, 2vw, 21px)/1.55 Newsreader, serif; }
.brief-card { position: relative; overflow: hidden; display: grid; grid-template-columns: 180px 1fr; gap: 24px 40px; padding: 36px 40px; color: #edf2ec; background: var(--green); border-radius: 2px; }
.brief-card::after { content: ""; position: absolute; width: 320px; height: 320px; right: -180px; top: -210px; border: 1px solid rgba(216,242,106,.3); border-radius: 50%; box-shadow: 0 0 0 42px rgba(216,242,106,.04), 0 0 0 84px rgba(216,242,106,.03); }
.brief-label { padding-top: 5px; font: 400 11px "DM Mono", monospace; text-transform: uppercase; letter-spacing: .08em; color: #aeb9b1; }
.brief-label span { color: var(--acid); margin-right: 9px; }
.brief-list { position: relative; z-index: 1; margin: 0; padding: 0; list-style: none; counter-reset: brief; }
.brief-list li { counter-increment: brief; display: grid; grid-template-columns: 34px 1fr; column-gap: 16px; padding: 0 0 18px; margin: 0 0 18px; border-bottom: 1px solid rgba(255,255,255,.14); }
.brief-list li:last-child { padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }
.brief-list li::before { content: counter(brief, decimal-leading-zero); padding-top: 4px; color: var(--acid); font: 400 10px "DM Mono", monospace; }
.brief-list strong { display: block; font: 500 clamp(20px, 2.2vw, 28px)/1.15 Newsreader, serif; letter-spacing: -.02em; }
.brief-list span { grid-column: 2; display: block; margin-top: 6px; color: #b9c5bd; font-size: 12px; line-height: 1.55; }
.brief-meta { grid-column: 2; display: flex; gap: 28px; font: 300 10px "DM Mono", monospace; color: #aeb9b1; text-transform: uppercase; letter-spacing: .06em; }

.story-section { padding: 98px 0 110px; border-top: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; gap: 30px; align-items: end; margin-bottom: 52px; }
.eyebrow { font: 400 10px "DM Mono", monospace; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
h2 { margin: 9px 0 0; font: 500 clamp(36px, 5vw, 62px)/1 Newsreader, serif; letter-spacing: -.045em; }
.active-topic { margin-top: 16px; padding: 7px 11px; color: var(--acid); border: 0; border-radius: 99px; background: var(--green); font: 400 10px "DM Mono", monospace; cursor: pointer; }
.filters { display: flex; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }
.filter { padding: 8px 13px; border: 1px solid var(--line); border-radius: 99px; background: transparent; color: var(--muted); font-size: 11px; cursor: pointer; }
.filter.active, .filter:hover { color: var(--acid); border-color: var(--green); background: var(--green); }
.lead-grid { display: grid; grid-template-columns: 1.8fr 1fr; min-height: 470px; margin-bottom: 50px; border: 1px solid var(--line); background: var(--white); }
.lead-story { position: relative; min-height: 470px; display: flex; align-items: end; padding: 42px; overflow: hidden; color: white; background: var(--green); text-decoration: none; }
.lead-story::before { content:""; position:absolute; inset:0; background: linear-gradient(10deg, rgba(8,23,15,.94), rgba(8,23,15,.08) 78%); z-index:1; }
.lead-story img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.72); }
.lead-content { position: relative; z-index: 2; max-width: 660px; }
.lead-content h3 { margin: 13px 0 15px; font: 500 clamp(31px, 4vw, 54px)/1.03 Newsreader, serif; letter-spacing: -.04em; }
.lead-content p { margin: 0; max-width: 610px; color: rgba(255,255,255,.78); font-size: 16px; line-height: 1.65; }
.lead-content .story-meta { color: var(--acid); }
.secondary-stack { display: grid; grid-template-rows: 1fr 1fr; }
.secondary-story { display: flex; flex-direction: column; justify-content: space-between; padding: 31px; color: inherit; text-decoration: none; border-left: 1px solid var(--line); }
.secondary-story + .secondary-story { border-top: 1px solid var(--line); }
.secondary-story h3 { margin: 20px 0 0; font: 500 clamp(21px, 2.4vw, 30px)/1.12 Newsreader, serif; letter-spacing: -.025em; }
.secondary-story p { display: -webkit-box; overflow: hidden; margin: 14px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
.story-meta { display: flex; flex-wrap: wrap; gap: 7px 14px; color: var(--muted); font: 400 9px "DM Mono", monospace; text-transform: uppercase; letter-spacing: .08em; }
.story-meta .category { color: #3f6a4f; }
.story-row { display: grid; grid-template-columns: 50px 1fr 30px; gap: 20px; padding: 29px 4px; border-top: 1px solid var(--line); }
.story-number { color: #9a9f99; font: 300 10px "DM Mono", monospace; padding-top: 3px; }
.story-copy h3 { max-width: 850px; margin: 10px 0 7px; font: 500 clamp(22px, 2.5vw, 31px)/1.12 Newsreader, serif; letter-spacing: -.025em; }
.story-copy h3 a { text-decoration: none; }
.story-copy h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.story-copy p { max-width: 820px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.65; }
.story-arrow { align-self: center; color: var(--muted); }
.load-more { display: block; margin: 36px auto 0; padding: 12px 18px; border: 1px solid var(--line); border-radius: 99px; background: transparent; cursor: pointer; }
.load-more:hover { background: var(--green); color: white; }
.load-more:disabled { color: var(--muted); border-style: dashed; background: transparent; cursor: default; opacity: .75; }
.load-more span { margin-left: 8px; }

.topics-section { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 80px; padding: 100px 0; border-top: 1px solid var(--line); }
.topics-note { max-width: 390px; margin: 20px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.topic-chart { display: grid; grid-template-columns: minmax(230px, .9fr) 1fr; gap: 42px; align-items: center; }
.donut-wrap { display: grid; place-items: center; }
.topic-donut { position: relative; width: min(29vw, 310px); aspect-ratio: 1; border-radius: 50%; background: conic-gradient(var(--donut)); box-shadow: inset 0 0 0 1px rgba(23,34,28,.08); transition: transform .3s ease; }
.topic-donut:hover { transform: rotate(-1deg) scale(1.01); }
.donut-center { position: absolute; inset: 23%; z-index: 2; display: grid; place-content: center; text-align: center; border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 1px var(--line); }
.donut-center strong { font: 500 clamp(25px, 4vw, 43px)/1 Newsreader, serif; letter-spacing: -.04em; }
.donut-center span { max-width: 80px; margin: 7px auto 0; color: var(--muted); font: 400 8px/1.35 "DM Mono", monospace; text-transform: uppercase; }
.donut-hit { position: absolute; left: 50%; top: 50%; z-index: 3; width: 34px; height: 34px; margin: -17px; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; transform: rotate(var(--angle)) translateY(-126px) rotate(calc(var(--angle) * -1)); }
.donut-hit:focus-visible { outline: 2px solid var(--acid); background: rgba(255,255,255,.5); }
.topic-legend { border-top: 1px solid var(--line); }
.topic-legend-row { display: grid; grid-template-columns: 12px 1fr 28px; gap: 12px; align-items: center; width: 100%; padding: 11px 5px; color: var(--ink); border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; transition: padding .2s ease, background .2s ease; }
.topic-legend-row:hover, .topic-legend-row.active { padding-left: 12px; background: rgba(255,255,255,.48); }
.topic-legend-row > i { width: 9px; height: 9px; border-radius: 50%; background: var(--topic-color); }
.topic-name { font: 500 17px Newsreader, serif; letter-spacing: -.02em; }
.topic-count { color: var(--muted); font: 400 9px "DM Mono", monospace; text-align: right; }
.topic-legend-row.active .topic-name { color: #365e43; }
footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; padding: 38px clamp(24px, 5vw, 80px); color: #d8dfda; background: var(--green); font-size: 11px; }
footer > p { margin: 0; }
.source-note { justify-self: end; color: #8fa095; }
.footer-brand { color: white; }

.skeleton { background: linear-gradient(90deg, rgba(23,61,42,.05), rgba(23,61,42,.12), rgba(23,61,42,.05)); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
.side-skeleton { border-left: 1px solid var(--line); }
.error-state { grid-column: 1/-1; display: grid; place-items: center; min-height: 300px; padding: 40px; text-align: center; color: var(--muted); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { to { background-position: -200% 0; } }

@media (max-width: 760px) {
  .site-header { height: 70px; grid-template-columns: 1fr auto; padding: 0 20px; }
  .top-nav { display: none; }
  main { width: min(100% - 32px, 1160px); }
  .hero { padding: 56px 0 68px; }
  h1 { margin-top: 32px; font-size: clamp(61px, 20vw, 90px); }
  .dek { margin: 28px 0 40px; }
  .brief-card { grid-template-columns: 1fr; padding: 28px; }
  .brief-meta { grid-column: 1; flex-direction: column; gap: 7px; }
  .story-section { padding: 70px 0; }
  .section-heading { align-items: start; flex-direction: column; }
  .filters { justify-content: start; }
  .lead-grid { grid-template-columns: 1fr; }
  .secondary-story { border-left: 0; border-top: 1px solid var(--line); }
  .story-row { grid-template-columns: 30px 1fr 15px; gap: 8px; }
  .topics-section { grid-template-columns: 1fr; gap: 38px; padding: 70px 0; }
  .topic-chart { grid-template-columns: 1fr; gap: 36px; }
  .topic-donut { width: min(78vw, 310px); }
  footer { grid-template-columns: 1fr; text-align: left; }
  footer .source-note { justify-self: start; }
}
