: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;
    --semantic-success: #1f8a65;
    --semantic-error: #cf2d56;
    --rounded-xs: 4px;
    --rounded-sm: 6px;
    --rounded-md: 8px;
    --rounded-lg: 12px;
    --rounded-xl: 16px;
    --rounded-pill: 9999px;
    --section: 80px;
    --font-sans: 'Inter', system-ui, 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    background-color: var(--canvas);
    color: var(--body);
    font-family: var(--font-sans);
    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;
}

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: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.nav-logo {
    flex-shrink: 0;
}

.nav-logo-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.3px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    justify-content: flex-end;
}

.nav-menu 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;
}

.nav-menu a:hover {
    color: var(--ink);
    background: var(--hairline-soft);
}

.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: transform 0.2s, opacity 0.2s;
}

.hero-section {
    padding: var(--section) 0;
    background: var(--canvas);
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.hero-eyebrow {
    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: 24px;
}

.hero-title {
    font-size: clamp(36px, 5vw, 72px);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -2.16px;
    color: var(--ink);
    max-width: 720px;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 16px;
    line-height: 1.5;
    color: var(--body);
    max-width: 560px;
    margin-bottom: 40px;
}

.hero-image-wrap {
    margin-top: 48px;
    border-radius: var(--rounded-lg);
    overflow: hidden;
    border: 1px solid var(--hairline);
    background: var(--surface-card);
}

.hero-image-wrap img {
    width: 100%;
    height: 420px;
    object-fit: cover;
}

.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;
    line-height: 1.5;
    color: var(--body);
    max-width: 560px;
    margin-bottom: 48px;
}

.articles-section {
    padding: var(--section) 0;
    background: var(--canvas);
}

.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.2s;
}

.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);
    background: var(--surface-strong);
    border-radius: var(--rounded-pill);
    padding: 3px 8px;
    display: inline-block;
    margin-bottom: 12px;
}

.article-card-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--ink);
    margin-bottom: 8px;
}

.article-card-excerpt {
    font-size: 14px;
    line-height: 1.5;
    color: var(--body);
    margin-bottom: 16px;
}

.article-card-meta {
    font-size: 13px;
    color: var(--muted);
}

.features-section {
    padding: var(--section) 0;
    background: var(--canvas-soft);
    border-top: 1px solid var(--hairline-soft);
    border-bottom: 1px solid var(--hairline-soft);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-lg);
    padding: 24px;
}

.feature-card-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--rounded-md);
    background: var(--surface-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 18px;
}

.feature-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 8px;
}

.feature-card-text {
    font-size: 14px;
    line-height: 1.5;
    color: var(--body);
}

.contact-section {
    padding: var(--section) 0;
    background: var(--canvas);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.contact-info-title {
    font-size: 26px;
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: -0.325px;
    color: var(--ink);
    margin-bottom: 16px;
}

.contact-info-text {
    font-size: 16px;
    line-height: 1.5;
    color: var(--body);
    margin-bottom: 24px;
}

.contact-detail {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-detail-item {
    font-size: 14px;
    color: var(--body);
}

.contact-detail-item strong {
    color: var(--ink);
    font-weight: 600;
}

.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);
    border: 1px solid var(--hairline-strong);
    border-radius: var(--rounded-md);
    padding: 12px 16px;
    height: 44px;
    font-size: 16px;
    font-family: var(--font-sans);
    color: var(--ink);
    transition: border-color 0.15s;
    outline: none;
}

.form-group textarea {
    height: auto;
    min-height: 100px;
    resize: vertical;
}

.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-error-msg {
    font-size: 13px;
    color: var(--semantic-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;
    height: 40px;
    font-size: 14px;
    font-weight: 500;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: background 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-primary:hover {
    background: var(--primary-active);
}

.btn-secondary {
    background: var(--surface-card);
    color: var(--ink);
    border: 1px solid var(--hairline-strong);
    border-radius: var(--rounded-md);
    padding: 10px 18px;
    height: 40px;
    font-size: 14px;
    font-weight: 500;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.btn-secondary:hover {
    background: var(--hairline-soft);
    border-color: var(--ink);
}

.form-submit-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.form-status {
    font-size: 14px;
    color: var(--semantic-success);
    display: none;
}

.page-hero {
    padding: 64px 0 48px;
    border-bottom: 1px solid var(--hairline-soft);
}

.page-hero-eyebrow {
    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;
}

.page-hero-title {
    font-size: clamp(28px, 4vw, 52px);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -1.5px;
    color: var(--ink);
    margin-bottom: 16px;
}

.page-hero-subtitle {
    font-size: 16px;
    line-height: 1.5;
    color: var(--body);
    max-width: 600px;
}

.page-hero-meta {
    margin-top: 16px;
    font-size: 13px;
    color: var(--muted);
}

.page-content {
    padding: 64px 0;
    max-width: 720px;
}

.page-content h2 {
    font-size: 26px;
    font-weight: 400;
    letter-spacing: -0.325px;
    color: var(--ink);
    margin: 48px 0 16px;
    line-height: 1.25;
}

.page-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    margin: 32px 0 12px;
    line-height: 1.4;
}

.page-content p {
    font-size: 16px;
    line-height: 1.5;
    color: var(--body);
    margin-bottom: 16px;
}

.page-content ul,
.page-content ol {
    padding-left: 24px;
    margin-bottom: 16px;
}

.page-content ul {
    list-style: disc;
}

.page-content ol {
    list-style: decimal;
}

.page-content li {
    font-size: 16px;
    line-height: 1.5;
    color: var(--body);
    margin-bottom: 6px;
}

.page-content a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.page-content a:hover {
    color: var(--primary-active);
}

.content-image-wrap {
    margin: 32px 0;
    border-radius: var(--rounded-lg);
    overflow: hidden;
    border: 1px solid var(--hairline);
}

.content-image-wrap img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
}

.image-caption {
    font-size: 13px;
    color: var(--muted);
    padding: 10px 16px;
    background: var(--canvas-soft);
    line-height: 1.4;
}

.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 p {
    margin: 0;
    font-size: 15px;
    color: var(--body);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 0;
    font-size: 13px;
    color: var(--muted);
}

.breadcrumb a {
    color: var(--muted);
}

.breadcrumb a:hover {
    color: var(--ink);
}

.breadcrumb-sep {
    color: var(--hairline-strong);
}

.article-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 64px;
    align-items: start;
    padding: 0 0 80px;
}

.article-sidebar {
    position: sticky;
    top: 88px;
}

.sidebar-card {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-lg);
    padding: 24px;
    margin-bottom: 24px;
}

.sidebar-card-title {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 16px;
}

.sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-links a {
    font-size: 14px;
    color: var(--body);
    line-height: 1.4;
}

.sidebar-links a:hover {
    color: var(--primary);
}

.site-footer {
    background: var(--canvas);
    border-top: 1px solid var(--hairline);
    padding: 64px 0 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 64px;
    padding-bottom: 48px;
}

.footer-logo {
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    display: block;
    margin-bottom: 12px;
}

.footer-tagline {
    font-size: 14px;
    line-height: 1.5;
    color: var(--body);
    max-width: 220px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.footer-col-title {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 16px;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-col a {
    font-size: 14px;
    color: var(--body);
    line-height: 1.4;
}

.footer-col a:hover {
    color: var(--ink);
}

.footer-col li {
    font-size: 14px;
    color: var(--body);
}

.footer-bottom {
    border-top: 1px solid var(--hairline);
    padding: 24px;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--muted);
}

.footer-disclaimer {
    font-size: 12px;
    color: var(--muted-soft);
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--ink);
    color: var(--canvas);
    z-index: 9999;
    padding: 20px 24px;
}

.cookie-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.cookie-inner p {
    font-size: 14px;
    line-height: 1.5;
    color: var(--canvas);
    flex: 1;
    min-width: 200px;
}

.cookie-inner a {
    color: var(--canvas);
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-actions .btn-primary {
    height: 36px;
    font-size: 13px;
}

.cookie-actions .btn-secondary {
    height: 36px;
    font-size: 13px;
    background: transparent;
    color: var(--canvas);
    border-color: rgba(247, 247, 244, 0.3);
}

.cookie-actions .btn-secondary:hover {
    background: rgba(247, 247, 244, 0.1);
    border-color: var(--canvas);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    padding: 64px 0;
    align-items: start;
}

.about-image {
    border-radius: var(--rounded-lg);
    overflow: hidden;
    border: 1px solid var(--hairline);
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.divider {
    border: none;
    border-top: 1px solid var(--hairline-soft);
    margin: 48px 0;
}

@media (max-width: 1024px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .article-layout {
        grid-template-columns: 1fr;
    }
    .article-sidebar {
        position: static;
    }
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .about-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --section: 56px;
    }
    .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;
        align-items: stretch;
        padding: 8px 16px 16px;
        gap: 2px;
    }
    .nav-menu.open {
        display: flex;
    }
    .nav-menu a {
        padding: 10px 12px;
        width: 100%;
    }
    .site-nav {
        position: relative;
    }
    .hero-title {
        letter-spacing: -1px;
    }
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .footer-links {
        grid-template-columns: 1fr 1fr;
    }
    .cookie-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .footer-links {
        grid-template-columns: 1fr;
    }
}
