:root {
  --bg: #f3f6f2;
  --bg-accent: #e7efe6;
  --ink: #14201a;
  --muted: #5b6b62;
  --line: #cfd8d1;
  --brand: #1f6b4a;
  --brand-ink: #0f3d2b;
  --card: #ffffff;
  --warn: #8a5a12;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(20, 32, 26, 0.06);
  --font: "Iowan Old Style", "Palatino Linotype", Palatino, "Songti SC", serif;
  --sans: "Avenir Next", "PingFang SC", "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  background:
    radial-gradient(1200px 500px at 10% -10%, #d9eadf 0%, transparent 55%),
    radial-gradient(900px 400px at 100% 0%, #e7e2d4 0%, transparent 45%),
    var(--bg);
  line-height: 1.6;
}
a { color: var(--brand-ink); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--brand); }
.wrap { width: min(1080px, calc(100% - 2rem)); margin-inline: auto; }

.site-header {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(243, 246, 242, 0.88);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 1rem;
  min-height: 64px; flex-wrap: wrap; padding: 0.6rem 0;
}
.brand {
  font-family: var(--font);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--brand-ink);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.site-nav { display: flex; gap: 0.9rem; flex-wrap: wrap; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 600; }
.site-nav a[aria-current="page"] { color: var(--brand); }
.site-search input, .hero-search input, .ask-form input, .ask-form textarea, .ask-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.65rem 1rem;
  background: #fff;
  font: inherit;
}
.ask-form textarea, .ask-form select { border-radius: 12px; }
.site-search { flex: 1; min-width: 160px; max-width: 260px; }
.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; padding: 0.55rem 1rem;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  text-decoration: none; font-weight: 600;
}
.btn-cta {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.btn-cta:hover { color: #fff; filter: brightness(1.05); }

.hero { padding: 3.5rem 0 2rem; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); font-size: 0.75rem; margin: 0 0 0.6rem; }
.hero h1, .page-head h1, .article h1 {
  font-family: var(--font);
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.1;
  margin: 0 0 0.8rem;
  color: var(--brand-ink);
}
.lead { font-size: 1.1rem; color: var(--muted); max-width: 40rem; }
.hero-search { display: flex; gap: 0.6rem; margin-top: 1.4rem; max-width: 560px; }
.hero-search input { flex: 1; }

.section { padding: 1.5rem 0 2.2rem; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.section-head h2, .section h2 { font-family: var(--font); font-size: 1.5rem; margin: 0 0 1rem; }
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.card:hover { transform: translateY(-2px); border-color: #9db5a6; color: inherit; }
.card h3 { margin: 0 0 0.45rem; font-family: var(--font); font-size: 1.2rem; }
.card p { margin: 0; color: var(--muted); }
.meta { display: block; margin-top: 0.55rem; color: var(--muted); font-size: 0.9rem; }

.link-list, .path-list { list-style: none; padding: 0; margin: 0; }
.link-list li, .path-list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 0.2rem;
}
.link-list a, .path-list a { font-weight: 650; text-decoration: none; color: var(--brand-ink); }
.path-list { counter-reset: step; }
.path-list li { counter-increment: step; padding-left: 2rem; position: relative; }
.path-list li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0.85rem;
  width: 1.4rem; height: 1.4rem; border-radius: 50%;
  background: var(--bg-accent); display: grid; place-items: center;
  font-size: 0.8rem; font-weight: 700;
}

.page-head { padding: 2rem 0 0.5rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: 0.4rem; color: var(--muted); font-size: 0.9rem; margin-bottom: 1rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.article { padding-bottom: 3rem; }
.prose { max-width: 42rem; }
.prose h2 { font-family: var(--font); margin-top: 1.8rem; }
.prose p, .prose li { color: #24362c; }
.cta-band {
  margin-top: 1.5rem;
  padding: 1.3rem 1.2rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #e7efe6, #f7f3ea);
  border: 1px solid var(--line);
}
.ask-form { display: grid; gap: 0.9rem; max-width: 520px; }
.ask-form label { display: grid; gap: 0.35rem; font-weight: 600; }

.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  background: #eef3ee;
  padding: 2rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 1rem;
}
.footer-grid a { display: block; margin: 0.25rem 0; text-decoration: none; color: var(--ink); }
.footer-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.footer-note { margin-top: 1.4rem; color: var(--muted); font-size: 0.9rem; }

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .site-nav, .site-search { display: none; width: 100%; }
  .site-nav.is-open, .site-search.is-open { display: flex; }
  .site-nav.is-open { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-search { flex-direction: column; }
}
