:root {
  color-scheme: light;
  --ink: #19312f;
  --muted: #687a76;
  --paper: #f7f4ed;
  --card: #fffdf8;
  --line: #dfe5dc;
  --green: #183a37;
  --sage: #dfe9df;
  --amber: #ca8036;
  --rose: #a84e49;
  --shadow: 0 18px 45px rgba(36, 57, 52, 0.08);
}

* { box-sizing: border-box; }

html { background: var(--paper); scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 300px;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  background:
    radial-gradient(circle at 90% 4%, rgba(202, 128, 54, 0.11), transparent 24rem),
    var(--paper);
}

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

.topbar {
  height: 76px;
  padding: 0 clamp(20px, 5vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(25, 49, 47, 0.09);
  background: rgba(247, 244, 237, 0.86);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px;
  color: #fff; background: var(--green); font-family: Georgia, serif; font-size: 22px;
}
.brand strong, .brand small { display: block; line-height: 1.05; }
.brand small { margin-top: 3px; color: var(--muted); font-size: 11px; letter-spacing: .13em; text-transform: uppercase; }

.launch, .secondary {
  border: 0; border-radius: 12px; padding: 11px 16px; cursor: pointer;
  color: #fff; background: var(--green); font-weight: 700;
  box-shadow: 0 8px 22px rgba(24, 58, 55, .16);
}
.launch span { font-size: 20px; margin-right: 5px; vertical-align: -1px; }

main { width: min(1080px, calc(100% - 36px)); margin: 0 auto; padding: 56px 0 128px; }
.intro { max-width: 670px; margin-bottom: 32px; }
.eyebrow { margin: 0 0 7px; color: var(--amber); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(34px, 5vw, 55px); font-weight: 500; line-height: 1.08; letter-spacing: -.025em; }
.intro > p:last-child { margin: 13px 0 0; color: var(--muted); font-size: 17px; }

.notice { margin: 0 0 24px; padding: 15px 18px; border: 1px solid #e9cba8; border-radius: 14px; background: #fff4e6; color: #714a24; }
.summary { display: flex; gap: 12px; overflow-x: auto; margin-bottom: 24px; padding-bottom: 4px; }
.summary-item { min-width: 130px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.5); }
.summary-item strong { display: block; font-family: Georgia, serif; font-size: 24px; font-weight: 500; }
.summary-item span { color: var(--muted); font-size: 12px; }

.cards { display: grid; gap: 14px; }
.card {
  padding: 21px; border: 1px solid var(--line); border-radius: 18px; background: var(--card);
  box-shadow: var(--shadow); display: grid; grid-template-columns: 1fr auto; gap: 13px 20px;
}
.card h2 { margin: 0; font-family: Georgia, serif; font-size: 21px; font-weight: 500; line-height: 1.25; }
.card p { margin: 0; color: var(--muted); }
.meta { display: flex; flex-wrap: wrap; gap: 8px 14px; color: var(--muted); font-size: 13px; }
.card-link { align-self: center; color: var(--green); font-weight: 750; text-decoration: none; white-space: nowrap; }
.card-link:hover { text-decoration: underline; }
.badge { align-self: start; padding: 6px 10px; border-radius: 99px; background: var(--sage); color: var(--green); font-size: 12px; font-weight: 800; white-space: nowrap; }
.badge.action, .badge.decision { color: #7c332f; background: #f7dfda; }
.badge.verify { color: #775021; background: #f5e7d1; }
.decision-card { border-left: 4px solid var(--rose); }
.projects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.project-card { grid-template-columns: 1fr; }
.protocols { display: flex; flex-wrap: wrap; gap: 7px; }
.protocol { padding: 4px 8px; border: 1px solid var(--line); border-radius: 8px; font-size: 12px; color: var(--muted); }
.conflict { border-color: #dba9a4; }

.empty { padding: 55px 24px; border: 1px dashed #bdc9c0; border-radius: 18px; text-align: center; background: rgba(255,255,255,.35); }
.empty span { display: grid; place-items: center; width: 44px; height: 44px; margin: 0 auto 13px; border-radius: 50%; background: var(--sage); font-size: 21px; }
.empty h2 { margin: 0 0 6px; font-family: Georgia, serif; font-size: 23px; font-weight: 500; }
.empty p { margin: 0; color: var(--muted); }

.tabs {
  position: fixed; z-index: 9; left: 50%; bottom: 22px; transform: translateX(-50%);
  display: flex; padding: 6px; border: 1px solid rgba(255,255,255,.18); border-radius: 17px;
  background: rgba(24, 58, 55, .96); box-shadow: 0 14px 35px rgba(24, 58, 55, .24);
}
.tabs a { min-width: 120px; padding: 9px 13px; border-radius: 12px; text-align: center; color: #c8d6d1; text-decoration: none; font-size: 13px; font-weight: 700; }
.tabs a span { margin-right: 6px; }
.tabs a.active { color: var(--green); background: #f8f6ef; }

dialog { width: min(430px, calc(100% - 32px)); padding: 31px; border: 0; border-radius: 22px; color: var(--ink); background: var(--card); box-shadow: 0 25px 80px rgba(12, 30, 27, .28); }
dialog::backdrop { background: rgba(14, 31, 29, .45); backdrop-filter: blur(3px); }
dialog h2 { margin: 0 0 9px; font-family: Georgia, serif; font-size: 30px; font-weight: 500; }
dialog p:not(.eyebrow) { color: var(--muted); }
.dialog-close { position: absolute; right: 17px; top: 12px; border: 0; background: none; color: var(--muted); font-size: 27px; cursor: pointer; }
.dialog-icon { display: grid; place-items: center; width: 45px; height: 45px; margin-bottom: 19px; border-radius: 13px; color: #fff; background: var(--amber); font-size: 23px; }
.secondary { margin-top: 8px; width: 100%; }

@media (max-width: 660px) {
  .topbar { height: 68px; padding: 0 16px; }
  .launch { padding: 9px 11px; font-size: 13px; }
  main { width: min(100% - 28px, 1080px); padding-top: 38px; }
  .projects { grid-template-columns: 1fr; }
  .card { grid-template-columns: 1fr; }
  .card-link { justify-self: start; }
  .tabs { bottom: 10px; width: calc(100% - 20px); }
  .tabs a { flex: 1; min-width: 0; padding-inline: 5px; font-size: 11px; }
  .tabs a span { display: block; margin: 0 0 1px; font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
