:root {
  --bg: #f7f7f5;
  --paper: #ffffff;
  --ink: #252525;
  --muted: #787774;
  --line: #e8e7e4;
  --accent: #2f6f62;
  --accent-soft: #e5f1ed;
  --shadow: 0 16px 45px rgba(15, 23, 20, 0.07);
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 0%, rgba(47,111,98,.08), transparent 24rem),
    var(--bg);
  font: 15px/1.7 Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 0 5vw;
  border-bottom: 1px solid rgba(232,231,228,.8);
  background: rgba(247,247,245,.88);
  backdrop-filter: blur(16px);
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 700; letter-spacing: -.02em; }
.logo {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 8px;
  color: white;
  background: var(--ink);
  font-family: ui-serif, Georgia, serif;
}
.navlinks, .topbar > div { display: flex; gap: 24px; color: var(--muted); font-size: 14px; }
footer { padding: 30px 5vw 45px; color: #aaa9a5; font-size: 12px; text-align: center; letter-spacing: .04em; }
.text-link { flex: none; color: var(--accent); font-weight: 600; }
.breadcrumbs { display: flex; gap: 9px; margin-bottom: 18px; color: var(--muted); font-size: 13px; }

.shell { width: min(1080px, 90vw); margin: 0 auto; padding: 70px 0 100px; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 40px; }
.page-heading.compact { margin-bottom: 30px; }
.page-heading h1, .centered h1 { margin: 5px 0 8px; font: 700 clamp(34px, 5vw, 58px)/1.06 ui-serif, Georgia, serif; letter-spacing: -.045em; }
.page-heading.compact h1 { font-size: clamp(30px, 4vw, 46px); }
.page-heading p, .centered p { max-width: 660px; margin: 0; color: var(--muted); }
.eyebrow { color: var(--accent) !important; font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.heading-stat { min-width: 92px; padding: 12px 15px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.7); color: var(--muted); text-align: center; }
.heading-stat strong { display: block; color: var(--ink); font: 700 26px ui-serif, Georgia, serif; }

.topic-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.topic-card {
  position: relative;
  min-height: 220px;
  padding: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.topic-card:hover { transform: translateY(-3px); border-color: #d2d6d2; box-shadow: var(--shadow); color: inherit; }
.topic-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 30px; color: var(--muted); font-size: 12px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.card-number { margin-bottom: 30px; color: #a5a4a1; font: 12px/1.2 ui-monospace, monospace; }
.topic-card h2 { margin: 0 0 8px; font: 700 25px/1.2 ui-serif, Georgia, serif; letter-spacing: -.025em; }
.topic-card > p { margin: 0; color: var(--muted); }
.latest { position: absolute; right: 26px; bottom: 22px; left: 26px; display: flex; justify-content: space-between; gap: 15px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; }
.latest span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.latest time { flex: none; color: var(--muted); }
.empty { padding: 70px 30px; border: 1px dashed #cfceca; border-radius: 17px; color: var(--muted); text-align: center; background: rgba(255,255,255,.45); }
.empty-inline { color: var(--muted); }

.timeline { display: grid; gap: 30px; }
.date-group { display: grid; grid-template-columns: 120px 1fr; gap: 24px; }
.date-group > h2 { margin: 16px 0 0; color: var(--muted); font: 600 12px ui-monospace, monospace; }
.date-group .entry-row { grid-column: 2; }
.day { display: grid; grid-template-columns: 120px 1fr; gap: 24px; }
.day > h2 { margin: 16px 0 0; color: var(--muted); font: 600 12px ui-monospace, monospace; }
.entries { border-top: 1px solid var(--line); }
.entry-row { display: grid; grid-template-columns: 92px 1fr 20px; gap: 22px; align-items: baseline; padding: 22px 4px; border-bottom: 1px solid var(--line); }
.entry-row:hover { color: inherit; }
.entry-row time { color: var(--muted); font: 12px ui-monospace, monospace; }
.entry-row h3 { margin: 0 0 3px; font-size: 17px; }
.entry-row p { margin: 0; color: var(--muted); }
.arrow { color: #aaa; transition: transform .2s; }
.entry-row:hover .arrow { transform: translateX(4px); color: var(--accent); }

.document { width: min(720px, 100%); margin: 24px auto 0; padding: clamp(28px, 6vw, 62px); border: 1px solid var(--line); border-radius: 18px; background: var(--paper); box-shadow: var(--shadow); }
.document-header { padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.document-header h1 { margin: 8px 0 10px; font: 700 clamp(32px, 6vw, 52px)/1.1 ui-serif, Georgia, serif; letter-spacing: -.04em; }
.lead { margin: 0 0 18px; color: var(--muted); font-size: 18px; }
.timestamp { margin: 0; color: var(--muted); font: 12px ui-monospace, monospace; }
.summary { color: var(--muted); font-size: 18px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: 12px; }
.prose { padding-top: 30px; }
.prose h1, .prose h2, .prose h3 { margin: 1.5em 0 .5em; font-family: ui-serif, Georgia, serif; line-height: 1.2; }
.prose p, .prose li { color: #41413f; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose code { padding: 2px 6px; border-radius: 5px; background: #f0efec; font: 13px ui-monospace, monospace; }
.source { display: block; margin-top: 36px; padding: 16px 18px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); overflow-wrap: anywhere; }
.back { display: inline-block; margin-bottom: 14px; color: var(--muted); }
.report-list ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.report-list li { padding: 16px 4px; border-bottom: 1px solid var(--line); font-family: ui-monospace, monospace; }
.button { display: inline-block; margin-top: 24px; padding: 10px 16px; border-radius: 9px; background: var(--ink); color: white; }
.button:hover { color: white; opacity: .86; }
.centered { width: min(580px, 88vw); margin: 22vh auto; text-align: center; }

@media (max-width: 700px) {
  .topbar { padding: 0 20px; }
  .navlinks { gap: 14px; }
  .navlinks a:first-child { display: none; }
  .shell { width: min(92vw, 620px); padding-top: 45px; }
  .page-heading { display: block; }
  .heading-stat { display: inline-block; margin-top: 20px; }
  .topic-grid { grid-template-columns: 1fr; }
  .day { grid-template-columns: 1fr; gap: 8px; }
  .day > h2 { margin-top: 0; }
  .entry-row { grid-template-columns: 72px 1fr; gap: 12px; }
  .arrow { display: none; }
  .document { padding: 26px 22px; border-radius: 13px; }
}
