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

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

:root {
  --canvas: #f7f7f4;
  --canvas-soft: #fafaf7;
  --surface-card: #ffffff;
  --surface-strong: #e6e5e0;
  --primary: #f54e00;
  --primary-active: #d04200;
  --on-primary: #ffffff;
  --ink: #26251e;
  --body: #5a5852;
  --body-strong: #26251e;
  --muted: #807d72;
  --muted-soft: #a09c92;
  --hairline: #e6e5e0;
  --hairline-soft: #efeee8;
  --hairline-strong: #cfcdc4;
  --success: #1f8a65;
  --error: #cf2d56;
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-pill: 9999px;
}

html { font-size: 16px; scroll-behavior: smooth; }
body { background: var(--canvas); color: var(--body); font-family: 'Inter', system-ui, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-weight: 400; line-height: 1.5; }

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

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

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

/* NAV */
.site-nav { background: var(--canvas); border-bottom: 1px solid var(--hairline); position: sticky; top: 0; z-index: 100; height: 64px; }
.site-nav .container { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.nav-logo { font-size: 18px; font-weight: 600; color: var(--ink); letter-spacing: -0.2px; }
.nav-logo span { color: var(--primary); }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--body); transition: color .15s; }
.nav-links a:hover { color: var(--ink); }
.nav-hamburger { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 4px; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }

/* HERO */
.hero { padding: 80px 0; }
.hero-eyebrow { display: inline-block; background: var(--surface-strong); color: var(--ink); font-size: 11px; font-weight: 600; letter-spacing: 0.88px; text-transform: uppercase; padding: 4px 10px; border-radius: var(--r-pill); margin-bottom: 24px; }
.hero h1 { font-size: 72px; font-weight: 400; line-height: 1.1; letter-spacing: -2.16px; color: var(--ink); max-width: 900px; margin-bottom: 24px; }
.hero-sub { font-size: 16px; color: var(--body); max-width: 560px; margin-bottom: 40px; line-height: 1.6; }
.hero-img { margin-top: 56px; border-radius: var(--r-lg); border: 1px solid var(--hairline); overflow: hidden; }
.hero-img img { width: 100%; height: 420px; object-fit: cover; }

/* SECTIONS */
.section { padding: 80px 0; }
.section-label { font-size: 11px; font-weight: 600; letter-spacing: 0.88px; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.section-title { font-size: 36px; font-weight: 400; line-height: 1.2; letter-spacing: -0.72px; color: var(--ink); margin-bottom: 16px; }
.section-body { font-size: 16px; color: var(--body); max-width: 640px; line-height: 1.6; margin-bottom: 48px; }
.section-divider { border: none; border-top: 1px solid var(--hairline); margin: 0; }

/* CARDS GRID */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: var(--surface-card); border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: 24px; }
.card-img { border-radius: var(--r-md); overflow: hidden; margin-bottom: 20px; }
.card-img img { width: 100%; height: 200px; object-fit: cover; }
.card-label { font-size: 11px; font-weight: 600; letter-spacing: 0.88px; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.card-title { font-size: 18px; font-weight: 600; color: var(--ink); margin-bottom: 12px; line-height: 1.3; }
.card-body { font-size: 14px; color: var(--body); line-height: 1.5; margin-bottom: 20px; }
.card-link { font-size: 14px; font-weight: 500; color: var(--primary); }
.card-link:hover { color: var(--primary-active); }

/* ARTICLE CARDS (2-col) */
.cards-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

/* FEATURE LIST */
.feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.feature-item { background: var(--surface-card); border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: 24px; }
.feature-item h3 { font-size: 16px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.feature-item p { font-size: 14px; color: var(--body); line-height: 1.5; }

/* ARTICLE PAGE */
.article-header { padding: 64px 0 40px; border-bottom: 1px solid var(--hairline); }
.article-meta { display: flex; gap: 16px; align-items: center; margin-bottom: 24px; flex-wrap: wrap; }
.article-category { background: var(--surface-strong); color: var(--ink); font-size: 11px; font-weight: 600; letter-spacing: 0.88px; text-transform: uppercase; padding: 4px 10px; border-radius: var(--r-pill); }
.article-date { font-size: 13px; color: var(--muted); }
.article-header h1 { font-size: 48px; font-weight: 400; line-height: 1.15; letter-spacing: -1.2px; color: var(--ink); max-width: 800px; margin-bottom: 20px; }
.article-header .lead { font-size: 18px; color: var(--body); line-height: 1.6; max-width: 680px; }
.article-hero-img { margin: 40px 0; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--hairline); }
.article-hero-img img { width: 100%; height: 460px; object-fit: cover; }
.img-caption { font-size: 13px; color: var(--muted); padding: 10px 16px; background: var(--canvas-soft); }

.article-body { padding: 48px 0 80px; }
.article-content { max-width: 720px; }
.article-content h2 { font-size: 26px; font-weight: 400; letter-spacing: -0.325px; color: var(--ink); margin: 48px 0 16px; }
.article-content h3 { font-size: 18px; font-weight: 600; color: var(--ink); margin: 32px 0 12px; }
.article-content p { font-size: 16px; color: var(--body); line-height: 1.6; margin-bottom: 20px; }
.article-content ul, .article-content ol { padding-left: 24px; margin-bottom: 20px; }
.article-content li { font-size: 16px; color: var(--body); line-height: 1.6; margin-bottom: 8px; }
.article-content blockquote { border-left: 3px solid var(--primary); padding: 16px 20px; margin: 32px 0; background: var(--canvas-soft); border-radius: 0 var(--r-md) var(--r-md) 0; }
.article-content blockquote p { color: var(--ink); font-size: 16px; margin-bottom: 0; }
.article-content a { color: var(--primary); text-decoration: underline; text-decoration-color: var(--hairline-strong); }
.article-content a:hover { color: var(--primary-active); }
.article-sidebar { position: sticky; top: 80px; }

.article-layout { display: grid; grid-template-columns: 1fr 300px; gap: 64px; }

.toc-box { background: var(--surface-card); border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: 24px; margin-bottom: 24px; }
.toc-box h4 { font-size: 11px; font-weight: 600; letter-spacing: 0.88px; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.toc-list { list-style: none; }
.toc-list li { margin-bottom: 8px; }
.toc-list a { font-size: 14px; color: var(--body); }
.toc-list a:hover { color: var(--primary); }

.related-box { background: var(--surface-card); border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: 24px; }
.related-box h4 { font-size: 11px; font-weight: 600; letter-spacing: 0.88px; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.related-list { list-style: none; }
.related-list li { margin-bottom: 12px; border-bottom: 1px solid var(--hairline-soft); padding-bottom: 12px; }
.related-list li:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
.related-list a { font-size: 14px; font-weight: 500; color: var(--ink); line-height: 1.4; }
.related-list a:hover { color: var(--primary); }

/* INFO BOX */
.info-box { background: var(--canvas-soft); border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: 24px; margin: 32px 0; }
.info-box h4 { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 12px; }
.info-box p, .info-box li { font-size: 14px; color: var(--body); line-height: 1.5; }
.info-box ul { padding-left: 20px; }

/* CONTACT FORM */
.contact-section { background: var(--surface-card); border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: 40px; max-width: 560px; }
.contact-section h2 { font-size: 26px; font-weight: 400; letter-spacing: -0.325px; color: var(--ink); margin-bottom: 8px; }
.contact-section > p { font-size: 15px; color: var(--body); margin-bottom: 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%; background: var(--surface-card); border: 1px solid var(--hairline-strong); border-radius: var(--r-md); padding: 12px 16px; font-size: 15px; color: var(--ink); font-family: inherit; transition: border-color .15s; outline: none; height: 44px; }
.form-group textarea { height: auto; min-height: 100px; resize: vertical; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--ink); }
.form-group input.error, .form-group textarea.error { border-color: var(--error); }
.form-group .error-msg { font-size: 13px; color: var(--error); margin-top: 4px; display: none; }
.btn-primary { display: inline-flex; align-items: center; gap: 8px; background: var(--primary); color: var(--on-primary); font-size: 14px; font-weight: 500; padding: 10px 18px; height: 40px; border-radius: var(--r-md); border: none; cursor: pointer; transition: background .15s; font-family: inherit; }
.btn-primary:hover { background: var(--primary-active); }
.btn-primary:disabled { opacity: .6; cursor: not-allowed; }
.form-success { display: none; background: #f0faf5; border: 1px solid #a3d9c0; border-radius: var(--r-md); padding: 16px; font-size: 15px; color: var(--success); margin-top: 16px; }
.form-loading { display: none; font-size: 14px; color: var(--muted); margin-top: 12px; }

/* COOKIE BANNER */
.cookie-banner { position: fixed; bottom: 24px; left: 24px; right: 24px; max-width: 520px; background: var(--ink); color: var(--canvas); border-radius: var(--r-lg); padding: 20px 24px; z-index: 1000; display: none; box-shadow: 0 4px 24px rgba(38,37,30,.18); }
.cookie-banner p { font-size: 13px; line-height: 1.5; margin-bottom: 16px; color: var(--canvas-soft); }
.cookie-banner a { color: var(--primary); text-decoration: underline; }
.cookie-btns { display: flex; gap: 8px; }
.btn-cookie-accept { background: var(--primary); color: var(--on-primary); border: none; border-radius: var(--r-md); padding: 8px 16px; font-size: 13px; font-weight: 500; cursor: pointer; font-family: inherit; transition: background .15s; }
.btn-cookie-accept:hover { background: var(--primary-active); }
.btn-cookie-reject { background: transparent; color: var(--canvas-soft); border: 1px solid rgba(255,255,255,.3); border-radius: var(--r-md); padding: 8px 16px; font-size: 13px; font-weight: 500; cursor: pointer; font-family: inherit; transition: border-color .15s; }
.btn-cookie-reject:hover { border-color: rgba(255,255,255,.6); }

/* FOOTER */
.site-footer { background: var(--canvas); border-top: 1px solid var(--hairline); padding: 64px 0 48px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand .nav-logo { display: inline-block; margin-bottom: 16px; font-size: 16px; }
.footer-brand p { font-size: 14px; color: var(--body); line-height: 1.6; max-width: 240px; }
.footer-col h4 { font-size: 11px; font-weight: 600; letter-spacing: 0.88px; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 14px; color: var(--body); }
.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: 8px; }
.footer-bottom p { font-size: 13px; color: var(--muted); }

/* PAGE SECTIONS (about, privacy, terms) */
.page-header { padding: 64px 0 40px; border-bottom: 1px solid var(--hairline); margin-bottom: 64px; }
.page-header h1 { font-size: 48px; font-weight: 400; letter-spacing: -1.2px; color: var(--ink); margin-bottom: 12px; }
.page-header p { font-size: 16px; color: var(--body); }
.page-date { font-size: 13px; color: var(--muted); margin-top: 8px; }
.page-content { max-width: 720px; padding-bottom: 80px; }
.page-content h2 { font-size: 22px; font-weight: 400; letter-spacing: -0.11px; color: var(--ink); margin: 40px 0 14px; }
.page-content h3 { font-size: 16px; font-weight: 600; color: var(--ink); margin: 24px 0 10px; }
.page-content p { font-size: 15px; color: var(--body); line-height: 1.65; margin-bottom: 16px; }
.page-content ul, .page-content ol { padding-left: 22px; margin-bottom: 16px; }
.page-content li { font-size: 15px; color: var(--body); line-height: 1.6; margin-bottom: 6px; }
.page-content a { color: var(--primary); }

/* BREADCRUMB */
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb span { margin: 0 6px; }

/* SCHEMA / visually hidden */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 56px; letter-spacing: -1.5px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; gap: 0; position: absolute; top: 64px; left: 0; right: 0; background: var(--canvas); border-bottom: 1px solid var(--hairline); padding: 16px 24px; }
  .nav-links.open a { padding: 10px 0; border-bottom: 1px solid var(--hairline-soft); }
  .nav-hamburger { display: flex; }
  .site-nav { position: relative; }
  .hero h1 { font-size: 40px; letter-spacing: -1px; }
  .hero { padding: 48px 0; }
  .hero-img img { height: 240px; }
  .section { padding: 56px 0; }
  .section-title { font-size: 28px; }
  .cards-grid, .cards-grid-2 { grid-template-columns: 1fr; }
  .feature-list { grid-template-columns: 1fr; }
  .article-header h1 { font-size: 32px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; }
  .contact-section { padding: 24px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 32px; }
  .page-header h1 { font-size: 32px; }
}
