*, *::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;
    --ink: #26251e;
    --body: #5a5852;
    --body-strong: #26251e;
    --muted: #807d72;
    --muted-soft: #a09c92;
    --primary: #f54e00;
    --primary-active: #d04200;
    --on-primary: #ffffff;
    --success: #1f8a65;
    --error: #cf2d56;
    --font-sans: 'Inter', system-ui, 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;
    --rounded-xs: 4px;
    --rounded-sm: 6px;
    --rounded-md: 8px;
    --rounded-lg: 12px;
    --rounded-xl: 16px;
    --rounded-pill: 9999px;
}

html { scroll-behavior: smooth; }

body {
    background-color: var(--canvas);
    color: var(--body);
    font-family: var(--font-sans);
    font-size: 16px;
    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; }

.site-header {
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    height: 64px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.wordmark {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.2px;
    text-decoration: none;
}

.wordmark:hover { color: var(--primary); }

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

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

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

.has-dropdown { position: relative; }

.dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-lg);
    padding: 8px;
    min-width: 200px;
    box-shadow: 0 4px 16px rgba(38,37,30,0.08);
    flex-direction: column;
    gap: 2px;
}

.has-dropdown:hover .dropdown { display: flex; }
.dropdown li { list-style: none; }
.dropdown a { white-space: nowrap; border-radius: var(--rounded-sm); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

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

.hero {
    padding: 80px 0;
    border-bottom: 1px solid var(--hairline);
}

.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(--rounded-pill);
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 56px;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -1.5px;
    color: var(--ink);
    max-width: 720px;
    margin-bottom: 20px;
}

.hero-sub {
    font-size: 18px;
    color: var(--body);
    max-width: 520px;
    margin-bottom: 48px;
    line-height: 1.6;
}

.hero-image {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: var(--rounded-lg);
    border: 1px solid var(--hairline);
}

.section { padding: 80px 0; }
.section-alt { background: var(--canvas-soft); }
.section-bordered { 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;
    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;
    line-height: 1.6;
}

.card-grid { display: grid; gap: 24px; }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }

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

.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: 8px;
    display: block;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.3;
    margin-bottom: 10px;
}

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

.card-meta {
    font-size: 13px;
    color: var(--muted);
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.card-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 12px;
}

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

.article-layout { display: grid; grid-template-columns: 1fr 300px; gap: 64px; align-items: start; }

.article-header { padding: 64px 0 48px; border-bottom: 1px solid var(--hairline); }

.article-header h1 {
    font-size: 42px;
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -1px;
    color: var(--ink);
    margin-bottom: 20px;
    max-width: 760px;
}

.article-meta {
    font-size: 14px;
    color: var(--muted);
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}

.article-meta span { display: flex; align-items: center; gap: 6px; }

.article-hero-img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: var(--rounded-lg);
    border: 1px solid var(--hairline);
    margin: 40px 0;
}

.article-body { padding: 48px 0 80px; }

.article-content h2 {
    font-size: 26px;
    font-weight: 400;
    letter-spacing: -0.325px;
    color: var(--ink);
    margin: 48px 0 16px;
    line-height: 1.25;
}

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

.article-content p {
    font-size: 16px;
    color: var(--body);
    line-height: 1.7;
    margin-bottom: 20px;
    letter-spacing: 0.08px;
}

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

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

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

.article-content strong { color: var(--ink); font-weight: 600; }

.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: 32px 0;
}

.info-box h4 {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 10px;
}

.info-box p,
.info-box ul { margin-bottom: 0; }

.info-box ul { margin-left: 18px; }

.article-img {
    width: 100%;
    border-radius: var(--rounded-md);
    border: 1px solid var(--hairline);
    margin: 32px 0 8px;
}

.img-caption {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.4;
    margin-bottom: 32px;
}

.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-card h3 {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 16px;
}

.sidebar-card ul { list-style: none; }

.sidebar-card li { border-top: 1px solid var(--hairline-soft); }
.sidebar-card li:first-child { border-top: none; }

.sidebar-card a {
    display: block;
    padding: 10px 0;
    font-size: 14px;
    color: var(--body);
    line-height: 1.4;
    transition: color 0.15s;
}

.sidebar-card a:hover { color: var(--primary); }

.toc-list { list-style: none; }
.toc-list a { font-size: 13px; }

.page-header {
    padding: 64px 0 48px;
    border-bottom: 1px solid var(--hairline);
}

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

.page-header p {
    font-size: 16px;
    color: var(--body);
    max-width: 560px;
    line-height: 1.6;
}

.page-content { padding: 64px 0 80px; max-width: 760px; }

.page-content h2 {
    font-size: 22px;
    font-weight: 400;
    letter-spacing: -0.11px;
    color: var(--ink);
    margin: 40px 0 14px;
    line-height: 1.3;
}

.page-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    margin: 28px 0 10px;
}

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

.page-content ul,
.page-content ol {
    margin: 0 0 18px 24px;
    color: var(--body);
    font-size: 16px;
    line-height: 1.7;
}

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

.contact-form { max-width: 560px; margin-top: 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: 11px 16px;
    font-size: 16px;
    font-family: var(--font-sans);
    height: 44px;
    transition: border-color 0.15s;
    outline: none;
}

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

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

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

.form-error {
    font-size: 13px;
    color: var(--error);
    margin-top: 4px;
    display: none;
}

.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;
    font-family: var(--font-sans);
    height: 40px;
    cursor: pointer;
    transition: background 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-primary:hover { background: var(--primary-active); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.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;
    font-family: var(--font-sans);
    height: 40px;
    cursor: pointer;
    transition: background 0.15s;
}

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

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

.form-status.success {
    background: #e8f5f0;
    color: var(--success);
    border: 1px solid #b8dfd2;
}

.form-status.error {
    background: #fdf0f2;
    color: var(--error);
    border: 1px solid #f5c6d0;
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface-card);
    border-top: 1px solid var(--hairline);
    z-index: 200;
    padding: 16px 0;
}

.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: var(--body); }
.cookie-inner a { color: var(--primary); text-decoration: underline; }

.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }

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

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}

.footer-wordmark {
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    display: block;
    margin-bottom: 10px;
}

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

.footer-col h4 {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 14px;
}

.footer-col ul { list-style: none; }

.footer-col li { margin-bottom: 8px; }

.footer-col a {
    font-size: 14px;
    color: var(--body);
    transition: color 0.15s;
}

.footer-col a:hover { color: var(--primary); }

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

.footer-bottom {
    border-top: 1px solid var(--hairline-soft);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-copy { font-size: 14px; color: var(--muted); }

.footer-disclaimer { font-size: 13px; color: var(--muted-soft); max-width: 480px; line-height: 1.5; }

.breadcrumb {
    padding: 16px 0;
    font-size: 13px;
    color: var(--muted);
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { color: var(--muted-soft); }

.divider { border: none; border-top: 1px solid var(--hairline); margin: 40px 0; }

@media (max-width: 1024px) {
    .hero h1 { font-size: 48px; }
    .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .article-layout { grid-template-columns: 1fr; gap: 40px; }
    .sidebar { position: static; }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .main-nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--surface-card);
        border-bottom: 1px solid var(--hairline);
        padding: 16px 24px;
    }
    .main-nav.open { display: block; }
    .main-nav ul { flex-direction: column; gap: 2px; }
    .has-dropdown .dropdown { display: none; position: static; box-shadow: none; border: none; padding: 4px 0 4px 16px; }
    .has-dropdown.open .dropdown { display: flex; }
    .hero h1 { font-size: 36px; letter-spacing: -0.8px; }
    .hero { padding: 48px 0; }
    .section { padding: 48px 0; }
    .section-title { font-size: 28px; }
    .card-grid-3, .card-grid-2 { grid-template-columns: 1fr; }
    .article-header h1 { font-size: 30px; letter-spacing: -0.5px; }
    .page-header h1 { font-size: 30px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; }
    .cookie-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero h1 { font-size: 28px; }
    .footer-grid { grid-template-columns: 1fr; }
}
