@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;
  --ink: #26251e;
  --body: #5a5852;
  --muted: #807d72;
  --muted-soft: #a09c92;
  --on-primary: #ffffff;
  --hairline: #e6e5e0;
  --hairline-soft: #efeee8;
  --hairline-strong: #cfcdc4;
  --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; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

/* NAV */
.site-nav { background: var(--canvas); border-bottom: 1px solid var(--hairline); height: 64px; position: sticky; top: 0; z-index: 100; }
.site-nav .container { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.nav-brand { font-size: 18px; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; }
.nav-brand span { color: var(--primary); }
.nav-links { display: flex; align-items: center; 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-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; color: var(--ink); }

/* HERO */
.hero { padding: 80px 0; }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.hero-label { display: inline-flex; align-items: center; font-size: 11px; font-weight: 600; letter-spacing: 0.88px; text-transform: uppercase; color: var(--muted); background: var(--surface-strong); padding: 4px 10px; border-radius: var(--radius-pill); margin-bottom: 20px; }
.hero h1 { font-size: 48px; font-weight: 400; color: var(--ink); line-height: 1.1; letter-spacing: -1px; margin-bottom: 20px; }
.hero-desc { font-size: 16px; color: var(--body); line-height: 1.6; margin-bottom: 32px; max-width: 480px; }
.hero-img { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--hairline); }
.hero-img img { width: 100%; height: 340px; object-fit: cover; }

/* SECTIONS */
.section { padding: 80px 0; }
.section-alt { background: var(--canvas-soft); }
.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; color: var(--ink); letter-spacing: -0.72px; line-height: 1.2; margin-bottom: 16px; }
.section-desc { font-size: 16px; color: var(--body); max-width: 560px; line-height: 1.6; }
.section-header { margin-bottom: 48px; }

/* 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(--radius-lg); overflow: hidden; transition: border-color .15s; }
.card:hover { border-color: var(--hairline-strong); }
.card-img { aspect-ratio: 16/9; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 24px; }
.card-meta { font-size: 11px; font-weight: 600; letter-spacing: 0.88px; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.card-title { font-size: 18px; font-weight: 600; color: var(--ink); line-height: 1.35; margin-bottom: 10px; }
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--primary); }
.card-excerpt { font-size: 14px; color: var(--body); line-height: 1.55; }

/* ARTICLE */
.article-hero { padding: 60px 0 0; }
.article-hero .container { max-width: 800px; }
.article-label { display: inline-flex; font-size: 11px; font-weight: 600; letter-spacing: 0.88px; text-transform: uppercase; color: var(--on-primary); background: var(--primary); padding: 4px 10px; border-radius: var(--radius-pill); margin-bottom: 20px; }
.article-title { font-size: 42px; font-weight: 400; color: var(--ink); letter-spacing: -0.72px; line-height: 1.15; margin-bottom: 20px; }
.article-meta { font-size: 13px; color: var(--muted); margin-bottom: 32px; }
.article-cover { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--hairline); margin-bottom: 0; }
.article-cover img { width: 100%; height: 420px; object-fit: cover; }
.article-body { padding: 60px 0 80px; }
.article-body .container { max-width: 800px; }
.article-content { font-size: 16px; color: var(--body); line-height: 1.7; }
.article-content h2 { font-size: 26px; font-weight: 400; color: var(--ink); letter-spacing: -0.325px; margin: 48px 0 16px; }
.article-content h3 { font-size: 20px; font-weight: 600; color: var(--ink); margin: 32px 0 12px; }
.article-content p { margin-bottom: 20px; }
.article-content ul, .article-content ol { margin: 0 0 20px 24px; }
.article-content li { margin-bottom: 8px; }
.article-content a { color: var(--primary); }
.article-content a:hover { text-decoration: underline; }
.article-content strong { color: var(--ink); font-weight: 600; }
.info-box { background: var(--surface-card); border: 1px solid var(--hairline); border-left: 3px solid var(--primary); border-radius: var(--radius-md); padding: 20px 24px; margin: 32px 0; }
.info-box p { margin: 0; font-size: 15px; color: var(--body); }

/* PAGE CONTENT */
.page-hero { padding: 60px 0 40px; }
.page-hero .container { max-width: 800px; }
.page-title { font-size: 42px; font-weight: 400; color: var(--ink); letter-spacing: -0.72px; line-height: 1.15; margin-bottom: 12px; }
.page-updated { font-size: 13px; color: var(--muted); }
.page-body { padding: 40px 0 80px; }
.page-body .container { max-width: 800px; }
.page-content { font-size: 16px; color: var(--body); line-height: 1.7; }
.page-content h2 { font-size: 22px; font-weight: 600; color: var(--ink); margin: 40px 0 14px; }
.page-content p { margin-bottom: 18px; }
.page-content ul { margin: 0 0 18px 24px; }
.page-content li { margin-bottom: 6px; }
.page-content a { color: var(--primary); }

/* CONTACT FORM */
.contact-section { padding: 80px 0; }
.contact-section .container { max-width: 640px; }
.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: 15px; color: var(--ink); font-family: inherit; transition: border-color .15s; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--ink); }
.form-group textarea { resize: vertical; min-height: 120px; }
.btn-primary { display: inline-flex; align-items: center; justify-content: center; background: var(--primary); color: var(--on-primary); font-size: 14px; font-weight: 500; padding: 10px 20px; border-radius: var(--radius-md); border: none; cursor: pointer; height: 40px; transition: background .15s; }
.btn-primary:hover { background: var(--primary-active); }
.btn-primary:disabled { opacity: .6; cursor: not-allowed; }
.form-message { display: none; margin-top: 16px; padding: 12px 16px; border-radius: var(--radius-md); font-size: 14px; }
.form-message.success { background: #e8f5f0; color: var(--success); border: 1px solid #b8dfd3; display: block; }
.form-message.error-msg { background: #fde8ec; color: var(--error); border: 1px solid #f4b8c5; display: block; }

/* DIVIDER */
.divider { border: none; border-top: 1px solid var(--hairline); margin: 0; }

/* 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 p { font-size: 14px; color: var(--body); line-height: 1.6; margin-top: 10px; max-width: 280px; }
.footer-col h4 { font-size: 13px; font-weight: 600; color: var(--ink); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 14px; color: var(--body); transition: color .15s; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 32px; border-top: 1px solid var(--hairline); }
.footer-bottom p { font-size: 13px; color: var(--muted); }
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--body); }

/* COOKIE BANNER */
#cookie-banner { display: none; position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); width: calc(100% - 48px); max-width: 680px; background: var(--ink); color: var(--canvas); border-radius: var(--radius-lg); padding: 20px 24px; z-index: 999; box-shadow: 0 4px 24px rgba(0,0,0,.2); }
.cookie-inner { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.cookie-inner p { font-size: 14px; line-height: 1.5; flex: 1; min-width: 200px; }
.cookie-inner p a { color: var(--canvas); text-decoration: underline; }
.cookie-btns { display: flex; gap: 10px; flex-shrink: 0; }
.btn-cookie-accept { background: var(--primary); color: var(--on-primary); border: none; padding: 8px 18px; border-radius: var(--radius-md); font-size: 13px; font-weight: 500; cursor: pointer; }
.btn-cookie-reject { background: transparent; color: var(--muted-soft); border: 1px solid rgba(255,255,255,.2); padding: 8px 18px; border-radius: var(--radius-md); font-size: 13px; font-weight: 500; cursor: pointer; }
.btn-cookie-accept:hover { background: var(--primary-active); }

/* BREADCRUMB */
.breadcrumb { font-size: 13px; color: var(--muted); padding: 14px 0; border-bottom: 1px solid var(--hairline-soft); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--body); }
.breadcrumb span { margin: 0 6px; }

/* RELATED ARTICLES */
.related { padding: 60px 0 80px; background: var(--canvas-soft); }
.related .section-title { font-size: 26px; margin-bottom: 32px; }

/* ABOUT PAGE LEAD */
.about-lead { font-size: 20px; color: var(--body); line-height: 1.65; margin-bottom: 32px; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-img { order: -1; }
  .hero h1 { font-size: 34px; }
  .section-title { font-size: 28px; }
  .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: 20px 24px; gap: 16px; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .article-title, .page-title { font-size: 30px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .cards-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero { padding: 48px 0; }
  .section { padding: 60px 0; }
  .hero h1 { font-size: 28px; }
}
