:root {
  --bg: #0b1016;
  --bg-elev: #121a24;
  --panel: #151e2a;
  --line: #2a384c;
  --text: #e8eef6;
  --muted: #8b9bb0;
  --dim: #5c6b80;
  --cyan: #5ec8d8;
  --amber: #d4a24c;
  --ok: #6ecb8e;
  --grid: rgba(94, 200, 216, 0.045);
  --mono: "SF Mono", "Menlo", "Consolas", ui-monospace, monospace;
  --sans: "SF Pro Text", "PingFang SC", "Noto Sans SC", "Helvetica Neue", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  min-height: 100vh;
  font-family: var(--sans);
  color: var(--text);
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px;
  line-height: 1.6;
  font-size: 16px;
}

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

.wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0 1rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  color: inherit;
  text-decoration: none;
}

.brand:hover { text-decoration: none; }

.brand-mark {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
}

.brand-name {
  font-weight: 650;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.15rem;
  font-size: 0.9rem;
}

nav a { color: var(--muted); }
nav a[aria-current="page"],
nav a:hover { color: var(--text); }

.hero {
  padding: 2.4rem 0 1.6rem;
}

.kicker {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0 0 0.65rem;
}

.hero h1 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.7rem, 4vw, 2.25rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.lede {
  margin: 0;
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.status {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  background: var(--bg-elev);
}

.status-cell {
  padding: 0.85rem 1rem;
  border-right: 1px solid var(--line);
}

.status-cell:last-child { border-right: none; }

.status-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 0.25rem;
}

.status-value {
  font-family: var(--mono);
  font-size: 0.95rem;
  color: var(--text);
}

.section {
  margin-top: 2.6rem;
}

.section h2 {
  margin: 0 0 0.9rem;
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
}

.cases {
  display: grid;
  gap: 0.85rem;
}

.case {
  display: block;
  padding: 1.1rem 1.15rem 1.15rem;
  background: var(--panel);
  border: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.case:hover {
  text-decoration: none;
  border-color: #3d536e;
}

.case-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 0.45rem;
}

.case h3 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
  font-weight: 650;
}

.case p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.chip {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 0.22rem 0.5rem;
  background: var(--bg-elev);
}

.site-footer {
  margin-top: 3rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.contact {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.contact dt {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 0.2rem;
}

.contact dd {
  margin: 0;
}

.pending {
  color: var(--amber);
}

.fineprint {
  color: var(--dim);
  font-size: 0.8rem;
  margin: 0;
}

.page-hero {
  padding: 1.8rem 0 0.4rem;
}

.page-hero h1 {
  margin: 0.2rem 0 0.7rem;
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  line-height: 1.25;
}

.blocks {
  display: grid;
  gap: 1rem;
  margin-top: 1.4rem;
}

.block {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 1.05rem 1.15rem 1.15rem;
}

.block h2 {
  margin: 0 0 0.55rem;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
}

.block p, .block li {
  color: var(--muted);
}

.block p:last-child,
.block ul:last-child { margin-bottom: 0; }

.block ul {
  margin: 0.4rem 0 0;
  padding-left: 1.15rem;
}

.pager {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.6rem;
  font-size: 0.9rem;
}

@media (max-width: 720px) {
  .status,
  .contact {
    grid-template-columns: 1fr;
  }

  .status-cell {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .status-cell:last-child { border-bottom: none; }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* --- New styles for navigation cards & action tags --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.nav-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.15rem;
  background: var(--panel);
  border: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease;
}

.nav-card:hover {
  text-decoration: none;
  border-color: #3d536e;
}

.card-top {
  margin-bottom: 0.85rem;
}

.badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  padding: 0.15rem 0.45rem;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  color: var(--muted);
  text-transform: uppercase;
}

.badge.online {
  color: var(--ok);
  border-color: rgba(110, 203, 142, 0.4);
}

.badge.github {
  color: var(--cyan);
  border-color: rgba(94, 200, 216, 0.4);
}

.badge.spec {
  color: var(--amber);
  border-color: rgba(212, 162, 76, 0.4);
}

.nav-card h3 {
  margin: 0.5rem 0 0.4rem;
  font-size: 1.1rem;
  font-weight: 650;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-card h3 .arrow {
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--dim);
  transition: transform 0.15s ease, color 0.15s ease;
}

.nav-card:hover h3 .arrow {
  color: var(--cyan);
  transform: translate(2px, -2px);
}

.nav-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.card-bottom {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(42, 56, 76, 0.6);
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.card-tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--dim);
}

.card-tag::after {
  content: "·";
  margin-left: 0.35rem;
}

.card-tag:last-child::after {
  content: "";
}

.nav-action-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--cyan);
  margin-top: 0.85rem;
}
