@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: #ede9e2;
  --hairline: #d3cec6;
  --hairline-soft: #e2ddd7;
  --ink: #111111;
  --ink-muted: #626260;
  --ink-subtle: #7b7b78;
  --ink-tertiary: #9c9fa5;
  --accent: #5c4a32;
  --accent-light: #8b6e4e;
  --inverse-canvas: #000000;
  --inverse-ink: #ffffff;
  --rounded-xs: 4px;
  --rounded-sm: 6px;
  --rounded-md: 8px;
  --rounded-lg: 12px;
  --rounded-xl: 16px;
  --rounded-xxl: 24px;
  --sp-xs: 8px;
  --sp-sm: 12px;
  --sp-md: 16px;
  --sp-lg: 24px;
  --sp-xl: 32px;
  --sp-xxl: 48px;
  --sp-section: 96px;
}

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(--ink); text-decoration: none; }
a:hover { color: var(--accent-light); }

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

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--sp-xl);
}

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

.nav-inner {
  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;
  text-decoration: none;
}

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

.nav-links {
  display: flex;
  gap: var(--sp-lg);
  list-style: none;
}

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

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

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

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

.nav-mobile {
  display: none;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  padding: var(--sp-md) var(--sp-xl);
}

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

.nav-mobile ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}

.nav-mobile a {
  font-size: 15px;
  color: var(--ink-muted);
  text-decoration: none;
}

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

/* HERO */
.hero {
  background: var(--canvas);
  padding: var(--sp-section) 0;
  border-bottom: 1px solid var(--hairline);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-xxl);
  align-items: center;
}

.hero-eyebrow {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
  margin-bottom: var(--sp-md);
  letter-spacing: 0;
}

.hero-title {
  font-size: 56px;
  font-weight: 500;
  line-height: 1.10;
  letter-spacing: -1.4px;
  color: var(--ink);
  margin-bottom: var(--sp-lg);
}

.hero-subtitle {
  font-size: 18px;
  font-weight: 400;
  color: var(--ink-muted);
  line-height: 1.5;
  letter-spacing: -0.1px;
  margin-bottom: var(--sp-xl);
}

.hero-meta {
  font-size: 12px;
  color: var(--ink-subtle);
}

.hero-image-card {
  background: var(--surface-1);
  border-radius: var(--rounded-xl);
  overflow: hidden;
  border: 1px solid var(--hairline);
}

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

/* SECTIONS */
.section {
  padding: var(--sp-section) 0;
}

.section-alt {
  background: var(--surface-2);
}

.section-dark {
  background: var(--inverse-canvas);
  color: var(--inverse-ink);
}

.section-eyebrow {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
  margin-bottom: var(--sp-md);
}

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

.section-subtitle {
  font-size: 18px;
  color: var(--ink-muted);
  line-height: 1.5;
  max-width: 640px;
  margin-bottom: var(--sp-xxl);
}

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

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

.card-img {
  border-radius: var(--rounded-md);
  overflow: hidden;
  margin-bottom: var(--sp-md);
}

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

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

.card-title {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.2px;
  line-height: 1.25;
  margin-bottom: var(--sp-sm);
}

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

.card-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--accent-light);
  text-decoration: none;
}

.card-link:hover { text-decoration: underline; }

/* FEATURE ROWS */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-xxl);
  align-items: center;
  margin-bottom: var(--sp-section);
}

.feature-row:last-child { margin-bottom: 0; }

.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }

.feature-text .section-title { font-size: 32px; }

.feature-text p {
  font-size: 16px;
  color: var(--ink-muted);
  line-height: 1.6;
  margin-bottom: var(--sp-md);
}

.feature-image {
  background: var(--surface-1);
  border-radius: var(--rounded-xl);
  overflow: hidden;
  border: 1px solid var(--hairline);
}

.feature-image img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

/* ARTICLE PAGE */
.article-header {
  background: var(--canvas);
  padding: var(--sp-xxl) 0 var(--sp-xl);
  border-bottom: 1px solid var(--hairline);
}

.article-breadcrumb {
  font-size: 13px;
  color: var(--ink-subtle);
  margin-bottom: var(--sp-md);
}

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

.article-title {
  font-size: 40px;
  font-weight: 500;
  letter-spacing: -0.8px;
  line-height: 1.15;
  margin-bottom: var(--sp-md);
  max-width: 780px;
}

.article-meta {
  font-size: 13px;
  color: var(--ink-subtle);
}

.article-hero-image {
  width: 100%;
  height: 440px;
  object-fit: cover;
  border-radius: var(--rounded-xl);
  margin: var(--sp-xl) 0;
  border: 1px solid var(--hairline);
}

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

.article-body h2 {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.5px;
  margin: var(--sp-xl) 0 var(--sp-md);
}

.article-body h3 {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.2px;
  margin: var(--sp-lg) 0 var(--sp-sm);
}

.article-body p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: var(--sp-md);
}

.article-body ul, .article-body ol {
  padding-left: var(--sp-xl);
  margin-bottom: var(--sp-md);
}

.article-body li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: 4px;
}

.article-body a {
  color: var(--accent-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-image-card {
  background: var(--surface-1);
  border-radius: var(--rounded-xl);
  overflow: hidden;
  border: 1px solid var(--hairline);
  margin: var(--sp-xl) 0;
}

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

.article-image-card figcaption {
  padding: var(--sp-sm) var(--sp-md);
  font-size: 12px;
  color: var(--ink-subtle);
}

.article-info-box {
  background: var(--surface-2);
  border-radius: var(--rounded-lg);
  padding: var(--sp-lg);
  border-left: 3px solid var(--accent);
  margin: var(--sp-xl) 0;
}

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

.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--sp-xxl);
  align-items: start;
  padding: var(--sp-xl) 0 var(--sp-section);
}

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

.sidebar-widget {
  background: var(--surface-1);
  border-radius: var(--rounded-lg);
  padding: var(--sp-lg);
  border: 1px solid var(--hairline);
  margin-bottom: var(--sp-lg);
}

.sidebar-widget h4 {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: var(--sp-md);
  color: var(--ink);
}

.sidebar-widget ul {
  list-style: none;
  padding: 0;
}

.sidebar-widget li {
  padding: 6px 0;
  border-bottom: 1px solid var(--hairline-soft);
  font-size: 14px;
}

.sidebar-widget li:last-child { border-bottom: none; }

.sidebar-widget a {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 14px;
}

.sidebar-widget a:hover { color: var(--ink); }

/* FORM */
.contact-section {
  background: var(--canvas);
  padding: var(--sp-section) 0;
  border-top: 1px solid var(--hairline);
}

.form-card {
  background: var(--surface-1);
  border-radius: var(--rounded-xl);
  padding: var(--sp-xxl);
  border: 1px solid var(--hairline);
  max-width: 640px;
  margin: 0 auto;
}

.form-title {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.5px;
  margin-bottom: var(--sp-xs);
}

.form-subtitle {
  font-size: 15px;
  color: var(--ink-muted);
  margin-bottom: var(--sp-xl);
}

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

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

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

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

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

.btn-primary {
  background: var(--ink);
  color: var(--inverse-ink);
  font-size: 15px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: var(--rounded-md);
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.15s;
  min-height: 40px;
}

.btn-primary:hover { opacity: 0.85; }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.form-message {
  margin-top: var(--sp-md);
  padding: var(--sp-sm) var(--sp-md);
  border-radius: var(--rounded-md);
  font-size: 14px;
  display: none;
}

.form-message.success {
  background: #f0fdf0;
  color: #166534;
  border: 1px solid #bbf7bb;
  display: block;
}

.form-message.error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  display: block;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-xl);
  margin-bottom: var(--sp-xl);
}

.footer-brand h3 {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: var(--sp-sm);
}

.footer-brand p {
  font-size: 13px;
  color: var(--ink-subtle);
  line-height: 1.6;
  max-width: 260px;
}

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

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

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

.footer-col a {
  font-size: 13px;
  color: var(--ink-subtle);
  text-decoration: none;
}

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

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

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

.footer-bottom a {
  font-size: 12px;
  color: var(--ink-subtle);
  text-decoration: none;
}

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

/* COOKIE BANNER */
#cookie-banner {
  position: fixed;
  bottom: var(--sp-lg);
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  background: var(--inverse-canvas);
  color: var(--inverse-ink);
  border-radius: var(--rounded-xl);
  padding: var(--sp-lg) var(--sp-xl);
  max-width: 600px;
  width: calc(100% - var(--sp-xl));
  display: flex;
  gap: var(--sp-lg);
  align-items: flex-start;
  box-shadow: 0 4px 32px rgba(0,0,0,0.28);
}

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

.cookie-text { flex: 1; }
.cookie-text p { font-size: 14px; line-height: 1.5; color: #d0cfc9; margin-bottom: var(--sp-xs); }
.cookie-text a { color: #a89f93; text-decoration: underline; }

.cookie-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

.btn-cookie-accept {
  background: var(--inverse-ink);
  color: var(--inverse-canvas);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--rounded-md);
  border: none;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}

.btn-cookie-reject {
  background: transparent;
  color: #a89f93;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: var(--rounded-md);
  border: 1px solid #333;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}

/* PAGE HEADER */
.page-header {
  padding: var(--sp-xxl) 0;
  border-bottom: 1px solid var(--hairline);
}

.page-header h1 {
  font-size: 40px;
  font-weight: 500;
  letter-spacing: -0.8px;
  margin-bottom: var(--sp-sm);
}

.page-header p {
  font-size: 18px;
  color: var(--ink-muted);
  line-height: 1.5;
}

/* PAGE CONTENT */
.page-content {
  max-width: 780px;
  padding: var(--sp-xl) 0 var(--sp-section);
}

.page-content h2 {
  font-size: 24px;
  font-weight: 500;
  margin: var(--sp-xl) 0 var(--sp-sm);
  letter-spacing: -0.3px;
}

.page-content h3 {
  font-size: 18px;
  font-weight: 500;
  margin: var(--sp-lg) 0 var(--sp-xs);
}

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

.page-content ul, .page-content ol {
  padding-left: var(--sp-xl);
  margin-bottom: var(--sp-md);
}

.page-content li {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 4px;
}

.page-content a { color: var(--accent-light); text-decoration: underline; }

.page-updated {
  font-size: 13px;
  color: var(--ink-subtle);
  margin-top: var(--sp-xl);
  padding-top: var(--sp-md);
  border-top: 1px solid var(--hairline-soft);
}

/* DISCLAIMER */
.disclaimer {
  background: var(--surface-2);
  border-radius: var(--rounded-md);
  padding: var(--sp-md);
  font-size: 13px;
  color: var(--ink-subtle);
  border: 1px solid var(--hairline);
  margin-bottom: var(--sp-md);
}

/* ABOUT GRID */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-xxl);
  align-items: start;
  margin-bottom: var(--sp-xl);
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-md);
  margin-top: var(--sp-xl);
}

.stat-card {
  background: var(--surface-1);
  border-radius: var(--rounded-lg);
  padding: var(--sp-lg);
  border: 1px solid var(--hairline);
}

.stat-card strong {
  display: block;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}

.stat-card span {
  font-size: 13px;
  color: var(--ink-muted);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-title { font-size: 44px; }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .about-grid { grid-template-columns: 1fr; }
  .feature-row { grid-template-columns: 1fr; }
  .feature-row.reverse { direction: ltr; }
}

@media (max-width: 768px) {
  .container { padding: 0 var(--sp-md); }
  .card-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 36px; letter-spacing: -0.8px; }
  .section-title { font-size: 30px; }
  .hero { padding: 64px 0; }
  .section { padding: 64px 0; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .form-card { padding: var(--sp-xl); }
  #cookie-banner { flex-direction: column; }
  .article-title { font-size: 28px; }
  .about-stats { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 28px; }
  .section-title { font-size: 24px; }
  .article-hero-image { height: 240px; }
}
