@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;
    --semantic-success: #1f8a65;
    --semantic-error: #cf2d56;
    --rounded-xs: 4px;
    --rounded-sm: 6px;
    --rounded-md: 8px;
    --rounded-lg: 12px;
    --rounded-xl: 16px;
    --rounded-pill: 9999px;
}

html { 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 { display: block; max-width: 100%; height: auto; }

.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;
}
.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    gap: 40px;
}
.nav-logo {
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.01em;
    flex-shrink: 0;
}
.nav-list {
    display: flex;
    list-style: none;
    gap: 32px;
    margin-left: auto;
}
.nav-list a {
    font-size: 14px;
    font-weight: 500;
    color: var(--body);
    line-height: 1.4;
    transition: color 0.15s;
}
.nav-list a:hover,
.nav-list a.active { color: var(--ink); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: 0.2s; }

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

/* SECTION */
.section { padding: 80px 0; }
.section + .section { border-top: 1px solid var(--hairline); }
.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;
    letter-spacing: -0.72px;
    color: var(--ink);
    line-height: 1.2;
    margin-bottom: 16px;
}
.section-desc {
    font-size: 16px;
    color: var(--body);
    max-width: 560px;
    line-height: 1.6;
    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(--rounded-lg);
    overflow: hidden;
    transition: border-color 0.15s;
}
.card:hover { border-color: var(--hairline-strong); }
.card-img { width: 100%; height: 200px; object-fit: cover; }
.card-body { padding: 24px; }
.card-category {
    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: inherit; }
.card-title a:hover { color: var(--primary); }
.card-excerpt {
    font-size: 14px;
    color: var(--body);
    line-height: 1.6;
    margin-bottom: 16px;
}
.card-meta { font-size: 13px; color: var(--muted); }

/* TWO-COL */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.two-col-text h2 { font-size: 36px; font-weight: 400; letter-spacing: -0.72px; color: var(--ink); margin-bottom: 16px; line-height: 1.2; }
.two-col-text p { font-size: 16px; color: var(--body); line-height: 1.6; margin-bottom: 16px; }
.two-col-img { border-radius: var(--rounded-lg); overflow: hidden; border: 1px solid var(--hairline); }
.two-col-img img { width: 100%; height: 320px; object-fit: cover; }

/* ARTICLE PAGE */
.article-header { padding: 64px 0 48px; border-bottom: 1px solid var(--hairline); }
.article-header .container { max-width: 780px; }
.article-cat {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 16px;
}
.article-header h1 {
    font-size: 42px;
    font-weight: 400;
    letter-spacing: -0.8px;
    color: var(--ink);
    line-height: 1.15;
    margin-bottom: 20px;
}
.article-header .lead { font-size: 18px; color: var(--body); line-height: 1.6; margin-bottom: 20px; }
.article-dateline { font-size: 13px; color: var(--muted); }
.article-hero-img { width: 100%; max-height: 480px; object-fit: cover; border-bottom: 1px solid var(--hairline); }
.article-body { padding: 64px 0 80px; }
.article-body .container { max-width: 780px; }
.article-body h2 { font-size: 26px; font-weight: 400; letter-spacing: -0.325px; color: var(--ink); margin: 48px 0 16px; line-height: 1.25; }
.article-body h3 { font-size: 20px; font-weight: 600; color: var(--ink); margin: 32px 0 12px; line-height: 1.3; }
.article-body p { font-size: 16px; color: var(--body); line-height: 1.7; margin-bottom: 20px; }
.article-body ul, .article-body ol { padding-left: 24px; margin-bottom: 20px; }
.article-body li { font-size: 16px; color: var(--body); line-height: 1.7; margin-bottom: 6px; }
.article-body figure { margin: 40px 0; }
.article-body figure img { border-radius: var(--rounded-lg); border: 1px solid var(--hairline); width: 100%; }
.article-body figcaption { font-size: 13px; color: var(--muted); margin-top: 10px; line-height: 1.4; }
.article-body blockquote {
    border-left: 3px solid var(--hairline-strong);
    padding: 16px 24px;
    margin: 32px 0;
    background: var(--canvas-soft);
    border-radius: 0 var(--rounded-sm) var(--rounded-sm) 0;
}
.article-body blockquote p { color: var(--muted); margin-bottom: 0; font-style: normal; }
.info-box {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-lg);
    padding: 24px;
    margin: 32px 0;
}
.info-box h4 { font-size: 13px; font-weight: 600; letter-spacing: 0.88px; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.info-box ul { padding-left: 20px; }
.info-box li { font-size: 15px; color: var(--body); line-height: 1.6; margin-bottom: 6px; }
.ref-list { border-top: 1px solid var(--hairline); padding-top: 32px; margin-top: 48px; }
.ref-list h4 { font-size: 13px; font-weight: 600; letter-spacing: 0.88px; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.ref-list ol { padding-left: 20px; }
.ref-list li { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 6px; }
.ref-list a { color: var(--body); }
.ref-list a:hover { color: var(--primary); }

/* CONTACT FORM */
.contact-section { padding: 80px 0; border-top: 1px solid var(--hairline); }
.contact-section .container { max-width: 640px; }
.contact-section h2 { font-size: 36px; font-weight: 400; letter-spacing: -0.72px; color: var(--ink); margin-bottom: 12px; }
.contact-section p { font-size: 16px; color: var(--body); margin-bottom: 40px; line-height: 1.6; }
.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(--rounded-md);
    padding: 12px 16px;
    font-size: 16px;
    color: var(--ink);
    font-family: inherit;
    height: 44px;
    transition: border-color 0.15s;
}
.form-group textarea { height: 120px; resize: vertical; }
.form-group input:focus,
.form-group textarea:focus { outline: none; border-color: var(--ink); }
.btn-primary {
    background: var(--primary);
    color: var(--on-primary);
    border: none;
    border-radius: var(--rounded-md);
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 500;
    height: 40px;
    cursor: pointer;
    transition: background 0.15s;
}
.btn-primary:hover { background: var(--primary-active); }
.btn-secondary {
    background: var(--surface-card);
    color: var(--ink);
    border: 1px solid var(--hairline-strong);
    border-radius: var(--rounded-md);
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 500;
    height: 40px;
    cursor: pointer;
    transition: border-color 0.15s;
}
.btn-secondary:hover { border-color: var(--ink); }
.form-status { margin-top: 16px; font-size: 14px; display: none; }
.form-status.success { color: var(--semantic-success); }
.form-status.error { color: var(--semantic-error); }
.form-loading { display: none; font-size: 14px; color: var(--muted); margin-top: 16px; }

/* PAGE (about/privacy/terms) */
.page-header { padding: 64px 0 40px; border-bottom: 1px solid var(--hairline); }
.page-header .container { max-width: 780px; }
.page-header h1 { font-size: 42px; font-weight: 400; letter-spacing: -0.8px; color: var(--ink); margin-bottom: 12px; }
.page-header p { font-size: 16px; color: var(--body); line-height: 1.6; }
.page-body { padding: 64px 0 80px; }
.page-body .container { max-width: 780px; }
.page-body h2 { font-size: 22px; font-weight: 600; color: var(--ink); margin: 40px 0 12px; }
.page-body p { font-size: 16px; color: var(--body); line-height: 1.7; margin-bottom: 16px; }
.page-body ul { padding-left: 24px; margin-bottom: 16px; }
.page-body li { font-size: 16px; color: var(--body); line-height: 1.7; margin-bottom: 6px; }
.page-body a { color: var(--ink); text-decoration: underline; }
.page-updated { font-size: 13px; color: var(--muted); margin-bottom: 40px; }

/* 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;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}
.footer-brand { font-size: 16px; font-weight: 600; color: var(--ink); display: block; margin-bottom: 12px; }
.footer-tagline { font-size: 14px; color: var(--body); line-height: 1.6; }
.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 ul li { margin-bottom: 8px; }
.footer-col ul a { font-size: 14px; color: var(--body); }
.footer-col ul a:hover { color: var(--ink); }
.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 24px 24px 0;
    border-top: 1px solid var(--hairline);
    font-size: 13px;
    color: var(--muted);
}
.footer-bottom a { color: var(--muted); text-decoration: underline; }

/* COOKIE BANNER */
.cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--ink);
    color: var(--canvas);
    z-index: 1000;
    padding: 20px 24px;
}
.cookie-banner.visible { display: block; }
.cookie-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.cookie-inner p { font-size: 14px; color: #d0cfc7; line-height: 1.5; }
.cookie-inner a { color: var(--canvas); text-decoration: underline; }
.cookie-actions { display: flex; gap: 12px; flex-shrink: 0; }
#cookie-accept {
    background: var(--primary);
    color: var(--on-primary);
    border: none;
    border-radius: var(--rounded-md);
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}
#cookie-reject {
    background: transparent;
    color: #d0cfc7;
    border: 1px solid #4a4840;
    border-radius: var(--rounded-md);
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}
#cookie-accept:hover { background: var(--primary-active); }
#cookie-reject:hover { border-color: #807d72; }

/* DISCLAIMER */
.disclaimer {
    background: var(--canvas-soft);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-md);
    padding: 16px 20px;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 48px;
}

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

/* RESPONSIVE */
@media (max-width: 1024px) {
    .hero h1 { font-size: 38px; }
    .cards-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .hero-inner { grid-template-columns: 1fr; gap: 40px; }
    .hero h1 { font-size: 32px; letter-spacing: -0.6px; }
    .hero-img { display: none; }
    .two-col { grid-template-columns: 1fr; gap: 40px; }
    .nav-list { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--canvas); padding: 16px 24px 24px; border-bottom: 1px solid var(--hairline); gap: 0; }
    .nav-list.open { display: flex; }
    .nav-list li { border-bottom: 1px solid var(--hairline-soft); }
    .nav-list li:last-child { border-bottom: none; }
    .nav-list a { display: block; padding: 12px 0; }
    .nav-toggle { display: flex; margin-left: auto; }
    .site-nav { position: relative; }
    .section-title { font-size: 28px; }
    .article-header h1 { font-size: 30px; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .cards-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .footer-inner { grid-template-columns: 1fr; }
    .cookie-inner { flex-direction: column; align-items: flex-start; }
}
