*, *::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;
    --body-strong: #26251e;
    --muted: #807d72;
    --muted-soft: #a09c92;
    --on-primary: #ffffff;
    --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;
    --font-sans: 'Inter', system-ui, 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;
}

html { font-size: 16px; scroll-behavior: smooth; }
body { background: var(--canvas); color: var(--body); font-family: var(--font-sans); font-size: 16px; line-height: 1.5; }

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

.site-header {
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    height: 64px;
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 24px;
}
.wordmark {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.01em;
    white-space: nowrap;
    flex-shrink: 0;
}
.wordmark span { color: var(--primary); }
.main-nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--body);
    padding: 6px 12px;
    border-radius: var(--rounded-sm);
    transition: color 0.15s, background 0.15s;
    white-space: nowrap;
}
.nav-link:hover { color: var(--ink); background: var(--surface-strong); }
.nav-link--active { color: var(--ink); }

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}
.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: all 0.2s;
}

.hero {
    padding: 80px 0 64px;
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
}
.hero-inner { max-width: 760px; }
.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);
    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.5px;
    color: var(--ink);
    margin-bottom: 20px;
}
.hero-desc {
    font-size: 18px;
    line-height: 1.55;
    color: var(--body);
    max-width: 600px;
    margin-bottom: 32px;
}
.hero-meta { font-size: 13px; color: var(--muted); }

.section { padding: 80px 0; }
.section--alt { background: var(--canvas-soft); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }

.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;
    line-height: 1.2;
    letter-spacing: -0.72px;
    color: var(--ink);
    margin-bottom: 16px;
}
.section-desc {
    font-size: 16px;
    line-height: 1.5;
    color: var(--body);
    max-width: 560px;
    margin-bottom: 48px;
}

.articles-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;
    transition: border-color 0.15s;
}
.article-card:hover { border-color: var(--hairline-strong); }
.article-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}
.article-card-body { padding: 24px; }
.article-card-tag {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 8px;
}
.article-card h3 {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--ink);
    margin-bottom: 10px;
}
.article-card p {
    font-size: 14px;
    line-height: 1.5;
    color: var(--body);
    margin-bottom: 16px;
}
.article-card-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
}
.article-card-link:hover { color: var(--primary-active); }

.checklist-section { padding: 80px 0; }
.checklist-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.checklist-card {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-lg);
    padding: 24px;
}
.checklist-card-num {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 8px;
}
.checklist-card h3 {
    font-size: 22px;
    font-weight: 400;
    letter-spacing: -0.11px;
    line-height: 1.3;
    color: var(--ink);
    margin-bottom: 12px;
}
.checklist-card p { font-size: 14px; line-height: 1.5; color: var(--body); margin-bottom: 16px; }
.checklist-list { list-style: none; padding: 0; }
.checklist-list li {
    font-size: 14px;
    line-height: 1.45;
    color: var(--body);
    padding: 6px 0;
    border-bottom: 1px solid var(--hairline-soft);
    padding-left: 20px;
    position: relative;
}
.checklist-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 8px;
    height: 8px;
    border: 1.5px solid var(--hairline-strong);
    border-radius: 2px;
}
.checklist-list li:last-child { border-bottom: none; }

.article-hero {
    padding: 64px 0 48px;
    border-bottom: 1px solid var(--hairline);
}
.article-hero-inner { max-width: 760px; }
.breadcrumb {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb-sep { color: var(--hairline-strong); }
.article-hero h1 {
    font-size: 44px;
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: -1.2px;
    color: var(--ink);
    margin-bottom: 16px;
}
.article-hero-desc {
    font-size: 18px;
    line-height: 1.55;
    color: var(--body);
    margin-bottom: 20px;
}
.article-meta { font-size: 13px; color: var(--muted); display: flex; gap: 16px; flex-wrap: wrap; }

.article-layout {
    padding: 64px 0;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 48px;
    align-items: start;
}
.article-content h2 {
    font-size: 26px;
    font-weight: 400;
    letter-spacing: -0.325px;
    line-height: 1.25;
    color: var(--ink);
    margin-top: 40px;
    margin-bottom: 14px;
}
.article-content h3 {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--ink);
    margin-top: 28px;
    margin-bottom: 10px;
}
.article-content p { font-size: 16px; line-height: 1.65; color: var(--body); margin-bottom: 18px; }
.article-content ul, .article-content ol {
    font-size: 16px;
    line-height: 1.65;
    color: var(--body);
    margin-bottom: 18px;
    padding-left: 24px;
}
.article-content li { margin-bottom: 6px; }
.article-content strong { color: var(--ink); font-weight: 600; }

.article-img {
    width: 100%;
    border-radius: var(--rounded-lg);
    border: 1px solid var(--hairline);
    margin: 32px 0;
    object-fit: cover;
}
.img-caption {
    font-size: 13px;
    color: var(--muted);
    margin-top: -24px;
    margin-bottom: 32px;
    padding: 0 4px;
}

.info-box {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-left: 3px solid var(--primary);
    border-radius: var(--rounded-md);
    padding: 20px 24px;
    margin: 24px 0;
}
.info-box-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 6px;
}
.info-box p { font-size: 15px; color: var(--body); margin: 0; }

.code-block {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-lg);
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.5;
    color: var(--ink);
    margin: 24px 0;
    overflow-x: auto;
}

.article-sidebar { position: sticky; top: 80px; }
.sidebar-card {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-lg);
    padding: 24px;
    margin-bottom: 24px;
}
.sidebar-title {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08px;
    color: var(--ink);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--hairline);
}
.sidebar-toc { list-style: none; padding: 0; }
.sidebar-toc li { margin-bottom: 8px; }
.sidebar-toc a { font-size: 14px; color: var(--body); line-height: 1.4; }
.sidebar-toc a:hover { color: var(--primary); }

.related-list { list-style: none; padding: 0; }
.related-list li { border-bottom: 1px solid var(--hairline-soft); padding: 8px 0; }
.related-list li:last-child { border-bottom: none; }
.related-list a { font-size: 14px; color: var(--body); line-height: 1.4; }
.related-list a:hover { color: var(--primary); }

.contact-section { padding: 80px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-info h2 {
    font-size: 36px;
    font-weight: 400;
    letter-spacing: -0.72px;
    color: var(--ink);
    margin-bottom: 16px;
}
.contact-info p { font-size: 16px; line-height: 1.6; color: var(--body); margin-bottom: 16px; }
.contact-detail { font-size: 15px; color: var(--body); margin-bottom: 8px; }
.contact-detail strong { color: var(--ink); }

.form-group { margin-bottom: 20px; }
.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 6px;
}
.form-input {
    display: block;
    width: 100%;
    height: 44px;
    background: var(--surface-card);
    border: 1px solid var(--hairline-strong);
    border-radius: var(--rounded-md);
    padding: 0 16px;
    font-family: var(--font-sans);
    font-size: 15px;
    color: var(--ink);
    transition: border-color 0.15s;
    outline: none;
}
.form-input:focus { border-color: var(--ink); }
.form-input.error { border-color: var(--error); }

.btn-primary {
    display: inline-block;
    background: var(--primary);
    color: var(--on-primary);
    font-size: 14px;
    font-weight: 500;
    padding: 10px 18px;
    height: 40px;
    line-height: 20px;
    border-radius: var(--rounded-md);
    border: none;
    cursor: pointer;
    transition: background 0.15s;
    font-family: var(--font-sans);
}
.btn-primary:hover { background: var(--primary-active); color: var(--on-primary); }
.btn-primary:active { background: var(--primary-active); }
.btn-primary:disabled { opacity: 0.6; 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;
    line-height: 20px;
    border-radius: var(--rounded-md);
    border: 1px solid var(--hairline-strong);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    font-family: var(--font-sans);
}
.btn-secondary:hover { background: var(--surface-strong); color: var(--ink); }

.btn-sm { height: 32px; padding: 6px 14px; font-size: 13px; line-height: 20px; }

.form-submit-wrap { display: flex; align-items: center; gap: 16px; }
.form-status {
    font-size: 14px;
    color: var(--success);
    display: none;
}
.form-status.visible { display: block; }
.form-status.error-state { color: var(--error); }

.page-hero {
    padding: 64px 0 48px;
    border-bottom: 1px solid var(--hairline);
}
.page-hero h1 {
    font-size: 44px;
    font-weight: 400;
    letter-spacing: -1.2px;
    line-height: 1.15;
    color: var(--ink);
    margin-bottom: 16px;
}
.page-hero p { font-size: 18px; line-height: 1.55; color: var(--body); }

.page-content {
    padding: 64px 0;
    max-width: 760px;
}
.page-content h2 {
    font-size: 26px;
    font-weight: 400;
    letter-spacing: -0.325px;
    color: var(--ink);
    margin-top: 40px;
    margin-bottom: 12px;
}
.page-content h3 { font-size: 18px; font-weight: 600; color: var(--ink); margin-top: 24px; margin-bottom: 8px; }
.page-content p { font-size: 16px; line-height: 1.65; color: var(--body); margin-bottom: 16px; }
.page-content ul, .page-content ol { font-size: 16px; line-height: 1.65; color: var(--body); margin-bottom: 16px; padding-left: 24px; }
.page-content li { margin-bottom: 6px; }
.page-content strong { color: var(--ink); font-weight: 600; }
.page-updated { font-size: 13px; color: var(--muted); margin-bottom: 32px; }

.site-footer {
    background: var(--canvas);
    border-top: 1px solid var(--hairline);
    padding: 64px 0 48px;
}
.footer-inner {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 32px;
}
.footer-brand {
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 8px;
}
.footer-tagline { font-size: 13px; line-height: 1.5; color: var(--muted); }
.footer-heading {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 12px;
}
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { font-size: 13px; color: var(--body); line-height: 1.5; }
.footer-links a:hover { color: var(--ink); }
.footer-body { font-size: 13px; line-height: 1.55; color: var(--body); }
.footer-body a { color: var(--body); }
.footer-body a:hover { color: var(--ink); }

.footer-bottom {
    border-top: 1px solid var(--hairline);
    margin-top: 48px;
    padding-top: 24px;
}
.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--muted);
    flex-wrap: wrap;
    gap: 12px;
}
.footer-legal-links { display: flex; gap: 16px; }
.footer-legal-links a { font-size: 13px; color: var(--muted); }
.footer-legal-links a:hover { color: var(--ink); }

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--ink);
    color: var(--canvas);
    z-index: 9999;
    padding: 16px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.cookie-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.cookie-inner p { font-size: 14px; color: rgba(247,247,244,0.8); }
.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-color: var(--primary); }
#cookie-accept:hover { background: var(--primary-active); }
#cookie-reject { background: transparent; color: var(--canvas); border-color: rgba(255,255,255,0.3); }
#cookie-reject:hover { background: rgba(255,255,255,0.08); }

@media (max-width: 1024px) {
    .articles-grid { grid-template-columns: repeat(2, 1fr); }
    .checklist-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { grid-template-columns: repeat(3, 1fr); }
    .article-layout { grid-template-columns: 1fr; }
    .article-sidebar { position: static; }
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .main-nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--canvas);
        border-bottom: 1px solid var(--hairline);
        flex-direction: column;
        padding: 12px 0;
        gap: 0;
    }
    .main-nav.open { display: flex; }
    .nav-inner { position: relative; }
    .nav-link { width: 100%; padding: 10px 24px; border-radius: 0; }
    .hero h1 { font-size: 36px; letter-spacing: -1px; }
    .article-hero h1 { font-size: 30px; letter-spacing: -0.8px; }
    .section-title { font-size: 26px; }
    .articles-grid { grid-template-columns: 1fr; }
    .checklist-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: repeat(2, 1fr); }
    .page-hero h1 { font-size: 30px; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 28px; }
    .footer-inner { grid-template-columns: 1fr; }
    .cookie-inner { flex-direction: column; align-items: flex-start; }
    .hero-desc { font-size: 16px; }
}
