:root {
  color-scheme: light;
  --cream: #f6f4ea;
  --paper: #fffdf7;
  --pine: #1f5c45;
  --pine-dark: #153f31;
  --mint: #e2eee3;
  --ink: #20302a;
  --muted: #5d6d63;
  --line: #d8dfd4;
  --radius: 16px;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
}

img, svg { max-width: 100%; }
a { color: var(--pine-dark); }
a:hover { text-decoration-thickness: 2px; }

.wrap {
  width: min(100% - 2rem, 1040px);
  margin-inline: auto;
}

.site-head {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.head-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .4rem 1.25rem;
  padding-block: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
}

.brand img { display: block; width: 172px; height: auto; }

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: .93rem;
}

.nav a {
  display: inline-block;
  padding: .2rem 0;
  color: var(--muted);
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--pine-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
}

main { padding-bottom: 1rem; }

.hero { padding: 3.5rem 0 2rem; max-width: 760px; }
.hero h1,
.page-head h1 {
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -.035em;
  margin: .8rem 0 1rem;
}

.hero h1 { max-width: 14ch; }

.page-head { padding: 2.8rem 0 1.6rem; max-width: 760px; }
.page-head h1 { margin-bottom: .6rem; }

h2 {
  font-size: clamp(1.45rem, 3.5vw, 2rem);
  line-height: 1.2;
  letter-spacing: -.02em;
  margin: 2.6rem 0 .8rem;
}

h3 { font-size: 1.08rem; line-height: 1.3; margin: 0 0 .45rem; }
p { margin: 0 0 1rem; }
.lede { font-size: 1.12rem; color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }

.eyebrow,
.tag {
  display: inline-block;
  border-radius: 999px;
  padding: .16rem .72rem;
  background: var(--mint);
  color: var(--pine-dark);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
}

.tag.plain {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin: .8rem 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 1.4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: .7rem 1.25rem;
  background: var(--pine);
  border: 1px solid var(--pine);
  color: #fffdf7;
  font-weight: 650;
  text-decoration: none;
}

.btn:hover { background: var(--pine-dark); border-color: var(--pine-dark); }

.btn.soft {
  background: transparent;
  color: var(--pine-dark);
  border-color: var(--line);
}

.btn.soft:hover { background: var(--mint); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.25rem;
  box-shadow: 0 8px 20px rgba(21, 63, 49, .045);
}

.card p:last-child { margin-bottom: 0; }

.card .kicker {
  font-size: .78rem;
  font-weight: 700;
  color: var(--pine-dark);
  letter-spacing: .06em;
}

.card .meta {
  margin: .6rem 0 0;
  color: var(--muted);
  font-size: .88rem;
}

.stat {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  margin-top: .9rem;
}

.stat strong {
  font-size: 1.9rem;
  color: var(--pine-dark);
  letter-spacing: -.04em;
  line-height: 1;
}

.stat span { color: var(--muted); font-size: .85rem; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: .5rem 1rem;
}

.section-head h2 { margin-bottom: .4rem; }

.table-scroll {
  overflow-x: auto;
  max-width: 100%;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 660px;
  font-size: .9rem;
}

th, td {
  text-align: left;
  vertical-align: top;
  padding: .7rem 1rem;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

th { background: var(--mint); color: var(--pine-dark); font-size: .82rem; }
tbody tr:last-child td { border-bottom: 0; }

.note {
  border-left: 3px solid var(--pine);
  background: var(--paper);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.2rem;
  margin: 1.4rem 0;
}

.note p:last-child { margin-bottom: 0; }

.steps {
  list-style: none;
  counter-reset: step;
  margin: 1.2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 1.1rem 1.2rem 1.1rem 3.6rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 1.1rem;
  top: 1.1rem;
  width: 1.7rem;
  height: 1.7rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--mint);
  color: var(--pine-dark);
  font-weight: 750;
  font-size: .88rem;
}

.steps p:last-child { margin-bottom: 0; }

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1.6rem;
  align-items: start;
}

.ico {
  width: 28px;
  height: 28px;
  color: var(--pine);
  display: block;
  margin-bottom: .8rem;
}

.list-clean { padding-left: 1.2rem; }
.list-clean li { margin-bottom: .45rem; }

.crumb {
  font-size: .84rem;
  color: var(--muted);
  margin-top: 1.6rem;
}

.crumb a { text-decoration: none; }

.doc-card {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform .15s ease;
}

.doc-card:hover { transform: translateY(-2px); }
.doc-card p { color: var(--muted); margin: 0; }

.site-foot {
  margin-top: 3.5rem;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.foot-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .6rem 1.5rem;
  padding-block: 1.8rem;
  color: var(--muted);
  font-size: .88rem;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--pine-dark); text-decoration: underline; }

@media (max-width: 560px) {
  .head-inner { align-items: flex-start; }
  .nav { gap: .2rem .85rem; font-size: .88rem; }
  .hero { padding-top: 2.5rem; }
  th, td { padding: .6rem .75rem; }
}
