:root {
  color-scheme: light dark;
  --bg: #f4f7f3;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: #ffffff;
  --text: #172019;
  --muted: #607065;
  --line: rgba(30, 58, 40, 0.13);
  --accent: #237a49;
  --accent-strong: #135f36;
  --accent-soft: #e2f3e8;
  --warning: #fff4d9;
  --shadow: 0 22px 55px rgba(22, 58, 35, 0.09);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101512;
    --surface: rgba(27, 36, 30, 0.82);
    --surface-strong: #1a231d;
    --text: #edf4ef;
    --muted: #a4b4aa;
    --line: rgba(219, 238, 225, 0.13);
    --accent: #6ed39a;
    --accent-strong: #8de5b3;
    --accent-soft: #183d29;
    --warning: #463817;
    --shadow: 0 22px 55px rgba(0, 0, 0, 0.22);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 0%, rgba(91, 190, 126, 0.14), transparent 32rem),
    var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Helvetica Neue", sans-serif;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-strong); text-underline-offset: 0.18em; }

.shell { width: min(920px, calc(100% - 40px)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(18px) saturate(140%);
}

.nav {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  color: var(--text);
  font-size: 1.08rem;
  font-weight: 760;
  letter-spacing: -0.02em;
  text-decoration: none;
}

nav { display: flex; gap: 20px; }
nav a { color: var(--muted); font-size: 0.92rem; text-decoration: none; }
nav a:hover, nav a[aria-current="page"] { color: var(--accent-strong); }

.hero { padding-block: clamp(74px, 12vw, 132px) 96px; }

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 760;
  letter-spacing: 0.19em;
}

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.025em; }
h1 { margin: 0; font-size: clamp(2.55rem, 8vw, 5rem); }
h2 { margin-top: 2.4em; font-size: 1.55rem; }
h3 { margin: 1.9em 0 0.45em; font-size: 1.06rem; }

.lead {
  max-width: 670px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.5vw, 1.24rem);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 58px;
}

.card {
  min-height: 270px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 24px;
  color: var(--text);
  background: var(--surface);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease;
}

.card:hover { transform: translateY(-3px); border-color: var(--accent); }
.card h2 { margin: 12px 0 10px; font-size: 1.7rem; }
.card p { margin: 0; color: var(--muted); }
.card-kicker { color: var(--accent-strong); font-size: 0.73rem; font-weight: 760; letter-spacing: 0.16em; }
.card-action { margin-top: auto; color: var(--accent-strong); font-weight: 680; }

.document { max-width: 760px; padding-block: 72px 96px; }
.document h1 { font-size: clamp(2.35rem, 7vw, 4.1rem); }
.document-meta { margin: 14px 0 42px; color: var(--muted); }
.document section { padding-top: 4px; }
.document p, .document li, .document dd { color: var(--muted); }
.document li + li { margin-top: 7px; }

.summary {
  margin: 34px 0 48px;
  padding: 24px 26px;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line));
  border-radius: 18px;
  background: var(--accent-soft);
}

.summary p { margin: 8px 0 0; color: var(--text); }
.warning { padding: 17px 20px; border-radius: 13px; background: var(--warning); color: var(--text) !important; }

dl { display: grid; grid-template-columns: minmax(120px, 0.35fr) 1fr; gap: 14px 24px; }
dt { font-weight: 700; }
dd { margin: 0; }

.button-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  background: var(--surface-strong);
  font-weight: 650;
  text-decoration: none;
}
.button.primary { border-color: var(--accent-strong); color: #fff; background: var(--accent-strong); }

.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 0.88rem; }
.footer-row { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }

@media (max-width: 680px) {
  .shell { width: min(100% - 28px, 920px); }
  .nav { min-height: 58px; }
  nav { gap: 13px; }
  .hero { padding-top: 60px; }
  .card-grid { grid-template-columns: 1fr; }
  .card { min-height: 230px; }
  .document { padding-top: 54px; }
  dl { grid-template-columns: 1fr; gap: 3px; }
  dd { margin-bottom: 13px; }
  .footer-row { align-items: flex-start; flex-direction: column; justify-content: center; }
}

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