:root {
  --bg: oklch(98% 0.005 250);
  --surface: oklch(100% 0 0);
  --fg: oklch(22% 0.02 240);
  --muted: oklch(50% 0.018 240);
  --border: oklch(90% 0.008 240);
  --accent: oklch(58% 0.16 145);
  --warn: oklch(54% 0.11 77);
  --warn-bg: oklch(96% 0.035 80);
  --font-sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  color: var(--fg);
  background-color: var(--bg);
  background-image:
    linear-gradient(to right, color-mix(in oklch, var(--border) 42%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in oklch, var(--border) 42%, transparent) 1px, transparent 1px);
  background-size: 32px 32px;
  font: 16px/1.75 var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.topbar {
  min-height: 72px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  padding: 0 max(28px, calc((100vw - 1240px) / 2));
  background: color-mix(in oklch, var(--surface) 92%, transparent);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font: 600 14px/1 var(--font-mono); letter-spacing: .06em; }
.brand b { margin-left: 6px; color: var(--muted); font-weight: 500; }
.mark { width: 22px; height: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; transform: rotate(45deg); }
.mark i { background: var(--fg); }
.mark i:nth-child(2) { background: var(--accent); }
nav { display: flex; border: 1px solid var(--border); }
nav a { min-width: 58px; min-height: 38px; display: grid; place-items: center; text-decoration: none; font: 600 12px/1 var(--font-mono); }
nav a + a { border-left: 1px solid var(--border); }
nav a:hover, nav a.current { color: var(--surface); background: var(--fg); }
.route-state { justify-self: end; padding: 7px 10px; color: var(--warn); background: var(--warn-bg); border: 1px solid currentColor; border-radius: 999px; font: 600 11px/1 var(--font-mono); letter-spacing: .08em; }

main { width: min(1240px, calc(100% - 64px)); min-height: calc(100vh - 192px); display: grid; align-items: center; margin-inline: auto; }
.empty-state { display: grid; grid-template-columns: .68fr 1.32fr; gap: 9%; align-items: center; padding-block: 90px; }
.chapter { position: relative; aspect-ratio: 1; display: grid; place-items: center; color: var(--surface); background: var(--fg); border-radius: 50%; box-shadow: 0 35px 100px color-mix(in oklch, var(--fg) 18%, transparent); }
.chapter::before, .chapter::after { content: ""; position: absolute; border: 1px solid var(--border); border-radius: 50%; }
.chapter::before { inset: -28px; }
.chapter::after { inset: -58px; }
.chapter span { position: absolute; top: 25%; left: 26%; color: var(--muted); font: 600 18px/1 var(--font-mono); }
.chapter strong { font: 600 clamp(110px, 16vw, 220px)/1 var(--font-mono); letter-spacing: -.12em; transform: translateX(-7%); }
.eyebrow { margin: 0 0 18px; color: var(--warn); font: 600 12px/1.4 var(--font-mono); letter-spacing: .1em; }
h1 { max-width: 760px; margin: 0; font: 600 clamp(48px, 6vw, 82px)/1.25 var(--font-sans); letter-spacing: -.035em; }
.lead { max-width: 66ch; margin: 30px 0 0; color: var(--muted); font-size: 18px; }
.status-row { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 40px; border: 1px solid var(--border); }
.status-row > div { min-height: 100px; display: flex; flex-direction: column; justify-content: center; padding: 18px; background: var(--surface); border-right: 1px solid var(--border); }
.status-row > div:last-child { border-right: 0; }
.status-row span { color: var(--muted); font: 11px/1.4 var(--font-mono); }
.status-row b { margin-top: 7px; font-size: 15px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.actions a { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 0 18px; background: var(--surface); border: 1px solid var(--fg); border-radius: 4px; font-weight: 650; text-decoration: none; }
.actions .primary { min-width: 190px; justify-content: space-between; gap: 24px; color: var(--surface); background: var(--fg); }
.actions a:hover { color: var(--surface); background: var(--warn); border-color: var(--warn); }
footer { min-height: 120px; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 0 max(28px, calc((100vw - 1240px) / 2)); color: var(--muted); border-top: 1px solid var(--border); font: 12px/1.5 var(--font-mono); }

@media (max-width: 820px) {
  .topbar { grid-template-columns: 1fr auto; padding-inline: 16px; }
  .route-state { display: none; }
  .brand b { display: none; }
  main { width: calc(100% - 28px); }
  .empty-state { grid-template-columns: 1fr; gap: 76px; padding-block: 86px; }
  .chapter { width: min(250px, 68vw); justify-self: center; }
  .chapter::before { inset: -18px; }
  .chapter::after { inset: -38px; }
  h1 { font-size: clamp(44px, 13vw, 62px); }
  .lead { font-size: 16px; }
  .status-row { grid-template-columns: 1fr; }
  .status-row > div { min-height: 82px; border-right: 0; border-bottom: 1px solid var(--border); }
  .status-row > div:last-child { border-bottom: 0; }
  footer { align-items: flex-start; flex-direction: column; justify-content: center; padding-block: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
