@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;
  --hairline: #e6e5e0;
  --hairline-soft: #efeee8;
  --hairline-strong: #cfcdc4;
  --primary: #f54e00;
  --primary-active: #d04200;
  --ink: #26251e;
  --body: #5a5852;
  --muted: #807d72;
  --muted-soft: #a09c92;
  --on-primary: #ffffff;
  --success: #1f8a65;
  --error: #cf2d56;
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-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; -webkit-font-smoothing: antialiased; }

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; }

/* NAVIGATION */
.site-nav { background: var(--canvas); border-bottom: 1px solid var(--hairline); position: sticky; top: 0; z-index: 100; height: 64px; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-logo { font-size: 18px; font-weight: 600; color: var(--ink); letter-spacing: -0.5px; }
.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 0.15s; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; flex-direction: column; gap: 5px; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }

/* 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(--muted); background: var(--surface-strong); border-radius: var(--radius-pill); padding: 4px 10px; margin-bottom: 20px; }
.hero h1 { font-size: 56px; font-weight: 400; line-height: 1.1; letter-spacing: -1.5px; color: var(--ink); max-width: 760px; margin-bottom: 20px; }
.hero-desc { font-size: 18px; color: var(--body); max-width: 600px; line-height: 1.6; margin-bottom: 40px; }
.hero-divider { border: none; border-top: 1px solid var(--hairline); margin: 48px 0; }

/* SECTION TITLES */
.section-label { font-size: 11px; font-weight: 600; letter-spacing: 0.88px; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.section-title { font-size: 36px; font-weight: 400; letter-spacing: -0.72px; color: var(--ink); line-height: 1.2; margin-bottom: 16px; }
.section-desc { font-size: 16px; color: var(--body); max-width: 580px; }

/* CARDS */
.card { background: var(--surface-card); border: 1px solid var(--hairline); border-radius: var(--radius-lg); padding: 24px; }
.card-grid { display: grid; gap: 24px; }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.card-tag { font-size: 11px; font-weight: 600; letter-spacing: 0.88px; text-transform: uppercase; color: var(--muted); background: var(--surface-strong); border-radius: var(--radius-pill); padding: 3px 8px; display: inline-block; margin-bottom: 12px; }
.card h3 { font-size: 18px; font-weight: 600; color: var(--ink); line-height: 1.4; margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--body); line-height: 1.5; }
.card-link { display: inline-block; margin-top: 16px; font-size: 14px; font-weight: 500; color: var(--primary); }
.card-link:hover { color: var(--primary-active); }

/* ARTICLE CARD */
.article-card { background: var(--surface-card); border: 1px solid var(--hairline); border-radius: var(--radius-lg); overflow: hidden; }
.article-card-img { width: 100%; height: 200px; object-fit: cover; }
.article-card-body { padding: 24px; }
.article-card-body .card-tag { margin-bottom: 10px; }
.article-card-body h3 { font-size: 20px; font-weight: 400; letter-spacing: -0.11px; color: var(--ink); line-height: 1.3; margin-bottom: 10px; }
.article-card-body p { font-size: 14px; color: var(--body); line-height: 1.6; }
.article-card-body .card-link { margin-top: 14px; }
.article-card-meta { font-size: 13px; color: var(--muted); margin-top: 12px; }

/* ARTICLE PAGE */
.article-header { padding: 60px 0 40px; }
.article-header .article-meta { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.article-header h1 { font-size: 42px; font-weight: 400; letter-spacing: -1px; color: var(--ink); line-height: 1.15; max-width: 760px; margin-bottom: 16px; }
.article-header .article-lead { font-size: 18px; color: var(--body); max-width: 680px; line-height: 1.6; }
.article-hero-img { width: 100%; max-height: 420px; object-fit: cover; border-radius: var(--radius-lg); margin-bottom: 48px; border: 1px solid var(--hairline); }
.article-body { max-width: 720px; }
.article-body h2 { font-size: 26px; font-weight: 400; letter-spacing: -0.325px; color: var(--ink); line-height: 1.25; margin: 40px 0 16px; }
.article-body h3 { font-size: 20px; font-weight: 600; color: var(--ink); line-height: 1.3; margin: 28px 0 12px; }
.article-body p { font-size: 16px; color: var(--body); line-height: 1.7; margin-bottom: 16px; }
.article-body ul, .article-body ol { margin: 0 0 20px 24px; }
.article-body li { font-size: 16px; color: var(--body); line-height: 1.7; margin-bottom: 6px; }
.article-body a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.article-body a:hover { color: var(--primary-active); }
.article-body blockquote { border-left: 3px solid var(--hairline-strong); padding-left: 20px; margin: 24px 0; }
.article-body blockquote p { font-size: 17px; color: var(--muted); font-style: italic; }
.info-box { background: var(--surface-card); border: 1px solid var(--hairline); border-radius: var(--radius-lg); padding: 24px; margin: 28px 0; }
.info-box-title { font-size: 13px; font-weight: 600; letter-spacing: 0.88px; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.info-box ul { margin: 0 0 0 20px; }
.info-box li { font-size: 15px; color: var(--body); line-height: 1.6; margin-bottom: 4px; }

/* SECTION BANDS */
.section { padding: 80px 0; }
.section-alt { background: var(--canvas-soft); }
.section + .section { border-top: 1px solid var(--hairline-soft); }

/* PAGE CONTENT */
.page-header { padding: 60px 0 48px; border-bottom: 1px solid var(--hairline); }
.page-header h1 { font-size: 42px; font-weight: 400; letter-spacing: -1px; color: var(--ink); margin-bottom: 12px; }
.page-header p { font-size: 16px; color: var(--body); max-width: 600px; }
.page-content { padding: 60px 0; max-width: 760px; }
.page-content h2 { font-size: 26px; font-weight: 400; letter-spacing: -0.325px; color: var(--ink); margin: 40px 0 14px; }
.page-content h3 { font-size: 18px; font-weight: 600; color: var(--ink); margin: 24px 0 10px; }
.page-content p { font-size: 16px; color: var(--body); line-height: 1.7; margin-bottom: 16px; }
.page-content ul, .page-content ol { margin: 0 0 20px 24px; }
.page-content li { font-size: 16px; color: var(--body); line-height: 1.7; margin-bottom: 6px; }

/* FORM */
.form-wrap { max-width: 540px; }
.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(--radius-md); padding: 12px 16px; font-size: 16px; color: var(--ink); font-family: inherit; transition: border-color 0.15s; height: 44px; }
.form-group textarea { height: auto; min-height: 120px; resize: vertical; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--ink); }
.form-group input.error, .form-group textarea.error { border-color: var(--error); }
.form-error { font-size: 13px; color: var(--error); margin-top: 4px; display: none; }
.btn-primary { background: var(--primary); color: var(--on-primary); border: none; border-radius: var(--radius-md); padding: 10px 18px; font-size: 14px; font-weight: 500; cursor: pointer; height: 40px; transition: background 0.15s; }
.btn-primary:hover { background: var(--primary-active); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }
.form-status { display: none; padding: 14px 16px; border-radius: var(--radius-md); font-size: 15px; margin-top: 16px; }
.form-status.success { background: #e8f5f0; color: var(--success); border: 1px solid #b8dfd3; }

/* FOOTER */
.site-footer { background: var(--canvas); border-top: 1px solid var(--hairline); padding: 48px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { font-size: 14px; color: var(--body); margin-top: 10px; max-width: 260px; line-height: 1.6; }
.footer-col h4 { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 14px; letter-spacing: 0.2px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 14px; color: var(--body); transition: color 0.15s; }
.footer-col ul li 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; }
.footer-bottom p { font-size: 13px; color: var(--muted); }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: 13px; color: var(--muted); transition: color 0.15s; }
.footer-bottom-links a:hover { color: var(--ink); }

/* COOKIE BANNER */
.cookie-banner { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--surface-card); border: 1px solid var(--hairline-strong); border-radius: var(--radius-lg); padding: 20px 24px; max-width: 580px; width: calc(100% - 48px); box-shadow: 0 4px 24px rgba(38,37,30,0.10); z-index: 200; display: none; align-items: flex-start; gap: 20px; }
.cookie-banner.visible { display: flex; }
.cookie-text { font-size: 14px; color: var(--body); line-height: 1.5; flex: 1; }
.cookie-text a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.cookie-btns { display: flex; gap: 8px; flex-shrink: 0; align-items: center; }
.btn-cookie-accept { background: var(--ink); color: var(--canvas); border: none; border-radius: var(--radius-md); padding: 8px 16px; font-size: 14px; font-weight: 500; cursor: pointer; }
.btn-cookie-reject { background: transparent; color: var(--body); border: 1px solid var(--hairline-strong); border-radius: var(--radius-md); padding: 8px 16px; font-size: 14px; font-weight: 500; cursor: pointer; }
.btn-cookie-reject:hover { border-color: var(--ink); color: var(--ink); }

/* BREADCRUMBS */
.breadcrumbs { padding: 16px 0; }
.breadcrumbs ol { list-style: none; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.breadcrumbs li { font-size: 13px; color: var(--muted); }
.breadcrumbs li + li::before { content: '/'; margin-right: 8px; color: var(--muted-soft); }
.breadcrumbs a { color: var(--body); }
.breadcrumbs a:hover { color: var(--ink); }

/* RELATED ARTICLES */
.related-section { padding: 60px 0; border-top: 1px solid var(--hairline); }
.related-section .section-title { font-size: 26px; margin-bottom: 24px; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero h1 { font-size: 44px; }
  .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--canvas); border-bottom: 1px solid var(--hairline); padding: 16px 24px; gap: 16px; }
  .nav-links.open { display: flex; }
  .nav-hamburger { display: flex; }
  .hero { padding: 48px 0; }
  .hero h1 { font-size: 32px; letter-spacing: -0.8px; }
  .hero-desc { font-size: 16px; }
  .section { padding: 48px 0; }
  .section-title { font-size: 28px; }
  .card-grid-3, .card-grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .article-header h1 { font-size: 30px; }
  .cookie-banner { flex-direction: column; bottom: 12px; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .hero h1 { font-size: 28px; }
  .page-header h1 { font-size: 30px; }
}
