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

:root {
  --near-black: #0e0f0c;
  --wise-green: #9fe870;
  --dark-green: #163300;
  --light-mint: #e2f6d5;
  --pastel-green: #cdffad;
  --warm-dark: #454745;
  --gray: #868685;
  --light-surface: #e8ebe6;
  --white: #ffffff;
  --off-white: #f9faf7;
  --ring-shadow: rgba(14,15,12,0.12) 0px 0px 0px 1px;
  --font-display: 'Inter', Helvetica, Arial, sans-serif;
  --font-body: 'Inter', Helvetica, Arial, sans-serif;
  --radius-card: 30px;
  --radius-card-sm: 16px;
  --radius-pill: 9999px;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.44;
  letter-spacing: 0.18px;
  color: var(--near-black);
  background: var(--white);
  font-feature-settings: "calt" 1;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--dark-green); text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.75; }

img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-feature-settings: "calt" 1;
  color: var(--near-black);
  line-height: 0.85;
}

h1 { font-size: clamp(3rem, 7vw, 6rem); font-weight: 900; }
h2 { font-size: clamp(2rem, 4vw, 4rem); font-weight: 900; }
h3 { font-size: clamp(1.5rem, 2.5vw, 2.5rem); font-weight: 900; }
h4 { font-size: 1.375rem; font-weight: 600; line-height: 1.25; letter-spacing: -0.396px; }

p { margin-bottom: 1.25rem; }
p:last-child { margin-bottom: 0; }

ul, ol { padding-left: 1.5rem; }
li { margin-bottom: 0.5rem; }

address { font-style: normal; }
address p { margin-bottom: 0.5rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.108px;
  font-feature-settings: "calt" 1;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease;
  border-radius: var(--radius-pill);
  padding: 12px 24px;
}

.btn:hover { transform: scale(1.05); opacity: 1; }
.btn:active { transform: scale(0.95); }

.btn-primary {
  background: var(--wise-green);
  color: var(--dark-green);
}

.btn-secondary {
  background: rgba(22,51,0,0.08);
  color: var(--near-black);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--light-surface);
  padding: 16px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--near-black);
  text-decoration: none;
  letter-spacing: -0.5px;
  font-feature-settings: "calt" 1;
  flex-shrink: 0;
}

.logo span { color: var(--dark-green); }

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.main-nav a {
  display: inline-block;
  padding: 8px 16px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--near-black);
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: background 0.15s;
}

.main-nav a:hover {
  background: rgba(211,242,192,0.4);
  opacity: 1;
}

.has-dropdown { position: relative; }

.dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--ring-shadow), 0 8px 24px rgba(14,15,12,0.1);
  padding: 8px;
  min-width: 280px;
  z-index: 200;
  list-style: none;
}

.dropdown li { margin: 0; }
.dropdown a { display: block; border-radius: 10px; white-space: nowrap; }

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { display: block; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--near-black);
  border-radius: 2px;
  transition: transform 0.2s;
}

.hero {
  padding: 80px 0 64px;
  background: var(--off-white);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  background: var(--light-mint);
  color: var(--dark-green);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 24px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.hero h1 { margin-bottom: 24px; }

.hero-desc {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--warm-dark);
  line-height: 1.5;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-meta {
  display: flex;
  gap: 32px;
  margin-top: 32px;
}

.hero-stat strong {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  color: var(--near-black);
  line-height: 1;
}

.hero-stat span {
  font-size: 0.875rem;
  color: var(--gray);
  font-weight: 600;
}

.hero-image {
  border-radius: 40px;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section { padding: 80px 0; }
.section-alt { background: var(--off-white); }

.section-header {
  margin-bottom: 48px;
}

.section-header h2 { margin-bottom: 16px; }

.section-label {
  display: inline-flex;
  background: var(--light-mint);
  color: var(--dark-green);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.section-sub {
  font-size: 1.125rem;
  color: var(--warm-dark);
  max-width: 600px;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.article-card {
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--ring-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s;
}

.article-card:hover { transform: translateY(-4px); }

.card-img {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.article-card:hover .card-img img { transform: scale(1.04); }

.card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-tag {
  display: inline-flex;
  background: var(--light-mint);
  color: var(--dark-green);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-body h3 {
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.396px;
  color: var(--near-black);
  margin-bottom: 12px;
}

.card-body p {
  font-size: 1rem;
  color: var(--warm-dark);
  line-height: 1.5;
  flex: 1;
  margin-bottom: 20px;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--gray);
  font-weight: 600;
  margin-top: auto;
}

.card-read-more {
  color: var(--dark-green);
  font-weight: 600;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.card-read-more::after { content: "→"; }

.topics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.topic-card {
  background: var(--white);
  border-radius: var(--radius-card-sm);
  box-shadow: var(--ring-shadow);
  padding: 28px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: transform 0.2s;
}

.topic-card:hover { transform: translateY(-2px); }

.topic-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: var(--light-mint);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.topic-card h4 { margin-bottom: 8px; }
.topic-card p { font-size: 0.9375rem; color: var(--warm-dark); margin: 0; line-height: 1.5; }

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.intro-image {
  border-radius: var(--radius-card);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.intro-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.intro-text h2 { margin-bottom: 20px; }
.intro-text p { font-size: 1.0625rem; color: var(--warm-dark); margin-bottom: 16px; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info h2 { margin-bottom: 20px; }
.contact-info p { color: var(--warm-dark); font-size: 1.0625rem; margin-bottom: 24px; }

.contact-detail {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.contact-detail-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--light-mint);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.contact-detail-text strong { display: block; font-size: 0.875rem; color: var(--gray); font-weight: 600; margin-bottom: 2px; }
.contact-detail-text a, .contact-detail-text p { font-size: 1rem; color: var(--near-black); font-weight: 600; margin: 0; }

.contact-form {
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--ring-shadow);
  padding: 36px;
}

.contact-form h3 { font-size: 1.5rem; margin-bottom: 24px; line-height: 1.2; }

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--near-black);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  color: var(--near-black);
  background: var(--off-white);
  border: 1px solid var(--light-surface);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.2s;
  font-feature-settings: "calt" 1;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--wise-green);
  box-shadow: rgb(134,134,133) 0px 0px 0px 1px inset;
}

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

.disclaimer {
  background: var(--light-surface);
  border-radius: var(--radius-card-sm);
  padding: 24px 28px;
  margin: 48px 0 0;
}

.disclaimer p {
  font-size: 0.875rem;
  color: var(--warm-dark);
  margin: 0;
  line-height: 1.6;
}

.page-hero {
  background: var(--off-white);
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--light-surface);
}

.page-hero h1 { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 16px; }
.page-hero .hero-desc { margin-bottom: 0; }

.article-hero {
  background: var(--off-white);
  padding: 56px 0 0;
}

.article-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
}

.article-hero h1 { font-size: clamp(2rem, 4vw, 3.5rem); margin-bottom: 20px; }

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.875rem;
  color: var(--gray);
  font-weight: 600;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.article-meta-sep { color: var(--light-surface); }

.article-hero-image {
  border-radius: 40px 40px 0 0;
  overflow: hidden;
  aspect-ratio: 4/3;
}

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

.article-body {
  padding: 56px 0 80px;
}

.article-content {
  max-width: 720px;
}

.article-content p {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--near-black);
  margin-bottom: 1.5rem;
}

.article-content h2 {
  font-size: 2rem;
  margin: 2.5rem 0 1rem;
  line-height: 1;
}

.article-content h3 {
  font-size: 1.5rem;
  margin: 2rem 0 0.75rem;
  line-height: 1.1;
}

.article-content ul,
.article-content ol {
  font-size: 1.0625rem;
  color: var(--near-black);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.article-content a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-content .callout {
  background: var(--light-mint);
  border-left: 4px solid var(--wise-green);
  border-radius: 0 16px 16px 0;
  padding: 20px 24px;
  margin: 2rem 0;
}

.article-content .callout p { margin: 0; font-weight: 600; color: var(--dark-green); }

.article-image {
  border-radius: 20px;
  overflow: hidden;
  margin: 2rem 0;
}

.article-image img { width: 100%; height: 260px; object-fit: cover; }
.article-image figcaption { font-size: 0.875rem; color: var(--gray); padding: 8px 4px 0; }

.article-sidebar {
  position: sticky;
  top: 90px;
}

.toc {
  background: var(--white);
  border-radius: var(--radius-card-sm);
  box-shadow: var(--ring-shadow);
  padding: 24px;
  margin-bottom: 24px;
}

.toc h4 { font-size: 1rem; font-weight: 700; margin-bottom: 16px; color: var(--near-black); line-height: 1.2; }

.toc ol {
  list-style: none;
  padding: 0;
  counter-reset: toc;
}

.toc li {
  counter-increment: toc;
  margin-bottom: 8px;
}

.toc a {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--warm-dark);
  display: flex;
  gap: 8px;
  align-items: flex-start;
  transition: color 0.15s;
}

.toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--wise-green);
  background: var(--dark-green);
  padding: 1px 5px;
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 2px;
}

.toc a:hover { color: var(--dark-green); opacity: 1; }

.sidebar-articles { background: var(--white); border-radius: var(--radius-card-sm); box-shadow: var(--ring-shadow); padding: 24px; }
.sidebar-articles h4 { font-size: 1rem; font-weight: 700; margin-bottom: 16px; line-height: 1.2; }
.sidebar-articles ul { list-style: none; padding: 0; }
.sidebar-articles li { border-bottom: 1px solid var(--light-surface); padding: 10px 0; margin: 0; }
.sidebar-articles li:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-articles a { font-size: 0.9375rem; font-weight: 600; color: var(--near-black); }
.sidebar-articles a:hover { color: var(--dark-green); opacity: 1; }

.two-col-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}

.prose-page { padding: 64px 0 80px; }
.prose-page h1 { font-size: clamp(2rem, 4vw, 3.5rem); margin-bottom: 24px; }
.prose-page h2 { font-size: 1.75rem; margin: 2.5rem 0 1rem; }
.prose-page h3 { font-size: 1.375rem; margin: 2rem 0 0.75rem; line-height: 1.2; }
.prose-page p { font-size: 1.0625rem; color: var(--near-black); line-height: 1.7; margin-bottom: 1.25rem; }
.prose-page ul, .prose-page ol { font-size: 1.0625rem; color: var(--near-black); line-height: 1.7; margin-bottom: 1.25rem; }
.prose-page a { text-decoration: underline; text-underline-offset: 3px; }
.prose-page .updated { font-size: 0.875rem; color: var(--gray); font-weight: 600; margin-bottom: 32px; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-top: 48px;
}

.about-grid img { border-radius: var(--radius-card); width: 100%; height: 360px; object-fit: cover; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.team-card {
  background: var(--white);
  border-radius: var(--radius-card-sm);
  box-shadow: var(--ring-shadow);
  padding: 28px 24px;
  text-align: center;
}

.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--light-mint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 16px;
}

.team-card h4 { font-size: 1.125rem; margin-bottom: 4px; line-height: 1.2; }
.team-card .role { font-size: 0.875rem; color: var(--gray); font-weight: 600; margin-bottom: 12px; }
.team-card p { font-size: 0.9375rem; color: var(--warm-dark); margin: 0; line-height: 1.5; }

.site-footer {
  background: var(--near-black);
  color: rgba(255,255,255,0.8);
  padding: 64px 0 0;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo { color: var(--white); }
.footer-logo span { color: var(--wise-green); }
.footer-tagline { font-size: 0.9375rem; color: rgba(255,255,255,0.6); margin-top: 16px; line-height: 1.6; }

.footer-col h4 {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 16px;
  line-height: 1.2;
}

.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: rgba(255,255,255,0.65); font-size: 0.9375rem; font-weight: 400; }
.footer-col a:hover { color: var(--wise-green); opacity: 1; }
.footer-col address p { margin-bottom: 4px; }
.footer-col address a { color: rgba(255,255,255,0.65); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.45);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-legal { display: flex; gap: 24px; }
.footer-legal a { color: rgba(255,255,255,0.45); font-size: 0.875rem; }
.footer-legal a:hover { color: var(--wise-green); opacity: 1; }

.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  width: calc(100% - 48px);
  max-width: 640px;
  background: var(--near-black);
  color: var(--white);
  border-radius: 20px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  z-index: 9999;
  box-shadow: 0 8px 32px rgba(14,15,12,0.3);
  transition: transform 0.35s ease;
  flex-wrap: wrap;
}

.cookie-banner.visible { transform: translateX(-50%) translateY(0); }

.cookie-banner p {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.85);
  margin: 0;
  flex: 1;
  min-width: 200px;
}

.cookie-banner a { color: var(--wise-green); text-decoration: underline; }

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-actions .btn { padding: 8px 18px; font-size: 0.9375rem; }

@media (max-width: 992px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-image { display: none; }
  .articles-grid { grid-template-columns: 1fr 1fr; }
  .intro-grid { grid-template-columns: 1fr; }
  .intro-image { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .two-col-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .article-hero-inner { grid-template-columns: 1fr; }
  .article-hero-image { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .topics-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .articles-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--light-surface);
    padding: 16px 24px 24px;
    z-index: 99;
  }

  .main-nav.open { display: block; }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .dropdown {
    position: static;
    box-shadow: none;
    display: block;
    padding: 4px 0 4px 16px;
    border-radius: 0;
  }

  .dropdown a { border-radius: 8px; }

  .nav-toggle { display: flex; }
  .site-header { position: relative; }

  .hero { padding: 48px 0 40px; }
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  .section { padding: 56px 0; }

  .cookie-banner { bottom: 12px; border-radius: 16px; }
}

@media (max-width: 576px) {
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-legal { justify-content: center; }
  .contact-form { padding: 24px; }
  .hero-meta { flex-wrap: wrap; gap: 20px; }
}
