:root {
  color-scheme: light;
  --bg: #f5f7f8;
  --paper: #ffffff;
  --ink: #162426;
  --muted: #5c6b70;
  --line: #dce4e7;
  --accent: #27636f;
  --accent-2: #d78b55;
  --good: #167a58;
}

* { box-sizing: border-box; }

html {
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 22px 24px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; }
.brand-mark { width: 16px; height: 16px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 0 0 6px rgba(39, 99, 111, .12); }

nav { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
nav a { padding: 9px 12px; border-radius: 7px; color: var(--muted); font-weight: 650; }
nav a[aria-current="page"], nav a:hover { color: var(--ink); background: rgba(39, 99, 111, .09); }

main { max-width: 1160px; margin: 0 auto; padding: 16px 24px 48px; }

.hero {
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .82fr);
  align-items: center;
  gap: 36px;
  border-top: 1px solid var(--line);
}

.hero-copy,
.hero-panel,
.section,
.split-section,
.page {
  min-width: 0;
}

.hero-copy h1, .page h1 {
  margin: 12px 0 18px;
  max-width: 760px;
  font-size: clamp(38px, 5vw, 66px);
  line-height: 1;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.lead { max-width: 620px; color: var(--muted); font-size: 20px; line-height: 1.65; }
.eyebrow { margin: 0; color: var(--accent); font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }

.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 0 18px; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); font-weight: 750; }
.button.primary { color: white; background: var(--accent); border-color: var(--accent); }

.hero-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 18px 45px rgba(22, 36, 38, .08);
  max-width: 520px;
  justify-self: end;
  overflow: hidden;
}

.hero-panel img { display: block; width: 100%; border-radius: 6px; }
.quick-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0 0; }
.quick-stats div { border: 1px solid var(--line); border-radius: 7px; padding: 12px; }
.quick-stats dt { color: var(--muted); font-size: 12px; font-weight: 750; text-transform: uppercase; }
.quick-stats dd { margin: 5px 0 0; font-weight: 800; overflow-wrap: anywhere; }

.section, .split-section, .page { border-top: 1px solid var(--line); padding-top: 54px; margin-top: 18px; }
.section-head { display: grid; grid-template-columns: .4fr 1fr; gap: 28px; align-items: end; margin-bottom: 22px; }
.section-head h2, .split-section h2 { margin: 0; font-size: clamp(30px, 4vw, 48px); line-height: 1.05; }
.section-head p:last-child, .split-section p { color: var(--muted); line-height: 1.7; }

.card-grid, .status-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.card, .status-list article, .doc-block {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}
.card span { color: var(--accent-2); font-weight: 900; }
.card h3, .status-list strong { display: block; margin: 14px 0 10px; font-size: 21px; }
.card p, .status-list p, .doc-block p, .doc-block li { color: var(--muted); line-height: 1.65; }

.split-section { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; }
.timeline { display: grid; gap: 12px; }
.timeline div { display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: center; padding: 16px; border-left: 4px solid var(--accent); background: var(--paper); border-radius: 6px; }
.timeline span { color: var(--muted); }

.page { min-height: 68vh; }
.ok { display: inline-flex; margin-top: 8px; color: var(--good); font-weight: 850; }
.doc-block { margin-top: 14px; }
code { padding: 2px 6px; border-radius: 5px; background: #edf2f4; }
.not-found { display: grid; align-content: center; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 26px 24px 36px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@media (max-width: 820px) {
  .topbar { align-items: flex-start; flex-direction: column; }
  nav { justify-content: flex-start; }
  .hero, .section-head, .split-section { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 52px; }
  .card-grid, .status-list, .quick-stats { grid-template-columns: 1fr; }
  .hero-panel { max-width: none; justify-self: stretch; }
  .hero-copy h1, .page h1 { font-size: 40px; }
  footer { flex-direction: column; }
}

@media (min-width: 1500px) {
  .hero-copy h1, .page h1 {
    font-size: 62px;
  }
}
