:root {
  --bg: #f7f7f4;
  --panel: #ffffff;
  --ink: #1f2523;
  --muted: #64706b;
  --line: #d9dfda;
  --soft: #edf1ed;
  --accent: #24594c;
  --accent-2: #9a6a2f;
  --warn: #8b5d17;
  --ok: #1f6b45;
  --candidate: #4b6078;
  --code: #f1f4f2;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  margin: 0;
}

a {
  color: var(--accent);
  font-weight: 650;
}

.topbar {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 18px;
  padding: 24px 36px 18px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.topbar h1 {
  font-size: clamp(1.9rem, 4vw, 3.4rem);
  letter-spacing: -0.045em;
  margin: 4px 0 0;
}

.kicker {
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin: 0;
  text-transform: uppercase;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
  max-width: 100%;
}

nav a {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.88rem;
  padding: 8px 12px;
  text-decoration: none;
}

main {
  margin: 0 auto;
  max-width: 1180px;
  padding: 28px;
}

.summary,
.metadata-grid,
.surface-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.summary article,
.metadata-grid article,
.surface-grid article,
.stage-list article,
.command-list > div,
.artifact-list > div {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
}

.summary h2,
.metadata-grid h3,
.surface-grid h3,
.stage-list h3,
.command-list strong,
.artifact-list strong {
  margin-top: 0;
}

p,
li,
td,
th {
  line-height: 1.52;
}

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

.section {
  margin-top: 36px;
}

.landing-hero {
  background: linear-gradient(135deg, #ffffff 0%, #eef4ef 100%);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(28px, 5vw, 56px);
}

.landing-hero h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  letter-spacing: -0.055em;
  line-height: 0.98;
  margin: 8px 0 18px;
  max-width: 900px;
}

.landing-hero p {
  font-size: 1.05rem;
  max-width: 760px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.feature-callout {
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 22px;
}

.feature-callout h2 {
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  letter-spacing: -0.03em;
  margin: 4px 0 10px;
}

.feature-callout p:last-child {
  margin-bottom: 0;
}

.button-link {
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  padding: 11px 16px;
  text-decoration: none;
  white-space: nowrap;
}

.button-link.secondary {
  background: transparent;
  color: var(--accent);
}

.link-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.link-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  display: grid;
  gap: 10px;
  min-height: 142px;
  padding: 20px;
  text-decoration: none;
}

.link-card span {
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.link-card strong {
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.35;
}

.link-card:hover {
  border-color: var(--accent);
}

.section-title {
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
  padding-bottom: 12px;
}

.section-title h2 {
  font-size: clamp(1.5rem, 3vw, 2.35rem);
  letter-spacing: -0.035em;
  margin: 4px 0 0;
}

.table-wrap {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow-x: auto;
}

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

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

th {
  background: var(--soft);
  color: var(--ink);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

.status {
  border-radius: 999px;
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 5px 9px;
  white-space: nowrap;
}

.status.active {
  background: #e4f3eb;
  color: var(--ok);
}

.status.planned {
  background: #f6eddc;
  color: var(--warn);
}

.status.candidate {
  background: #e7edf3;
  color: var(--candidate);
}

.stage-list {
  display: grid;
  gap: 12px;
}

.stage-list article {
  align-items: start;
  display: grid;
  gap: 8px 18px;
  grid-template-columns: 52px minmax(0, 1fr);
}

.stage-list article span {
  align-items: center;
  background: var(--accent);
  border-radius: 10px;
  color: #fff;
  display: flex;
  font-weight: 800;
  grid-column: 1;
  grid-row: 1 / span 3;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.stage-list h3,
.stage-list p,
.stage-list .flow-line {
  grid-column: 2;
}

.stage-list h3,
.stage-list p {
  margin-bottom: 0;
  margin-top: 0;
}

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

.metric-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric-grid article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
}

.metric-grid span {
  color: var(--muted);
  display: block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.metric-grid strong {
  color: var(--ink);
  display: block;
  font-size: clamp(1.55rem, 3vw, 2.4rem);
  letter-spacing: -0.04em;
  margin-top: 8px;
}

ul {
  margin-bottom: 0;
  padding-left: 18px;
}

li + li {
  margin-top: 10px;
}

code {
  background: var(--code);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #23312c;
  display: inline;
  font-family: "Cascadia Mono", "Courier New", monospace;
  font-size: 0.88rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
  padding: 3px 6px;
  white-space: normal;
  word-break: break-word;
}

.flow-line {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
  margin-top: 6px;
  width: 100%;
}

.flow-line b {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  padding: 6px 10px;
}

.flow-line em {
  align-items: center;
  color: var(--accent-2);
  display: inline-flex;
  font-style: normal;
  font-weight: 900;
}

.flow-line em::before {
  content: "to";
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.artifact-list,
.command-list {
  display: grid;
  gap: 10px;
}

.artifact-list > div,
.command-list > div {
  display: grid;
  gap: 8px;
}

.command-list a {
  width: fit-content;
}

@media (max-width: 860px) {
  .topbar {
    padding: 22px;
    position: static;
  }

  main {
    padding: 18px;
  }

  .summary,
  .metadata-grid,
  .surface-grid,
  .metric-grid,
  .feature-callout,
  .link-grid {
    grid-template-columns: 1fr;
  }

  .button-link {
    width: fit-content;
  }

  .stage-list article {
    grid-template-columns: 1fr;
  }

  .stage-list article span,
  .stage-list h3,
  .stage-list p,
  .flow-line {
    grid-column: 1;
  }

  .stage-list article span {
    grid-row: auto;
  }
}
