*, *::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 { font-family: 'Inter', system-ui, 'Helvetica Neue', Helvetica, Arial, sans-serif; background: var(--canvas); color: var(--body); line-height: 1.5; -webkit-font-smoothing: antialiased; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

a { color: var(--ink); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--primary); }

img { max-width: 100%; height: auto; display: block; }

/* NAV */
.site-nav { background: var(--canvas); border-bottom: 1px solid var(--hairline); height: 64px; position: sticky; top: 0; z-index: 100; }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; height: 100%; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { font-size: 18px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.nav-menu { list-style: none; display: flex; align-items: center; gap: 32px; }
.nav-menu a { font-size: 14px; font-weight: 500; color: var(--body); line-height: 1.4; }
.nav-menu a:hover, .nav-menu a.active { color: var(--ink); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { display: block; width: 20px; height: 1.5px; background: var(--ink); transition: all 0.2s; }

/* HERO */
.hero { padding: 80px 0; }
.hero-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.hero-label { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: 0.88px; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }
.hero h1 { font-size: 72px; font-weight: 400; line-height: 1.1; letter-spacing: -2.16px; color: var(--ink); max-width: 800px; margin-bottom: 24px; }
.hero-sub { font-size: 18px; color: var(--body); max-width: 560px; margin-bottom: 40px; line-height: 1.6; }
.hero-image { margin-top: 64px; border-radius: var(--rounded-lg); overflow: hidden; border: 1px solid var(--hairline); background: var(--surface-card); max-height: 480px; }
.hero-image img { width: 100%; height: 480px; object-fit: cover; }

/* SECTION */
.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; display: block; }
.section-title { font-size: 36px; font-weight: 400; line-height: 1.2; letter-spacing: -0.72px; color: var(--ink); margin-bottom: 16px; }
.section-sub { font-size: 16px; color: var(--body); max-width: 560px; }
.section-head { margin-bottom: 48px; }
.section-divider { border: none; border-top: 1px solid var(--hairline); }

/* 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(--rounded-lg); padding: 24px; transition: border-color 0.15s; }
.card:hover { border-color: var(--hairline-strong); }
.card-image { border-radius: var(--rounded-md); overflow: hidden; margin-bottom: 20px; }
.card-image 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; display: block; }
.card-title { font-size: 18px; font-weight: 600; color: var(--ink); line-height: 1.3; margin-bottom: 12px; }
.card-excerpt { font-size: 14px; color: var(--body); line-height: 1.5; margin-bottom: 16px; }
.card-meta { font-size: 13px; color: var(--muted); }
.card a.card-title-link { color: var(--ink); }
.card a.card-title-link:hover { color: var(--primary); }

/* ARTICLE */
.article-page { padding: 64px 0 80px; }
.article-inner { max-width: 720px; margin: 0 auto; padding: 0 24px; }
.article-breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 32px; }
.article-breadcrumb a { color: var(--muted); }
.article-breadcrumb a:hover { color: var(--primary); }
.article-breadcrumb span { margin: 0 8px; }
.article-label { font-size: 11px; font-weight: 600; letter-spacing: 0.88px; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; display: block; }
.article-title { font-size: 36px; font-weight: 400; line-height: 1.2; letter-spacing: -0.72px; color: var(--ink); margin-bottom: 16px; }
.article-meta { font-size: 13px; color: var(--muted); margin-bottom: 32px; display: flex; gap: 16px; flex-wrap: wrap; }
.article-hero-img { border-radius: var(--rounded-lg); overflow: hidden; margin-bottom: 40px; border: 1px solid var(--hairline); }
.article-hero-img img { width: 100%; max-height: 420px; object-fit: cover; }
.article-body h2 { font-size: 26px; font-weight: 400; line-height: 1.25; letter-spacing: -0.325px; color: var(--ink); margin: 40px 0 16px; }
.article-body h3 { font-size: 20px; font-weight: 600; color: var(--ink); margin: 28px 0 12px; }
.article-body p { font-size: 16px; color: var(--body); line-height: 1.7; margin-bottom: 20px; }
.article-body ul, .article-body ol { margin: 0 0 20px 24px; }
.article-body li { font-size: 16px; color: var(--body); line-height: 1.6; margin-bottom: 6px; }
.article-body a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.article-body blockquote { border-left: 3px solid var(--hairline-strong); margin: 32px 0; padding: 16px 20px; background: var(--canvas-soft); border-radius: 0 var(--rounded-sm) var(--rounded-sm) 0; }
.article-body blockquote p { margin: 0; color: var(--muted); font-style: italic; }
.article-body .info-box { background: var(--surface-card); border: 1px solid var(--hairline); border-radius: var(--rounded-lg); padding: 20px 24px; margin: 32px 0; }
.article-body .info-box strong { display: block; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted); margin-bottom: 8px; }
.article-body code { font-family: 'JetBrains Mono', monospace; font-size: 13px; background: var(--surface-card); border: 1px solid var(--hairline); border-radius: var(--rounded-xs); padding: 2px 6px; color: var(--ink); }
.article-updated { font-size: 13px; color: var(--muted); margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--hairline); }

/* RELATED */
.related { padding: 48px 0 80px; }
.related-title { font-size: 22px; font-weight: 400; letter-spacing: -0.11px; color: var(--ink); margin-bottom: 24px; }
.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

/* PAGES */
.page-content { padding: 64px 0 80px; }
.page-inner { max-width: 720px; margin: 0 auto; padding: 0 24px; }
.page-title { font-size: 36px; font-weight: 400; line-height: 1.2; letter-spacing: -0.72px; color: var(--ink); margin-bottom: 32px; }
.page-body h2 { font-size: 22px; font-weight: 600; color: var(--ink); margin: 32px 0 12px; }
.page-body p { font-size: 16px; color: var(--body); line-height: 1.7; margin-bottom: 16px; }
.page-body ul { margin: 0 0 16px 24px; }
.page-body li { font-size: 16px; color: var(--body); line-height: 1.6; margin-bottom: 6px; }
.page-updated { font-size: 13px; color: var(--muted); margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--hairline); }

/* CONTACT FORM */
.contact-section { padding: 80px 0; background: var(--canvas-soft); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.contact-inner { max-width: 600px; margin: 0 auto; padding: 0 24px; }
.contact-title { font-size: 26px; font-weight: 400; letter-spacing: -0.325px; color: var(--ink); margin-bottom: 8px; }
.contact-sub { font-size: 16px; color: var(--body); margin-bottom: 40px; }
.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); 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; }
.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); }
.btn-primary { background: var(--primary); color: var(--on-primary); border: none; border-radius: var(--rounded-md); padding: 10px 18px; height: 40px; font-size: 14px; font-weight: 500; cursor: pointer; transition: background 0.15s; font-family: inherit; display: inline-flex; align-items: center; gap: 8px; }
.btn-primary:hover { background: var(--primary-active); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }
.form-status { margin-top: 16px; font-size: 14px; padding: 12px 16px; border-radius: var(--rounded-md); display: none; }
.form-status.success { background: #d4f0e7; color: var(--success); display: block; }
.form-status.error { background: #fce4ea; color: var(--error); display: block; }

/* 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.visible { display: block; }
.cookie-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.cookie-text { flex: 1; font-size: 14px; line-height: 1.5; color: var(--canvas); }
.cookie-text a { color: var(--canvas); text-decoration: underline; text-underline-offset: 2px; }
.cookie-buttons { display: flex; gap: 8px; flex-shrink: 0; }
.btn-cookie-accept { background: var(--primary); color: var(--on-primary); border: none; border-radius: var(--rounded-md); padding: 8px 16px; font-size: 13px; font-weight: 500; cursor: pointer; font-family: inherit; }
.btn-cookie-reject { background: transparent; color: var(--canvas); border: 1px solid rgba(255,255,255,0.3); border-radius: var(--rounded-md); padding: 8px 16px; font-size: 13px; font-weight: 500; cursor: pointer; font-family: inherit; }
.btn-cookie-accept:hover { background: var(--primary-active); }
.btn-cookie-reject:hover { border-color: rgba(255,255,255,0.6); }

/* BADGE */
.badge { display: inline-block; background: var(--surface-strong); color: var(--ink); font-size: 11px; font-weight: 600; letter-spacing: 0.88px; text-transform: uppercase; border-radius: var(--rounded-pill); padding: 4px 10px; }

/* FOOTER */
.site-footer { background: var(--canvas); border-top: 1px solid var(--hairline); padding: 64px 0 48px; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.footer-cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand { font-size: 18px; font-weight: 600; color: var(--ink); display: block; margin-bottom: 12px; }
.footer-col p { font-size: 14px; color: var(--body); line-height: 1.6; max-width: 260px; }
.footer-col strong { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 12px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 14px; color: var(--body); }
.footer-col ul li a:hover { color: var(--ink); }
.footer-col ul li:not(:has(a)) { font-size: 14px; color: var(--body); }
.footer-bottom { border-top: 1px solid var(--hairline); padding-top: 24px; }
.footer-bottom p { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.footer-disclaimer { color: var(--muted-soft) !important; font-size: 12px !important; }

/* ABOUT PAGE */
.about-hero { padding: 64px 0 80px; }
.about-hero-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-title { font-size: 36px; font-weight: 400; line-height: 1.2; letter-spacing: -0.72px; color: var(--ink); margin-bottom: 20px; }
.about-text { font-size: 16px; color: var(--body); line-height: 1.7; margin-bottom: 16px; }
.about-image { border-radius: var(--rounded-lg); overflow: hidden; border: 1px solid var(--hairline); }
.about-image img { width: 100%; height: 400px; object-fit: cover; }

/* RESPONSIVE */
@media (max-width: 1024px) {
    .hero h1 { font-size: 56px; letter-spacing: -1.5px; }
    .cards-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-cols { grid-template-columns: 1fr 1fr; gap: 32px; }
    .about-hero-inner { grid-template-columns: 1fr; }
    .about-image { display: none; }
}
@media (max-width: 768px) {
    .hero h1 { font-size: 40px; letter-spacing: -1px; }
    .hero-sub { font-size: 16px; }
    .section-title { font-size: 28px; }
    .nav-toggle { display: flex; }
    .nav-menu { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--canvas); border-bottom: 1px solid var(--hairline); flex-direction: column; gap: 0; padding: 8px 0; }
    .nav-menu.open { display: flex; }
    .nav-menu li a { padding: 12px 24px; display: block; }
    .cards-grid { grid-template-columns: 1fr; }
    .related-grid { grid-template-columns: 1fr; }
    .footer-cols { grid-template-columns: 1fr; gap: 32px; }
    .article-title { font-size: 28px; }
    .cookie-inner { flex-direction: column; align-items: flex-start; }
    .hero-image img { height: 280px; }
}
@media (max-width: 640px) {
    .hero { padding: 48px 0; }
    .hero h1 { font-size: 32px; letter-spacing: -0.5px; }
    .section { padding: 48px 0; }
}
