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

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
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 {
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    position: sticky;
    top: 0;
    z-index: 100;
    height: 64px;
    display: flex;
    align-items: center;
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo { text-decoration: none; }

.logo-text {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.3px;
    color: var(--ink);
}

.logo-accent { color: var(--primary); }

.nav-menu {
    display: flex;
    list-style: none;
    gap: 4px;
    align-items: center;
}

.nav-link {
    display: block;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--body);
    text-decoration: none;
    border-radius: var(--rounded-sm);
    transition: color 0.15s, background 0.15s;
}

.nav-link:hover, .nav-link.active {
    color: var(--ink);
    background: var(--surface-strong);
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--rounded-sm);
}

.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}

/* ── HERO ── */
.hero-band {
    padding: 80px 0 64px;
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline-soft);
}

.hero-band .container { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }

.hero-overline {
    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(--rounded-pill);
    padding: 4px 10px;
    margin-bottom: 20px;
}

.hero-h1 {
    font-size: 52px;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -1.3px;
    color: var(--ink);
    margin-bottom: 20px;
}

.hero-h1 em { font-style: normal; color: var(--primary); }

.hero-sub {
    font-size: 18px;
    line-height: 1.5;
    color: var(--body);
    margin-bottom: 32px;
    max-width: 440px;
}

.hero-updated {
    font-size: 13px;
    color: var(--muted);
    margin-top: 16px;
}

.hero-img-wrap {
    border-radius: var(--rounded-lg);
    overflow: hidden;
    border: 1px solid var(--hairline);
    background: var(--surface-card);
    aspect-ratio: 4/3;
}

.hero-img-wrap img { width: 100%; height: 100%; object-fit: cover; }

/* ── BUTTONS ── */
.btn-primary {
    display: inline-block;
    background: var(--primary);
    color: var(--on-primary);
    font-size: 14px;
    font-weight: 500;
    padding: 10px 18px;
    height: 40px;
    border-radius: var(--rounded-md);
    border: none;
    cursor: pointer;
    text-decoration: none;
    line-height: 1;
    transition: background 0.15s;
    white-space: nowrap;
}

.btn-primary:hover { background: var(--primary-active); color: var(--on-primary); }
.btn-primary:active { background: var(--primary-active); }

.btn-secondary {
    display: inline-block;
    background: var(--surface-card);
    color: var(--ink);
    font-size: 14px;
    font-weight: 500;
    padding: 10px 18px;
    height: 40px;
    border-radius: var(--rounded-md);
    border: 1px solid var(--hairline-strong);
    cursor: pointer;
    text-decoration: none;
    line-height: 1;
    transition: background 0.15s;
    white-space: nowrap;
}

.btn-secondary:hover { background: var(--surface-strong); color: var(--ink); }

/* ── SECTION ── */
.section { padding: 80px 0; }
.section-alt { background: var(--canvas-soft); border-top: 1px solid var(--hairline-soft); border-bottom: 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;
    letter-spacing: -0.72px;
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: 12px;
}

.section-sub {
    font-size: 16px;
    color: var(--body);
    max-width: 560px;
    margin-bottom: 40px;
}

/* ── ARTICLE GRID ── */
.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.article-card {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s;
}

.article-card:hover { border-color: var(--hairline-strong); }

.article-card-img { aspect-ratio: 16/9; overflow: hidden; }
.article-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.article-card:hover .article-card-img img { transform: scale(1.03); }

.article-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }

.article-card-tag {
    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(--rounded-pill);
    padding: 4px 10px;
    margin-bottom: 12px;
    align-self: flex-start;
}

.article-card-title {
    font-size: 22px;
    font-weight: 400;
    letter-spacing: -0.11px;
    line-height: 1.3;
    color: var(--ink);
    margin-bottom: 10px;
}

.article-card-excerpt {
    font-size: 14px;
    color: var(--body);
    line-height: 1.5;
    flex: 1;
}

.article-card-meta {
    margin-top: 16px;
    font-size: 13px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-card-link {
    display: block;
    margin-top: 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
    text-decoration: none;
}

.article-card-link:hover { color: var(--primary-active); }

/* ── WHY SECTION ── */
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.why-card {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-lg);
    padding: 24px;
}

.why-icon {
    font-size: 28px;
    margin-bottom: 12px;
    display: block;
}

.why-card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 8px;
}

.why-card-text { font-size: 14px; color: var(--body); line-height: 1.5; }

/* ── CHECKLIST BAND ── */
.checklist-band .container { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }

.checklist-band-img {
    border-radius: var(--rounded-lg);
    overflow: hidden;
    border: 1px solid var(--hairline);
    aspect-ratio: 4/3;
}

.checklist-band-img img { width: 100%; height: 100%; object-fit: cover; }

.checklist-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

.checklist-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    color: var(--body);
    line-height: 1.5;
}

.checklist-list li::before {
    content: '';
    display: block;
    width: 18px;
    height: 18px;
    min-width: 18px;
    border: 2px solid var(--hairline-strong);
    border-radius: 4px;
    margin-top: 2px;
}

/* ── CONTACT FORM ── */
.contact-section .container { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }

.contact-info p { font-size: 15px; color: var(--body); margin-bottom: 8px; line-height: 1.6; }
.contact-info address { font-style: normal; }

.contact-form {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-lg);
    padding: 32px;
}

.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);
    font-size: 14px;
    font-family: inherit;
    border: 1px solid var(--hairline-strong);
    border-radius: var(--rounded-md);
    padding: 12px 16px;
    transition: border-color 0.15s;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus { border-color: var(--ink); }

.form-group input.error,
.form-group textarea.error { border-color: var(--semantic-error); }

.form-group textarea { min-height: 100px; resize: vertical; }

.form-msg {
    display: none;
    font-size: 14px;
    padding: 12px 16px;
    border-radius: var(--rounded-md);
    margin-top: 12px;
}

.form-msg.success { background: #d4edda; color: var(--semantic-success); border: 1px solid #b8ddc8; display: block; }
.form-msg.loading { background: var(--canvas-soft); color: var(--muted); border: 1px solid var(--hairline); display: block; }

/* ── ARTICLE PAGE ── */
.article-hero {
    padding: 60px 0 0;
    background: var(--canvas);
}

.article-hero .container { max-width: 860px; }

.article-breadcrumb {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 20px;
}

.article-breadcrumb a { color: var(--muted); }
.article-breadcrumb a:hover { color: var(--ink); }

.article-category {
    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(--rounded-pill);
    padding: 4px 10px;
    margin-bottom: 16px;
}

.article-h1 {
    font-size: 46px;
    font-weight: 400;
    letter-spacing: -1.15px;
    line-height: 1.1;
    color: var(--ink);
    margin-bottom: 16px;
}

.article-intro {
    font-size: 18px;
    color: var(--body);
    line-height: 1.6;
    max-width: 680px;
    margin-bottom: 20px;
}

.article-meta {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 0;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.article-featured-img {
    margin-top: 40px;
    border-radius: var(--rounded-lg) var(--rounded-lg) 0 0;
    overflow: hidden;
    border: 1px solid var(--hairline);
    border-bottom: none;
    aspect-ratio: 21/9;
}

.article-featured-img img { width: 100%; height: 100%; object-fit: cover; }

.article-body {
    padding: 48px 0 80px;
    background: var(--canvas);
}

.article-content {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 24px;
}

.article-content h2 {
    font-size: 28px;
    font-weight: 400;
    letter-spacing: -0.5px;
    color: var(--ink);
    margin: 40px 0 16px;
}

.article-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--ink);
    margin: 28px 0 12px;
}

.article-content p {
    font-size: 16px;
    color: var(--body);
    line-height: 1.65;
    margin-bottom: 16px;
}

.article-content ul,
.article-content ol {
    margin: 0 0 16px 20px;
    color: var(--body);
    font-size: 16px;
    line-height: 1.65;
}

.article-content li { margin-bottom: 6px; }

.article-content a { color: var(--primary); }
.article-content a:hover { color: var(--primary-active); }

.info-box {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--rounded-md) var(--rounded-md) 0;
    padding: 16px 20px;
    margin: 24px 0;
    font-size: 15px;
    color: var(--body);
    line-height: 1.6;
}

.info-box strong { color: var(--ink); }

.step-list { list-style: none; margin: 0 0 24px; padding: 0; counter-reset: steps; }
.step-list li {
    counter-increment: steps;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 16px 0;
    border-bottom: 1px solid var(--hairline-soft);
    font-size: 15px;
    color: var(--body);
    line-height: 1.6;
}

.step-list li::before {
    content: counter(steps);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    border-radius: var(--rounded-pill);
    background: var(--surface-strong);
    color: var(--ink);
    font-size: 13px;
    font-weight: 600;
    margin-top: 1px;
}

.reference-list {
    list-style: none;
    padding: 0;
    margin: 16px 0;
    font-size: 13px;
    color: var(--muted);
}

.reference-list li { padding: 4px 0; }
.reference-list a { color: var(--muted); }
.reference-list a:hover { color: var(--ink); }

/* ── PAGES ── */
.page-hero { padding: 60px 0 40px; }
.page-hero .container { max-width: 860px; }

.page-h1 {
    font-size: 42px;
    font-weight: 400;
    letter-spacing: -0.84px;
    color: var(--ink);
    margin-bottom: 16px;
}

.page-content {
    padding: 0 0 80px;
}

.page-content .container {
    max-width: 860px;
}

.page-content h2 {
    font-size: 24px;
    font-weight: 400;
    letter-spacing: -0.3px;
    color: var(--ink);
    margin: 36px 0 12px;
}

.page-content p { font-size: 15px; color: var(--body); line-height: 1.65; margin-bottom: 14px; }
.page-content ul { margin: 0 0 14px 20px; color: var(--body); font-size: 15px; line-height: 1.65; }
.page-content li { margin-bottom: 5px; }
.page-content a { color: var(--primary); }

.page-updated { font-size: 13px; color: var(--muted); margin-top: -8px; margin-bottom: 32px; }

/* ── FOOTER ── */
.site-footer {
    background: var(--canvas);
    border-top: 1px solid var(--hairline);
    padding: 64px 0 0;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 48px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-brand {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.3px;
    display: block;
    margin-bottom: 10px;
}

.footer-tagline { font-size: 14px; color: var(--muted); line-height: 1.5; }

.footer-col-title {
    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 li { margin-bottom: 8px; }
.footer-col a { font-size: 14px; color: var(--body); text-decoration: none; }
.footer-col a:hover { color: var(--ink); }
.footer-col address { font-style: normal; }
.footer-col address p { font-size: 14px; color: var(--body); margin-bottom: 4px; }

.footer-bottom {
    border-top: 1px solid var(--hairline-soft);
    padding: 20px 24px;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    color: var(--muted);
}

.footer-bottom a { color: var(--muted); text-decoration: none; }
.footer-bottom a:hover { color: var(--ink); }

/* ── COOKIE ── */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ink);
    color: var(--canvas);
    border-radius: var(--rounded-lg);
    padding: 16px 20px;
    max-width: 540px;
    width: calc(100% - 48px);
    display: none;
    z-index: 999;
    box-shadow: none;
}

.cookie-banner.visible { display: block; }

.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 a { color: var(--primary); }
.cookie-actions { display: flex; gap: 10px; }

/* ── RELATED ARTICLES ── */
.related-section { padding: 48px 0 80px; border-top: 1px solid var(--hairline-soft); }
.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 24px; }

.related-card {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-lg);
    padding: 20px;
    text-decoration: none;
    display: block;
    transition: border-color 0.2s;
}

.related-card:hover { border-color: var(--hairline-strong); color: var(--ink); }
.related-card-title { font-size: 16px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.related-card-desc { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .hero-h1 { font-size: 42px; }
    .article-grid { grid-template-columns: repeat(2, 1fr); }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-hamburger { display: flex; }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--canvas);
        border-bottom: 1px solid var(--hairline);
        padding: 12px 24px 20px;
        gap: 4px;
    }

    .nav-menu.open { display: flex; }

    .hero-band .container { grid-template-columns: 1fr; }
    .hero-h1 { font-size: 36px; }
    .hero-img-wrap { display: none; }

    .article-grid { grid-template-columns: 1fr; }
    .why-grid { grid-template-columns: 1fr; }

    .checklist-band .container { grid-template-columns: 1fr; }
    .checklist-band-img { display: none; }

    .contact-section .container { grid-template-columns: 1fr; }

    .article-h1 { font-size: 34px; }
    .article-featured-img { aspect-ratio: 4/3; }

    .footer-inner { grid-template-columns: 1fr 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }

    .related-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .hero-h1 { font-size: 30px; }
    .section-title { font-size: 28px; }
    .footer-inner { grid-template-columns: 1fr; }
}
