:root {
  --bg: #f7f4ee;
  --paper: #fffdf9;
  --surface: #efeae1;
  --ink: #1e2923;
  --muted: #6c766f;
  --line: #d9d8d0;
  --accent: #3f765b;
  --accent-strong: #2e6149;
  --accent-soft: #e5efe9;
  --logo-bg: #274b3c;
  --max: 1180px;
  --radius: 20px;
  --shadow: 0 16px 42px rgba(30, 41, 35, .07);
}
html[data-theme="dark"] {
  --bg: #121715;
  --paper: #18201c;
  --surface: #202922;
  --ink: #f1f5f2;
  --muted: #aab6ae;
  --line: #344139;
  --accent: #88b79e;
  --accent-strong: #a0c9b0;
  --accent-soft: #23352b;
  --logo-bg: #2d5a45;
  --shadow: 0 16px 42px rgba(0,0,0,.24);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.62; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
.container { width: min(var(--max), calc(100% - 44px)); margin-inline: auto; }
.skip-link { position: fixed; top: -100px; left: 18px; z-index: 100; padding: 10px 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; }
.skip-link:focus { top: 18px; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(247,244,238,.9); backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); }
html[data-theme="dark"] .site-header { background: rgba(18,23,21,.9); }
.header-inner { width: min(var(--max), calc(100% - 28px)); min-height: 72px; margin: 0 auto; display: flex; align-items: center; gap: 14px; }
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; text-decoration: none; }
.brand-mark { width: 48px; height: 48px; display: grid; place-items: center; padding: 3px; background: var(--logo-bg); border-radius: 14px; box-shadow: 0 8px 22px rgba(24, 64, 47, .15); overflow: hidden; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.nav { min-width: 0; flex: 1 1 auto; display: flex; align-items: center; justify-content: center; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { text-decoration: none; white-space: nowrap; padding: 9px 8px; border-radius: 9px; font-size: 12.5px; font-weight: 750; color: var(--muted); }
.nav a:hover, .nav a:focus-visible, .nav a[aria-current="page"] { color: var(--ink); background: var(--surface); }
.header-actions { display: flex; align-items: center; gap: 5px; flex: 0 0 auto; }
.icon-btn { width: 40px; height: 40px; flex: 0 0 40px; display: inline-grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 11px; background: var(--paper); color: var(--ink); text-decoration: none; cursor: pointer; }
.icon-btn:hover { border-color: var(--accent); }
.icon-btn .icon, .icon-btn svg { width: 19px; height: 19px; display: block; flex: 0 0 auto; }
.theme-toggle .icon-moon { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
.menu-toggle { display: none; }
.hero { padding: 76px 0 34px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(260px, .65fr); gap: 54px; align-items: center; }
.eyebrow { display: inline-block; margin-bottom: 14px; color: var(--accent-strong); font-size: 12px; line-height: 1.1; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.hero h1 { max-width: 750px; margin: 0; font: 600 clamp(50px, 6.2vw, 78px)/.98 Georgia, "Times New Roman", serif; letter-spacing: -.047em; }
.hero .lead { max-width: 700px; margin: 25px 0 27px; color: var(--muted); font-size: 17px; line-height: 1.72; }
.actions { display: flex; flex-wrap: wrap; gap: 9px; }
.btn { min-height: 43px; display: inline-flex; align-items: center; justify-content: center; padding: 10px 15px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; font-weight: 800; font-size: 13px; }
.btn-primary { border-color: var(--accent); background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-strong); }
.btn-soft { background: var(--paper); }
.hero-card { min-height: 340px; display: grid; place-items: center; padding: 22px; background: var(--logo-bg); border-radius: 30px; box-shadow: var(--shadow); overflow: hidden; }
.hero-card img { width: min(330px, 88%); height: auto; }
.stats { display: flex; gap: 12px; margin-top: 31px; }
.stat { min-width: 155px; padding: 15px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 15px; }
.stat strong { display: block; color: var(--accent-strong); font: 700 29px/1 Georgia, serif; }
.stat span { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; }
.section { padding: 38px 0 76px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 22px; margin-bottom: 22px; }
.section-head h2 { margin: 0; font: 600 clamp(31px, 4vw, 42px)/1.04 Georgia, serif; letter-spacing: -.034em; }
.section-head p { margin: 8px 0 0; max-width: 700px; color: var(--muted); font-size: 13px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card { min-width: 0; overflow: hidden; display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 7px 24px rgba(27, 42, 33, .04); }
.card-media { display: block; aspect-ratio: 1.5; overflow: hidden; background: var(--surface); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .38s ease; }
.card:hover .card-media img { transform: scale(1.035); }
.card-body { padding: 17px 18px 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 9px; }
.chip { padding: 5px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong); text-decoration: none; font-size: 10.5px; font-weight: 800; }
.card h3 { margin: 0; font: 600 23px/1.12 Georgia, serif; letter-spacing: -.02em; }
.card h3 a { text-decoration: none; }
.card h3 a:hover { color: var(--accent-strong); }
.card p { margin: 10px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.section-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.section-card { padding: 21px; min-height: 128px; background: var(--paper); border: 1px solid var(--line); border-radius: 17px; text-decoration: none; transition: transform .18s ease, border-color .18s ease; }
.section-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.section-card strong { display: block; font: 600 22px/1.05 Georgia, serif; }
.section-card span { display: block; margin-top: 13px; color: var(--muted); font-size: 12px; }
.page-hero { padding: 58px 0 28px; }
.page-hero h1 { margin: 0; font: 600 clamp(42px, 5.4vw, 64px)/1 Georgia, serif; letter-spacing: -.043em; }
.page-hero p { max-width: 720px; margin: 17px 0 0; color: var(--muted); font-size: 16px; }
.meta-line { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-bottom: 16px; color: var(--muted); font-size: 12px; font-weight: 750; }
.meta-line a { color: inherit; text-decoration: none; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; color: var(--muted); font-size: 12px; }
.breadcrumbs a { color: inherit; text-decoration: none; }
.article-wrap { padding: 48px 0 84px; }
.article-layout { display: grid; grid-template-columns: minmax(0, 780px) minmax(220px, 280px); gap: 40px; align-items: start; }
.article-head h1 { margin: 0; font: 600 clamp(42px, 5.3vw, 67px)/.99 Georgia, serif; letter-spacing: -.043em; }
.article-intro { margin: 20px 0 23px; color: var(--muted); font-size: 17px; line-height: 1.75; }
.article-hero { margin: 0 0 30px; overflow: hidden; background: var(--surface); border-radius: 25px; }
.article-hero img { width: 100%; height: auto; }
.article-content { font: 20px/1.84 Georgia, "Times New Roman", serif; }
.article-content p { margin: 0 0 1.16em; }
.article-content h3, .article-content h4 { margin: 1.7em 0 .7em; font: 700 1.1em/1.25 ui-sans-serif, sans-serif; letter-spacing: -.018em; }
.article-content ul, .article-content ol { margin: 0 0 1.2em; padding-left: 1.25em; }
.article-content blockquote { margin: 1.5em 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--accent); color: var(--muted); }
.article-content figure { margin: 26px 0; }
.article-content figure img { width: 100%; height: auto; border-radius: 18px; }
.article-content figcaption { margin-top: 7px; color: var(--muted); font: 12px/1.45 ui-sans-serif, sans-serif; }
.article-aside { position: sticky; top: 92px; }
.side-card { margin-bottom: 13px; padding: 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 17px; }
.side-card h2 { margin: 0 0 8px; font-size: 14px; }
.side-card p { margin: 0 0 12px; color: var(--muted); font-size: 13px; }
.related { display: grid; gap: 14px; }
.related-item a { display: block; font-weight: 800; line-height: 1.35; text-decoration: none; }
.related-item small { display: block; margin-top: 4px; color: var(--muted); line-height: 1.45; }
.search-shell { padding: 54px 0 82px; }
.search-form { display: flex; gap: 9px; margin: 18px 0 28px; }
.search-input { flex: 1; min-width: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); }
.search-results { display: grid; gap: 12px; }
.search-result { padding: 17px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; }
.search-result h2 { margin: 0; font: 600 25px/1.14 Georgia, serif; }
.search-result h2 a { text-decoration: none; }
.search-result p { margin: 8px 0 0; color: var(--muted); }
.no-results { color: var(--muted); }
.site-footer { margin-top: 14px; padding: 29px 0 35px; border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 26px; }
.footer-brand .brand-mark { width: 54px; height: 54px; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 10px; }
.footer-nav a { padding: 6px 4px; color: var(--muted); font-size: 12px; font-weight: 750; text-decoration: none; }
.footer-nav a:hover { color: var(--ink); }
.footer-bottom { margin-top: 18px; padding-top: 13px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(220px, .7fr); gap: 28px; }
  .hero-card { min-height: 285px; }
  .article-layout { grid-template-columns: 1fr; }
  .article-aside { position: static; }
  .section-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .container { width: min(var(--max), calc(100% - 28px)); }
  .header-inner { min-height: 66px; }
  .nav { display: none; }
  .menu-toggle { display: inline-grid; }
  .nav.is-open { position: absolute; left: 14px; right: 14px; top: 64px; display: grid; gap: 2px; padding: 9px; background: var(--paper); border: 1px solid var(--line); border-radius: 15px; box-shadow: var(--shadow); }
  .nav.is-open a { padding: 10px 11px; }
  .hero { padding-top: 45px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { min-height: 250px; }
  .hero h1 { font-size: clamp(44px, 13vw, 60px); }
  .hero .lead { font-size: 15.5px; }
  .stats { margin-top: 25px; }
  .grid { grid-template-columns: 1fr; }
  .section-grid { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .footer-nav { justify-content: flex-start; }
  .search-form { flex-direction: column; }
  .article-content { font-size: 18px; }
}
