@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;
  --rounded-xs: 4px;
  --rounded-sm: 6px;
  --rounded-md: 8px;
  --rounded-lg: 12px;
  --rounded-xl: 16px;
  --rounded-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-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

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

/* TOP 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%; }
.site-nav__brand { font-size: 18px; font-weight: 600; color: var(--ink); letter-spacing: -0.3px; }
.site-nav__brand span { color: var(--primary); }
.site-nav__links { display: flex; gap: 32px; }
.site-nav__links a { font-size: 14px; font-weight: 500; line-height: 1.4; color: var(--body); }
.site-nav__links a:hover { color: var(--ink); }
.site-nav__hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; }
.site-nav__hamburger span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: all 0.2s; }
.site-nav__mobile { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--canvas); border-bottom: 1px solid var(--hairline); padding: 16px 24px 20px; flex-direction: column; gap: 16px; }
.site-nav__mobile.open { display: flex; }
.site-nav__mobile a { font-size: 15px; font-weight: 500; color: var(--body); }

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

/* SECTIONS */
.section { padding: 80px 0; }
.section--soft { background: var(--canvas-soft); }
.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__subtitle { font-size: 16px; line-height: 1.5; color: var(--body); max-width: 600px; margin-bottom: 48px; }

/* CARDS */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cards-grid--2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--surface-card); border: 1px solid var(--hairline); border-radius: var(--rounded-lg); padding: 24px; }
.card__label { font-size: 11px; font-weight: 600; letter-spacing: 0.88px; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.card__title { font-size: 18px; font-weight: 600; line-height: 1.4; color: var(--ink); margin-bottom: 10px; }
.card__body { font-size: 14px; line-height: 1.5; color: var(--body); }
.card__image { margin: -24px -24px 20px; border-radius: var(--rounded-lg) var(--rounded-lg) 0 0; overflow: hidden; }
.card__image img { width: 100%; height: 200px; object-fit: cover; }
.card__link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--primary); margin-top: 16px; }
.card__link:hover { color: var(--primary-active); }
.card__meta { font-size: 13px; color: var(--muted); margin-top: 12px; }

/* ARTICLE PAGE */
.article-hero { padding: 60px 0 40px; border-bottom: 1px solid var(--hairline); }
.article-hero__meta { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.article-hero__tag { font-size: 11px; font-weight: 600; letter-spacing: 0.88px; text-transform: uppercase; background: var(--surface-strong); color: var(--ink); padding: 4px 10px; border-radius: var(--rounded-pill); }
.article-hero__date { font-size: 13px; color: var(--muted); }
.article-hero__title { font-size: 46px; font-weight: 400; line-height: 1.15; letter-spacing: -1.2px; color: var(--ink); margin-bottom: 16px; max-width: 800px; }
.article-hero__lead { font-size: 18px; line-height: 1.55; color: var(--body); max-width: 720px; }
.article-hero__image { margin-top: 40px; border-radius: var(--rounded-lg); overflow: hidden; border: 1px solid var(--hairline); }
.article-hero__image img { width: 100%; height: 460px; object-fit: cover; }
.article-body { padding: 60px 0; }
.article-body .container { display: grid; grid-template-columns: 1fr 320px; gap: 64px; }
.article-content h2 { font-size: 26px; font-weight: 400; letter-spacing: -0.325px; color: var(--ink); margin: 48px 0 16px; line-height: 1.25; }
.article-content h3 { font-size: 20px; font-weight: 600; color: var(--ink); margin: 32px 0 12px; line-height: 1.3; }
.article-content p { font-size: 16px; line-height: 1.65; color: var(--body); margin-bottom: 20px; }
.article-content ul, .article-content ol { padding-left: 20px; margin-bottom: 20px; }
.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }
.article-content li { font-size: 16px; line-height: 1.65; color: var(--body); margin-bottom: 8px; }
.article-content strong { color: var(--ink); font-weight: 600; }
.article-content a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.article-content a:hover { color: var(--primary-active); }
.article-content .callout { background: var(--surface-card); border: 1px solid var(--hairline); border-left: 3px solid var(--primary); border-radius: var(--rounded-md); padding: 20px 24px; margin: 32px 0; }
.article-content .callout p { margin-bottom: 0; }
.article-sidebar { position: sticky; top: 80px; align-self: start; }
.sidebar-toc { background: var(--surface-card); border: 1px solid var(--hairline); border-radius: var(--rounded-lg); padding: 24px; margin-bottom: 24px; }
.sidebar-toc h4 { font-size: 11px; font-weight: 600; letter-spacing: 0.88px; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.sidebar-toc ul { list-style: none; }
.sidebar-toc li { margin-bottom: 10px; }
.sidebar-toc a { font-size: 14px; color: var(--body); line-height: 1.4; }
.sidebar-toc a:hover { color: var(--ink); }
.sidebar-related { background: var(--surface-card); border: 1px solid var(--hairline); border-radius: var(--rounded-lg); padding: 24px; }
.sidebar-related h4 { font-size: 11px; font-weight: 600; letter-spacing: 0.88px; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.sidebar-related a { display: block; font-size: 14px; color: var(--body); line-height: 1.4; padding: 8px 0; border-bottom: 1px solid var(--hairline-soft); }
.sidebar-related a:last-child { border-bottom: none; }
.sidebar-related a:hover { color: var(--ink); }

/* DIVIDER */
.divider { height: 1px; background: var(--hairline); margin: 0; }

/* CONTACT FORM */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group--full { grid-column: 1 / -1; }
.form-group label { font-size: 14px; font-weight: 500; color: var(--ink); }
.form-group input, .form-group textarea, .form-group select { background: var(--surface-card); color: var(--ink); border: 1px solid var(--hairline-strong); border-radius: var(--rounded-md); padding: 12px 16px; font-size: 16px; font-family: inherit; height: 44px; transition: border-color 0.15s; outline: none; }
.form-group textarea { height: auto; min-height: 120px; 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-error { font-size: 13px; color: var(--error); }
.btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--primary); color: var(--on-primary); font-size: 14px; font-weight: 500; padding: 10px 18px; height: 40px; border-radius: var(--rounded-md); border: none; cursor: pointer; font-family: inherit; transition: background 0.15s; }
.btn-primary:hover { background: var(--primary-active); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-secondary { display: inline-flex; align-items: center; justify-content: center; background: var(--surface-card); color: var(--ink); font-size: 14px; font-weight: 500; padding: 10px 18px; height: 40px; border-radius: var(--rounded-md); border: 1px solid var(--hairline-strong); cursor: pointer; font-family: inherit; transition: border-color 0.15s; }
.btn-secondary:hover { border-color: var(--ink); }
.form-success { display: none; background: #e6f5ee; border: 1px solid #1f8a65; border-radius: var(--rounded-md); padding: 16px 20px; color: var(--success); font-size: 15px; font-weight: 500; }
.form-success.visible { display: block; }

/* FOOTER */
.site-footer { background: var(--canvas); border-top: 1px solid var(--hairline); padding: 64px 0 48px; }
.site-footer .container { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand { font-size: 16px; font-weight: 600; color: var(--ink); margin-bottom: 12px; }
.footer-brand span { color: var(--primary); }
.footer-desc { font-size: 14px; color: var(--body); line-height: 1.5; }
.footer-col h5 { font-size: 11px; font-weight: 600; letter-spacing: 0.88px; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14px; color: var(--body); margin-bottom: 8px; line-height: 1.4; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom { border-top: 1px solid var(--hairline); margin-top: 48px; padding-top: 24px; display: flex; align-items: center; justify-content: space-between; }
.footer-bottom p { font-size: 13px; color: var(--muted); }
.footer-bottom a { font-size: 13px; color: var(--muted); }
.footer-bottom a:hover { color: var(--body); }

/* COOKIE BANNER */
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; background: var(--ink); color: var(--canvas); padding: 20px 24px; z-index: 999; display: none; }
.cookie-banner.show { display: block; }
.cookie-banner__inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.cookie-banner__text { flex: 1; font-size: 14px; line-height: 1.5; min-width: 280px; }
.cookie-banner__text a { color: var(--canvas); text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: 12px; flex-shrink: 0; }
.cookie-accept { background: var(--primary); color: var(--on-primary); font-size: 14px; font-weight: 500; padding: 8px 16px; border-radius: var(--rounded-md); border: none; cursor: pointer; font-family: inherit; }
.cookie-reject { background: transparent; color: var(--canvas); font-size: 14px; font-weight: 500; padding: 8px 16px; border-radius: var(--rounded-md); border: 1px solid rgba(247,247,244,0.3); cursor: pointer; font-family: inherit; }

/* BREADCRUMBS */
.breadcrumbs { padding: 16px 0; border-bottom: 1px solid var(--hairline-soft); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; list-style: none; }
.breadcrumbs li { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.breadcrumbs li::after { content: '/'; color: var(--hairline-strong); }
.breadcrumbs li:last-child::after { display: none; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--body); }
.breadcrumbs li:last-child { color: var(--body); }

/* PAGE HEADER (inner pages) */
.page-header { padding: 60px 0 48px; border-bottom: 1px solid var(--hairline); }
.page-header__title { font-size: 46px; font-weight: 400; letter-spacing: -1.2px; color: var(--ink); line-height: 1.15; margin-bottom: 16px; }
.page-header__subtitle { font-size: 18px; line-height: 1.55; color: var(--body); max-width: 640px; }

/* PROSE */
.prose { max-width: 760px; }
.prose h2 { font-size: 26px; font-weight: 400; letter-spacing: -0.325px; color: var(--ink); margin: 48px 0 16px; line-height: 1.25; }
.prose h3 { font-size: 20px; font-weight: 600; color: var(--ink); margin: 32px 0 12px; line-height: 1.3; }
.prose p { font-size: 16px; line-height: 1.65; color: var(--body); margin-bottom: 20px; }
.prose ul, .prose ol { padding-left: 20px; margin-bottom: 20px; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { font-size: 16px; line-height: 1.65; color: var(--body); margin-bottom: 8px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--primary-active); }

/* ABOUT */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }

/* DATA TABLE */
.data-table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.data-table th { font-size: 11px; font-weight: 600; letter-spacing: 0.88px; text-transform: uppercase; color: var(--muted); padding: 12px 16px; text-align: left; border-bottom: 2px solid var(--hairline); }
.data-table td { font-size: 15px; color: var(--body); padding: 14px 16px; border-bottom: 1px solid var(--hairline-soft); vertical-align: top; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--canvas-soft); }

/* HIGHLIGHT BOX */
.highlight-box { background: var(--surface-card); border: 1px solid var(--hairline); border-radius: var(--rounded-lg); padding: 32px; margin: 40px 0; }
.highlight-box__title { font-size: 22px; font-weight: 400; letter-spacing: -0.11px; color: var(--ink); margin-bottom: 12px; line-height: 1.3; }
.highlight-box__body { font-size: 15px; line-height: 1.6; color: var(--body); }

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

@media (max-width: 768px) {
  .site-nav__links { display: none; }
  .site-nav__hamburger { display: flex; }
  .hero { padding: 48px 0; }
  .hero__title { font-size: 36px; letter-spacing: -0.9px; }
  .hero__image img { height: 260px; }
  .section { padding: 48px 0; }
  .section__title { font-size: 28px; }
  .cards-grid, .cards-grid--2 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .site-footer .container { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
  .about-grid { grid-template-columns: 1fr; }
  .page-header__title { font-size: 32px; }
  .article-hero__title { font-size: 30px; }
  .article-hero__image img { height: 280px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero__title { font-size: 28px; letter-spacing: -0.5px; }
  .site-footer .container { grid-template-columns: 1fr; }
}
