:root {
    --canvas: #f5f1ec;
    --surface-1: #ffffff;
    --surface-2: #ede8e1;
    --ink: #111111;
    --ink-muted: #626260;
    --ink-subtle: #7b7b78;
    --ink-tertiary: #9c9fa5;
    --hairline: #d3cec6;
    --hairline-soft: #e0dbd3;
    --radius-xs: 4px;
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-xxl: 24px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--ink);
    background-color: var(--canvas);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1 {
    font-size: 56px;
    font-weight: 500;
    line-height: 1.10;
    letter-spacing: -1.4px;
    color: var(--ink);
}

h2 {
    font-size: 40px;
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.8px;
    color: var(--ink);
}

h3 {
    font-size: 28px;
    font-weight: 500;
    line-height: 1.20;
    letter-spacing: -0.5px;
    color: var(--ink);
}

h4 {
    font-size: 22px;
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -0.3px;
    color: var(--ink);
}

h5 {
    font-size: 20px;
    font-weight: 400;
    line-height: 1.40;
    letter-spacing: -0.2px;
    color: var(--ink);
}

h6 {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.40;
    color: var(--ink);
}

p {
    font-size: 16px;
    line-height: 1.5;
    color: var(--ink);
    margin-bottom: 1rem;
}

p:last-child {
    margin-bottom: 0;
}

a {
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 2px;
}

a:hover {
    opacity: 0.7;
    text-decoration-color: transparent;
}

ul, ol {
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

strong {
    font-weight: 500;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

.top-nav {
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    height: 56px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.nav-logo {
    font-size: 16px;
    font-weight: 500;
    color: var(--ink);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-logo:hover {
    opacity: 0.7;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 4px;
    align-items: center;
    padding: 0;
    margin: 0;
}

.nav-links li a {
    font-size: 14px;
    font-weight: 400;
    color: var(--ink-muted);
    text-decoration: none;
    padding: 6px 10px;
    border-radius: var(--radius-md);
    transition: color 0.15s, background 0.15s;
    display: block;
}

.nav-links li a:hover {
    color: var(--ink);
    background: var(--surface-2);
    opacity: 1;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-md);
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}

.section {
    padding: 96px 0;
}

.section-sm {
    padding: 64px 0;
}

.eyebrow {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-muted);
    display: block;
    margin-bottom: 16px;
}

.hero {
    padding: 80px 0 96px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.hero-text h1 {
    margin-bottom: 24px;
}

.hero-sub {
    font-size: 20px;
    font-weight: 400;
    line-height: 1.40;
    letter-spacing: -0.2px;
    color: var(--ink-muted);
    margin-bottom: 0;
}

.hero-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: var(--radius-xl);
}

.section-header {
    margin-bottom: 48px;
}

.section-header h2 {
    margin-bottom: 12px;
}

.section-header p {
    font-size: 18px;
    color: var(--ink-muted);
    max-width: 560px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.article-card {
    background: var(--surface-1);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    color: var(--ink);
    display: block;
    transition: border-color 0.15s;
}

.article-card:hover {
    border-color: var(--ink-muted);
    opacity: 1;
}

.article-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 0;
}

.article-card-body {
    padding: 24px;
}

.article-card-eyebrow {
    font-size: 12px;
    font-weight: 500;
    color: var(--ink-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.article-card h3 {
    font-size: 22px;
    font-weight: 500;
    letter-spacing: -0.3px;
    line-height: 1.25;
    margin-bottom: 10px;
}

.article-card p {
    font-size: 14px;
    color: var(--ink-muted);
    line-height: 1.5;
    margin-bottom: 0;
}

.divider {
    border: none;
    border-top: 1px solid var(--hairline);
    margin: 0;
}

.article-page-header {
    padding: 64px 0 48px;
    border-bottom: 1px solid var(--hairline);
    margin-bottom: 64px;
}

.article-page-header .eyebrow {
    margin-bottom: 20px;
}

.article-page-header h1 {
    max-width: 840px;
    margin-bottom: 24px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    color: var(--ink-muted);
}

.article-meta-sep {
    color: var(--hairline);
}

.article-layout {
    display: grid;
    grid-template-columns: 760px 1fr;
    gap: 64px;
    align-items: start;
}

.article-body {
    max-width: 760px;
}

.article-body h2 {
    font-size: 32px;
    margin-top: 48px;
    margin-bottom: 20px;
}

.article-body h3 {
    font-size: 24px;
    margin-top: 36px;
    margin-bottom: 16px;
}

.article-body p {
    margin-bottom: 20px;
    color: var(--ink);
    line-height: 1.6;
}

.article-body ul,
.article-body ol {
    margin-bottom: 20px;
}

.article-body li {
    line-height: 1.6;
    color: var(--ink);
}

.article-body strong {
    font-weight: 500;
}

.article-body .article-image {
    margin: 36px 0;
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.article-body .article-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.article-body .article-image figcaption {
    font-size: 12px;
    color: var(--ink-subtle);
    margin-top: 8px;
    line-height: 1.4;
}

.info-box {
    background: var(--surface-1);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin: 32px 0;
}

.info-box h4 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 12px;
}

.info-box p,
.info-box li {
    font-size: 14px;
    color: var(--ink-muted);
}

.article-sidebar {
    position: sticky;
    top: 80px;
}

.sidebar-card {
    background: var(--surface-1);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 20px;
}

.sidebar-card h4 {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--hairline-soft);
}

.sidebar-card ul {
    list-style: none;
    padding: 0;
}

.sidebar-card ul li {
    margin-bottom: 10px;
}

.sidebar-card ul li a {
    font-size: 14px;
    color: var(--ink-muted);
    text-decoration: none;
}

.sidebar-card ul li a:hover {
    color: var(--ink);
    opacity: 1;
}

.page-header {
    padding: 64px 0 48px;
    border-bottom: 1px solid var(--hairline);
    margin-bottom: 64px;
}

.page-header h1 {
    margin-bottom: 16px;
}

.page-header .updated {
    font-size: 14px;
    color: var(--ink-muted);
}

.page-content {
    max-width: 760px;
    margin-bottom: 96px;
}

.page-content h2 {
    font-size: 28px;
    margin-top: 48px;
    margin-bottom: 16px;
}

.page-content h3 {
    font-size: 22px;
    margin-top: 32px;
    margin-bottom: 12px;
}

.page-content p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.page-content ul,
.page-content ol {
    margin-bottom: 20px;
}

.page-content li {
    line-height: 1.6;
    margin-bottom: 8px;
}

.page-content a {
    color: var(--ink);
}

.contact-section {
    background: var(--surface-1);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-xxl);
    padding: 48px;
    max-width: 640px;
}

.contact-section h2 {
    font-size: 32px;
    margin-bottom: 12px;
}

.contact-section .contact-sub {
    font-size: 16px;
    color: var(--ink-muted);
    margin-bottom: 32px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group.full {
    grid-column: 1 / -1;
}

.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(--canvas);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    font-size: 16px;
    font-family: inherit;
    color: var(--ink);
    transition: border-color 0.15s;
    min-height: 44px;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--ink);
    background: var(--surface-1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--ink-tertiary);
}

.btn-primary {
    background: var(--ink);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-md);
    padding: 10px 18px;
    font-size: 15px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: opacity 0.15s;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    opacity: 0.8;
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-message {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    display: none;
}

.form-message.success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.form-disclaimer {
    font-size: 12px;
    color: var(--ink-subtle);
    margin-top: 16px;
}

.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ink);
    color: #ffffff;
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 600px;
    width: calc(100% - 48px);
    z-index: 9999;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}

.cookie-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255,255,255,0.85);
}

.cookie-text a {
    color: rgba(255,255,255,0.85);
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.btn-cookie-accept {
    background: #ffffff;
    color: var(--ink);
    border: none;
    border-radius: var(--radius-md);
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    min-height: 36px;
    white-space: nowrap;
}

.btn-cookie-reject {
    background: transparent;
    color: rgba(255,255,255,0.7);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: var(--radius-md);
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    min-height: 36px;
    white-space: nowrap;
}

.btn-cookie-reject:hover {
    border-color: rgba(255,255,255,0.5);
}

.footer {
    background: var(--canvas);
    border-top: 1px solid var(--hairline);
    padding: 64px 32px 40px;
    margin-top: auto;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 64px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 16px;
    font-weight: 500;
    color: var(--ink);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 12px;
}

.footer-logo:hover {
    opacity: 0.7;
}

.footer-tagline {
    font-size: 14px;
    color: var(--ink-subtle);
    line-height: 1.5;
    margin-bottom: 0;
    max-width: 280px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 14px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    font-size: 14px;
    color: var(--ink-muted);
    text-decoration: none;
    transition: color 0.15s;
}

.footer-col ul li a:hover {
    color: var(--ink);
    opacity: 1;
}

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding-top: 24px;
    border-top: 1px solid var(--hairline-soft);
}

.footer-bottom p {
    font-size: 12px;
    color: var(--ink-subtle);
    margin-bottom: 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
    margin-bottom: 96px;
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius-xl);
}

.about-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 64px;
    margin-bottom: 96px;
}

.feature-card {
    background: var(--surface-1);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.feature-card h4 {
    font-size: 18px;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 14px;
    color: var(--ink-muted);
    margin-bottom: 0;
}

@media (max-width: 1100px) {
    .article-layout {
        grid-template-columns: 1fr;
    }

    .article-sidebar {
        display: none;
    }
}

@media (max-width: 1024px) {
    h1 { font-size: 44px; }
    h2 { font-size: 32px; }

    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-image img {
        height: 360px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    h1 { font-size: 36px; letter-spacing: -0.8px; }
    h2 { font-size: 28px; }
    h3 { font-size: 22px; }

    .container {
        padding: 0 20px;
    }

    .nav-inner {
        padding: 0 20px;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        background: var(--canvas);
        border-bottom: 1px solid var(--hairline);
        padding: 16px 20px 24px;
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links li a {
        font-size: 15px;
        padding: 8px 12px;
    }

    .nav-toggle {
        display: flex;
    }

    .section {
        padding: 64px 0;
    }

    .hero {
        padding: 48px 0 64px;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .contact-section {
        padding: 32px 24px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .footer {
        padding: 48px 20px 32px;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .article-page-header h1 {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 28px; letter-spacing: -0.5px; }

    .hero-image img {
        height: 240px;
    }

    .cookie-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .article-card-body {
        padding: 20px;
    }
}
