:root {
  --paper: #f3f1eb;
  --paper-deep: #e9e6de;
  --surface: #fbfaf7;
  --ink: #17211e;
  --muted: #64706b;
  --line: #d4d7d0;
  --green: #145f51;
  --green-soft: #dce9e3;
  --red: #a34232;
  --red-soft: #f2e1dc;
  --amber: #8a5a18;
  --serif: "Iowan Old Style", "Palatino Linotype", "Songti SC", "STSong", "Noto Serif CJK SC", Georgia, serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --content: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  min-width: 320px;
  background: radial-gradient(circle at 90% 0%, rgba(20, 95, 81, .08), transparent 30rem), var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
::selection { background: #bfd6cc; }
.wrap { width: min(calc(100% - var(--gutter) * 2), var(--content)); margin-inline: auto; }
.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; }
.skip-link { position: fixed; top: -80px; left: 20px; z-index: 100; padding: 10px 16px; background: var(--ink); color: white; }
.skip-link:focus { top: 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(23, 33, 30, .13);
  background: rgba(243, 241, 235, .92);
  backdrop-filter: blur(16px);
}
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 13px; text-decoration: none; }
.brand > span:last-child { display: flex; flex-direction: column; }
.brand strong { font-family: var(--serif); font-size: 1.18rem; letter-spacing: .08em; }
.brand small { color: var(--muted); font-family: var(--mono); font-size: .57rem; letter-spacing: .12em; }
.brand-mark { position: relative; display: block; width: 35px; height: 35px; border: 1px solid var(--green); border-radius: 50%; }
.brand-mark::before, .brand-mark::after, .brand-mark i { content: ""; position: absolute; border: 1px solid var(--green); border-radius: 50%; inset: 6px; }
.brand-mark::after { inset: 12px; background: var(--green); }
.brand-mark i:first-child { inset: 16px 3px 16px 16px; border: 0; border-radius: 0; background: var(--green); transform: rotate(-42deg); transform-origin: left center; }
.brand-mark i:nth-child(2), .brand-mark i:nth-child(3) { display: none; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a { color: var(--muted); font-size: .88rem; text-decoration: none; }
.site-nav a:hover { color: var(--green); }
.site-nav .blog-link { padding: 7px 15px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); }

.hero { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, .7fr); gap: clamp(48px, 8vw, 112px); align-items: end; padding-block: clamp(64px, 9vw, 124px) clamp(52px, 7vw, 90px); }
.eyebrow, .section-kicker { margin: 0 0 20px; color: var(--green); font-family: var(--mono); font-size: .7rem; letter-spacing: .13em; }
.eyebrow { display: flex; align-items: center; gap: 14px; }
.eyebrow::before { content: ""; width: 38px; height: 1px; background: var(--green); }
.hero h1 { margin: 0; font-family: var(--serif); font-size: clamp(3rem, 6.7vw, 6.4rem); font-weight: 500; line-height: 1.08; letter-spacing: .01em; }
.hero h1 em { color: var(--green); font-style: normal; white-space: nowrap; }
.hero-lead { max-width: 690px; margin: 30px 0 0; color: var(--muted); font-size: 1.04rem; line-height: 1.9; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 20px; border: 1px solid var(--ink); border-radius: 3px; text-decoration: none; cursor: pointer; }
.button.primary { background: var(--ink); color: white; }
.button.primary:hover { background: var(--green); border-color: var(--green); }
.button.secondary { background: transparent; }
.button.secondary:hover { border-color: var(--green); color: var(--green); }
.briefing { padding: 26px 0 4px 28px; border-left: 1px solid var(--line-strong, #b7bdb7); }
.briefing-head { display: flex; align-items: center; gap: 9px; font-size: .85rem; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #b38a43; box-shadow: 0 0 0 5px rgba(179, 138, 67, .12); }
.live-dot.ready { background: var(--green); box-shadow: 0 0 0 5px rgba(20, 95, 81, .12); }
.briefing-label { margin: 30px 0 7px; color: var(--muted); font-family: var(--mono); font-size: .62rem; letter-spacing: .1em; }
#generated-at { display: block; font-family: var(--serif); font-size: 1.25rem; }
.briefing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.briefing-grid div { display: flex; flex-direction: column; }
.briefing-grid strong { font-family: var(--serif); font-size: 1.65rem; font-weight: 500; }
.briefing-grid span { color: var(--muted); font-size: .7rem; }
.briefing-note { margin: 18px 0 0; color: var(--muted); font-size: .76rem; }

.metrics { border-block: 1px solid var(--line); background: rgba(251, 250, 247, .48); }
.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.metrics-grid > div { padding: 26px 30px; border-left: 1px solid var(--line); }
.metrics-grid > div:first-child { border-left: 0; padding-left: 0; }
.metrics-grid > div:last-child { padding-right: 0; }
.metrics-grid span, .metrics-grid small { display: block; color: var(--muted); }
.metrics-grid span { font-size: .76rem; }
.metrics-grid strong { display: block; margin-block: 3px; font-family: var(--serif); font-size: 2.1rem; font-weight: 500; line-height: 1.2; }
.metrics-grid small { font-size: .7rem; }

.deadline-section { margin-top: 44px; }
.deadline-section .section-kicker { margin-bottom: 12px; color: var(--red); }
.deadline-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }
.deadline-item { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 18px; border-left: 3px solid var(--red); background: var(--red-soft); text-decoration: none; }
.deadline-item strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .85rem; }
.deadline-item span { flex: 0 0 auto; color: var(--red); font-family: var(--mono); font-size: .73rem; }

.radar-section { padding-block: clamp(64px, 8vw, 100px); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 28px; }
.section-heading .section-kicker { margin-bottom: 8px; }
.section-heading h2 { margin: 0; font-family: var(--serif); font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 500; line-height: 1.2; }
.text-button { padding: 7px 0; border: 0; border-bottom: 1px solid currentColor; background: transparent; color: var(--green); cursor: pointer; }
.text-button:disabled { color: var(--muted); cursor: not-allowed; opacity: .55; }
.radar-toolbar { display: grid; grid-template-columns: auto minmax(190px, 1fr) auto; gap: 12px; padding: 12px; border: 1px solid var(--line); background: var(--surface); }
.view-tabs { display: flex; gap: 3px; padding: 3px; background: var(--paper-deep); }
.view-tabs button { min-height: 39px; padding: 7px 15px; border: 0; background: transparent; color: var(--muted); cursor: pointer; white-space: nowrap; }
.view-tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 5px rgba(23, 33, 30, .08); }
.search-box input, .select-box select, .sort-control select { width: 100%; min-height: 45px; border: 1px solid var(--line); border-radius: 0; background: white; color: var(--ink); }
.search-box input { padding: 9px 13px; }
.select-box select { padding: 9px 34px 9px 12px; }
.filter-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 15px 2px; border-bottom: 1px solid var(--line); }
.filter-options { display: flex; flex-wrap: wrap; gap: 22px; }
.filter-options label, .sort-control { color: var(--muted); font-size: .78rem; }
.filter-options label { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
.filter-options input { accent-color: var(--green); }
.sort-control { display: flex; align-items: center; gap: 9px; }
.sort-control select { min-height: 34px; padding: 4px 28px 4px 8px; }
.results-line { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-block: 20px 12px; color: var(--muted); font-size: .73rem; }
.results-line p { margin: 0; color: var(--ink); }
.event-list { border-top: 1px solid var(--ink); }
.event-card { display: grid; grid-template-columns: minmax(0, 1fr) 155px; gap: 26px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.event-main { min-width: 0; }
.event-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.badge { display: inline-flex; align-items: center; min-height: 23px; padding: 2px 8px; border: 1px solid var(--line); color: var(--muted); font-size: .65rem; }
.badge.whitelist { border-color: #a9c2b7; background: var(--green-soft); color: var(--green); }
.badge.urgent { border-color: #d9ada2; background: var(--red-soft); color: var(--red); }
.badge.ai { border-color: #c3b788; color: #715c20; }
.event-title { margin: 0; font-family: var(--serif); font-size: 1.28rem; font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }
.event-title a { text-decoration: none; }
.event-title a:hover { color: var(--green); text-decoration: underline; text-underline-offset: 4px; }
.event-summary { display: -webkit-box; overflow: hidden; margin: 10px 0 0; color: var(--muted); font-size: .85rem; line-height: 1.75; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.project-matches { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; }
.project-matches span { padding: 3px 8px; background: var(--paper-deep); color: #4f5c56; font-size: .67rem; }
.event-side { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.event-date { color: var(--muted); font-size: .73rem; }
.event-date strong { display: block; margin-top: 4px; color: var(--ink); font-family: var(--mono); font-size: .8rem; font-weight: 500; }
.event-date.urgent, .event-date.urgent strong { color: var(--red); }
.event-source { margin-top: 10px; color: var(--muted); font-size: .68rem; }
.event-actions { display: flex; gap: 13px; margin-top: auto; padding-top: 18px; }
.event-actions button, .event-actions a { padding: 2px 0; border: 0; border-bottom: 1px solid transparent; background: transparent; color: var(--green); font-size: .72rem; text-decoration: none; cursor: pointer; }
.event-actions button:hover, .event-actions a:hover { border-bottom-color: currentColor; }
.favorite-button[aria-pressed="true"] { color: var(--red); }
.empty-state { padding: 56px 20px; border-bottom: 1px solid var(--line); text-align: center; }
.empty-state strong { font-family: var(--serif); font-size: 1.35rem; }
.empty-state p { color: var(--muted); }
.empty-state .button { margin-top: 10px; }
.load-more { display: block; width: 100%; margin-top: 18px; padding: 12px; border: 1px solid var(--line); background: transparent; cursor: pointer; }
.load-more:hover { border-color: var(--green); color: var(--green); }

.sources-section { padding-block: clamp(64px, 8vw, 100px); }
.source-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(36px, 7vw, 90px); }
.source-list { border-top: 1px solid var(--ink); }
.source-row { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--line); }
.source-state { width: 7px; height: 7px; border-radius: 50%; background: #b38a43; }
.source-state.ok { background: var(--green); }
.source-state.error { background: var(--red); }
.source-row strong { display: block; font-size: .82rem; }
.source-row small { display: block; color: var(--muted); font-size: .67rem; overflow-wrap: anywhere; }
.source-row > span:last-child { color: var(--muted); font-family: var(--mono); font-size: .67rem; }
.method-notes article { display: grid; grid-template-columns: 42px 1fr; gap: 18px; padding-bottom: 24px; }
.method-notes article > span { color: var(--green); font-family: var(--mono); font-size: .72rem; }
.method-notes h3 { margin: 0 0 6px; font-family: var(--serif); font-size: 1.08rem; }
.method-notes p { margin: 0; color: var(--muted); font-size: .8rem; }
.site-footer { padding-block: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .72rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 20px; }

@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; gap: 46px; }
  .briefing { max-width: 560px; }
  .radar-toolbar { grid-template-columns: 1fr auto; }
  .view-tabs { grid-column: 1 / -1; }
  .view-tabs button { flex: 1; }
  .source-layout { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .header-inner { min-height: 68px; }
  .site-nav { gap: 14px; }
  .site-nav a:not(.blog-link) { display: none; }
  .brand small { font-size: .5rem; }
  .hero { padding-top: 54px; }
  .hero h1 { font-size: clamp(2.7rem, 12vw, 4.4rem); }
  .hero-lead { font-size: .94rem; }
  .briefing { padding-left: 20px; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .metrics-grid > div { padding: 20px; border-bottom: 1px solid var(--line); }
  .metrics-grid > div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .metrics-grid > div:nth-child(even) { padding-right: 0; }
  .metrics-grid > div:nth-child(n+3) { border-bottom: 0; }
  .section-heading { align-items: flex-start; }
  .radar-toolbar { grid-template-columns: 1fr; }
  .view-tabs { overflow-x: auto; }
  .view-tabs button { padding-inline: 10px; font-size: .78rem; }
  .filter-row, .results-line { align-items: flex-start; flex-direction: column; gap: 10px; }
  .event-card { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .event-side { align-items: flex-start; text-align: left; }
  .event-actions { margin-top: 8px; }
  .site-footer .wrap { flex-direction: column; gap: 4px; }
}

@media (max-width: 420px) {
  .site-nav .blog-link { padding-inline: 11px; font-size: .76rem; }
  .brand strong { font-size: 1rem; }
  .brand-mark { width: 31px; height: 31px; }
  .hero h1 { font-size: 2.65rem; }
  .briefing-grid { gap: 5px; }
  .briefing-grid span { font-size: .62rem; }
  .section-heading h2 { font-size: 1.85rem; }
  .text-button { font-size: .72rem; }
  .filter-options { gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
