@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:   #ede8e1;
    --hairline:    #d3cec6;
    --ink:         #111111;
    --ink-muted:   #626260;
    --ink-subtle:  #7b7b78;
    --accent:      #ff5600;
    --radius-sm:   6px;
    --radius-md:   8px;
    --radius-lg:   12px;
    --radius-xl:   16px;
    --radius-xxl:  24px;
}

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;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; height: auto; }

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ── NAVIGATION ── */
.site-nav {
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    position: sticky;
    top: 0;
    z-index: 100;
    height: 56px;
    display: flex;
    align-items: center;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

.nav-logo {
    font-size: 17px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.3px;
    text-decoration: none;
}

.nav-logo:hover { text-decoration: none; }

.nav-links {
    display: flex;
    gap: 28px;
    list-style: none;
}

.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: 6px;
    flex-direction: column;
    gap: 4px;
}

.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: all 0.2s;
}

/* ── HERO ── */
.hero {
    padding: 80px 0 64px;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.hero-eyebrow {
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-muted);
    letter-spacing: 0.3px;
    margin-bottom: 16px;
    text-transform: none;
}

.hero-title {
    font-size: 52px;
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -1.4px;
    color: var(--ink);
    margin-bottom: 20px;
}

.hero-body {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.55;
    color: var(--ink-muted);
    margin-bottom: 32px;
    letter-spacing: -0.1px;
}

.hero-image-card {
    background: var(--surface-1);
    border-radius: var(--radius-xl);
    border: 1px solid var(--hairline);
    overflow: hidden;
    aspect-ratio: 4/3;
}

.hero-image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── SECTIONS ── */
.section { padding: 80px 0; }
.section-alt { background: var(--canvas); }

.section-eyebrow {
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-muted);
    margin-bottom: 12px;
}

.section-title {
    font-size: 36px;
    font-weight: 500;
    letter-spacing: -0.8px;
    line-height: 1.15;
    color: var(--ink);
    margin-bottom: 16px;
}

.section-lead {
    font-size: 17px;
    color: var(--ink-muted);
    line-height: 1.55;
    max-width: 600px;
    margin-bottom: 48px;
}

/* ── ARTICLE CARDS ── */
.card-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.15s;
}

.article-card:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.07); text-decoration: none; }

.article-card-img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    background: var(--surface-2);
}

.article-card-body {
    padding: 20px 24px 24px;
}

.article-card-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    color: var(--ink-muted);
    background: var(--canvas);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-sm);
    padding: 2px 8px;
    margin-bottom: 10px;
    letter-spacing: 0.2px;
}

.article-card-title {
    font-size: 17px;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -0.2px;
    color: var(--ink);
    margin-bottom: 8px;
}

.article-card-excerpt {
    font-size: 14px;
    color: var(--ink-muted);
    line-height: 1.55;
    margin-bottom: 16px;
}

.article-card-meta {
    font-size: 12px;
    color: var(--ink-subtle);
}

/* ── ARTICLE PAGE ── */
.article-header {
    padding: 60px 0 40px;
    border-bottom: 1px solid var(--hairline);
    margin-bottom: 48px;
}

.article-header .article-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    color: var(--ink-muted);
    background: var(--surface-1);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-sm);
    padding: 3px 10px;
    margin-bottom: 16px;
}

.article-header h1 {
    font-size: 44px;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -1.2px;
    color: var(--ink);
    max-width: 780px;
    margin-bottom: 20px;
}

.article-header .article-intro {
    font-size: 19px;
    font-weight: 400;
    line-height: 1.55;
    color: var(--ink-muted);
    max-width: 680px;
    margin-bottom: 20px;
    letter-spacing: -0.1px;
}

.article-meta {
    font-size: 13px;
    color: var(--ink-subtle);
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.article-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 64px;
    align-items: start;
    padding-bottom: 80px;
}

.article-content h2 {
    font-size: 26px;
    font-weight: 500;
    letter-spacing: -0.4px;
    margin: 40px 0 14px;
    color: var(--ink);
    line-height: 1.25;
}

.article-content h3 {
    font-size: 20px;
    font-weight: 500;
    letter-spacing: -0.2px;
    margin: 28px 0 10px;
    color: var(--ink);
    line-height: 1.3;
}

.article-content p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--ink);
    margin-bottom: 18px;
}

.article-content ul, .article-content ol {
    padding-left: 22px;
    margin-bottom: 18px;
}

.article-content li {
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink);
    margin-bottom: 6px;
}

.article-content strong { font-weight: 600; }

.article-content .article-img-card {
    background: var(--surface-1);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin: 32px 0;
}

.article-content .article-img-card img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
}

.article-content .article-img-caption {
    padding: 10px 16px;
    font-size: 12px;
    color: var(--ink-subtle);
    background: var(--surface-1);
}

.article-content .info-box {
    background: var(--surface-1);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin: 28px 0;
}

.article-content .info-box h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--ink);
}

.article-content .info-box p,
.article-content .info-box li {
    font-size: 14px;
    color: var(--ink-muted);
    line-height: 1.6;
}

.article-content .data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 14px;
}

.article-content .data-table th {
    background: var(--surface-2);
    font-weight: 500;
    text-align: left;
    padding: 10px 14px;
    border-bottom: 1px solid var(--hairline);
    color: var(--ink);
}

.article-content .data-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--hairline);
    color: var(--ink-muted);
    vertical-align: top;
}

.article-content .data-table tr:last-child td { border-bottom: none; }

/* ── SIDEBAR ── */
.article-sidebar {
    position: sticky;
    top: 72px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-card {
    background: var(--surface-1);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.sidebar-card h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
}

.sidebar-card ul {
    list-style: none;
    padding: 0;
}

.sidebar-card ul li {
    padding: 6px 0;
    border-bottom: 1px solid var(--hairline);
    font-size: 14px;
}

.sidebar-card ul li:last-child { border-bottom: none; }

.sidebar-card ul li a {
    color: var(--ink-muted);
    font-size: 14px;
    line-height: 1.5;
}

.sidebar-card ul li a:hover { color: var(--ink); text-decoration: none; }

.related-articles a {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 0;
    border-bottom: 1px solid var(--hairline);
}

.related-articles a:last-child { border-bottom: none; }

.related-articles .rel-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    line-height: 1.35;
}

.related-articles .rel-tag {
    font-size: 12px;
    color: var(--ink-subtle);
}

/* ── FEATURE STRIP ── */
.feature-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--hairline);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin: 48px 0;
}

.feature-item {
    background: var(--surface-1);
    padding: 28px 24px;
}

.feature-item .fi-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--ink-subtle);
    margin-bottom: 6px;
}

.feature-item .fi-value {
    font-size: 22px;
    font-weight: 500;
    color: var(--ink);
    letter-spacing: -0.4px;
}

/* ── FORMS ── */
.contact-form-wrap {
    background: var(--surface-1);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-xl);
    padding: 40px;
    max-width: 640px;
}

.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-1);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    font-size: 15px;
    font-family: inherit;
    color: var(--ink);
    outline: none;
    transition: border-color 0.15s;
    min-height: 44px;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--ink);
}

.form-group textarea { min-height: 110px; resize: vertical; }

.btn-primary {
    background: var(--ink);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    padding: 10px 22px;
    font-size: 15px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: opacity 0.15s;
    min-height: 40px;
}

.btn-primary:hover { opacity: 0.85; }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.form-status {
    display: none;
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
}

.form-status.success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.form-status.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* ── COOKIE BANNER ── */
#cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 680px;
    background: var(--ink);
    color: #fff;
    border-radius: var(--radius-xl);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    z-index: 9999;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}

.cookie-text {
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255,255,255,0.85);
    flex: 1;
}

.cookie-text a {
    color: #fff;
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.btn-cookie-accept {
    background: #fff;
    color: var(--ink);
    border: none;
    border-radius: var(--radius-md);
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    min-height: 36px;
}

.btn-cookie-reject {
    background: transparent;
    color: rgba(255,255,255,0.75);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: var(--radius-md);
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    min-height: 36px;
}

.btn-cookie-reject:hover { color: #fff; border-color: rgba(255,255,255,0.6); }

/* ── BREADCRUMB ── */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--ink-subtle);
    padding: 16px 0 0;
}

.breadcrumb a { color: var(--ink-subtle); }
.breadcrumb a:hover { color: var(--ink); text-decoration: none; }
.breadcrumb span { color: var(--hairline); }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
    padding: 56px 0 40px;
    border-bottom: 1px solid var(--hairline);
    margin-bottom: 48px;
}

.page-hero h1 {
    font-size: 40px;
    font-weight: 500;
    letter-spacing: -0.8px;
    line-height: 1.15;
    color: var(--ink);
    margin-bottom: 12px;
}

.page-hero p {
    font-size: 17px;
    color: var(--ink-muted);
    line-height: 1.55;
    max-width: 600px;
}

/* ── STATIC PAGES ── */
.static-content {
    max-width: 740px;
    padding: 0 0 80px;
}

.static-content h2 {
    font-size: 22px;
    font-weight: 500;
    margin: 36px 0 12px;
    color: var(--ink);
    letter-spacing: -0.2px;
}

.static-content h3 {
    font-size: 17px;
    font-weight: 500;
    margin: 24px 0 8px;
    color: var(--ink);
}

.static-content p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--ink-muted);
    margin-bottom: 14px;
}

.static-content ul {
    padding-left: 20px;
    margin-bottom: 14px;
}

.static-content ul li {
    font-size: 15px;
    line-height: 1.65;
    color: var(--ink-muted);
    margin-bottom: 5px;
}

/* ── FOOTER ── */
.site-footer {
    background: var(--canvas);
    border-top: 1px solid var(--hairline);
    padding: 48px 0 32px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-brand p {
    font-size: 13px;
    color: var(--ink-subtle);
    line-height: 1.55;
    margin-top: 10px;
    max-width: 280px;
}

.footer-col h5 {
    font-size: 13px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 12px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    font-size: 13px;
    color: var(--ink-subtle);
    transition: color 0.15s;
}

.footer-col ul li a:hover { color: var(--ink); text-decoration: none; }

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--hairline);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    font-size: 12px;
    color: var(--ink-subtle);
}

.footer-bottom a {
    color: var(--ink-subtle);
    text-decoration: underline;
}

/* ── UTILITY ── */
.divider {
    height: 1px;
    background: var(--hairline);
    margin: 48px 0;
}

.text-muted { color: var(--ink-muted); }
.mt-0 { margin-top: 0 !important; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .card-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .feature-strip { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .container { padding: 0 20px; }
    .nav-inner { padding: 0 20px; }

    .nav-links { display: none; flex-direction: column; position: absolute; top: 56px; left: 0; right: 0; background: var(--canvas); border-bottom: 1px solid var(--hairline); padding: 16px 20px; gap: 14px; }
    .nav-links.open { display: flex; }
    .nav-hamburger { display: flex; }

    .hero-inner { grid-template-columns: 1fr; gap: 32px; }
    .hero-title { font-size: 36px; letter-spacing: -0.8px; }
    .hero-body { font-size: 16px; }

    .card-grid { grid-template-columns: 1fr; }

    .article-header h1 { font-size: 30px; }
    .article-layout { grid-template-columns: 1fr; }
    .article-sidebar { position: static; }

    .section-title { font-size: 26px; }

    .footer-inner { grid-template-columns: 1fr; gap: 24px; }

    #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 h1 { font-size: 28px; }
    .contact-form-wrap { padding: 24px 20px; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 28px; }
    .article-header h1 { font-size: 24px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
}
