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

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

:root {
  --canvas: #f5f1ec;
  --surface-1: #ffffff;
  --surface-2: #ede9e3;
  --hairline: #d3cec6;
  --hairline-soft: #e5e0d8;
  --ink: #111111;
  --ink-muted: #626260;
  --ink-subtle: #7b7b78;
  --ink-tertiary: #9c9fa5;
  --inverse-canvas: #000000;
  --accent: #2d6a4f;
  --accent-light: #40916c;
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-xxl: 24px;
}

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

body {
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  background-color: var(--canvas);
  color: var(--ink);
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-light); }

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

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

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

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.3px;
  text-decoration: none;
}

.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

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

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

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

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.3s;
}

/* HERO */
.hero {
  padding: 80px 0 64px;
  background-color: var(--canvas);
}

.hero-eyebrow {
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 16px;
  display: block;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 500;
  line-height: 1.10;
  letter-spacing: -1.4px;
  color: var(--ink);
  max-width: 680px;
  margin-bottom: 20px;
}

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

.hero-img-wrap {
  margin-top: 48px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--surface-1);
  border: 1px solid var(--hairline);
}

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

/* SECTIONS */
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-alt { background-color: var(--surface-2); }

.section-eyebrow {
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.8px;
  color: var(--ink);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink-muted);
  max-width: 560px;
  margin-bottom: 48px;
}

/* CARD GRID */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--surface-1);
  border-radius: var(--radius-lg);
  border: 1px solid var(--hairline);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s;
}

.card:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.07); }

.card-img {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 16px;
  background: var(--canvas);
}

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

.card-eyebrow {
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--accent); }

.card-body {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-muted);
  flex: 1;
  margin-bottom: 16px;
}

.card-meta {
  font-size: 12px;
  color: var(--ink-tertiary);
  margin-top: auto;
}

/* ARTICLE */
.article-header { padding: 64px 0 40px; }

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

.article-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -1.0px;
  color: var(--ink);
  margin-bottom: 20px;
  max-width: 820px;
}

.article-meta {
  font-size: 14px;
  color: var(--ink-subtle);
  margin-bottom: 32px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.article-hero-img {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--hairline);
  margin-bottom: 48px;
}

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

.article-body { max-width: 760px; }

.article-body p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  margin-bottom: 24px;
}

.article-body h2 {
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.5px;
  color: var(--ink);
  margin: 48px 0 16px;
}

.article-body h3 {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.2px;
  color: var(--ink);
  margin: 32px 0 12px;
}

.article-body ul, .article-body ol {
  margin: 0 0 24px 24px;
}

.article-body li {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  margin-bottom: 6px;
}

.article-body a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color 0.2s;
}

.article-body a:hover { text-decoration-color: var(--accent); }

.info-box {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 32px 0;
}

.info-box p {
  margin: 0;
  font-size: 15px;
  color: var(--ink-muted);
}

.source-list {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--hairline);
}

.source-list h4 {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-subtle);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.source-list ul { margin-left: 20px; }

.source-list li {
  font-size: 13px;
  color: var(--ink-subtle);
  margin-bottom: 6px;
}

.source-list a { color: var(--accent); font-size: 13px; }

/* FEATURE LIST */
.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 32px 0;
}

.feature-item {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.feature-icon {
  width: 32px;
  height: 32px;
  background: var(--canvas);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
}

.feature-text h4 {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 4px;
}

.feature-text p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-muted);
  margin: 0;
}

/* CONTACT FORM */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-info h2 {
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.contact-info p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-muted);
  margin-bottom: 24px;
}

.form-card {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xl);
  padding: 32px;
}

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

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

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

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

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
  min-height: 40px;
  font-family: inherit;
}

.btn-primary:hover { opacity: 0.85; }

.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.form-msg {
  display: none;
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
}

.form-msg.success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

/* FOOTER */
.site-footer {
  background: var(--canvas);
  border-top: 1px solid var(--hairline);
  padding: 64px 0 32px;
  margin-top: 96px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-subtle);
  margin-top: 12px;
  max-width: 240px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col ul { list-style: none; }

.footer-col li { margin-bottom: 8px; }

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

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

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--hairline-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

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

/* BREADCRUMB */
.breadcrumb {
  padding: 16px 0;
  font-size: 13px;
  color: var(--ink-subtle);
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.breadcrumb a { color: var(--ink-subtle); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb span { color: var(--ink-tertiary); }

/* COOKIE BANNER */
#cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 680px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 999;
  flex-wrap: wrap;
}

#cookie-banner p {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255,255,255,0.85);
  flex: 1;
  margin: 0;
}

#cookie-banner p a { color: #fff; text-decoration: underline; }

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

.btn-cookie-accept {
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  font-family: inherit;
  min-height: 40px;
}

.btn-cookie-reject {
  background: transparent;
  color: rgba(255,255,255,0.75);
  font-size: 14px;
  font-weight: 400;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.3);
  cursor: pointer;
  font-family: inherit;
  min-height: 40px;
  transition: color 0.2s;
}

.btn-cookie-reject:hover { color: #fff; }

/* ABOUT / PAGES */
.page-header {
  padding: 64px 0 48px;
}

.page-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 500;
  letter-spacing: -1.0px;
  line-height: 1.12;
  color: var(--ink);
  margin-bottom: 16px;
}

.page-lead {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 600px;
}

.prose { max-width: 760px; }

.prose p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: 20px;
}

.prose h2 {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.3px;
  margin: 40px 0 14px;
  color: var(--ink);
}

.prose h3 {
  font-size: 18px;
  font-weight: 500;
  margin: 28px 0 10px;
  color: var(--ink);
}

.prose ul, .prose ol {
  margin: 0 0 20px 24px;
}

.prose li {
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 6px;
}

/* DISCLAIMER */
.disclaimer-bar {
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 32px;
}

.disclaimer-bar p {
  font-size: 13px;
  color: var(--ink-subtle);
  margin: 0;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-wrap { grid-template-columns: 1fr; gap: 40px; }
  .feature-list { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .card-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    padding: 16px 24px;
    gap: 16px;
  }
  .top-nav { position: relative; height: auto; min-height: 56px; flex-wrap: wrap; }
  .hero h1 { font-size: 32px; letter-spacing: -0.8px; }
  .section { padding: 64px 0; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .article-title { font-size: 28px; }
  .feature-list { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 26px; }
  .section-title { font-size: 24px; }
  #cookie-banner { bottom: 0; border-radius: var(--radius-xl) var(--radius-xl) 0 0; }
}
