:root {
  --ink: #102018;
  --muted: #5d6d64;
  --soft: #edf4f0;
  --line: #d8e3dc;
  --green: #008f68;
  --green-dark: #006c50;
  --amber: #a86d00;
  --bg: #f6f9f7;
  --card: #ffffff;
  --code: #102019;
  --shadow: 0 14px 40px rgba(16, 32, 24, .06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", sans-serif;
  line-height: 1.7;
}
a { color: inherit; }
header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 68px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
header a { text-decoration: none; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.brand-mark {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--green);
  font-size: 13px;
}
.header-actions { display: flex; align-items: center; gap: 22px; color: var(--muted); font-size: 14px; }
.header-actions a:last-child { color: var(--green-dark); font-weight: 650; }
.eyebrow {
  margin: 0 0 12px;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.hero {
  max-width: 1220px;
  margin: 0 auto;
  padding: 78px 32px 64px;
}
.hero h1 { max-width: 850px; margin: 0 0 18px; font-size: clamp(42px, 7vw, 82px); line-height: 1.04; letter-spacing: -.065em; }
.hero .lead { max-width: 720px; margin: 0; color: var(--muted); font-size: 20px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 17px;
  border: 1px solid var(--line);
  border-radius: 7px;
  text-decoration: none;
  background: var(--card);
  font-weight: 650;
}
.button.primary { border-color: var(--green); color: #fff; background: var(--green); }
.button.primary:hover { background: var(--green-dark); }
.button:hover { border-color: var(--green); }
.home-grid { max-width: 1220px; margin: 0 auto; padding: 0 32px 88px; }
.section-label { margin: 0 0 16px; color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: .08em; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  min-height: 176px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  box-shadow: var(--shadow);
}
.card:hover { border-color: #8ccdb7; transform: translateY(-1px); transition: .18s ease; }
.card h2 { margin: 0 0 8px; font-size: 21px; letter-spacing: -.02em; }
.card p { margin: 0 0 16px; color: var(--muted); }
.card a { color: var(--green-dark); font-weight: 650; text-decoration: none; }
.resource-strip {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 32px 88px;
}
.resource-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.resource {
  padding: 20px 22px;
  border-left: 3px solid var(--green);
  background: #fff;
}
.resource h3 { margin: 0 0 5px; font-size: 17px; }
.resource p { margin: 0; color: var(--muted); font-size: 14px; }
.notice, .warning {
  margin: 28px 0;
  padding: 17px 19px;
  border-left: 3px solid var(--green);
  background: #fff;
}
.warning { border-color: #d49b32; }
.site-footer {
  max-width: 1220px;
  margin: 0 auto;
  padding: 26px 32px 60px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.layout {
  max-width: 1320px;
  margin: 0 auto;
  padding: 48px 32px 100px;
  display: grid;
  grid-template-columns: 245px minmax(0, 820px);
  gap: 62px;
}
.sidebar { position: sticky; top: 100px; align-self: start; }
.sidebar-group { margin: 0 0 26px; }
.sidebar h2 { margin: 0 0 9px; color: var(--muted); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.sidebar a { display: block; padding: 6px 0; color: var(--muted); text-decoration: none; font-size: 14px; }
.sidebar a:hover, .sidebar a[aria-current="page"] { color: var(--green-dark); font-weight: 700; }
.breadcrumbs { margin: 0 0 26px; color: var(--muted); font-size: 13px; }
.breadcrumbs a { text-decoration: none; }
article h1 { margin: 0 0 18px; font-size: clamp(38px, 6vw, 64px); line-height: 1.08; letter-spacing: -.06em; }
article h2 { margin: 56px 0 15px; font-size: 28px; line-height: 1.2; letter-spacing: -.035em; }
article h3 { margin: 30px 0 9px; font-size: 19px; }
article p, article li { color: var(--muted); }
article .lead { margin: 0 0 28px; font-size: 19px; }
article ul, article ol { padding-left: 23px; }
article li { margin: 7px 0; }
.steps { list-style: none; padding: 0; counter-reset: step; }
.steps > li { position: relative; padding: 4px 0 22px 50px; counter-increment: step; border-bottom: 1px solid var(--line); }
.steps > li + li { padding-top: 22px; }
.steps > li::before {
  content: counter(step);
  position: absolute;
  top: 4px;
  left: 0;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--ink);
  font-weight: 750;
}
.steps > li + li::before { top: 22px; }
.steps strong { color: var(--ink); }
pre {
  overflow: auto;
  margin: 14px 0 5px;
  padding: 17px 19px;
  border-radius: 7px;
  color: #e8fff6;
  background: var(--code);
  line-height: 1.6;
}
code { padding: 2px 5px; border-radius: 4px; color: var(--ink); background: var(--soft); font-family: "SFMono-Regular", Consolas, monospace; font-size: .92em; }
.meta { display: flex; flex-wrap: wrap; gap: 9px; margin: 0 0 28px; }
.tag { padding: 4px 9px; border-radius: 99px; color: var(--green-dark); background: var(--soft); font-size: 12px; font-weight: 700; }
.table-wrap { overflow-x: auto; margin: 22px 0; }
table { width: 100%; border-collapse: collapse; background: #fff; font-size: 14px; }
th, td { padding: 12px 13px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--ink); background: var(--soft); }
td { color: var(--muted); }
.page-nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 64px; padding-top: 22px; border-top: 1px solid var(--line); }
.page-nav a { max-width: 48%; color: var(--green-dark); text-decoration: none; font-weight: 700; }
.page-nav a:last-child { text-align: right; }
.small { color: var(--muted); font-size: 13px; }
@media (max-width: 900px) {
  .cards, .resource-grid { grid-template-columns: 1fr 1fr; }
  .layout { grid-template-columns: 205px minmax(0, 1fr); gap: 36px; }
}
@media (max-width: 700px) {
  header { height: 62px; padding: 0 20px; }
  .header-actions { gap: 12px; font-size: 12px; }
  .hero { padding: 54px 22px 46px; }
  .hero .lead, article .lead { font-size: 17px; }
  .home-grid, .resource-strip { padding-left: 22px; padding-right: 22px; }
  .cards, .resource-grid { grid-template-columns: 1fr; }
  .layout { display: block; padding: 34px 22px 70px; }
  .sidebar { position: static; margin-bottom: 38px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
  .sidebar-group { display: inline; margin-right: 14px; }
  .sidebar h2 { display: inline-block; margin: 0 7px 7px 0; }
  .sidebar a { display: inline-block; margin-right: 12px; }
  article h2 { margin-top: 44px; font-size: 25px; }
  .page-nav { flex-direction: column; }
  .page-nav a, .page-nav a:last-child { max-width: none; text-align: left; }
}
