:root {
  color-scheme: light;
  --ink: #172026;
  --muted: #59656f;
  --paper: #fbfbf8;
  --surface: #ffffff;
  --line: #d9ded8;
  --teal: #0f766e;
  --blue: #1d4ed8;
  --amber: #b45309;
  --red: #b91c1c;
  --shadow: 0 18px 40px rgba(23, 32, 38, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.55;
}

a {
  color: var(--blue);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--teal);
}

code {
  background: #eef2f1;
  border: 1px solid #d8e0dd;
  border-radius: 6px;
  color: #1f3b36;
  display: inline-block;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.86rem;
  margin: 0.12rem 0;
  padding: 0.12rem 0.34rem;
  white-space: normal;
  overflow-wrap: anywhere;
}

.site-header {
  background: #f0f4f1;
  border-bottom: 1px solid var(--line);
}

.nav {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1180px;
  padding: 1rem 1.25rem;
}

.brand {
  align-items: center;
  color: var(--ink);
  display: inline-flex;
  font-weight: 800;
  gap: 0.65rem;
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  background: var(--ink);
  border-radius: 8px;
  color: var(--surface);
  display: inline-flex;
  height: 2rem;
  justify-content: center;
  width: 2rem;
}

.nav-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: flex-end;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--ink);
}

.hero {
  margin: 0 auto;
  max-width: 1180px;
  padding: 4.5rem 1.25rem 3.5rem;
}

.eyebrow {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 0.75rem;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5.8rem);
  letter-spacing: 0;
  line-height: 0.98;
  margin: 0;
  max-width: 930px;
}

.hero-copy {
  color: #34424c;
  font-size: 1.18rem;
  margin: 1.4rem 0 0;
  max-width: 760px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.button {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: inline-flex;
  font-weight: 800;
  min-height: 2.75rem;
  padding: 0.68rem 0.95rem;
  text-decoration: none;
}

.button.primary {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--surface);
}

.button:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.button.primary:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--surface);
}

.signal-strip {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 3rem 0 0;
  max-width: 960px;
}

.signal-strip div {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
}

.signal-strip dt {
  color: var(--ink);
  font-size: 1.7rem;
  font-weight: 900;
  line-height: 1;
}

.signal-strip dd {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0.35rem 0 0;
}

.section {
  margin: 0 auto;
  max-width: 1180px;
  padding: 3.4rem 1.25rem;
}

.section-heading {
  margin-bottom: 1.35rem;
}

.section-heading h2 {
  font-size: clamp(1.8rem, 4vw, 3.1rem);
  letter-spacing: 0;
  line-height: 1.06;
  margin: 0;
  max-width: 820px;
}

.path-grid,
.badge-grid,
.docs-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.path-card,
.badge-grid a,
.docs-grid a,
.project-detail,
.deploy-panel,
.notice {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.path-card {
  padding: 1.25rem;
}

.path-card h3 {
  font-size: 1.15rem;
  margin: 0 0 0.75rem;
}

.path-card ol {
  color: var(--muted);
  margin: 0;
  padding-left: 1.2rem;
}

.badge-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.badge-grid a {
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 6.4rem;
  padding: 0.9rem;
  text-decoration: none;
}

.badge-grid span {
  font-size: 0.9rem;
  font-weight: 800;
}

.badge-grid img {
  align-self: flex-start;
  height: 20px;
  max-width: 100%;
}

.table-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  min-width: 1180px;
  width: 100%;
}

caption {
  text-align: left;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 1rem;
  text-align: left;
  vertical-align: top;
}

thead th {
  background: #edf2ee;
  color: #263238;
  font-size: 0.78rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

tbody th {
  font-size: 0.98rem;
  min-width: 180px;
}

tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: 0;
}

td {
  color: #3e4b55;
  font-size: 0.94rem;
}

.topology {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 1.25rem;
}

.topology-node {
  background: #172026;
  border-radius: 8px;
  color: var(--surface);
  font-size: 1.05rem;
  font-weight: 900;
  margin: 0 auto 1rem;
  max-width: 330px;
  padding: 1rem;
  text-align: center;
}

.topology-rail {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.topology-rail a {
  background: #f7f4ed;
  border: 1px solid #ded6c7;
  border-radius: 8px;
  color: var(--ink);
  font-weight: 800;
  min-height: 4.5rem;
  padding: 0.85rem;
  text-align: center;
  text-decoration: none;
}

.topology-rail a:nth-child(2n) {
  background: #eef5f4;
  border-color: #cce1dd;
}

.topology-rail a:nth-child(3n) {
  background: #f3f2fb;
  border-color: #d9d6ee;
}

.project-detail {
  margin-top: 1rem;
  padding: 1.25rem;
}

.project-title-row {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.project-title-row h3 {
  font-size: 1.45rem;
  margin: 0;
}

.project-title-row a {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-weight: 800;
  padding: 0.5rem 0.7rem;
  text-decoration: none;
}

.project-title-row a:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.project-detail dl {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.project-detail dl div {
  border-top: 1px solid var(--line);
  padding: 0.85rem 1rem 0.85rem 0;
}

.project-detail dt {
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.project-detail dd {
  color: #3d4952;
  margin: 0.25rem 0 0;
}

.docs-grid a {
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 7rem;
  padding: 1rem;
  text-decoration: none;
}

.docs-grid strong {
  font-size: 1rem;
}

.docs-grid span {
  color: var(--muted);
  font-size: 0.92rem;
}

.notice,
.deploy-panel {
  padding: 1.25rem;
}

.notice p,
.deploy-panel p {
  color: var(--muted);
  margin: 0;
}

.deploy-panel ol {
  color: #3d4952;
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.site-footer {
  align-items: center;
  background: var(--ink);
  color: #dce4e0;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-top: 2rem;
  padding: 1.4rem max(1.25rem, calc((100vw - 1180px) / 2 + 1.25rem));
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: #ffffff;
  font-weight: 800;
}

@media (max-width: 940px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .signal-strip,
  .path-grid,
  .docs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .badge-grid,
  .topology-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .project-detail dl {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .hero {
    padding-top: 3rem;
  }

  .hero h1 {
    font-size: 2.75rem;
  }

  .signal-strip,
  .path-grid,
  .badge-grid,
  .docs-grid,
  .topology-rail {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    justify-content: center;
  }

  .project-title-row,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
