:root {
  --sand: #f4efe4;
  --paper: #fffaf1;
  --ink: #123047;
  --ink-soft: #3c5a6b;
  --coral: #e2674e;
  --coral-soft: #f6d9cf;
  --line: #d8cdb9;
  --shadow: 0 12px 30px rgba(18, 48, 71, 0.08);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.6;
}
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--coral); }
img { max-width: 100%; }
p { margin: 0 0 1rem; }
h1, h2, h3 { margin: 0; }
h1 { font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.14; letter-spacing: -0.02em; margin-bottom: 1rem; }
h2 { font-size: 1.5rem; line-height: 1.25; margin-bottom: 0.75rem; }
h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }

.wrap { width: min(100% - 2rem, 1080px); margin-inline: auto; }
.site-header { padding: 1.5rem 0 1rem; border-bottom: 1px solid var(--line); background: var(--paper); }
.brand-line { text-align: center; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--ink);
}
.brand img { width: 32px; height: 32px; display: block; }
.site-nav { margin-top: 0.75rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 1.25rem; }
.site-nav a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.25rem 0.35rem;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--coral); border-bottom-color: var(--coral); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
  padding: 3.5rem 0 2.5rem;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--coral);
  margin-bottom: 0.75rem;
}
.lead { font-size: 1.1rem; color: var(--ink-soft); max-width: 34rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.pill {
  display: inline-block;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}
.pill:hover { background: var(--coral); color: #fff; }
.pill-quiet { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.pill-quiet:hover { background: var(--coral-soft); color: var(--ink); }

.timeline-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
}
.card-head span { font-size: 0.75rem; color: var(--ink-soft); }
.timeline { list-style: none; margin: 0; padding: 0 0 0 2.25rem; position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  left: 0.6rem;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 2px;
  background: var(--line);
}
.timeline > li { position: relative; padding-bottom: 1.25rem; }
.timeline > li:last-child { padding-bottom: 0; }
.timeline > li::before {
  content: "";
  position: absolute;
  left: -2.25rem;
  top: 0.35rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 4px var(--paper);
}
.station { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 0.8rem; margin-bottom: 0.4rem; }
.station small { color: var(--ink-soft); font-size: 0.75rem; }
.metrics { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0; padding: 0; list-style: none; }
.metrics li { background: var(--sand); border-radius: 999px; padding: 0.2rem 0.6rem; font-size: 0.78rem; }
.metrics b { color: var(--coral); }
.trim { margin: 0.9rem 0 0; font-size: 0.75rem; color: var(--ink-soft); }

.section { padding: 2.5rem 0; }
.section-alt { background: var(--paper); border-block: 1px solid var(--line); }
.grid, .grid-two { display: grid; gap: 1rem; }
.grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 1.25rem; }
.section-alt .card { background: #fffdf8; }
.card p:last-child { margin-bottom: 0; }
.tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--coral);
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.steps { counter-reset: step; list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1rem; }
.steps li { counter-increment: step; position: relative; padding-left: 3rem; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--coral);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
}
.callout { border-left: 4px solid var(--coral); background: var(--coral-soft); padding: 1rem 1.25rem; border-radius: 0 12px 12px 0; margin: 1.25rem 0; }
.callout p:last-child { margin-bottom: 0; }
.code {
  background: #102b3e;
  color: #f5eee2;
  padding: 1.25rem;
  border-radius: 12px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 1rem 0 0;
}
.table-wrap { overflow-x: auto; }
.data { width: 100%; border-collapse: collapse; margin: 1rem 0; background: var(--paper); }
.data th, .data td { border: 1px solid var(--line); padding: 0.6rem 0.7rem; text-align: left; font-size: 0.85rem; vertical-align: top; }
.data th { background: var(--sand); }
.site-footer { border-top: 1px solid var(--line); padding: 1.5rem 0; margin-top: 2rem; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1rem; align-items: center; font-size: 0.82rem; color: var(--ink-soft); }
.footer-row p { margin: 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; }

@media (max-width: 760px) {
  .wrap { width: min(100% - 1.5rem, 1080px); }
  .hero, .grid, .grid-two { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-top: 2.25rem; gap: 1.75rem; }
  .site-nav { gap: 0.25rem 0.9rem; }
}
@media (max-width: 400px) {
  .site-nav a { font-size: 0.8rem; padding: 0.2rem 0.15rem; }
  .timeline-card { padding: 1.1rem; }
  .code { font-size: 0.75rem; }
}
