@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: #e5e0d9;
    --inverse-canvas: #000000;
    --inverse-ink: #ffffff;
    --accent: #ff5600;
    --radius-xs: 4px;
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-xxl: 24px;
    --space-xxs: 4px;
    --space-xs: 8px;
    --space-sm: 12px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-xxl: 48px;
    --space-section: 96px;
}

*, *::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, sans-serif;
    background-color: var(--canvas);
    color: var(--ink);
    font-size: 1rem;
    line-height: 1.5;
    letter-spacing: 0;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--ink-muted); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

/* NAV */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    height: 56px;
    display: flex;
    align-items: center;
}

.site-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.nav-logo {
    font-size: 1rem;
    font-weight: 500;
    color: var(--ink);
    letter-spacing: -0.3px;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--ink-muted);
    transition: color 0.15s;
}

.nav-links a:hover { color: var(--ink); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: var(--space-xs);
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: all 0.2s;
}

/* HERO */
.hero {
    padding: var(--space-section) 0;
    border-bottom: 1px solid var(--hairline-soft);
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xxl);
    align-items: center;
}

.hero-eyebrow {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--ink-muted);
    margin-bottom: var(--space-md);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 500;
    line-height: 1.07;
    letter-spacing: -1.5px;
    margin-bottom: var(--space-lg);
    color: var(--ink);
}

.hero-sub {
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.55;
    color: var(--ink-muted);
    letter-spacing: -0.1px;
}

.hero-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    background-color: var(--surface-1);
    border: 1px solid var(--hairline);
}

.hero-image img {
    width: 100%;
    height: 380px;
    object-fit: cover;
}

/* SECTION TITLES */
.section-eyebrow {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--ink-muted);
    margin-bottom: var(--space-sm);
}

.section-title {
    font-size: 2.25rem;
    font-weight: 500;
    letter-spacing: -0.8px;
    line-height: 1.15;
    margin-bottom: var(--space-sm);
}

.section-subtitle {
    font-size: 1rem;
    color: var(--ink-muted);
    line-height: 1.55;
    max-width: 600px;
}

/* ARTICLES SECTION */
.articles-section {
    padding: var(--space-section) 0;
    border-bottom: 1px solid var(--hairline-soft);
}

.section-header {
    margin-bottom: var(--space-xxl);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.article-card {
    background: var(--surface-1);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color 0.15s;
}

.article-card:hover { border-color: var(--ink-muted); }

.article-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: var(--canvas);
}

.article-card-body {
    padding: var(--space-lg);
}

.article-card-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--ink-muted);
    background: var(--canvas);
    border-radius: var(--radius-xs);
    padding: 2px 8px;
    margin-bottom: var(--space-sm);
}

.article-card-title {
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -0.3px;
    margin-bottom: var(--space-sm);
}

.article-card-excerpt {
    font-size: 0.875rem;
    color: var(--ink-muted);
    line-height: 1.55;
    margin-bottom: var(--space-md);
}

.article-card-meta {
    font-size: 0.75rem;
    color: var(--ink-subtle);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.article-card-meta time { color: var(--ink-subtle); }

/* INFO STRIP */
.info-strip {
    padding: var(--space-section) 0;
    border-bottom: 1px solid var(--hairline-soft);
}

.info-strip-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xxl);
    align-items: center;
}

.info-strip-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--hairline);
}

.info-strip-image img {
    width: 100%;
    height: 320px;
    object-fit: cover;
}

.info-strip-content h2 {
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: -0.6px;
    line-height: 1.18;
    margin-bottom: var(--space-lg);
}

.info-strip-content p {
    font-size: 1rem;
    color: var(--ink-muted);
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

/* TOPICS GRID */
.topics-section {
    padding: var(--space-section) 0;
    border-bottom: 1px solid var(--hairline-soft);
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-xxl);
}

.topic-card {
    background: var(--surface-1);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
}

.topic-card-number {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--ink-tertiary);
    margin-bottom: var(--space-sm);
}

.topic-card h3 {
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: -0.2px;
    margin-bottom: var(--space-xs);
    line-height: 1.3;
}

.topic-card p {
    font-size: 0.875rem;
    color: var(--ink-muted);
    line-height: 1.55;
}

/* ARTICLE PAGE */
.article-page {
    padding: var(--space-section) 0;
}

.article-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--space-xxl);
    align-items: start;
}

.article-header { margin-bottom: var(--space-xxl); }

.breadcrumb {
    font-size: 0.75rem;
    color: var(--ink-subtle);
    margin-bottom: var(--space-md);
    display: flex;
    gap: var(--space-xs);
    align-items: center;
}

.breadcrumb a { color: var(--ink-subtle); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb span { color: var(--ink-tertiary); }

.article-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--ink-muted);
    background: var(--canvas);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-xs);
    padding: 3px 10px;
    margin-bottom: var(--space-md);
}

.article-header h1 {
    font-size: 2.5rem;
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -1.0px;
    margin-bottom: var(--space-lg);
}

.article-meta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: 0.875rem;
    color: var(--ink-subtle);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--hairline-soft);
}

.article-featured-image {
    margin-bottom: var(--space-xxl);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--hairline);
}

.article-featured-image img {
    width: 100%;
    height: 420px;
    object-fit: cover;
}

.article-image-caption {
    font-size: 0.75rem;
    color: var(--ink-subtle);
    padding: var(--space-sm) var(--space-md);
    background: var(--surface-1);
    text-align: center;
}

.article-body { max-width: 680px; }

.article-body h2 {
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: -0.4px;
    line-height: 1.25;
    margin-top: var(--space-xxl);
    margin-bottom: var(--space-md);
}

.article-body h3 {
    font-size: 1.125rem;
    font-weight: 500;
    letter-spacing: -0.2px;
    margin-top: var(--space-xl);
    margin-bottom: var(--space-sm);
}

.article-body p {
    font-size: 1rem;
    line-height: 1.65;
    color: var(--ink);
    margin-bottom: var(--space-lg);
}

.article-body ul, .article-body ol {
    list-style: disc;
    padding-left: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.article-body li {
    font-size: 1rem;
    line-height: 1.65;
    margin-bottom: var(--space-xs);
    color: var(--ink);
}

.article-body a {
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article-body a:hover { color: var(--ink-muted); }

.info-box {
    background: var(--surface-1);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin: var(--space-xl) 0;
}

.info-box-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--ink-muted);
    margin-bottom: var(--space-sm);
    text-transform: none;
}

.info-box p {
    margin-bottom: var(--space-sm);
    font-size: 0.9375rem;
    color: var(--ink);
}

.info-box p:last-child { margin-bottom: 0; }

.article-image-inline {
    margin: var(--space-xl) 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--hairline);
}

.article-image-inline img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

/* SIDEBAR */
.article-sidebar { position: sticky; top: 72px; }

.sidebar-widget {
    background: var(--surface-1);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-md);
}

.sidebar-widget h4 {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--hairline-soft);
}

.sidebar-links { display: flex; flex-direction: column; gap: var(--space-sm); }

.sidebar-links a {
    font-size: 0.875rem;
    color: var(--ink-muted);
    line-height: 1.4;
    display: flex;
    align-items: flex-start;
    gap: var(--space-xs);
}

.sidebar-links a:hover { color: var(--ink); }

.sidebar-toc { display: flex; flex-direction: column; gap: var(--space-xs); }

.sidebar-toc a {
    font-size: 0.8125rem;
    color: var(--ink-subtle);
    padding: 4px 0;
    border-left: 2px solid transparent;
    padding-left: var(--space-sm);
    transition: all 0.15s;
}

.sidebar-toc a:hover {
    color: var(--ink);
    border-color: var(--ink);
}

/* FOOTER */
.site-footer {
    border-top: 1px solid var(--hairline);
    padding: var(--space-xxl) 0;
    background: var(--canvas);
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-xxl);
}

.footer-brand { max-width: 260px; }

.footer-logo {
    font-size: 1rem;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: var(--space-md);
    display: block;
}

.footer-desc {
    font-size: 0.8125rem;
    color: var(--ink-subtle);
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

.footer-legal {
    font-size: 0.75rem;
    color: var(--ink-tertiary);
    line-height: 1.55;
}

.footer-col h5 {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: var(--space-md);
}

.footer-col ul { display: flex; flex-direction: column; gap: var(--space-sm); }

.footer-col ul li a {
    font-size: 0.8125rem;
    color: var(--ink-subtle);
    transition: color 0.15s;
}

.footer-col ul li a:hover { color: var(--ink); }

.footer-bottom {
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--hairline-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--ink-tertiary);
}

/* CONTACT FORM */
.contact-section {
    padding: var(--space-section) 0;
    border-bottom: 1px solid var(--hairline-soft);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xxl);
    align-items: start;
}

.contact-info h2 {
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: -0.5px;
    margin-bottom: var(--space-lg);
}

.contact-info p {
    font-size: 1rem;
    color: var(--ink-muted);
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

.contact-form-card {
    background: var(--surface-1);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-xl);
    padding: var(--space-xxl);
}

.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: var(--space-xs);
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: var(--surface-1);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-md);
    padding: 11px 14px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--ink);
    min-height: 44px;
    transition: border-color 0.15s;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--ink-muted);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.btn-primary {
    display: inline-block;
    background: var(--ink);
    color: var(--inverse-ink);
    font-size: 0.9375rem;
    font-weight: 500;
    padding: 10px 18px;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: opacity 0.15s;
    min-height: 40px;
    font-family: inherit;
}

.btn-primary:hover { opacity: 0.85; }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.form-message {
    display: none;
    margin-top: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    background: var(--canvas);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    color: var(--ink-muted);
}

/* PAGE CONTENT */
.page-content {
    padding: var(--space-section) 0;
}

.page-content h1 {
    font-size: 2.5rem;
    font-weight: 500;
    letter-spacing: -0.8px;
    margin-bottom: var(--space-xl);
}

.page-content h2 {
    font-size: 1.375rem;
    font-weight: 500;
    letter-spacing: -0.3px;
    margin-top: var(--space-xxl);
    margin-bottom: var(--space-md);
}

.page-content h3 {
    font-size: 1.0625rem;
    font-weight: 500;
    margin-top: var(--space-xl);
    margin-bottom: var(--space-sm);
}

.page-content p {
    font-size: 1rem;
    line-height: 1.65;
    color: var(--ink-muted);
    margin-bottom: var(--space-md);
}

.page-content ul {
    list-style: disc;
    padding-left: var(--space-lg);
    margin-bottom: var(--space-md);
}

.page-content li {
    font-size: 1rem;
    line-height: 1.65;
    color: var(--ink-muted);
    margin-bottom: var(--space-xs);
}

.page-meta {
    font-size: 0.875rem;
    color: var(--ink-subtle);
    margin-bottom: var(--space-xxl);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--hairline-soft);
}

/* COOKIE BANNER */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--inverse-canvas);
    color: var(--inverse-ink);
    padding: var(--space-lg) var(--space-xl);
    z-index: 1000;
    display: none;
    align-items: center;
    gap: var(--space-xl);
    justify-content: space-between;
    border-top: 1px solid #333;
}

.cookie-banner.visible { display: flex; }

.cookie-text {
    font-size: 0.875rem;
    line-height: 1.55;
    color: #c0bdb8;
    max-width: 700px;
}

.cookie-text a {
    color: var(--inverse-ink);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-buttons {
    display: flex;
    gap: var(--space-sm);
    flex-shrink: 0;
}

.btn-cookie-accept {
    background: var(--inverse-ink);
    color: var(--inverse-canvas);
    border: none;
    border-radius: var(--radius-md);
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    min-height: 36px;
}

.btn-cookie-reject {
    background: transparent;
    color: #c0bdb8;
    border: 1px solid #444;
    border-radius: var(--radius-md);
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 400;
    cursor: pointer;
    font-family: inherit;
    min-height: 36px;
}

.btn-cookie-reject:hover { border-color: #666; color: var(--inverse-ink); }

/* DISCLAIMER */
.disclaimer-bar {
    background: var(--surface-2);
    border-bottom: 1px solid var(--hairline);
    padding: var(--space-xs) 0;
    text-align: center;
    font-size: 0.75rem;
    color: var(--ink-subtle);
}

/* ABOUT INTRO */
.about-hero {
    padding: var(--space-section) 0;
    border-bottom: 1px solid var(--hairline-soft);
}

.about-hero h1 {
    font-size: 3rem;
    font-weight: 500;
    letter-spacing: -1.2px;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
    max-width: 700px;
}

.about-hero p {
    font-size: 1.125rem;
    color: var(--ink-muted);
    line-height: 1.6;
    max-width: 620px;
}

.about-image {
    margin-top: var(--space-xxl);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--hairline);
    max-height: 400px;
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .articles-grid { grid-template-columns: repeat(2, 1fr); }
    .topics-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { grid-template-columns: 1fr 1fr; gap: var(--space-xl); }
    .article-layout { grid-template-columns: 1fr; }
    .article-sidebar { position: static; }
    .hero-inner { grid-template-columns: 1fr; }
    .hero-image { display: none; }
    .info-strip-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .container { padding: 0 var(--space-lg); }
    .hero { padding: var(--space-xxl) 0; }
    .hero h1 { font-size: 2.25rem; letter-spacing: -0.8px; }
    .articles-grid { grid-template-columns: 1fr; }
    .topics-grid { grid-template-columns: 1fr; }
    .section-title { font-size: 1.75rem; }
    .nav-links { display: none; }
    .nav-toggle { display: flex; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 56px;
        left: 0; right: 0;
        background: var(--canvas);
        padding: var(--space-lg);
        border-bottom: 1px solid var(--hairline);
        gap: var(--space-md);
        z-index: 99;
    }
    .footer-inner { grid-template-columns: 1fr; gap: var(--space-xl); }
    .footer-bottom { flex-direction: column; gap: var(--space-sm); text-align: center; }
    .article-header h1 { font-size: 1.75rem; }
    .article-body h2 { font-size: 1.25rem; }
    .cookie-banner { flex-direction: column; gap: var(--space-md); align-items: flex-start; }
    .contact-form-card { padding: var(--space-lg); }
    .about-hero h1 { font-size: 2rem; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.75rem; }
    .space-section { padding: 64px 0; }
}
