@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

:root {
    --canvas: #f5f1ec;
    --surface-1: #ffffff;
    --surface-2: #ede9e3;
    --ink: #111111;
    --ink-muted: #626260;
    --ink-subtle: #7b7b78;
    --ink-tertiary: #9c9fa5;
    --hairline: #d3cec6;
    --hairline-soft: #e8e4de;
    --inverse-canvas: #000000;
    --inverse-ink: #ffffff;
    --inverse-ink-muted: #b0ada8;
    --accent: #3d6b2e;
    --accent-light: #eef4ea;
    --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 {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
    font-weight: 400;
    background-color: var(--canvas);
    color: var(--ink);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--ink);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

/* NAVIGATION */
.site-nav {
    background-color: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    position: sticky;
    top: 0;
    z-index: 100;
    height: 56px;
}

.nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.nav-logo {
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.3px;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-logo:hover {
    text-decoration: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}

.nav-links a {
    font-size: 14px;
    font-weight: 400;
    color: var(--ink-muted);
    padding: 6px 12px;
    border-radius: var(--radius-md);
    transition: color 0.15s, background-color 0.15s;
}

.nav-links a:hover {
    color: var(--ink);
    background-color: var(--surface-2);
    text-decoration: none;
}

.nav-links a.active {
    color: var(--ink);
    font-weight: 500;
}

.nav-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--ink);
}

.nav-hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    margin: 4px 0;
    transition: transform 0.2s, opacity 0.2s;
}

.nav-mobile {
    display: none;
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    padding: 8px 32px 16px;
}

.nav-mobile.open {
    display: block;
}

.nav-mobile a {
    display: block;
    font-size: 15px;
    color: var(--ink-muted);
    padding: 10px 0;
    border-bottom: 1px solid var(--hairline-soft);
}

.nav-mobile a:hover {
    color: var(--ink);
    text-decoration: none;
}

/* HERO */
.hero {
    padding: 80px 0 96px;
    background-color: var(--canvas);
}

.hero-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.hero-eyebrow {
    font-size: 14px;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 16px;
    letter-spacing: 0;
}

.hero-title {
    font-size: 56px;
    font-weight: 500;
    line-height: 1.10;
    letter-spacing: -1.4px;
    color: var(--ink);
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--ink-muted);
    margin-bottom: 32px;
    letter-spacing: -0.1px;
}

.hero-meta {
    font-size: 12px;
    color: var(--ink-tertiary);
}

.hero-image-card {
    background: var(--surface-1);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.hero-image-card img {
    width: 100%;
    height: 380px;
    object-fit: cover;
}

/* SECTIONS */
.section {
    padding: 96px 0;
}

.section-cream {
    background-color: var(--canvas);
}

.section-white {
    background-color: var(--surface-1);
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
}

.section-title {
    font-size: 40px;
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.8px;
    color: var(--ink);
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--ink-muted);
    margin-bottom: 48px;
    max-width: 600px;
}

.section-eyebrow {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-subtle);
    margin-bottom: 12px;
}

/* CARDS GRID */
.cards-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;
    transition: box-shadow 0.2s;
}

.article-card:hover {
    box-shadow: 0 4px 24px rgba(17,17,17,0.08);
}

.article-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-card-body {
    padding: 24px;
}

.article-card-tag {
    font-size: 12px;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 8px;
    text-transform: none;
}

.article-card-title {
    font-size: 20px;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -0.3px;
    color: var(--ink);
    margin-bottom: 10px;
}

.article-card-title a {
    color: var(--ink);
}

.article-card-title a:hover {
    text-decoration: underline;
}

.article-card-excerpt {
    font-size: 14px;
    line-height: 1.5;
    color: var(--ink-muted);
    margin-bottom: 16px;
}

.article-card-meta {
    font-size: 12px;
    color: var(--ink-tertiary);
}

/* ARTICLE PAGE */
.article-header {
    padding: 64px 0 48px;
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
}

.article-tag {
    font-size: 14px;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 16px;
    display: block;
}

.article-title {
    font-size: 48px;
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -1.2px;
    color: var(--ink);
    margin-bottom: 20px;
    max-width: 800px;
}

.article-description {
    font-size: 20px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--ink-muted);
    margin-bottom: 24px;
    max-width: 720px;
    letter-spacing: -0.2px;
}

.article-meta {
    font-size: 13px;
    color: var(--ink-subtle);
    display: flex;
    align-items: center;
    gap: 16px;
}

.article-meta span::before {
    content: '·';
    margin-right: 16px;
}

.article-meta span:first-child::before {
    content: '';
    margin-right: 0;
}

.article-hero-image {
    background: var(--surface-1);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin: 48px 0;
}

.article-hero-image img {
    width: 100%;
    height: 460px;
    object-fit: cover;
}

.article-hero-image figcaption {
    padding: 12px 24px;
    font-size: 12px;
    color: var(--ink-subtle);
    border-top: 1px solid var(--hairline);
}

.article-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 64px;
    padding: 64px 0 96px;
    align-items: start;
}

.article-content {
    max-width: 720px;
}

.article-content h2 {
    font-size: 28px;
    font-weight: 500;
    letter-spacing: -0.5px;
    color: var(--ink);
    margin: 40px 0 16px;
}

.article-content h3 {
    font-size: 22px;
    font-weight: 500;
    letter-spacing: -0.3px;
    color: var(--ink);
    margin: 32px 0 12px;
}

.article-content p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--ink);
    margin-bottom: 20px;
}

.article-content ul, .article-content ol {
    margin: 0 0 20px 24px;
}

.article-content li {
    font-size: 16px;
    line-height: 1.7;
    color: var(--ink);
    margin-bottom: 8px;
}

.article-content a {
    color: var(--accent);
    text-decoration: underline;
}

.article-content strong {
    font-weight: 600;
}

.info-box {
    background: var(--accent-light);
    border: 1px solid #c5ddb8;
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    margin: 24px 0;
}

.info-box p {
    font-size: 15px;
    color: var(--ink);
    margin: 0;
}

.info-box strong {
    color: var(--accent);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 15px;
}

.data-table th {
    text-align: left;
    font-weight: 500;
    padding: 12px 16px;
    background: var(--surface-2);
    border-bottom: 1px solid var(--hairline);
    color: var(--ink);
}

.data-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--hairline-soft);
    color: var(--ink-muted);
}

.data-table tr:last-child td {
    border-bottom: none;
}

.sources-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sources-list li {
    font-size: 13px;
    color: var(--ink-subtle);
    padding: 8px 0;
    border-bottom: 1px solid var(--hairline-soft);
}

.sources-list li:last-child {
    border-bottom: none;
}

.sources-list a {
    color: var(--accent);
}

/* SIDEBAR */
.article-sidebar {
    position: sticky;
    top: 72px;
}

.sidebar-card {
    background: var(--surface-1);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
}

.sidebar-card-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--hairline);
}

.sidebar-toc {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-toc li {
    border-bottom: 1px solid var(--hairline-soft);
}

.sidebar-toc li:last-child {
    border-bottom: none;
}

.sidebar-toc a {
    display: block;
    font-size: 13px;
    color: var(--ink-muted);
    padding: 8px 0;
    transition: color 0.15s;
}

.sidebar-toc a:hover {
    color: var(--ink);
    text-decoration: none;
}

.sidebar-related-link {
    display: block;
    font-size: 14px;
    color: var(--ink-muted);
    padding: 8px 0;
    border-bottom: 1px solid var(--hairline-soft);
    transition: color 0.15s;
    line-height: 1.4;
}

.sidebar-related-link:last-child {
    border-bottom: none;
}

.sidebar-related-link:hover {
    color: var(--ink);
    text-decoration: none;
}

/* CONTACT FORM */
.contact-section {
    padding: 96px 0;
    background: var(--canvas);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.contact-info h2 {
    font-size: 40px;
    font-weight: 500;
    letter-spacing: -0.8px;
    margin-bottom: 16px;
}

.contact-info p {
    font-size: 16px;
    color: var(--ink-muted);
    line-height: 1.6;
    margin-bottom: 24px;
}

.contact-detail {
    font-size: 14px;
    color: var(--ink-subtle);
    padding: 12px 0;
    border-bottom: 1px solid var(--hairline-soft);
    display: flex;
    gap: 12px;
}

.contact-detail:last-child {
    border-bottom: none;
}

.contact-form-card {
    background: var(--surface-1);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-xl);
    padding: 40px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 10px 14px;
    font-family: inherit;
    font-size: 16px;
    color: var(--ink);
    background: var(--surface-1);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-md);
    outline: none;
    transition: border-color 0.15s;
    min-height: 44px;
}

.form-input:focus {
    border-color: var(--accent);
}

.form-input::placeholder {
    color: var(--ink-tertiary);
}

textarea.form-input {
    resize: vertical;
    min-height: 120px;
}

.btn-primary {
    display: inline-block;
    background: var(--ink);
    color: #ffffff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    padding: 10px 24px;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: opacity 0.15s;
    min-height: 40px;
}

.btn-primary:hover {
    opacity: 0.85;
    text-decoration: none;
    color: #ffffff;
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-message {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 14px;
    margin-top: 16px;
    display: none;
}

.form-message.success {
    background: #eef4ea;
    color: #3d6b2e;
    border: 1px solid #c5ddb8;
    display: block;
}

.form-message.error {
    background: #feeee9;
    color: #c0392b;
    border: 1px solid #f5c6bc;
    display: block;
}

/* FOOTER */
.site-footer {
    background-color: var(--canvas);
    border-top: 1px solid var(--hairline);
    padding: 64px 32px 32px;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--hairline);
    margin-bottom: 32px;
}

.footer-brand p {
    font-size: 13px;
    color: var(--ink-subtle);
    line-height: 1.6;
    margin-top: 12px;
    max-width: 280px;
}

.footer-brand-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
}

.footer-col-title {
    font-size: 12px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 16px;
    text-transform: none;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col li {
    margin-bottom: 8px;
}

.footer-col a {
    font-size: 13px;
    color: var(--ink-subtle);
    transition: color 0.15s;
}

.footer-col a:hover {
    color: var(--ink);
    text-decoration: none;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-copyright {
    font-size: 12px;
    color: var(--ink-tertiary);
}

.footer-disclaimer {
    font-size: 11px;
    color: var(--ink-tertiary);
    max-width: 600px;
    text-align: right;
    line-height: 1.4;
}

/* COOKIE BANNER */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 720px;
    background: var(--inverse-canvas);
    color: var(--inverse-ink);
    border-radius: var(--radius-xl);
    padding: 20px 24px;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.24);
    display: none;
}

.cookie-banner.visible {
    display: flex;
}

.cookie-text {
    font-size: 13px;
    color: var(--inverse-ink-muted);
    line-height: 1.5;
    flex: 1;
}

.cookie-text a {
    color: var(--inverse-ink);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.cookie-btn-accept {
    background: var(--inverse-ink);
    color: var(--inverse-canvas);
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    min-height: 36px;
}

.cookie-btn-reject {
    background: transparent;
    color: var(--inverse-ink-muted);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    min-height: 36px;
}

.cookie-btn-accept:hover {
    opacity: 0.9;
}

.cookie-btn-reject:hover {
    color: var(--inverse-ink);
    border-color: rgba(255,255,255,0.4);
}

/* PAGE HERO */
.page-hero {
    padding: 64px 0 48px;
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
}

.page-hero-title {
    font-size: 48px;
    font-weight: 500;
    letter-spacing: -1.2px;
    line-height: 1.1;
    color: var(--ink);
    margin-bottom: 16px;
}

.page-hero-subtitle {
    font-size: 18px;
    color: var(--ink-muted);
    line-height: 1.5;
    max-width: 640px;
}

/* SIMPLE PAGE CONTENT */
.page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 64px 32px 96px;
}

.page-content h2 {
    font-size: 24px;
    font-weight: 500;
    letter-spacing: -0.3px;
    color: var(--ink);
    margin: 40px 0 12px;
}

.page-content h3 {
    font-size: 18px;
    font-weight: 500;
    color: var(--ink);
    margin: 28px 0 10px;
}

.page-content p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--ink-muted);
    margin-bottom: 16px;
}

.page-content ul, .page-content ol {
    margin: 0 0 16px 24px;
}

.page-content li {
    font-size: 15px;
    line-height: 1.7;
    color: var(--ink-muted);
    margin-bottom: 6px;
}

.page-content a {
    color: var(--accent);
    text-decoration: underline;
}

.page-updated {
    font-size: 12px;
    color: var(--ink-tertiary);
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--hairline);
}

/* BREADCRUMB */
.breadcrumb {
    font-size: 13px;
    color: var(--ink-subtle);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--ink-subtle);
}

.breadcrumb a:hover {
    color: var(--ink);
    text-decoration: none;
}

.breadcrumb-sep {
    color: var(--ink-tertiary);
    font-size: 11px;
}

/* LOADING SPINNER */
.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .hero-title {
        font-size: 44px;
    }
}

@media (max-width: 768px) {
    .container, .nav-inner {
        padding: 0 20px;
    }

    .hero {
        padding: 48px 0 64px;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 20px;
    }

    .hero-title {
        font-size: 36px;
        letter-spacing: -0.8px;
    }

    .hero-image-card img {
        height: 240px;
    }

    .section {
        padding: 64px 0;
    }

    .section-title {
        font-size: 30px;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }

    .nav-links {
        display: none;
    }

    .nav-hamburger {
        display: block;
    }

    .article-layout {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px 0 64px;
    }

    .article-sidebar {
        position: static;
    }

    .article-title {
        font-size: 32px;
        letter-spacing: -0.8px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-form-card {
        padding: 24px 20px;
    }

    .contact-info h2 {
        font-size: 30px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-disclaimer {
        text-align: left;
    }

    .cookie-banner {
        flex-direction: column;
        align-items: flex-start;
        bottom: 0;
        left: 0;
        transform: none;
        width: 100%;
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    }

    .page-hero-title {
        font-size: 32px;
    }

    .page-content {
        padding: 40px 20px 64px;
    }

    .article-hero-image img {
        height: 280px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }

    .section-title {
        font-size: 26px;
    }
}
