*, *::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;
    --on-primary:     #ffffff;
    --ink:            #26251e;
    --body:           #5a5852;
    --body-strong:    #26251e;
    --muted:          #807d72;
    --muted-soft:     #a09c92;
    --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-size: 16px;
    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; }

/* NAV */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    height: 64px;
}
.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    gap: 32px;
}
.nav-logo {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.02em;
    flex-shrink: 0;
}
.nav-logo:hover { color: var(--primary); }
.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
    margin-left: auto;
}
.nav-menu li a {
    display: block;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--body);
    line-height: 1.4;
    border-radius: var(--radius-sm);
    transition: color 0.15s, background 0.15s;
}
.nav-menu li a:hover,
.nav-menu li a.active { color: var(--ink); background: var(--surface-strong); }
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}

/* HERO */
.hero {
    padding: 80px 0 64px;
    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-label {
    display: inline-block;
    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.15;
    letter-spacing: -0.96px;
    margin-bottom: 20px;
}
.hero-desc {
    font-size: 16px;
    color: var(--body);
    line-height: 1.6;
    max-width: 480px;
}
.hero-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--hairline);
}
.hero-image img {
    width: 100%;
    height: 320px;
    object-fit: cover;
}

/* SECTIONS */
.section { padding: 80px 0; }
.section + .section { border-top: 1px solid var(--hairline-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);
    line-height: 1.2;
    letter-spacing: -0.72px;
    margin-bottom: 16px;
}
.section-subtitle {
    font-size: 16px;
    color: var(--body);
    max-width: 600px;
    line-height: 1.6;
}

/* CARDS GRID */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}
.card {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color 0.15s;
}
.card:hover { border-color: var(--hairline-strong); }
.card-image { width: 100%; height: 200px; object-fit: cover; }
.card-body { padding: 24px; }
.card-tag {
    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-excerpt {
    font-size: 14px;
    color: var(--body);
    line-height: 1.5;
    margin-bottom: 16px;
}
.card-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
}
.card-link:hover { color: var(--primary-active); }
.card-date {
    font-size: 13px;
    color: var(--muted);
    margin-top: 8px;
}

/* ARTICLE LAYOUT */
.article-header { padding: 64px 0 40px; border-bottom: 1px solid var(--hairline); }
.article-header .container { max-width: 800px; }
.article-tag {
    display: inline-block;
    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: 16px;
}
.article-h1 {
    font-size: 42px;
    font-weight: 400;
    color: var(--ink);
    letter-spacing: -0.84px;
    line-height: 1.2;
    margin-bottom: 16px;
}
.article-meta {
    font-size: 13px;
    color: var(--muted);
}
.article-body { padding: 56px 0 80px; }
.article-body .container { max-width: 800px; }
.article-body h2 {
    font-size: 26px;
    font-weight: 400;
    color: var(--ink);
    letter-spacing: -0.325px;
    line-height: 1.25;
    margin: 40px 0 16px;
}
.article-body h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--body-strong);
    line-height: 1.4;
    margin: 28px 0 12px;
}
.article-body p { margin-bottom: 18px; color: var(--body); line-height: 1.7; }
.article-body ul, .article-body ol { margin: 0 0 18px 24px; }
.article-body li { 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-img {
    width: 100%;
    border-radius: var(--radius-lg);
    border: 1px solid var(--hairline);
    margin: 32px 0;
    object-fit: cover;
    max-height: 420px;
}
.article-caption {
    font-size: 13px;
    color: var(--muted);
    margin-top: -24px;
    margin-bottom: 32px;
    line-height: 1.4;
}
.infobox {
    background: var(--canvas-soft);
    border: 1px solid var(--hairline);
    border-left: 3px solid var(--primary);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    margin: 28px 0;
}
.infobox p { margin: 0; font-size: 14px; color: var(--body); }

/* RELATED */
.related-articles { padding: 56px 0; border-top: 1px solid var(--hairline-soft); }
.related-articles .section-title { font-size: 26px; margin-bottom: 32px; }
.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

/* PAGE LAYOUT (about/privacy/terms) */
.page-header { padding: 64px 0 40px; border-bottom: 1px solid var(--hairline); }
.page-h1 {
    font-size: 42px;
    font-weight: 400;
    color: var(--ink);
    letter-spacing: -0.84px;
    line-height: 1.2;
}
.page-body { padding: 56px 0 80px; }
.page-body .container { max-width: 800px; }
.page-body h2 {
    font-size: 22px;
    font-weight: 400;
    color: var(--ink);
    letter-spacing: -0.11px;
    margin: 36px 0 12px;
}
.page-body p { margin-bottom: 16px; color: var(--body); line-height: 1.7; }
.page-body ul { margin: 0 0 16px 24px; }
.page-body li { color: var(--body); line-height: 1.7; margin-bottom: 6px; }
.page-updated { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* CONTACT FORM */
.contact-section { padding: 80px 0; border-top: 1px solid var(--hairline-soft); }
.contact-section .section-title { font-size: 26px; margin-bottom: 8px; }
.contact-desc { font-size: 14px; color: var(--body); margin-bottom: 32px; }
.contact-form { 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;
    height: 44px;
    outline: none;
    transition: border-color 0.15s;
}
.form-group textarea { height: auto; min-height: 120px; resize: vertical; }
.form-group input:focus,
.form-group textarea:focus { border-color: var(--primary); }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--muted-soft); }
.form-error { font-size: 13px; color: var(--error); margin-top: 4px; display: none; }
.form-error.visible { display: block; }

.btn-primary {
    display: inline-block;
    background: var(--primary);
    color: var(--on-primary);
    font-size: 14px;
    font-weight: 500;
    padding: 10px 18px;
    height: 40px;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s;
    line-height: 1;
}
.btn-primary:hover { background: var(--primary-active); }
.btn-primary:disabled { opacity: 0.65; cursor: not-allowed; }
.btn-secondary {
    display: inline-block;
    background: var(--surface-card);
    color: var(--ink);
    font-size: 14px;
    font-weight: 500;
    padding: 10px 18px;
    height: 40px;
    border: 1px solid var(--hairline-strong);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.15s;
    line-height: 1;
}
.btn-secondary:hover { border-color: var(--ink); }

.form-status {
    margin-top: 16px;
    font-size: 14px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    display: none;
}
.form-status.loading {
    display: block;
    background: var(--canvas-soft);
    border: 1px solid var(--hairline);
    color: var(--muted);
}
.form-status.success {
    display: block;
    background: #edf7f3;
    border: 1px solid #b8ddd1;
    color: var(--success);
}

/* 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 1fr;
    gap: 32px;
    margin-bottom: 40px;
}
.footer-brand {
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.02em;
    display: block;
    margin-bottom: 10px;
}
.footer-tagline { font-size: 14px; color: var(--body); line-height: 1.6; }
.footer-col-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    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-copy { font-size: 14px; color: var(--muted); border-top: 1px solid var(--hairline-soft); padding-top: 24px; }

/* COOKIE BANNER */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: min(620px, calc(100vw - 48px));
    background: var(--surface-card);
    border: 1px solid var(--hairline-strong);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    z-index: 9999;
    box-shadow: 0 4px 24px rgba(38,37,30,0.10);
    display: none;
}
.cookie-banner.visible { display: block; }
.cookie-inner p { font-size: 14px; color: var(--body); line-height: 1.5; margin-bottom: 16px; }
.cookie-inner p a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.cookie-actions { display: flex; gap: 12px; }

/* DISCLAIMER */
.disclaimer {
    background: var(--canvas-soft);
    border-top: 1px solid var(--hairline-soft);
    padding: 16px 0;
}
.disclaimer p { font-size: 13px; color: var(--muted); text-align: center; line-height: 1.5; }

/* BREADCRUMB */
.breadcrumb { padding: 16px 0 0; }
.breadcrumb ol { display: flex; gap: 6px; list-style: none; flex-wrap: wrap; }
.breadcrumb li { font-size: 13px; color: var(--muted); }
.breadcrumb li + li::before { content: '/'; margin-right: 6px; color: var(--muted-soft); }
.breadcrumb li a { color: var(--muted); }
.breadcrumb li a:hover { color: var(--ink); }

/* RESPONSIVE */
@media (max-width: 1024px) {
    .hero h1 { font-size: 40px; }
    .cards-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .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;
        padding: 8px 0 16px;
        gap: 0;
    }
    .nav-menu.open { display: flex; }
    .nav-menu li a { padding: 10px 24px; border-radius: 0; }
    .hero-inner { grid-template-columns: 1fr; gap: 32px; }
    .hero h1 { font-size: 32px; }
    .section-title { font-size: 28px; }
    .cards-grid { grid-template-columns: 1fr; }
    .article-h1 { font-size: 30px; }
    .related-grid { grid-template-columns: 1fr; }
    .footer-cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 26px; }
    .footer-cols { grid-template-columns: 1fr; }
    .cookie-actions { flex-direction: column; }
}
