:root {
  --bg: #f8fbf8;
  --surface: #ffffff;
  --surface-2: #eef7f0;
  --surface-3: #e1f1e5;
  --text: #173126;
  --muted: #5d7066;
  --primary: #17643a;
  --primary-dark: #0e4d2a;
  --accent: #e7b426;
  --border: #d7e4da;
  --shadow-sm: 0 8px 24px rgba(18, 70, 39, .07);
  --shadow: 0 18px 50px rgba(18, 70, 39, .11);
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 30px;
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.72 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea { font: inherit; }
a { color: var(--primary); text-decoration-thickness: .08em; text-underline-offset: .2em; }
a:hover { color: var(--primary-dark); }
:focus-visible { outline: 3px solid #efc850; outline-offset: 3px; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 999; padding: 10px 15px; border-radius: 10px; background: var(--text); color: #fff; }
.skip-link:focus { top: 12px; }
.hidden { display: none !important; }

.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(215, 228, 218, .9); background: rgba(248, 251, 248, .94); backdrop-filter: blur(14px); }
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { flex: 0 0 auto; }
.brand img { width: 230px; }
.menu-toggle { display: none; align-items: center; gap: 7px; min-height: 43px; padding: 7px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); font-weight: 800; cursor: pointer; }
.nav-list { display: flex; align-items: center; gap: 22px; margin: 0; padding: 0; list-style: none; }
.nav-list a { color: var(--text); font-size: .94rem; font-weight: 750; text-decoration: none; }
.nav-list a:hover, .nav-list a[aria-current="page"] { color: var(--primary); }

.hero { position: relative; overflow: hidden; padding: 80px 0 62px; background: radial-gradient(circle at 85% 25%, rgba(231, 180, 38, .13), transparent 25%), linear-gradient(135deg, #f7fcf8, #e8f5eb); }
.hero::after { content: ""; position: absolute; right: -90px; bottom: -130px; width: 360px; height: 360px; border-radius: 50%; border: 70px solid rgba(23, 100, 58, .055); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(320px, .72fr); gap: 58px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--primary); font-size: .76rem; font-weight: 850; letter-spacing: .1em; text-decoration: none; text-transform: uppercase; }
.hero h1, .page-title { max-width: 820px; margin: .28em 0 .28em; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.5rem, 5vw, 4.85rem); font-weight: 700; line-height: 1.01; letter-spacing: -.045em; }
.hero p { max-width: 720px; margin-bottom: 0; color: var(--muted); font-size: 1.18rem; }
.hero-card { position: relative; padding: 31px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: rgba(255, 255, 255, .92); box-shadow: var(--shadow); }
.hero-card::before { content: "✓"; position: absolute; top: -18px; right: 26px; display: grid; width: 48px; height: 48px; place-items: center; border-radius: 50%; background: var(--accent); color: #332800; font-size: 1.35rem; font-weight: 900; }
.hero-card h2 { margin: 0 0 12px; font-size: 1.3rem; }
.hero-card ul { margin: 0; padding-left: 20px; }
.hero-card li + li { margin-top: 7px; }
.actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 26px; }
.button { display: inline-flex; min-height: 47px; align-items: center; justify-content: center; padding: 10px 19px; border: 1px solid var(--primary); border-radius: 999px; background: var(--primary); color: #fff; font-weight: 820; text-decoration: none; }
.button:hover { background: var(--primary-dark); color: #fff; }
.button.secondary { border-color: var(--border); background: var(--surface); color: var(--primary); }
.button.secondary:hover { border-color: var(--primary); background: var(--surface-2); }

.section { padding: 64px 0; }
.section.tint { background: var(--surface-2); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 26px; margin-bottom: 28px; }
.section-head h2 { max-width: 700px; margin: .22em 0 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.9rem, 3vw, 2.8rem); line-height: 1.12; letter-spacing: -.025em; }
.section-head p { max-width: 560px; margin: 0; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card { overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.article-card { display: flex; min-height: 100%; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-media { display: block; overflow: hidden; aspect-ratio: 40/21; background: var(--surface-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.article-card:hover .card-media img { transform: scale(1.025); }
.card-content { display: flex; flex: 1; flex-direction: column; padding: 22px; }
.card-labels { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card-kicker { align-self: flex-start; color: var(--primary); font-size: .75rem; font-weight: 850; letter-spacing: .09em; text-decoration: none; text-transform: uppercase; }
.card-status { padding: 3px 8px; border: 1px solid #e1c46a; border-radius: 999px; background: #fff8dc; color: #725900; font-size: .7rem; font-weight: 800; text-transform: uppercase; }
.card h2, .card h3 { margin: .45rem 0 .5rem; font-size: 1.28rem; line-height: 1.29; letter-spacing: -.01em; }
.card h2 a, .card h3 a { color: var(--text); text-decoration: none; }
.card h2 a:hover, .card h3 a:hover { color: var(--primary); }
.card p { margin: 0; color: var(--muted); }
.card-meta { display: flex; flex-wrap: wrap; gap: 7px 14px; margin-top: auto; padding-top: 16px; color: var(--muted); font-size: .84rem; }
.card-meta span + span::before { content: "•"; margin-right: 14px; }
.category-card { min-height: 200px; display: flex; flex-direction: column; justify-content: space-between; padding: 27px; color: var(--text); text-decoration: none; transition: border-color .2s ease, transform .2s ease; }
.category-card:hover { transform: translateY(-3px); border-color: #a5c9af; color: var(--text); }
.category-card > span { font-size: 2.1rem; }
.category-card strong { display: block; margin: 17px 0 3px; font-size: 1.25rem; }

.page-header { padding: 58px 0 32px; background: linear-gradient(180deg, var(--surface-2), transparent); }
.page-header .page-title { max-width: 900px; font-size: clamp(2.35rem, 4.5vw, 4.1rem); }
.page-header p { max-width: 760px; color: var(--muted); font-size: 1.08rem; }
.search-box { position: relative; display: flex; gap: 10px; max-width: 760px; margin: 28px 0 0; }
.search-box::before { content: "⌕"; position: absolute; left: 16px; top: 7px; color: var(--primary); font-size: 1.5rem; }
.search-box input { width: 100%; min-height: 52px; padding: 0 17px 0 48px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); color: var(--text); }
.empty-state { padding: 44px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); text-align: center; }

.breadcrumb { margin: 25px 0; color: var(--muted); font-size: .87rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.breadcrumb li { min-width: 0; }
.breadcrumb li:last-child { max-width: 48ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: 7px; color: #97a89e; }
.content-layout { display: grid; grid-template-columns: minmax(0, 800px) minmax(260px, 310px); gap: 45px; align-items: start; }
.article { min-width: 0; padding: clamp(25px, 5vw, 58px); border: 1px solid var(--border); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow-sm); }
.article-header h1 { margin: .25em 0 .25em; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.25rem, 5vw, 4.05rem); line-height: 1.03; letter-spacing: -.04em; }
.article-deck { max-width: 66ch; margin: 0 0 18px; color: var(--muted); font-size: 1.08rem; }
.article-meta { display: flex; flex-wrap: wrap; gap: 7px 15px; color: var(--muted); font-size: .88rem; }
.article-meta span + span::before { content: "•"; margin-right: 15px; }
.article-cover { margin: 31px 0 27px; }
.article-cover img { width: 100%; border-radius: 18px; aspect-ratio: 40/21; object-fit: cover; background: var(--surface-2); }
.article-cover figcaption { margin-top: 8px; color: var(--muted); font-size: .8rem; }
.article-lead { margin: 0 0 27px; padding-left: 19px; border-left: 4px solid var(--accent); color: #344e40; font-size: 1.24rem !important; font-weight: 620; }
.article h2 { margin: 2.15em 0 .65em; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.62rem, 2.8vw, 2.05rem); line-height: 1.18; letter-spacing: -.018em; }
.article h3 { margin: 1.65em 0 .48em; font-size: 1.27rem; line-height: 1.3; }
.article p, .article li { font-size: 1.045rem; }
.article p { margin: 0 0 1.15em; }
.article ul, .article ol { padding-left: 1.35em; }
.article li + li { margin-top: .52em; }
.article table { width: 100%; margin: 24px 0; border-collapse: collapse; font-size: .96rem; }
.article th, .article td { padding: 11px 13px; border: 1px solid var(--border); text-align: left; vertical-align: top; }
.article th { background: var(--surface-2); }
.article :target { scroll-margin-top: 105px; }
.toc, .notice, .checklist-box { margin: 28px 0; padding: 21px; border: 1px solid var(--border); border-radius: 15px; background: var(--surface-2); }
.toc strong, .notice strong, .checklist-box strong { display: block; margin-bottom: 7px; }
.toc ul { margin: 0; padding-left: 19px; columns: 2; column-gap: 30px; }
.notice { border-left: 5px solid var(--accent); background: #fffaf0; }
.notice.danger { border-left-color: #b3261e; background: #fff6f5; }
.steps { counter-reset: steps; padding-left: 0 !important; list-style: none; }
.steps > li { position: relative; min-height: 46px; padding-left: 54px; }
.steps > li::before { counter-increment: steps; content: counter(steps); position: absolute; left: 0; top: 0; display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; background: var(--surface-3); color: var(--primary); font-weight: 900; }
.review-note { margin-top: 42px; padding: 20px; border: 1px dashed #9eb4a4; border-radius: 14px; background: #fafcfa; color: var(--muted); }
.review-note p { margin: 5px 0 0; font-size: .92rem; }
.author-box { display: flex; gap: 18px; margin-top: 24px; padding: 23px; border-radius: 16px; background: var(--surface-2); }
.author-box p { margin: 4px 0; font-size: .94rem; }
.author-avatar { display: grid; width: 62px; height: 62px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: var(--surface-3); color: var(--primary); font-weight: 900; }
.sidebar { position: sticky; top: 102px; }
.sidebar-box { margin-bottom: 18px; padding: 22px; border: 1px solid var(--border); border-radius: 17px; background: var(--surface); }
.sidebar-box h2 { margin: .35rem 0 .5rem; font-size: 1.13rem; }
.sidebar-box p:last-child, .sidebar-box ul:last-child { margin-bottom: 0; }
.sidebar-box ul { padding-left: 19px; }
.sidebar-guide { background: var(--surface-2); }

.prose { max-width: 840px; }
.prose h2 { margin-top: 2em; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: grid; gap: 7px; margin-bottom: 16px; }
.form-field input, .form-field textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; }
.form-field textarea { min-height: 150px; }
.checklist li { margin-bottom: .6em; }

.site-footer { margin-top: 70px; padding: 56px 0 27px; background: #103629; color: #d9e8df; }
.footer-grid { display: grid; grid-template-columns: 1.25fr repeat(3, .75fr); gap: 38px; }
.site-footer h2, .site-footer h3 { margin-top: 0; color: #fff; }
.site-footer h2 { font-family: Georgia, "Times New Roman", serif; }
.site-footer h3 { font-size: 1rem; }
.site-footer a { color: #d9e8df; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li + li { margin-top: 7px; }
.footer-about p { max-width: 38ch; }
.copyright { display: flex; justify-content: space-between; gap: 20px; margin-top: 42px; padding-top: 23px; border-top: 1px solid rgba(255, 255, 255, .14); color: #bcd1c4; font-size: .87rem; }

@media (max-width: 1040px) {
  .nav-list { gap: 15px; }
  .nav-list a { font-size: .88rem; }
  .content-layout { grid-template-columns: minmax(0, 1fr) 270px; gap: 28px; }
}

@media (max-width: 900px) {
  .container { width: min(calc(100% - 32px), var(--max)); }
  .menu-toggle { display: inline-flex; }
  .nav-list { position: absolute; top: 78px; left: 0; right: 0; display: none; max-height: calc(100vh - 78px); overflow-y: auto; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 20px 20px; border-bottom: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-sm); }
  .nav-list.is-open { display: flex; }
  .nav-list a { display: block; padding: 11px 4px; border-bottom: 1px solid #edf2ee; font-size: 1rem; }
  .hero { padding: 58px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero-card { max-width: 650px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content-layout, .footer-grid { grid-template-columns: 1fr 1fr; }
  .content-layout { gap: 25px; }
  .article { grid-column: 1 / -1; }
  .sidebar { position: static; grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
  .sidebar-box { margin: 0; }
}

@media (max-width: 620px) {
  .container { width: min(calc(100% - 24px), var(--max)); }
  .header-inner { min-height: 68px; }
  .brand img { width: 184px; }
  .menu-toggle { min-height: 40px; }
  .nav-list { top: 68px; max-height: calc(100vh - 68px); }
  .hero h1, .page-title { font-size: 2.52rem; }
  .hero p { font-size: 1.05rem; }
  .hero-card { padding: 25px; }
  .actions .button { width: 100%; }
  .section { padding: 46px 0; }
  .section-head { align-items: flex-start; flex-direction: column; gap: 10px; }
  .grid, .footer-grid, .form-row, .sidebar { grid-template-columns: 1fr; }
  .card-content { padding: 20px; }
  .category-card { min-height: 165px; }
  .page-header { padding: 42px 0 23px; }
  .breadcrumb li:last-child { max-width: 25ch; }
  .article { padding: 23px 19px; border-radius: 18px; }
  .article-header h1 { font-size: 2.32rem; }
  .article-deck { font-size: 1rem; }
  .article-meta { display: grid; gap: 3px; }
  .article-meta span + span::before { content: none; }
  .article-lead { font-size: 1.12rem !important; }
  .toc ul { columns: 1; }
  .article table { display: block; overflow-x: auto; }
  .author-box { align-items: flex-start; }
  .author-avatar { width: 50px; height: 50px; }
  .copyright { flex-direction: column; gap: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
