@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;
  --ink: #111111;
  --ink-muted: #626260;
  --ink-subtle: #7b7b78;
  --ink-tertiary: #9c9fa5;
  --hairline: #d3cec6;
  --hairline-soft: #e5e0d8;
  --accent: #111111;
  --rounded-xs: 4px;
  --rounded-sm: 6px;
  --rounded-md: 8px;
  --rounded-lg: 12px;
  --rounded-xl: 16px;
  --rounded-xxl: 24px;
  --max-w: 1280px;
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif; font-size: 16px; line-height: 1.5; color: var(--ink); background: var(--canvas); -webkit-font-smoothing: antialiased; }

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--ink-muted); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }

.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: 18px; font-weight: 600; letter-spacing: -0.3px; color: var(--ink); }
.nav-logo span { font-weight: 400; }
.nav-logo strong { font-weight: 600; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-size: 14px; font-weight: 400; color: var(--ink-muted); transition: color 0.15s; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links .has-dropdown { position: relative; }
.nav-links .has-dropdown > a::after { content: ' ▾'; font-size: 10px; }
.dropdown { display: none; position: absolute; top: calc(100% + 8px); left: 0; background: var(--surface-1); border: 1px solid var(--hairline); border-radius: var(--rounded-lg); padding: 8px 0; min-width: 280px; z-index: 200; box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.has-dropdown:hover .dropdown { display: block; }
.dropdown li a { display: block; padding: 10px 16px; font-size: 14px; color: var(--ink-muted); transition: color 0.15s, background 0.15s; white-space: nowrap; }
.dropdown li a:hover { color: var(--ink); background: var(--canvas); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 4px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); transition: all 0.2s; border-radius: 2px; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

main { min-height: 60vh; }

.hero { padding: 80px 0 64px; }
.hero-eyebrow { font-size: 14px; font-weight: 500; color: var(--ink-muted); margin-bottom: 16px; }
.hero-headline { font-size: 56px; font-weight: 500; line-height: 1.10; letter-spacing: -1.4px; color: var(--ink); max-width: 760px; margin-bottom: 20px; }
.hero-sub { font-size: 18px; font-weight: 400; line-height: 1.5; color: var(--ink-muted); max-width: 600px; margin-bottom: 48px; }
.hero-image-card { border-radius: var(--rounded-xl); overflow: hidden; background: var(--surface-1); border: 1px solid var(--hairline); }
.hero-image-card img { width: 100%; height: 420px; object-fit: cover; }

.section { padding: 80px 0; }
.section-divider { border: none; border-top: 1px solid var(--hairline); margin: 0; }
.section-eyebrow { font-size: 14px; font-weight: 500; color: var(--ink-muted); margin-bottom: 12px; }
.section-title { font-size: 40px; font-weight: 500; line-height: 1.15; letter-spacing: -0.8px; color: var(--ink); margin-bottom: 16px; }
.section-lead { font-size: 18px; line-height: 1.5; color: var(--ink-muted); max-width: 640px; margin-bottom: 48px; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: var(--surface-1); border-radius: var(--rounded-lg); border: 1px solid var(--hairline); padding: 24px; transition: border-color 0.15s; }
.card:hover { border-color: var(--ink-tertiary); }
.card-image { border-radius: var(--rounded-md); overflow: hidden; margin-bottom: 16px; }
.card-image img { width: 100%; height: 200px; object-fit: cover; }
.card-tag { display: inline-block; font-size: 12px; font-weight: 500; color: var(--ink-muted); background: var(--canvas); border: 1px solid var(--hairline); border-radius: var(--rounded-xs); padding: 3px 8px; margin-bottom: 10px; }
.card-title { font-size: 22px; font-weight: 500; line-height: 1.25; letter-spacing: -0.3px; color: var(--ink); margin-bottom: 10px; }
.card-title a { color: inherit; }
.card-title a:hover { color: var(--ink-muted); }
.card-body { font-size: 14px; line-height: 1.5; color: var(--ink-muted); margin-bottom: 16px; }
.card-meta { font-size: 12px; color: var(--ink-tertiary); }

.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-muted); padding: 20px 0 0; }
.breadcrumb a { color: var(--ink-muted); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb-sep { color: var(--hairline); }

.article-header { padding: 40px 0 48px; }
.article-tag { display: inline-block; font-size: 12px; font-weight: 500; color: var(--ink-muted); background: var(--canvas); border: 1px solid var(--hairline); border-radius: var(--rounded-xs); padding: 4px 10px; margin-bottom: 16px; }
.article-title { font-size: 40px; font-weight: 500; line-height: 1.15; letter-spacing: -0.8px; color: var(--ink); margin-bottom: 16px; max-width: 840px; }
.article-meta { font-size: 13px; color: var(--ink-tertiary); display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.article-meta-sep { color: var(--hairline); }

.article-hero { border-radius: var(--rounded-xl); overflow: hidden; border: 1px solid var(--hairline); margin-bottom: 56px; }
.article-hero img { width: 100%; height: 480px; object-fit: cover; }
.article-hero figcaption { padding: 12px 16px; font-size: 12px; color: var(--ink-subtle); background: var(--surface-1); border-top: 1px solid var(--hairline-soft); }

.article-layout { display: grid; grid-template-columns: 1fr 280px; gap: 64px; align-items: start; }
.article-body { max-width: 720px; }
.article-body h2 { font-size: 28px; font-weight: 500; line-height: 1.20; letter-spacing: -0.5px; color: var(--ink); margin: 48px 0 16px; padding-top: 8px; border-top: 1px solid var(--hairline-soft); }
.article-body h3 { font-size: 20px; font-weight: 500; line-height: 1.30; letter-spacing: -0.2px; color: var(--ink); margin: 32px 0 12px; }
.article-body p { font-size: 16px; line-height: 1.65; color: var(--ink); margin-bottom: 20px; }
.article-body ul, .article-body ol { margin: 0 0 20px 24px; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { font-size: 16px; line-height: 1.65; color: var(--ink); margin-bottom: 6px; }
.article-body a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.article-body a:hover { color: var(--ink-muted); }
.article-body blockquote { margin: 32px 0; padding: 24px 24px 24px 20px; background: var(--canvas); border-left: 3px solid var(--hairline); border-radius: 0 var(--rounded-md) var(--rounded-md) 0; }
.article-body blockquote p { margin-bottom: 0; font-style: italic; color: var(--ink-muted); }
.article-body .info-box { background: var(--surface-1); border: 1px solid var(--hairline); border-radius: var(--rounded-lg); padding: 24px; margin: 32px 0; }
.article-body .info-box h4 { font-size: 14px; font-weight: 500; color: var(--ink-muted); margin-bottom: 10px; text-transform: none; letter-spacing: 0; }
.article-body .info-box ul { list-style: none; margin: 0; padding: 0; }
.article-body .info-box li { font-size: 14px; color: var(--ink-muted); padding: 6px 0; border-bottom: 1px solid var(--hairline-soft); }
.article-body .info-box li:last-child { border-bottom: none; }
.article-image { border-radius: var(--rounded-xl); overflow: hidden; border: 1px solid var(--hairline); margin: 40px 0; }
.article-image img { width: 100%; height: 320px; object-fit: cover; }
.article-image figcaption { padding: 10px 16px; font-size: 12px; color: var(--ink-subtle); background: var(--surface-1); border-top: 1px solid var(--hairline-soft); }

.article-sidebar { position: sticky; top: 80px; }
.sidebar-card { background: var(--surface-1); border: 1px solid var(--hairline); border-radius: var(--rounded-lg); padding: 20px; margin-bottom: 20px; }
.sidebar-card h4 { font-size: 13px; font-weight: 500; color: var(--ink-muted); margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--hairline-soft); }
.sidebar-card ul { list-style: none; margin: 0; padding: 0; }
.sidebar-card li { margin-bottom: 8px; }
.sidebar-card li a { font-size: 14px; color: var(--ink-muted); line-height: 1.4; }
.sidebar-card li a:hover { color: var(--ink); }
.toc-list { list-style: none; margin: 0; padding: 0; }
.toc-list a { font-size: 14px; color: var(--ink-muted); display: block; padding: 4px 0; border-bottom: 1px solid var(--hairline-soft); line-height: 1.4; }
.toc-list a:hover { color: var(--ink); }
.toc-list li:last-child a { border-bottom: none; }

.page-header { padding: 56px 0 48px; border-bottom: 1px solid var(--hairline); margin-bottom: 56px; }
.page-title { font-size: 40px; font-weight: 500; line-height: 1.15; letter-spacing: -0.8px; color: var(--ink); margin-bottom: 12px; }
.page-lead { font-size: 18px; line-height: 1.5; color: var(--ink-muted); max-width: 600px; }

.page-body { max-width: 720px; margin-bottom: 80px; }
.page-body h2 { font-size: 22px; font-weight: 500; line-height: 1.25; letter-spacing: -0.3px; color: var(--ink); margin: 40px 0 12px; }
.page-body h3 { font-size: 18px; font-weight: 500; line-height: 1.3; color: var(--ink); margin: 28px 0 10px; }
.page-body p { font-size: 16px; line-height: 1.65; color: var(--ink); margin-bottom: 18px; }
.page-body ul, .page-body ol { margin: 0 0 18px 24px; }
.page-body ul { list-style: disc; }
.page-body ol { list-style: decimal; }
.page-body li { font-size: 16px; line-height: 1.65; color: var(--ink); margin-bottom: 6px; }
.page-body a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.page-body a:hover { color: var(--ink-muted); }

.contact-form-wrap { background: var(--surface-1); border: 1px solid var(--hairline); border-radius: var(--rounded-xl); padding: 40px; margin: 56px 0; max-width: 640px; }
.contact-form-wrap h3 { font-size: 22px; font-weight: 500; letter-spacing: -0.3px; color: var(--ink); margin-bottom: 8px; }
.contact-form-wrap p { font-size: 15px; color: var(--ink-muted); margin-bottom: 28px; }
.form-row { margin-bottom: 20px; }
.form-row label { display: block; font-size: 14px; font-weight: 500; color: var(--ink); margin-bottom: 6px; }
.form-row input, .form-row textarea { width: 100%; background: var(--canvas); border: 1px solid var(--hairline); border-radius: var(--rounded-md); padding: 10px 14px; font-size: 16px; font-family: inherit; color: var(--ink); transition: border-color 0.15s, box-shadow 0.15s; outline: none; }
.form-row input:focus, .form-row textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(17,17,17,0.06); }
.form-row textarea { min-height: 110px; resize: vertical; }
.btn-primary { display: inline-block; background: var(--ink); color: #fff; font-size: 15px; font-weight: 500; padding: 10px 20px; border-radius: var(--rounded-md); border: none; cursor: pointer; font-family: inherit; transition: opacity 0.15s; }
.btn-primary:hover { opacity: 0.82; color: #fff; }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.form-status { display: none; margin-top: 16px; padding: 12px 16px; border-radius: var(--rounded-md); font-size: 15px; }
.form-status.success { background: #e8f4ed; color: #1a6335; border: 1px solid #b6dcca; display: block; }
.form-status.loading { background: var(--canvas); color: var(--ink-muted); border: 1px solid var(--hairline); display: block; }

.site-footer { background: var(--canvas); border-top: 1px solid var(--hairline); padding: 56px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; margin-bottom: 48px; }
.footer-brand h3 { font-size: 16px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.footer-brand p { font-size: 13px; line-height: 1.5; color: var(--ink-subtle); max-width: 240px; }
.footer-col h4 { font-size: 13px; font-weight: 500; color: var(--ink); margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { font-size: 13px; color: var(--ink-subtle); transition: color 0.15s; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom { border-top: 1px solid var(--hairline-soft); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 12px; color: var(--ink-tertiary); }
.footer-bottom-links { display: flex; gap: 16px; }
.footer-bottom-links a { font-size: 12px; color: var(--ink-tertiary); }
.footer-bottom-links a:hover { color: var(--ink-muted); }

.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000; background: var(--ink); color: #fff; padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; transform: translateY(100%); transition: transform 0.3s ease; }
.cookie-banner.visible { transform: translateY(0); }
.cookie-banner p { font-size: 14px; line-height: 1.5; color: rgba(255,255,255,0.85); max-width: 700px; }
.cookie-banner p a { color: #fff; text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.btn-cookie-accept { background: #fff; color: var(--ink); font-size: 14px; font-weight: 500; padding: 8px 16px; border-radius: var(--rounded-md); border: none; cursor: pointer; font-family: inherit; transition: opacity 0.15s; }
.btn-cookie-accept:hover { opacity: 0.88; }
.btn-cookie-reject { background: transparent; color: rgba(255,255,255,0.7); font-size: 14px; padding: 8px 14px; border-radius: var(--rounded-md); border: 1px solid rgba(255,255,255,0.25); cursor: pointer; font-family: inherit; transition: border-color 0.15s, color 0.15s; }
.btn-cookie-reject:hover { border-color: rgba(255,255,255,0.5); color: #fff; }

.disclaimer-bar { background: var(--surface-2); border-bottom: 1px solid var(--hairline); padding: 10px 0; font-size: 12px; color: var(--ink-subtle); text-align: center; }

.related-articles { padding: 64px 0; border-top: 1px solid var(--hairline); margin-top: 64px; }
.related-articles h2 { font-size: 22px; font-weight: 500; color: var(--ink); margin-bottom: 28px; }

@media (max-width: 1024px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .nav-toggle { display: flex; }
  .nav-links { display: none; position: absolute; top: 56px; left: 0; right: 0; background: var(--canvas); border-bottom: 1px solid var(--hairline); padding: 16px 20px; flex-direction: column; align-items: flex-start; gap: 4px; }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 16px; padding: 8px 0; }
  .has-dropdown .dropdown { display: none; position: static; box-shadow: none; border: none; padding: 0 0 0 16px; border-radius: 0; min-width: unset; }
  .has-dropdown.open .dropdown { display: block; }
  .hero-headline { font-size: 36px; letter-spacing: -0.8px; }
  .hero-sub { font-size: 16px; }
  .hero-image-card img { height: 260px; }
  .section-title { font-size: 28px; }
  .card-grid { grid-template-columns: 1fr; }
  .article-title { font-size: 28px; }
  .article-hero img { height: 280px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .page-title { font-size: 28px; }
  .contact-form-wrap { padding: 24px; }
}

@media (max-width: 480px) {
  .hero-headline { font-size: 28px; letter-spacing: -0.5px; }
  .article-title { font-size: 24px; }
  .cookie-banner { flex-direction: column; align-items: flex-start; }
}
