@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: #ffffff;
  --ink: #111111;
  --ink-muted: #626260;
  --ink-subtle: #7b7b78;
  --hairline: #d3cec6;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
}

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

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

a { color: var(--ink); text-decoration: none; }
a:hover { text-decoration: underline; }

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

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

/* 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;
}
.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: 18px; font-weight: 600; color: var(--ink); letter-spacing: -0.3px; }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a { font-size: 14px; color: var(--ink-muted); font-weight: 500; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; transition: all .3s; }

/* HERO */
.hero { padding: 96px 0; }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.hero-eyebrow { font-size: 14px; font-weight: 500; color: var(--ink-muted); margin-bottom: 16px; }
.hero h1 { font-size: 56px; font-weight: 500; line-height: 1.1; letter-spacing: -1.4px; margin-bottom: 20px; }
.hero-lead { font-size: 18px; color: var(--ink-muted); line-height: 1.5; letter-spacing: -0.1px; }
.hero-img { border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--hairline); }
.hero-img img { width: 100%; height: 420px; object-fit: cover; }

/* SECTIONS */
.section { padding: 96px 0; }
.section-alt { background: var(--canvas); }
.section-title { font-size: 40px; font-weight: 500; letter-spacing: -0.8px; line-height: 1.15; margin-bottom: 12px; }
.section-lead { font-size: 18px; color: var(--ink-muted); max-width: 640px; line-height: 1.5; margin-bottom: 48px; }

/* CARDS */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.card-img { width: 100%; height: 200px; object-fit: cover; }
.card-body { padding: 24px; }
.card-title { font-size: 20px; font-weight: 500; letter-spacing: -0.2px; margin-bottom: 8px; }
.card-text { font-size: 14px; color: var(--ink-muted); line-height: 1.5; margin-bottom: 16px; }
.card-link { font-size: 14px; font-weight: 500; color: var(--ink); }
.card-link:hover { text-decoration: underline; }

/* ARTICLE LAYOUT */
.article-layout { display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: start; }
.article-content { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-lg); padding: 48px; }
.article-content h1 { font-size: 40px; font-weight: 500; letter-spacing: -0.8px; margin-bottom: 16px; }
.article-content h2 { font-size: 28px; font-weight: 500; letter-spacing: -0.5px; margin: 40px 0 16px; }
.article-content h3 { font-size: 22px; font-weight: 500; letter-spacing: -0.3px; margin: 28px 0 12px; }
.article-content p { margin-bottom: 16px; line-height: 1.6; }
.article-content ul, .article-content ol { margin: 0 0 16px 20px; line-height: 1.6; }
.article-content li { margin-bottom: 6px; }
.article-meta { font-size: 13px; color: var(--ink-subtle); margin-bottom: 32px; }
.article-fig { margin: 32px 0; border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--hairline); }
.article-fig img { width: 100%; max-height: 360px; object-fit: cover; }
.article-fig figcaption { padding: 10px 16px; font-size: 12px; color: var(--ink-subtle); }
.sidebar { position: sticky; top: 72px; }
.sidebar-card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 20px; }
.sidebar-title { font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.sidebar-links { list-style: none; }
.sidebar-links li { margin-bottom: 8px; }
.sidebar-links a { font-size: 14px; color: var(--ink-muted); }
.sidebar-links a:hover { color: var(--ink); }

/* BREADCRUMB */
.breadcrumb { font-size: 13px; color: var(--ink-subtle); margin-bottom: 32px; display: flex; gap: 6px; flex-wrap: wrap; }
.breadcrumb a { color: var(--ink-muted); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb-sep { color: var(--hairline); }

/* BUTTONS */
.btn { display: inline-block; padding: 10px 18px; border-radius: var(--radius-md); font-size: 15px; font-weight: 500; cursor: pointer; border: none; transition: opacity .2s; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { opacity: .85; text-decoration: none; }
.btn-secondary { background: var(--surface); color: var(--ink); border: 1px solid var(--hairline); }
.btn-secondary:hover { opacity: .85; text-decoration: none; }

/* CONTACT FORM */
.contact-section { padding: 96px 0; }
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-info h2 { font-size: 40px; font-weight: 500; letter-spacing: -0.8px; margin-bottom: 16px; }
.contact-info p { color: var(--ink-muted); line-height: 1.6; margin-bottom: 16px; }
.form-card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-lg); padding: 32px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.form-group input, .form-group textarea {
  width: 100%; padding: 10px 14px;
  border: 1px solid var(--hairline); border-radius: var(--radius-md);
  font-family: inherit; font-size: 16px; color: var(--ink);
  background: var(--surface); outline: none;
  min-height: 44px;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--ink); }
.form-group textarea { min-height: 100px; resize: vertical; }
.form-msg { display: none; padding: 12px 16px; border-radius: var(--radius-md); margin-top: 16px; font-size: 14px; }
.form-msg.success { background: #e8f5e9; color: #2e7d32; }

/* COOKIE BANNER */
.cookie-banner {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: #fff;
  border-radius: var(--radius-lg); padding: 20px 28px;
  width: min(560px, calc(100vw - 32px));
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
  z-index: 9999; display: none;
}
.cookie-banner p { font-size: 14px; flex: 1; line-height: 1.5; }
.cookie-btns { display: flex; gap: 8px; flex-shrink: 0; }
.cookie-accept { background: #fff; color: var(--ink); border: none; padding: 8px 16px; border-radius: 6px; font-size: 14px; font-weight: 500; cursor: pointer; }
.cookie-reject { background: transparent; color: #ccc; border: 1px solid #555; padding: 8px 16px; border-radius: 6px; font-size: 14px; cursor: pointer; }

/* FOOTER */
.site-footer {
  background: var(--canvas); border-top: 1px solid var(--hairline);
  padding: 64px 0 32px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand p { font-size: 14px; color: var(--ink-subtle); margin-top: 8px; max-width: 260px; line-height: 1.5; }
.footer-col h4 { font-size: 12px; font-weight: 600; color: var(--ink); margin-bottom: 14px; text-transform: uppercase; letter-spacing: .5px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { font-size: 13px; color: var(--ink-subtle); }
.footer-col a:hover { color: var(--ink); }
.footer-bottom { border-top: 1px solid var(--hairline); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { font-size: 12px; color: var(--ink-subtle); }

/* PAGE SECTIONS */
.page-hero { padding: 64px 0 48px; border-bottom: 1px solid var(--hairline); margin-bottom: 64px; }
.page-hero h1 { font-size: 48px; font-weight: 500; letter-spacing: -1.0px; margin-bottom: 12px; }
.page-hero p { font-size: 18px; color: var(--ink-muted); }
.prose-card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-lg); padding: 48px; max-width: 800px; margin: 0 auto 48px; }
.prose-card h2 { font-size: 28px; font-weight: 500; letter-spacing: -0.5px; margin: 32px 0 12px; }
.prose-card h3 { font-size: 20px; font-weight: 500; margin: 24px 0 10px; }
.prose-card p { margin-bottom: 14px; line-height: 1.65; color: var(--ink); }
.prose-card ul, .prose-card ol { margin: 0 0 14px 20px; line-height: 1.65; }
.prose-card li { margin-bottom: 6px; }
.prose-card a { color: var(--ink); text-decoration: underline; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero h1 { font-size: 36px; }
  .card-grid { grid-template-columns: 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .contact-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .nav-links { display: none; 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; }
  .nav-links.open { display: flex; }
  .hamburger { display: block; }
  .section-title { font-size: 28px; }
  .hero-img img { height: 260px; }
  .page-hero h1 { font-size: 32px; }
}
