:root {
  --soil: #2f2a1f;
  --leaf: #2f6b4f;
  --leaf-dark: #214d3a;
  --sage: #dfe8dc;
  --mint: #f3f8f0;
  --sun: #f6bd60;
  --clay: #b65d3d;
  --ink: #20231f;
  --muted: #6a7068;
  --line: #d9ded5;
  --paper: #fffdf7;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 5vw, 64px);
  background: rgba(255, 253, 247, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--leaf);
  color: #fff;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 28px);
  color: var(--muted);
  font-size: 14px;
}

nav a,
.footer-links a,
.text-link {
  text-decoration: none;
}

nav a:hover,
.footer-links a:hover,
.text-link:hover {
  color: var(--leaf);
}

.hero {
  position: relative;
  min-height: min(760px, calc(100vh - 72px));
  display: grid;
  align-items: center;
  padding: clamp(28px, 7vw, 72px);
  overflow: hidden;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 253, 247, 0.94), rgba(255, 253, 247, 0.68) 46%, rgba(255, 253, 247, 0.12));
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--clay);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(40px, 7vw, 78px);
}

h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
}

h3 {
  margin: 0;
  font-size: 22px;
}

.hero-copy p:not(.eyebrow),
.page-hero p,
.section-heading p,
.cta-band p {
  max-width: 680px;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border-radius: 8px;
  background: var(--leaf);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.button.secondary {
  background: var(--soil);
}

.intro-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.intro-band div {
  padding: clamp(22px, 4vw, 42px);
  background: var(--mint);
}

.intro-band span {
  color: var(--clay);
  font-weight: 900;
}

.intro-band h2 {
  margin-top: 12px;
  font-size: 24px;
}

.intro-band p,
.guide-card span,
.legal-copy p,
.article-body p,
.article-body li,
.note p {
  color: var(--muted);
}

.section,
.page-main,
.article-layout {
  padding: clamp(32px, 6vw, 76px) clamp(18px, 5vw, 64px);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.guide-card {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.guide-card p {
  margin: 0;
  color: var(--clay);
  font-size: 13px;
  font-weight: 800;
}

.guide-card a {
  text-decoration: none;
}

.guide-card a:hover {
  color: var(--leaf);
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 clamp(18px, 5vw, 64px) clamp(36px, 6vw, 72px);
  padding: clamp(24px, 5vw, 48px);
  border-radius: 8px;
  background: var(--sage);
}

.page-hero {
  max-width: 880px;
  margin-bottom: 32px;
}

.page-hero.compact h1 {
  font-size: clamp(38px, 5vw, 58px);
}

.page-grid {
  padding-bottom: 32px;
}

.article-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 780px);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}

.article-aside {
  position: sticky;
  top: 92px;
}

.article-aside a {
  color: var(--leaf);
  font-weight: 800;
  text-decoration: none;
}

.note {
  margin-top: 24px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--mint);
}

.article-body {
  padding-bottom: 40px;
}

.article-body h1 {
  font-size: clamp(36px, 5vw, 58px);
}

.article-body h2 {
  margin-top: 42px;
  font-size: clamp(26px, 3vw, 34px);
}

.article-body h3 {
  margin-top: 28px;
}

.article-body code {
  white-space: normal;
  color: var(--leaf-dark);
  font-family: inherit;
  font-weight: 800;
}

.legal-copy {
  max-width: 840px;
}

.legal-copy h2 {
  margin-top: 32px;
  font-size: 28px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(18px, 5vw, 64px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer p {
  margin: 6px 0 0;
}

.footer-links {
  display: flex;
  gap: 18px;
}

@media (max-width: 900px) {
  .site-header,
  .site-footer,
  .section-heading,
  .cta-band {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    flex-wrap: wrap;
  }

  .hero {
    min-height: 680px;
  }

  .hero::after {
    background: linear-gradient(180deg, rgba(255, 253, 247, 0.96), rgba(255, 253, 247, 0.70) 58%, rgba(255, 253, 247, 0.18));
  }

  .intro-band,
  .guide-grid,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-aside {
    position: static;
  }
}

@media (max-width: 520px) {
  .site-header {
    padding: 14px 16px;
  }

  .brand {
    font-size: 15px;
  }

  nav {
    font-size: 13px;
    gap: 12px;
  }

  .hero {
    min-height: 640px;
    padding: 28px 18px;
  }

  h1 {
    font-size: 38px;
  }
}
