:root {
  --green: #143d2d;
  --green-main: #2e5d32;
  --green-light: #477a49;
  --green-bg: #f2f7f5;
  --gold: #f59e0b;
  --gold-hover: #e58d00;
  --cream: #fff6dd;
  --warm: #fffaf2;
  --ink: #17211b;
  --muted: #53635a;
  --border: #e5dfd1;
  --white: #fff;
  --radius: 16px;
  --shadow: 0 12px 34px rgba(20, 61, 45, .09);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: Inter, Arial, sans-serif; color: var(--ink); line-height: 1.68; background: var(--white); }
img { max-width: 100%; height: auto; }
a { text-underline-offset: 3px; }
.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 1000; padding: 10px 14px; border-radius: 8px; background: var(--white); color: var(--green); font-weight: 800; }
.skip-link:focus { top: 12px; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--border); backdrop-filter: blur(12px); }
.nav { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { color: var(--green); font-size: 22px; font-weight: 850; letter-spacing: -.02em; text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--ink); font-weight: 700; text-decoration: none; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--green-main); }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; border: 0; border-radius: 10px; background: var(--gold); color: #244d29; font: inherit; font-weight: 800; text-align: center; text-decoration: none; cursor: pointer; }
.button:hover, .button:focus-visible { background: var(--gold-hover); }
.button.secondary { background: var(--green); color: var(--white); }
.button.secondary:hover, .button.secondary:focus-visible { background: var(--green-main); }
.button.outline { background: var(--white); color: var(--green); border: 1px solid var(--green); }

.hero { padding: 92px 0 72px; background: linear-gradient(135deg, var(--green-bg), var(--warm)); }
.article-hero { padding: 78px 0 58px; border-bottom: 1px solid var(--border); }
.eyebrow { display: inline-block; margin-bottom: 15px; padding: 6px 12px; border-radius: 999px; color: var(--green); background: var(--cream); border: 1px solid var(--border); font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
h1 { max-width: 920px; color: var(--green); font-size: clamp(38px, 6vw, 66px); line-height: 1.08; letter-spacing: -.035em; }
.article-hero h1 { font-size: clamp(36px, 5.5vw, 60px); }
.lead { max-width: 820px; margin-top: 22px; color: var(--muted); font-size: clamp(18px, 2.5vw, 21px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.breadcrumb { margin-bottom: 22px; color: var(--muted); font-size: 14px; }
.breadcrumb a { color: var(--green-main); }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 22px; color: var(--muted); font-size: 14px; }

main section { padding: 72px 0; }
main section.alt { background: var(--warm); }
h2 { color: var(--green); font-size: clamp(28px, 4vw, 42px); line-height: 1.2; margin-bottom: 18px; }
h3 { color: var(--green); font-size: 22px; line-height: 1.3; margin-bottom: 10px; }
p + p { margin-top: 14px; }
.intro { max-width: 820px; color: var(--muted); font-size: 18px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 32px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { padding: 28px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.card p, .card li { color: var(--muted); }
.card ul { margin: 12px 0 0 20px; }
.card li { margin-bottom: 7px; }
.card .button { margin-top: 20px; }
.highlight { padding: 30px; border-left: 5px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0; background: var(--cream); }
.steps { counter-reset: step; display: grid; gap: 16px; margin-top: 28px; }
.step { position: relative; padding: 22px 22px 22px 70px; border: 1px solid var(--border); border-radius: 12px; background: var(--white); }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 20px; top: 20px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: var(--white); font-weight: 800; }

.article-layout { display: grid; grid-template-columns: minmax(0, 760px) minmax(220px, 1fr); gap: 54px; align-items: start; }
.prose { font-size: 17px; }
.prose h2 { margin-top: 48px; font-size: clamp(27px, 4vw, 36px); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 30px; }
.prose p, .prose li { color: #35433b; }
.prose ul, .prose ol { margin: 16px 0 22px 24px; }
.prose li { margin-bottom: 9px; }
.prose a { color: var(--green-main); font-weight: 700; }
.prose .highlight { margin: 34px 0; }
.sidebar { position: sticky; top: 104px; display: grid; gap: 18px; }
.sidebar .card { padding: 22px; box-shadow: none; }
.sidebar ul { list-style: none; margin: 12px 0 0; }
.sidebar li + li { margin-top: 10px; }
.sidebar a { color: var(--green); font-weight: 700; }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 28px; }
.related-card { display: flex; flex-direction: column; }
.related-card .button { margin-top: auto; align-self: flex-start; }
.cta-band { padding: 36px; border-radius: 20px; background: var(--green); color: var(--white); }
.cta-band h2, .cta-band p { color: var(--white); }

.articles-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 34px; }
.blog-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.blog-card picture { display: block; background: var(--green-bg); }
.blog-img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--green-bg); }
.blog-content { display: flex; flex: 1; flex-direction: column; padding: 26px; }
.blog-content h3 { font-size: 21px; }
.blog-content p { flex: 1; margin-bottom: 0; }
.blog-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; color: var(--muted); font-size: 13px; }
.blog-tag { display: inline-flex; padding: 5px 11px; border: 1px solid var(--border); border-radius: 999px; background: var(--cream); color: var(--green); font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.article-card-link { align-self: flex-start; margin-top: 22px; }
.archive-cta { margin-top: 54px; }

.terms { max-width: 880px; }
.terms article { padding: 28px 0; border-bottom: 1px solid var(--border); }
.terms article h2 { font-size: 28px; }
.terms ul { margin: 12px 0 0 22px; }
.terms li { margin-bottom: 8px; }
.terms a { color: var(--green-main); }
.notice { margin-top: 28px; padding: 18px 20px; border-radius: 12px; background: var(--green-bg); color: var(--green); font-weight: 700; }
.settings-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.status { margin-top: 16px; min-height: 26px; color: var(--green); font-weight: 800; }

.site-footer { padding: 46px 0; background: #0f291e; color: #cbd5d1; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 32px; }
.site-footer h2, .site-footer h3 { color: var(--white); font-size: 18px; }
.site-footer ul { list-style: none; }
.site-footer li + li { margin-top: 7px; }
.site-footer a { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 34px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.16); }

@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .related-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .nav { padding: 14px 0; align-items: flex-start; }
  .nav-links { justify-content: flex-end; flex-wrap: wrap; gap: 10px 16px; }
  .nav-links .hide-mobile { display: none; }
  .grid, .grid.two { grid-template-columns: 1fr; }
  .hero { padding: 66px 0 54px; }
  main section { padding: 56px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .articles-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .container { width: min(100% - 28px, 1120px); }
  .nav { display: block; }
  .nav-links { margin-top: 10px; justify-content: flex-start; }
  .nav-links a { font-size: 14px; }
  .hero-actions .button, .settings-row .button { width: 100%; }
  .card, .highlight, .cta-band { padding: 22px 18px; }
  .related-grid, .footer-grid { grid-template-columns: 1fr; }
}
