@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --canvas: #f5f1ec;
    --surface-1: #ffffff;
    --surface-2: #ede9e3;
    --ink: #111111;
    --ink-muted: #626260;
    --ink-subtle: #7b7b78;
    --hairline: #d3cec6;
    --hairline-soft: #e4e0da;
    --r-xs: 4px;
    --r-sm: 6px;
    --r-md: 8px;
    --r-lg: 12px;
    --r-xl: 16px;
    --r-xxl: 24px;
    --sp-xxs: 4px;
    --sp-xs: 8px;
    --sp-sm: 12px;
    --sp-md: 16px;
    --sp-lg: 24px;
    --sp-xl: 32px;
    --sp-xxl: 48px;
    --sp-section: 96px;
    --max-w: 1280px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
    background-color: var(--canvas);
    color: var(--ink);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; }

.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--sp-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: 15px;
    font-weight: 500;
    color: var(--ink);
    letter-spacing: -0.2px;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    gap: var(--sp-xl);
    align-items: center;
}

.nav-links a {
    font-size: 14px;
    font-weight: 400;
    color: var(--ink-muted);
    transition: color 0.15s;
}

.nav-links a:hover { color: var(--ink); text-decoration: none; }

.nav-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--sp-xs);
    flex-direction: column;
    gap: 5px;
}

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

.nav-mobile {
    display: none;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    padding: var(--sp-lg) var(--sp-xl);
    z-index: 99;
    flex-direction: column;
    gap: var(--sp-md);
}

.nav-mobile.open { display: flex; }
.nav-mobile a { font-size: 15px; color: var(--ink-muted); padding: var(--sp-xs) 0; border-bottom: 1px solid var(--hairline-soft); }
.nav-mobile a:last-child { border-bottom: none; }

/* HERO */
.hero {
    padding: var(--sp-section) 0 80px;
    background-color: var(--canvas);
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-xxl);
    align-items: center;
}

.hero-eyebrow {
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-muted);
    margin-bottom: var(--sp-md);
    letter-spacing: 0.3px;
}

.hero-title {
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -1.5px;
    color: var(--ink);
    margin-bottom: var(--sp-lg);
}

.hero-desc {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--ink-muted);
    margin-bottom: var(--sp-xxl);
    letter-spacing: -0.1px;
}

.hero-img {
    border-radius: var(--r-xl);
    overflow: hidden;
    background: var(--surface-1);
    border: 1px solid var(--hairline);
}

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

/* SECTIONS */
.section {
    padding: var(--sp-section) 0;
}

.section-alt {
    background-color: var(--surface-2);
}

.section-eyebrow {
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-muted);
    margin-bottom: var(--sp-sm);
    letter-spacing: 0.3px;
}

.section-title {
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.8px;
    color: var(--ink);
    margin-bottom: var(--sp-md);
}

.section-lead {
    font-size: 18px;
    color: var(--ink-muted);
    line-height: 1.5;
    max-width: 600px;
    letter-spacing: -0.1px;
}

.section-header {
    margin-bottom: var(--sp-xxl);
}

/* ARTICLE CARDS */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-lg);
}

.article-card {
    background: var(--surface-1);
    border-radius: var(--r-xl);
    border: 1px solid var(--hairline);
    overflow: hidden;
    transition: border-color 0.2s;
}

.article-card:hover { border-color: var(--ink-subtle); }

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

.article-card-body {
    padding: var(--sp-lg);
}

.article-card-tag {
    font-size: 12px;
    font-weight: 500;
    color: var(--ink-muted);
    margin-bottom: var(--sp-sm);
    letter-spacing: 0.3px;
}

.article-card-title {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--ink);
    margin-bottom: var(--sp-sm);
    letter-spacing: -0.2px;
}

.article-card-excerpt {
    font-size: 14px;
    color: var(--ink-muted);
    line-height: 1.5;
    margin-bottom: var(--sp-lg);
}

.article-card-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    border-bottom: 1px solid var(--ink);
    padding-bottom: 1px;
    display: inline-block;
    transition: color 0.15s, border-color 0.15s;
}

.article-card-link:hover { color: var(--ink-muted); border-color: var(--ink-muted); text-decoration: none; }

/* FEATURE STRIP */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-lg);
}

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

.feature-card-icon {
    width: 40px;
    height: 40px;
    background: var(--canvas);
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--sp-md);
    font-size: 20px;
}

.feature-card-title {
    font-size: 16px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: var(--sp-xs);
    letter-spacing: -0.2px;
}

.feature-card-text {
    font-size: 14px;
    color: var(--ink-muted);
    line-height: 1.5;
}

/* ARTICLE PAGE */
.article-hero {
    padding: 64px 0 48px;
}

.article-meta {
    font-size: 13px;
    color: var(--ink-muted);
    margin-bottom: var(--sp-lg);
    display: flex;
    gap: var(--sp-md);
    align-items: center;
    flex-wrap: wrap;
}

.article-meta-tag {
    background: var(--surface-1);
    border: 1px solid var(--hairline);
    border-radius: var(--r-sm);
    padding: 2px var(--sp-sm);
    font-size: 12px;
    font-weight: 500;
}

.article-title {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -1.2px;
    color: var(--ink);
    margin-bottom: var(--sp-lg);
    max-width: 820px;
}

.article-intro {
    font-size: 20px;
    color: var(--ink-muted);
    line-height: 1.5;
    max-width: 720px;
    letter-spacing: -0.2px;
    margin-bottom: var(--sp-xxl);
}

.article-featured-img {
    border-radius: var(--r-xl);
    overflow: hidden;
    border: 1px solid var(--hairline);
    margin-bottom: var(--sp-section);
}

.article-featured-img img {
    width: 100%;
    height: 480px;
    object-fit: cover;
}

.article-featured-img figcaption {
    font-size: 12px;
    color: var(--ink-subtle);
    padding: var(--sp-sm) var(--sp-md);
    background: var(--surface-1);
    border-top: 1px solid var(--hairline);
}

.article-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 64px;
    align-items: start;
}

.article-content h2 {
    font-size: 26px;
    font-weight: 500;
    letter-spacing: -0.5px;
    color: var(--ink);
    margin: 48px 0 var(--sp-md);
}

.article-content h3 {
    font-size: 20px;
    font-weight: 500;
    letter-spacing: -0.2px;
    color: var(--ink);
    margin: 32px 0 var(--sp-sm);
}

.article-content p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--ink);
    margin-bottom: var(--sp-md);
}

.article-content ul, .article-content ol {
    margin: var(--sp-md) 0 var(--sp-lg) var(--sp-xl);
    list-style: disc;
}

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

.article-content li {
    font-size: 16px;
    line-height: 1.7;
    color: var(--ink);
    margin-bottom: var(--sp-xs);
    padding-left: var(--sp-xs);
}

.article-content strong { font-weight: 500; }

.article-content blockquote {
    border-left: 3px solid var(--hairline);
    padding: var(--sp-md) var(--sp-lg);
    margin: var(--sp-xl) 0;
    background: var(--surface-1);
    border-radius: 0 var(--r-md) var(--r-md) 0;
}

.article-content blockquote p {
    font-size: 18px;
    color: var(--ink-muted);
    font-style: italic;
    margin: 0;
}

.article-content .img-block {
    border-radius: var(--r-xl);
    overflow: hidden;
    border: 1px solid var(--hairline);
    margin: var(--sp-xxl) 0;
}

.article-content .img-block img {
    width: 100%;
    height: 360px;
    object-fit: cover;
}

.article-content .img-block figcaption {
    font-size: 12px;
    color: var(--ink-subtle);
    padding: var(--sp-sm) var(--sp-md);
    background: var(--surface-1);
    border-top: 1px solid var(--hairline);
}

.article-content .info-box {
    background: var(--surface-1);
    border: 1px solid var(--hairline);
    border-radius: var(--r-lg);
    padding: var(--sp-lg);
    margin: var(--sp-xxl) 0;
}

.article-content .info-box-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: var(--sp-sm);
    letter-spacing: -0.1px;
}

.article-content .info-box p {
    font-size: 14px;
    color: var(--ink-muted);
    margin: 0;
}

.article-content .sources {
    margin-top: var(--sp-xxl);
    padding-top: var(--sp-xl);
    border-top: 1px solid var(--hairline);
}

.article-content .sources-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-muted);
    margin-bottom: var(--sp-md);
    letter-spacing: 0.2px;
}

.article-content .sources ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.article-content .sources li {
    font-size: 13px;
    color: var(--ink-muted);
    margin-bottom: var(--sp-xs);
    padding: 0;
}

.article-content .sources li a {
    color: var(--ink);
    border-bottom: 1px solid var(--hairline);
}

.article-content .sources li a:hover { border-color: var(--ink); text-decoration: none; }

/* SIDEBAR */
.article-sidebar {}

.sidebar-widget {
    background: var(--surface-1);
    border: 1px solid var(--hairline);
    border-radius: var(--r-lg);
    padding: var(--sp-lg);
    margin-bottom: var(--sp-lg);
    position: sticky;
    top: 72px;
}

.sidebar-widget-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-muted);
    margin-bottom: var(--sp-md);
    letter-spacing: 0.3px;
    border-bottom: 1px solid var(--hairline-soft);
    padding-bottom: var(--sp-sm);
}

.sidebar-links { list-style: none; margin: 0; padding: 0; }
.sidebar-links li { margin-bottom: var(--sp-xs); }
.sidebar-links a {
    font-size: 14px;
    color: var(--ink-muted);
    line-height: 1.4;
    transition: color 0.15s;
}
.sidebar-links a:hover { color: var(--ink); text-decoration: none; }

/* FORM */
.contact-form {
    background: var(--surface-1);
    border: 1px solid var(--hairline);
    border-radius: var(--r-xl);
    padding: var(--sp-xxl);
}

.form-title {
    font-size: 24px;
    font-weight: 500;
    letter-spacing: -0.4px;
    margin-bottom: var(--sp-xs);
}

.form-subtitle {
    font-size: 15px;
    color: var(--ink-muted);
    margin-bottom: var(--sp-xl);
}

.form-group {
    margin-bottom: var(--sp-lg);
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: var(--sp-xs);
}

.form-control {
    width: 100%;
    background: var(--canvas);
    border: 1px solid var(--hairline);
    border-radius: var(--r-md);
    padding: 10px 14px;
    font-size: 15px;
    font-family: inherit;
    color: var(--ink);
    outline: none;
    transition: border-color 0.15s;
    min-height: 44px;
}

.form-control:focus { border-color: var(--ink); background: var(--surface-1); }

textarea.form-control { min-height: 120px; resize: vertical; }

.btn-primary {
    background: var(--ink);
    color: #ffffff;
    border: none;
    border-radius: var(--r-md);
    padding: 10px 18px;
    font-size: 15px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    min-height: 40px;
    transition: opacity 0.15s;
    display: inline-flex;
    align-items: center;
    gap: var(--sp-xs);
}

.btn-primary:hover { opacity: 0.85; }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.form-message {
    display: none;
    margin-top: var(--sp-md);
    padding: var(--sp-md) var(--sp-lg);
    border-radius: var(--r-md);
    font-size: 14px;
}

.form-message.success {
    background: #f0faf0;
    border: 1px solid #b8ddb8;
    color: #2d6a2d;
}

.form-message.error {
    background: #fdf0f0;
    border: 1px solid #ddb8b8;
    color: #6a2d2d;
}

.form-spinner { display: none; }

/* ABOUT PAGE */
.about-layout {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 64px;
    align-items: start;
}

.about-content h2 {
    font-size: 22px;
    font-weight: 500;
    letter-spacing: -0.3px;
    margin: 32px 0 var(--sp-sm);
}

.about-content p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--ink);
    margin-bottom: var(--sp-md);
}

.about-img {
    border-radius: var(--r-xl);
    overflow: hidden;
    border: 1px solid var(--hairline);
    position: sticky;
    top: 72px;
}

.about-img img { width: 100%; height: 340px; object-fit: cover; }

/* PAGE CONTENT (privacy, terms) */
.page-content {
    max-width: 820px;
    margin: 0 auto;
    padding: 64px 0 96px;
}

.page-content h1 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 500;
    letter-spacing: -1px;
    margin-bottom: var(--sp-xs);
}

.page-content .page-date {
    font-size: 13px;
    color: var(--ink-muted);
    margin-bottom: var(--sp-xxl);
}

.page-content h2 {
    font-size: 22px;
    font-weight: 500;
    letter-spacing: -0.3px;
    margin: 40px 0 var(--sp-sm);
}

.page-content p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--ink);
    margin-bottom: var(--sp-md);
}

.page-content ul {
    margin: var(--sp-md) 0 var(--sp-lg) var(--sp-xl);
    list-style: disc;
}

.page-content li {
    font-size: 16px;
    line-height: 1.7;
    color: var(--ink);
    margin-bottom: var(--sp-xs);
    padding-left: var(--sp-xs);
}

.page-content a { color: var(--ink); border-bottom: 1px solid var(--hairline); }
.page-content a:hover { border-color: var(--ink); text-decoration: none; }

/* FOOTER */
.site-footer {
    background-color: var(--canvas);
    border-top: 1px solid var(--hairline);
    padding: 64px 0 32px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: var(--sp-xxl);
    margin-bottom: 48px;
}

.footer-brand .footer-logo {
    font-size: 15px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: var(--sp-sm);
    display: block;
}

.footer-brand p {
    font-size: 13px;
    color: var(--ink-subtle);
    line-height: 1.5;
    max-width: 260px;
}

.footer-col-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: var(--sp-md);
    letter-spacing: 0.2px;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: var(--sp-xs); }
.footer-links a {
    font-size: 13px;
    color: var(--ink-subtle);
    transition: color 0.15s;
}
.footer-links a:hover { color: var(--ink); text-decoration: none; }

.footer-bottom {
    padding-top: var(--sp-xl);
    border-top: 1px solid var(--hairline-soft);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--sp-md);
}

.footer-copy {
    font-size: 12px;
    color: var(--ink-subtle);
}

.footer-legal {
    display: flex;
    gap: var(--sp-lg);
}

.footer-legal a {
    font-size: 12px;
    color: var(--ink-subtle);
    transition: color 0.15s;
}

.footer-legal a:hover { color: var(--ink); text-decoration: none; }

/* COOKIE BANNER */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--ink);
    color: #ffffff;
    padding: var(--sp-lg) var(--sp-xl);
    display: none;
    z-index: 200;
    border-top: 1px solid #333;
}

.cookie-banner.visible { display: block; }

.cookie-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-xl);
    flex-wrap: wrap;
}

.cookie-text {
    font-size: 14px;
    line-height: 1.5;
    color: #e0ddd8;
    max-width: 680px;
}

.cookie-text a {
    color: #ffffff;
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: var(--sp-sm);
    flex-shrink: 0;
}

.btn-cookie-accept {
    background: #ffffff;
    color: var(--ink);
    border: none;
    border-radius: var(--r-md);
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    min-height: 40px;
}

.btn-cookie-reject {
    background: transparent;
    color: #e0ddd8;
    border: 1px solid #555;
    border-radius: var(--r-md);
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 400;
    font-family: inherit;
    cursor: pointer;
    min-height: 40px;
}

.btn-cookie-accept:hover { opacity: 0.9; }
.btn-cookie-reject:hover { border-color: #888; color: #ffffff; }

/* DISCLAIMER */
.disclaimer {
    background: var(--surface-2);
    border: 1px solid var(--hairline);
    border-radius: var(--r-md);
    padding: var(--sp-md) var(--sp-lg);
    margin: var(--sp-xxl) 0;
}

.disclaimer p {
    font-size: 13px;
    color: var(--ink-muted);
    margin: 0;
    line-height: 1.5;
}

/* BREADCRUMB */
.breadcrumb {
    font-size: 13px;
    color: var(--ink-muted);
    margin-bottom: var(--sp-lg);
    display: flex;
    gap: var(--sp-xs);
    align-items: center;
    flex-wrap: wrap;
}

.breadcrumb a { color: var(--ink-muted); }
.breadcrumb a:hover { color: var(--ink); text-decoration: none; }
.breadcrumb-sep { color: var(--hairline); }

/* LOADING SPINNER */
.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    display: none;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* RESPONSIVE */
@media (max-width: 1024px) {
    .articles-grid, .features-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-top { grid-template-columns: 1fr 1fr; gap: var(--sp-xl); }
    .article-layout { grid-template-columns: 1fr; }
    .about-layout { grid-template-columns: 1fr; }
    .about-img { position: static; }
}

@media (max-width: 768px) {
    .container { padding: 0 var(--sp-lg); }
    .hero { padding: 48px 0 40px; }
    .hero-inner { grid-template-columns: 1fr; gap: var(--sp-xl); }
    .hero-img img { height: 260px; }
    .articles-grid, .features-grid { grid-template-columns: 1fr; }
    .nav-links { display: none; }
    .nav-hamburger { display: flex; }
    .section { padding: 48px 0; }
    .footer-top { grid-template-columns: 1fr; gap: var(--sp-xl); }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .article-featured-img img { height: 240px; }
    .cookie-inner { flex-direction: column; align-items: flex-start; }
    .contact-form { padding: var(--sp-xl); }
}

@media (max-width: 480px) {
    .hero-title { font-size: 32px; }
    .section-title { font-size: 26px; }
    .article-title { font-size: 26px; }
}
