/* Argonaut public site. Layout: one narrow column per page, a quiet top bar,
   Nauty only on the home page. Tokens match the sector dashboards. */
:root {
  --bg: #f1f3f2; --surface: #ffffff; --ink: #17211f; --ink-2: #3b4744; --ink-3: #56635f;
  --line: #d5dcd9; --track: #e6eae8; --accent: #2f5d8a; --accent-soft: #e4edf5; --accent-ink: #ffffff;
  --against: #a3261c; --against-soft: #f8e3e1; --for: #1f7a3a; --for-soft: #e2f1e6;
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #141a18; --surface: #1c2422; --ink: #eef2f0; --ink-2: #c3cdc9; --ink-3: #95a29d;
  --line: #303a37; --track: #2a3330; --accent: #8fb6d9; --accent-soft: #20303f; --accent-ink: #10202e;
  --against: #e0685e; --against-soft: #43201d; --for: #5fbf7c; --for-soft: #1b3a26; color-scheme: dark } }
:root[data-theme="dark"] {
  --bg: #141a18; --surface: #1c2422; --ink: #eef2f0; --ink-2: #c3cdc9; --ink-3: #95a29d;
  --line: #303a37; --track: #2a3330; --accent: #8fb6d9; --accent-soft: #20303f; --accent-ink: #10202e;
  --against: #e0685e; --against-soft: #43201d; --for: #5fbf7c; --for-soft: #1b3a26; color-scheme: dark }
* { box-sizing: border-box; }
body { background: var(--bg); color: var(--ink); font: 16px/1.6 var(--body); margin: 0; padding-block: 18px 64px;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.wrap { max-width: 880px; margin: 0 auto; display: flex; flex-direction: column; gap: 40px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
h1 { font: 600 34px/1.15 var(--display); letter-spacing: -.02em; }
h2 { font: 600 20px/1.3 var(--display); }
h3 { font: 600 17px/1.3 var(--display); }
p { margin: 0; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.small { font-size: 13.5px; color: var(--ink-3); }
.num { font-variant-numeric: tabular-nums; }
.lede { font-size: 17px; color: var(--ink-2); max-width: 62ch; }
section { display: flex; flex-direction: column; gap: 14px; }
.eyebrow { font: 600 12px/1 var(--body); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); }

/* Top bar */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 8px; font: 700 18px/1 var(--display); color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.brand .mark { width: 28px; display: block; } .brand .mark svg { width: 100%; height: auto; display: block; }
.top nav { display: flex; gap: 20px; font-size: 14.5px; }
.top nav a { color: var(--ink-2); text-decoration: none; padding-block: 4px; border-bottom: 2px solid transparent; }
.top nav a:hover { color: var(--ink); }
.top nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }

/* Buttons */
.ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 180px; padding: 12px 22px; border-radius: 999px; font: 600 15px/1 var(--body); text-decoration: none; border: 1.5px solid var(--accent); transition: transform .15s, background .15s; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.ghost { color: var(--accent); }
.btn.ghost:hover { background: var(--accent-soft); }
.btn:hover { transform: translateY(-1px); }

/* Home */
.home { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; padding-top: 24px; }
.hello { display: flex; align-items: flex-end; gap: 4px; }
.hello .nauty { width: 220px; flex: none; } .hello .nauty svg { width: 100%; height: auto; display: block; }
.bubble { position: relative; align-self: flex-start; margin-top: 18px; background: var(--surface); border: 1.5px solid var(--ink); border-radius: 18px; padding: 12px 20px; font: 600 24px/1.2 var(--display); white-space: nowrap; }
.bubble::after { content: ""; position: absolute; left: -11px; bottom: 14px; width: 18px; height: 18px; background: var(--surface); border-left: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(45deg); }
.home .lede { font-size: 18px; line-height: 1.65; color: var(--ink); }
.home .lede + .lede { color: var(--ink-2); }
.proto { font-size: 15px; color: var(--ink-2); padding-left: 14px; border-left: 3px solid var(--line); }
sup { line-height: 0; } sup a { text-decoration: none; font-weight: 600; }
main { display: flex; flex-direction: column; gap: 40px; }
.notes { border-top: 1px solid var(--line); padding-top: 16px; font-size: 13.5px; color: var(--ink-3); display: flex; flex-direction: column; gap: 8px; }

/* Sectors */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: inherit; transition: border-color .15s, transform .15s, box-shadow .15s; }
a.card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 6px 18px -10px rgba(0,0,0,.35); }
.card .go { margin-top: auto; color: var(--accent); font-weight: 600; font-size: 14.5px; }
.stats { display: flex; gap: 24px; flex-wrap: wrap; }
.stats b { display: block; font: 600 26px/1.1 var(--display); }
.stats span { font-size: 12.5px; color: var(--ink-3); }
.split { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: var(--track); }
.split i { display: block; } .split .a { background: var(--for); } .split .d { background: var(--against); }
.legend { display: flex; gap: 14px; font-size: 12.5px; color: var(--ink-3); }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 5px; }
.live { align-self: flex-start; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--for-soft); color: var(--for); }
.soon-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.soon { border: 1px dashed var(--line); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.soon b { font: 600 15.5px/1.3 var(--display); }
.soon span { font-size: 13.5px; color: var(--ink-3); }

/* Cases */
.finder { display: flex; flex-direction: column; gap: 10px; }
.finder input { width: 100%; font: inherit; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font: 500 13.5px var(--body); padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--ink); }
.cases { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.case { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 18px; border-top: 1px solid var(--line); text-decoration: none; color: inherit; }
.case:first-child { border-top: 0; }
.case:hover { background: var(--accent-soft); }
.cname { display: flex; flex-direction: column; min-width: 0; }
.cname b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.out { font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 6px; text-align: center; }
.out.allowed { background: var(--for-soft); color: var(--for); }
.out.dismissed { background: var(--against-soft); color: var(--against); }
.map { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); white-space: nowrap; }
.empty { padding: 18px; color: var(--ink-3); }
footer { border-top: 1px solid var(--line); padding-top: 18px; display: flex; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; font-size: 13.5px; color: var(--ink-3); }

@media (max-width: 720px) {
  h1 { font-size: 28px; }
  .grid, .soon-grid { grid-template-columns: minmax(0, 1fr); }
  .hello .nauty { width: 150px; }
  .bubble { font-size: 19px; padding: 10px 14px; }
  .home .lede { font-size: 16.5px; }
  .case { grid-template-columns: 80px minmax(0, 1fr); }
  .case .map { grid-column: 2; justify-self: start; }
  .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { .card, .btn { transition: none; } a.card:hover, .btn:hover { transform: none; } }
