
:root {
  --white: #ffffff;
  --surface: #f4f8f5;
  --surface-hover: #edf4ef;
  --green: #294b3b;
  --green-dark: #1f3b2e;
  --green-light: #b7d7a8;
  --sage: #e1ece3;
  --text: #26352c;
  --muted: #718078;
  --border: #e3eae4;
  --peach: #f4d9cb;
  --lilac: #e8dff7;
  --radius: 22px;
  --shadow: 0 12px 34px rgba(41, 75, 59, .07);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a { color: inherit; }
button, input { font: inherit; }

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid var(--green-light);
  outline-offset: 3px;
}

.site-header {
  height: 76px;
  padding: 0 clamp(20px, 5vw, 76px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  display: inline-flex;
  align-items: stretch;
  text-decoration: none;
  font-size: 1.35rem;
  font-weight: 850;
  letter-spacing: -.075em;
  line-height: 1;
}

.brand-next {
  color: var(--green);
  padding: 10px 0;
}

.brand-step {
  background: var(--green);
  color: white;
  padding: 10px 11px;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 34px);
}

.top-nav a,
.site-footer nav a {
  text-decoration: none;
  font-size: .93rem;
  color: var(--muted);
}

.top-nav a:hover,
.site-footer nav a:hover {
  color: var(--green);
}

.hero {
  min-height: min(820px, calc(100svh - 76px));
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 70px 24px 86px;
  background: radial-gradient(ellipse at 50% 25%, #f5f9f5, #fff 64%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  width: 100%;
  max-width: 1200px;
}

.eyebrow {
  color: var(--green);
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-weight: 800;
  margin: 0 0 15px;
}

.hero-wordmark {
  display: flex;
  align-items: stretch;
  justify-content: center;
  margin: 0;
  font-size: clamp(5rem, 20vw, 16rem);
  font-weight: 900;
  letter-spacing: -.105em;
  line-height: .98;
  white-space: nowrap;
}

.hero-next {
  color: var(--green);
  padding-right: .045em;
}

.hero-step {
  color: white;
  background: var(--green);
  padding: 0 .12em .07em .07em;
  letter-spacing: -.095em;
}

.hero-subtitle {
  margin: clamp(24px, 4vw, 40px) auto 0;
  max-width: 700px;
  font-size: clamp(1.15rem, 2.2vw, 1.8rem);
  letter-spacing: -.035em;
  color: #53665a;
}

.scroll-hint {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: clamp(42px, 7vh, 76px);
  color: var(--muted);
  text-decoration: none;
  font-size: .9rem;
}

.scroll-hint span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--green);
  font-size: 1.3rem;
  transition: transform .2s ease;
}

.scroll-hint:hover span { transform: translateY(4px); }

.hero-decoration {
  position: absolute;
  bottom: 24px;
  right: 8%;
  display: flex;
  align-items: end;
  gap: 8px;
  opacity: .55;
  transform: rotate(-22deg);
}

.hero-decoration span {
  display: block;
  width: 12px;
  height: 12px;
  border: 2px solid var(--green-light);
  border-radius: 3px;
}

.hero-decoration span:nth-child(2) {
  width: 17px;
  height: 17px;
  background: var(--sage);
}

.hero-decoration span:nth-child(3) {
  width: 22px;
  height: 22px;
  background: var(--green-light);
}

.section-wrap {
  width: min(1160px, calc(100% - 48px));
  margin-inline: auto;
}

.guides-section {
  padding-top: 105px;
  padding-bottom: 112px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 36px;
}

.section-heading h2,
.closing-inner h2 {
  margin: 0;
  font-size: clamp(2rem, 4.4vw, 3.65rem);
  letter-spacing: -.065em;
  line-height: 1.1;
}

.section-heading > p:last-child {
  color: var(--muted);
  margin-top: 16px;
  font-size: 1.05rem;
}

.search-form {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 70px;
  padding: 9px;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 8px 28px rgba(41, 75, 59, .05);
}

.search-icon {
  padding-left: 12px;
  color: var(--green);
  font-size: 2rem;
  line-height: 1;
}

.search-form input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 1rem;
}

.search-form input:focus-visible { outline: 0; }

.search-form button,
.button-secondary {
  border: 0;
  border-radius: 12px;
  padding: 13px 22px;
  background: var(--green);
  color: white;
  font-weight: 750;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}

.search-form button:hover,
.button-secondary:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}

.category-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 42px;
}

.category-chip {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: white;
  color: var(--muted);
  padding: 9px 16px;
  cursor: pointer;
  transition: all .18s ease;
}

.category-chip:hover {
  border-color: var(--green-light);
  color: var(--green);
}

.category-chip.is-active {
  border-color: var(--green);
  background: var(--green);
  color: white;
}

.results-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 18px;
}

.results-heading h3 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -.04em;
}

.result-count {
  color: var(--muted);
  font-size: .88rem;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.guide-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 25px;
  min-height: 255px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 3px 14px rgba(41, 75, 59, .025);
  animation: card-in .35s both;
  transition: transform .2s ease, box-shadow .2s ease;
}

.guide-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.guide-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.guide-category {
  color: var(--green);
  background: var(--surface);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: .76rem;
  font-weight: 750;
}

.guide-symbol {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--sage);
  color: var(--green);
  font-size: 1.3rem;
}

.guide-card:nth-child(3n + 2) .guide-symbol { background: var(--peach); }
.guide-card:nth-child(3n) .guide-symbol { background: var(--lilac); }

.guide-card h3 {
  margin: 23px 0 9px;
  font-size: 1.28rem;
  line-height: 1.25;
  letter-spacing: -.035em;
}

.guide-card h3 a { text-decoration: none; }
.guide-card h3 a:hover { color: var(--green); }

.guide-card p {
  color: var(--muted);
  margin: 0 0 20px;
  font-size: .94rem;
}

.guide-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: var(--green);
  font-weight: 800;
  font-size: .9rem;
  text-decoration: none;
}

.guide-card-link span { transition: transform .2s ease; }
.guide-card-link:hover span { transform: translateX(4px); }

.empty-state {
  text-align: center;
  padding: 55px 24px;
  background: var(--surface);
  border-radius: var(--radius);
}

.empty-icon { color: var(--green); font-size: 2.2rem; }
.empty-state h3 { margin: 10px 0 6px; font-size: 1.45rem; }
.empty-state p { max-width: 460px; margin: 0 auto 22px; color: var(--muted); }

.load-error {
  color: #9b3e2e;
  padding: 18px;
  border-radius: 12px;
  background: #fff0ec;
}

.closing-band {
  background: var(--green);
  color: white;
  padding: 70px 24px;
}

.closing-inner {
  width: min(1160px, 100%);
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 36px;
}

.closing-inner .eyebrow { color: var(--green-light); }
.closing-inner h2 { max-width: 700px; }

.closing-inner p:not(.eyebrow) {
  color: #d2dfd5;
  margin-top: 16px;
}

.button-light {
  flex-shrink: 0;
  display: inline-flex;
  gap: 20px;
  align-items: center;
  padding: 15px 20px;
  border-radius: 12px;
  color: var(--green);
  background: white;
  font-weight: 800;
  text-decoration: none;
}

.button-light:hover { background: var(--surface); }

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px 28px;
  padding: 34px clamp(24px, 5vw, 76px);
  background: #f8faf8;
}

.footer-brand {
  color: var(--green);
  font-weight: 850;
  text-decoration: none;
  font-size: 1.15rem;
  letter-spacing: -.04em;
}

.site-footer > p { color: var(--muted); margin: 0; font-size: .86rem; }

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: flex-end;
  grid-column: 2;
  grid-row: 1 / span 2;
}

.copyright-line { grid-column: 1; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-main {
  width: min(850px, calc(100% - 40px));
  min-height: 62vh;
  margin: 0 auto;
  padding: 76px 0 100px;
}

.page-main h1 {
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  letter-spacing: -.07em;
  line-height: 1.05;
  margin: 0 0 22px;
}

.page-main h2 { margin-top: 36px; letter-spacing: -.035em; }
.page-main p, .page-main li { color: #53665a; }
.page-main a { color: var(--green); }

.page-kicker {
  color: var(--green);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.page-card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.guide-detail { max-width: 900px; }
.guide-detail .guide-intro { font-size: 1.2rem; color: var(--muted); }
.steps-list { padding-left: 1.5rem; }
.steps-list li { padding-left: .4rem; margin-bottom: 16px; }

.back-link {
  display: inline-block;
  margin-bottom: 34px;
  color: var(--green);
  font-weight: 750;
  text-decoration: none;
}

@keyframes card-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 850px) {
  .hero { min-height: min(720px, calc(100svh - 76px)); }
  .hero-wordmark { font-size: clamp(5rem, 21vw, 10rem); }
  .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .closing-inner { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 560px) {
  .site-header { height: 66px; padding-inline: 18px; }
  .top-nav { gap: 14px; }
  .top-nav a { font-size: .83rem; }
  .hero {
    min-height: 590px;
    min-height: calc(100svh - 66px);
    padding-inline: 12px;
  }
  .hero-wordmark { font-size: clamp(4rem, 20vw, 7rem); }
  .hero-subtitle { max-width: 340px; }
  .section-wrap { width: calc(100% - 36px); }
  .guides-section { padding-top: 76px; padding-bottom: 78px; }
  .search-form { min-height: 60px; gap: 7px; }
  .search-form input { font-size: .88rem; }
  .search-form button { padding: 11px 13px; }
  .search-icon { padding-left: 5px; font-size: 1.7rem; }
  .guide-grid { grid-template-columns: 1fr; }
  .guide-card { min-height: 220px; }
  .results-heading { align-items: flex-start; flex-direction: column; gap: 3px; }
  .site-footer { grid-template-columns: 1fr; padding: 28px 22px; }
  .site-footer nav { grid-column: 1; grid-row: auto; justify-content: flex-start; }
  .copyright-line { grid-column: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
