@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --canvas: #f5f1ec;
  --surface-1: #ffffff;
  --surface-2: #ede9e3;
  --ink: #111111;
  --ink-muted: #626260;
  --ink-subtle: #7b7b78;
  --ink-tertiary: #9c9fa5;
  --hairline: #d3cec6;
  --hairline-soft: #e2ddd7;
  --inverse-canvas: #000000;
  --accent: #3d7a4f;
  --font: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-xxl: 24px;
  --space-xxs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-xxl: 48px;
  --space-section: 96px;
  --max-w: 1280px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

/* NAV */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  height: 56px;
  display: flex;
  align-items: center;
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-logo {
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.nav-logo-icon {
  width: 24px;
  height: 24px;
  background: var(--accent);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-links a {
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-muted);
  transition: color 0.15s;
}

.nav-links a:hover { color: var(--ink); }

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--ink);
}

.nav-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  margin: 4px 0;
  transition: 0.3s;
}

.nav-mobile {
  display: none;
  position: absolute;
  top: 56px;
  left: 0;
  right: 0;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  padding: var(--space-md) var(--space-xl);
  flex-direction: column;
  gap: var(--space-sm);
  z-index: 99;
}

.nav-mobile.open { display: flex; }
.nav-mobile a { font-size: 15px; color: var(--ink-muted); padding: var(--space-xs) 0; border-bottom: 1px solid var(--hairline-soft); }
.nav-mobile a:last-child { border-bottom: none; }

/* HERO */
.hero {
  padding: var(--space-section) 0 72px;
  text-align: center;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: var(--space-md);
  background: rgba(61,122,79,0.08);
  padding: 4px 12px;
  border-radius: var(--r-xs);
}

.hero h1 {
  font-size: 56px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -1.4px;
  color: var(--ink);
  max-width: 780px;
  margin: 0 auto var(--space-lg);
}

.hero-lead {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink-muted);
  max-width: 560px;
  margin: 0 auto var(--space-xxl);
}

.hero-img-wrap {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  overflow: hidden;
  max-width: 960px;
  margin: 0 auto;
}

.hero-img-wrap img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

/* SECTION */
.section {
  padding: var(--space-section) 0;
}

.section-eyebrow {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-subtle);
  margin-bottom: var(--space-sm);
}

.section-title {
  font-size: 40px;
  font-weight: 500;
  letter-spacing: -0.8px;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: var(--space-lg);
}

.section-lead {
  font-size: 18px;
  color: var(--ink-muted);
  max-width: 560px;
  margin-bottom: var(--space-xxl);
}

/* CARDS GRID */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.card {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color 0.2s;
}

.card:hover { border-color: var(--ink-subtle); }

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-body {
  padding: var(--space-lg);
}

.card-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  background: rgba(61,122,79,0.08);
  padding: 2px 8px;
  border-radius: var(--r-xs);
  margin-bottom: var(--space-sm);
}

.card-title {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.3px;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: var(--space-sm);
}

.card-text {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.5;
  margin-bottom: var(--space-md);
}

.card-meta {
  font-size: 12px;
  color: var(--ink-tertiary);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.card-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-top: var(--space-sm);
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 2px;
  transition: border-color 0.15s;
}

.card-link:hover { border-color: var(--ink); }

/* INFO BLOCKS */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.info-block {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: var(--space-lg);
}

.info-block-icon {
  width: 40px;
  height: 40px;
  background: rgba(61,122,79,0.1);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: var(--space-md);
}

.info-block h3 {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: var(--space-xs);
}

.info-block p {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.5;
}

/* ARTICLE PAGE */
.article-header {
  padding: var(--space-section) 0 var(--space-xxl);
  max-width: 800px;
}

.article-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  background: rgba(61,122,79,0.08);
  padding: 3px 10px;
  border-radius: var(--r-xs);
  margin-bottom: var(--space-md);
}

.article-header h1 {
  font-size: 48px;
  font-weight: 500;
  letter-spacing: -1.2px;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: var(--space-lg);
}

.article-header .lead {
  font-size: 20px;
  color: var(--ink-muted);
  line-height: 1.4;
  margin-bottom: var(--space-lg);
}

.article-meta {
  font-size: 13px;
  color: var(--ink-tertiary);
  display: flex;
  gap: var(--space-lg);
}

.article-hero-img {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  overflow: hidden;
  margin-bottom: var(--space-section);
}

.article-hero-img img {
  width: 100%;
  height: 460px;
  object-fit: cover;
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--space-xxl);
  align-items: start;
  padding-bottom: var(--space-section);
}

.article-content h2 {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.5px;
  color: var(--ink);
  margin-bottom: var(--space-md);
  margin-top: var(--space-xxl);
}

.article-content h2:first-child { margin-top: 0; }

.article-content h3 {
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: var(--space-sm);
  margin-top: var(--space-xl);
}

.article-content p {
  font-size: 16px;
  color: var(--ink);
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.article-content ul, .article-content ol {
  margin-bottom: var(--space-md);
  padding-left: var(--space-lg);
}

.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }

.article-content li {
  font-size: 16px;
  color: var(--ink);
  line-height: 1.6;
  margin-bottom: var(--space-xs);
}

.article-content blockquote {
  background: var(--surface-2);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: var(--space-md) var(--space-lg);
  margin: var(--space-xl) 0;
}

.article-content blockquote p {
  font-size: 17px;
  color: var(--ink-muted);
  font-style: italic;
  margin: 0;
}

.article-content .ref-link {
  color: var(--accent);
  border-bottom: 1px solid rgba(61,122,79,0.3);
  transition: border-color 0.15s;
}

.article-content .ref-link:hover { border-color: var(--accent); }

.article-sidebar {
  position: sticky;
  top: 72px;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.sidebar-card {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: var(--space-lg);
}

.sidebar-card h4 {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: var(--space-sm);
}

.sidebar-toc { list-style: none; }
.sidebar-toc li { margin-bottom: var(--space-xs); }
.sidebar-toc a {
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.4;
  transition: color 0.15s;
}
.sidebar-toc a:hover { color: var(--ink); }

.related-list { list-style: none; }
.related-list li { margin-bottom: var(--space-sm); }
.related-list a {
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.4;
  display: block;
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--hairline-soft);
}
.related-list li:last-child a { border-bottom: none; padding-bottom: 0; }
.related-list a:hover { color: var(--ink); }

/* DIVIDER */
.divider {
  border: none;
  border-top: 1px solid var(--hairline);
  margin: var(--space-section) 0;
}

/* FORM */
.form-section {
  padding: var(--space-section) 0;
}

.form-card {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  padding: var(--space-xxl);
  max-width: 640px;
}

.form-card h2 {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.5px;
  color: var(--ink);
  margin-bottom: var(--space-sm);
}

.form-card p {
  font-size: 16px;
  color: var(--ink-muted);
  margin-bottom: var(--space-xl);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: var(--space-xs);
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: 10px 14px;
  font-family: var(--font);
  font-size: 15px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s;
  min-height: 44px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--ink-tertiary);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--ink);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 10px 18px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--r-md);
  border: none;
  cursor: pointer;
  transition: opacity 0.15s;
  min-height: 40px;
}

.btn:hover { opacity: 0.85; }

.btn-primary {
  background: var(--ink);
  color: #fff;
}

.btn-secondary {
  background: var(--surface-1);
  color: var(--ink);
  border: 1px solid var(--hairline);
}

.form-success {
  display: none;
  background: rgba(61,122,79,0.08);
  border: 1px solid rgba(61,122,79,0.2);
  border-radius: var(--r-md);
  padding: var(--space-md) var(--space-lg);
  font-size: 15px;
  color: var(--accent);
  margin-top: var(--space-md);
}

.form-loader {
  display: none;
  font-size: 14px;
  color: var(--ink-muted);
  margin-top: var(--space-md);
}

/* PAGE CONTENT */
.page-header {
  padding: var(--space-section) 0 var(--space-xxl);
  border-bottom: 1px solid var(--hairline);
  margin-bottom: var(--space-xxl);
}

.page-header h1 {
  font-size: 48px;
  font-weight: 500;
  letter-spacing: -1.2px;
  color: var(--ink);
  margin-bottom: var(--space-md);
}

.page-header p {
  font-size: 18px;
  color: var(--ink-muted);
  max-width: 560px;
}

.page-content {
  max-width: 800px;
  padding-bottom: var(--space-section);
}

.page-content h2 {
  font-size: 24px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: var(--space-sm);
  margin-top: var(--space-xxl);
}

.page-content h2:first-child { margin-top: 0; }

.page-content p {
  font-size: 16px;
  color: var(--ink);
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.page-content ul {
  list-style: disc;
  padding-left: var(--space-lg);
  margin-bottom: var(--space-md);
}

.page-content li {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: var(--space-xs);
}

.page-content a {
  color: var(--accent);
  border-bottom: 1px solid rgba(61,122,79,0.3);
}

/* FOOTER */
.site-footer {
  background: var(--canvas);
  border-top: 1px solid var(--hairline);
  padding: 64px var(--space-xl) var(--space-xxl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-xxl);
  max-width: var(--max-w);
  margin: 0 auto var(--space-xxl);
}

.footer-brand p {
  font-size: 13px;
  color: var(--ink-subtle);
  line-height: 1.5;
  margin-top: var(--space-sm);
  max-width: 240px;
}

.footer-col h5 {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: var(--space-md);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer-col a {
  font-size: 13px;
  color: var(--ink-subtle);
  transition: color 0.15s;
}

.footer-col a:hover { color: var(--ink); }

.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  border-top: 1px solid var(--hairline-soft);
  padding-top: var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 12px;
  color: var(--ink-tertiary);
}

.footer-bottom-links {
  display: flex;
  gap: var(--space-lg);
}

.footer-bottom-links a {
  font-size: 12px;
  color: var(--ink-tertiary);
  transition: color 0.15s;
}

.footer-bottom-links a:hover { color: var(--ink-muted); }

/* COOKIE BANNER */
.cookie-banner {
  position: fixed;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  background: var(--inverse-canvas);
  color: #fff;
  border-radius: var(--r-xl);
  padding: var(--space-lg) var(--space-xl);
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  max-width: 720px;
  width: calc(100% - 48px);
  box-shadow: 0 4px 32px rgba(0,0,0,0.18);
}

.cookie-banner p {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  line-height: 1.5;
  flex: 1;
}

.cookie-banner a {
  color: rgba(255,255,255,0.9);
  border-bottom: 1px solid rgba(255,255,255,0.3);
}

.cookie-btns {
  display: flex;
  gap: var(--space-sm);
  flex-shrink: 0;
}

.btn-cookie-accept {
  background: #fff;
  color: var(--ink);
  padding: 8px 16px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--r-md);
  border: none;
  cursor: pointer;
  transition: opacity 0.15s;
}

.btn-cookie-reject {
  background: transparent;
  color: rgba(255,255,255,0.7);
  padding: 8px 16px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--r-md);
  border: 1px solid rgba(255,255,255,0.2);
  cursor: pointer;
  transition: all 0.15s;
}

.btn-cookie-accept:hover { opacity: 0.85; }
.btn-cookie-reject:hover { border-color: rgba(255,255,255,0.5); color: #fff; }

.cookie-banner.hidden { display: none; }

/* BREADCRUMB */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
}

.breadcrumb a, .breadcrumb span {
  font-size: 13px;
  color: var(--ink-tertiary);
}

.breadcrumb a:hover { color: var(--ink-muted); }
.breadcrumb .sep { color: var(--hairline); }

/* DISCLAIMER */
.disclaimer {
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-xxl);
  font-size: 13px;
  color: var(--ink-subtle);
  line-height: 1.5;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-xl); }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
}

@media (max-width: 768px) {
  .container { padding: 0 var(--space-md); }
  .hero { padding: var(--space-xxl) 0 48px; }
  .hero h1 { font-size: 36px; letter-spacing: -0.8px; }
  .hero-lead { font-size: 16px; }
  .hero-img-wrap img { height: 260px; }
  .section-title { font-size: 28px; letter-spacing: -0.4px; }
  .cards-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-hamburger { display: block; }
  .article-header h1 { font-size: 32px; letter-spacing: -0.6px; }
  .page-header h1 { font-size: 34px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-xl); }
  .cookie-banner { flex-direction: column; align-items: flex-start; gap: var(--space-md); padding: var(--space-md); }
  .cookie-btns { width: 100%; }
  .btn-cookie-accept, .btn-cookie-reject { flex: 1; text-align: center; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 28px; }
  .section-title { font-size: 24px; }
  .article-header h1 { font-size: 26px; }
}
