*, *::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', monospace;
    --radius-xs: 4px;
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-pill: 9999px;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    background-color: var(--canvas);
    color: var(--body);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--ink);
    text-decoration: none;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

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

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

.nav-logo {
    font-family: var(--font-sans);
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.11px;
    flex-shrink: 0;
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-links li a {
    font-size: 14px;
    font-weight: 500;
    color: var(--body);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    transition: color 0.15s, background 0.15s;
}

.nav-links li a:hover,
.nav-links li a.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;
}

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

.hero-section {
    padding: 80px 0 64px;
    background: var(--canvas);
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

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

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

.hero-subtitle {
    font-size: 18px;
    font-weight: 400;
    color: var(--body);
    max-width: 560px;
    line-height: 1.6;
    margin-bottom: 40px;
}

.hero-image-wrap {
    margin-top: 48px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--hairline);
    max-height: 480px;
}

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

.section {
    padding: 80px 0;
}

.section-soft {
    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;
    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;
}

.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(--radius-lg);
    overflow: hidden;
    transition: border-color 0.15s;
}

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

.article-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

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

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

.article-card-excerpt {
    font-size: 14px;
    color: var(--body);
    line-height: 1.6;
    margin-bottom: 20px;
}

.article-card-meta {
    font-size: 13px;
    color: var(--muted);
}

.article-card-link {
    display: block;
    color: inherit;
}

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

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

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

.feature-card-icon {
    font-size: 28px;
    margin-bottom: 16px;
}

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

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

.article-page {
    max-width: 760px;
    margin: 0 auto;
    padding: 64px 24px 80px;
}

.article-header {
    margin-bottom: 40px;
}

.article-tag {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    display: block;
    margin-bottom: 16px;
}

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

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

.article-lead {
    font-size: 20px;
    font-weight: 400;
    color: var(--body-strong);
    line-height: 1.6;
    border-left: 3px solid var(--primary);
    padding-left: 20px;
    margin-bottom: 40px;
}

.article-hero-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    border: 1px solid var(--hairline);
    margin-bottom: 48px;
}

.article-body h2 {
    font-size: 28px;
    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;
}

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

.article-body ul,
.article-body ol {
    margin: 0 0 20px 0;
    padding-left: 24px;
}

.article-body ul {
    list-style: disc;
}

.article-body ol {
    list-style: decimal;
}

.article-body li {
    font-size: 16px;
    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-info-box {
    background: var(--canvas-soft);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin: 32px 0;
}

.article-info-box strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.related-articles {
    margin-top: 64px;
    padding-top: 40px;
    border-top: 1px solid var(--hairline);
}

.related-title {
    font-size: 22px;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: 24px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

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

.related-card-title {
    font-size: 16px;
    font-weight: 500;
    color: var(--ink);
    line-height: 1.4;
    margin-bottom: 8px;
}

.related-card:hover .related-card-title {
    color: var(--primary);
}

.related-card-meta {
    font-size: 13px;
    color: var(--muted);
}

.page-inner {
    max-width: 760px;
    margin: 0 auto;
    padding: 64px 24px 80px;
}

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

.page-meta {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--hairline);
}

.page-content h2 {
    font-size: 26px;
    font-weight: 400;
    letter-spacing: -0.325px;
    color: var(--ink);
    margin: 40px 0 14px;
}

.page-content h3 {
    font-size: 20px;
    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 0;
    padding-left: 24px;
}

.page-content ul {
    list-style: disc;
}

.page-content ol {
    list-style: decimal;
}

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

.page-content a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.contact-form-section {
    margin-top: 56px;
    padding-top: 40px;
    border-top: 1px solid var(--hairline);
}

.contact-form-title {
    font-size: 26px;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: 8px;
}

.contact-form-desc {
    font-size: 15px;
    color: var(--body);
    margin-bottom: 32px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 540px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
}

.form-input {
    background: var(--surface-card);
    border: 1px solid var(--hairline-strong);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    height: 44px;
    font-size: 15px;
    color: var(--ink);
    font-family: var(--font-sans);
    transition: border-color 0.15s;
    width: 100%;
}

.form-input:focus {
    outline: none;
    border-color: var(--ink);
}

.form-input.error {
    border-color: var(--error);
}

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

.form-error.visible {
    display: block;
}

.btn-primary {
    background: var(--primary);
    color: var(--on-primary);
    border: none;
    border-radius: var(--radius-md);
    padding: 10px 18px;
    height: 40px;
    font-size: 14px;
    font-weight: 500;
    font-family: var(--font-sans);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.15s;
}

.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(--radius-md);
    padding: 10px 18px;
    height: 40px;
    font-size: 14px;
    font-weight: 500;
    font-family: var(--font-sans);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

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

.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-loading {
    font-size: 14px;
    color: var(--muted);
    display: none;
}

.form-loading.visible {
    display: block;
}

.site-footer {
    background: var(--canvas);
    border-top: 1px solid var(--hairline);
    margin-top: auto;
}

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

.footer-brand {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 12px;
}

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

.footer-heading {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 16px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links li,
.footer-links a {
    font-size: 14px;
    color: var(--body);
    line-height: 1.5;
}

.footer-links a:hover {
    color: var(--ink);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 24px 40px;
    border-top: 1px solid var(--hairline-soft);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--muted);
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--ink);
    z-index: 999;
}

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

.cookie-inner p {
    font-size: 14px;
    color: var(--canvas);
    line-height: 1.5;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-buttons .btn-primary {
    background: var(--primary);
}

.cookie-buttons .btn-secondary {
    background: transparent;
    color: var(--canvas);
    border-color: rgba(247,247,244,0.3);
}

.cookie-buttons .btn-secondary:hover {
    background: rgba(247,247,244,0.1);
}

@media (max-width: 1024px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--canvas);
        border-bottom: 1px solid var(--hairline);
        padding: 16px 24px;
        gap: 4px;
    }
    .nav-links.open {
        display: flex;
    }
    .nav-hamburger {
        display: flex;
    }
    .hero-title {
        font-size: 36px;
        letter-spacing: -0.72px;
    }
    .hero-subtitle {
        font-size: 16px;
    }
    .articles-grid {
        grid-template-columns: 1fr;
    }
    .feature-grid {
        grid-template-columns: 1fr;
    }
    .related-grid {
        grid-template-columns: 1fr;
    }
    .footer-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .article-title,
    .page-title {
        font-size: 30px;
    }
    .cookie-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .hero-section {
        padding: 48px 0 40px;
    }
    .section {
        padding: 48px 0;
    }
    .hero-title {
        font-size: 30px;
    }
    .section-title {
        font-size: 26px;
    }
    .hero-image-wrap img {
        height: 260px;
    }
    .article-hero-image {
        height: 240px;
    }
}
