:root {
  color-scheme: light;
  --ink: #17211c;
  --muted: #5f6d65;
  --paper: #f4f1ea;
  --surface: #fffdf8;
  --line: #d9ded7;
  --accent: #27664b;
  --accent-dark: #164832;
  --soft: #dcebe1;
  --radius: 22px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 7%, rgba(184, 214, 192, .36), transparent 27rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a { color: inherit; }

.site-header,
main,
footer {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid rgba(95, 109, 101, .22);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 760;
  letter-spacing: -.02em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  color: #fff;
  background: var(--accent);
  border-radius: 11px;
  font-family: Georgia, serif;
  font-size: 21px;
}

nav { display: flex; gap: 24px; }

nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

nav a:hover,
nav a.active { color: var(--accent-dark); }

.hero {
  padding: 112px 0 100px;
  max-width: 850px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  margin-bottom: 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 7.7vw, 88px);
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: .99;
}

.lead {
  max-width: 690px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: clamp(18px, 2.1vw, 22px);
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 22px;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
  transition: background .18s ease, transform .18s ease;
}

.button:hover { background: var(--accent-dark); transform: translateY(-1px); }

.section { padding: 88px 0; border-top: 1px solid var(--line); }

.section-heading { max-width: 680px; margin-bottom: 42px; }

h2 {
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 500;
  letter-spacing: -.04em;
  line-height: 1.08;
}

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.card {
  min-height: 250px;
  padding: 28px;
  background: rgba(255, 253, 248, .82);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.card-number { color: var(--accent); font: 700 13px/1 ui-monospace, monospace; }

.card h3 { margin: 58px 0 12px; font-size: 21px; letter-spacing: -.02em; }

.card p { color: var(--muted); }

.status-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 30px 0 84px;
  padding: 34px 38px;
  color: #fff;
  background: var(--accent-dark);
  border-radius: var(--radius);
}

.status-panel .eyebrow { color: #afd5bf; }
.status-panel h2 { margin: 0; font-size: clamp(26px, 4vw, 40px); }

.status { margin: 0; white-space: nowrap; font-weight: 700; }
.status span { display: inline-block; width: 9px; height: 9px; margin-right: 8px; background: #7ee2a8; border-radius: 50%; box-shadow: 0 0 0 5px rgba(126, 226, 168, .13); }

.article-layout { max-width: 900px; }
.article-hero { padding: 104px 0 64px; }
.article-hero h1 { font-size: clamp(46px, 7vw, 76px); }

.prose {
  margin: 0 0 90px;
  padding: 48px clamp(26px, 6vw, 68px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.prose h2 { margin: 42px 0 14px; font-size: 30px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--muted); font-size: 17px; }
.prose li + li { margin-top: 12px; }
.prose strong { color: var(--ink); }

.not-found { min-height: calc(100vh - 230px); display: grid; align-content: center; justify-items: start; padding: 80px 0; }
.not-found .code { margin-bottom: 16px; color: var(--accent); font: 800 14px/1 ui-monospace, monospace; letter-spacing: .18em; }
.not-found h1 { font-size: clamp(48px, 8vw, 82px); }
.not-found p:not(.code) { margin-bottom: 30px; color: var(--muted); font-size: 19px; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0 38px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 13px;
}

footer p { margin: 0; }

@media (max-width: 760px) {
  .site-header { align-items: flex-start; flex-direction: column; padding: 22px 0; }
  nav { width: 100%; gap: 18px; overflow-x: auto; }
  .hero { padding: 78px 0 74px; }
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 210px; }
  .card h3 { margin-top: 40px; }
  .status-panel { align-items: flex-start; flex-direction: column; }
  footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
