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

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

:root {
    --canvas: #f7f7f4;
    --canvas-soft: #fafaf7;
    --surface-card: #ffffff;
    --surface-strong: #e6e5e0;
    --primary: #f54e00;
    --primary-active: #d04200;
    --ink: #26251e;
    --body: #5a5852;
    --body-strong: #26251e;
    --muted: #807d72;
    --muted-soft: #a09c92;
    --on-primary: #ffffff;
    --hairline: #e6e5e0;
    --hairline-soft: #efeee8;
    --hairline-strong: #cfcdc4;
    --semantic-success: #1f8a65;
    --semantic-error: #cf2d56;
}

html {
    scroll-behavior: smooth;
}

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

a {
    color: var(--ink);
    text-decoration: none;
}

a:hover {
    color: var(--primary);
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── TOP NAV ── */
.top-nav {
    background: var(--canvas);
    height: 64px;
    border-bottom: 1px solid var(--hairline);
    position: sticky;
    top: 0;
    z-index: 100;
}

.top-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-logo {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.3px;
}

.nav-logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--body);
    line-height: 1.4;
    transition: color 0.15s;
}

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

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

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

.mobile-menu {
    display: none;
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
}

.mobile-menu ul {
    list-style: none;
    padding: 16px 24px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-menu ul li a {
    display: block;
    padding: 10px 0;
    font-size: 15px;
    font-weight: 500;
    color: var(--body);
    border-bottom: 1px solid var(--hairline-soft);
}

.mobile-menu.open {
    display: block;
}

/* ── HERO ── */
.hero-band {
    padding: 80px 0 64px;
    background: var(--canvas);
}

.hero-band .hero-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    background: var(--surface-strong);
    border-radius: 9999px;
    padding: 4px 10px;
    margin-bottom: 20px;
}

.hero-band h1 {
    font-size: 72px;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -2.16px;
    color: var(--ink);
    max-width: 780px;
    margin-bottom: 20px;
}

.hero-band .hero-sub {
    font-size: 16px;
    color: var(--body);
    line-height: 1.5;
    max-width: 540px;
    margin-bottom: 36px;
}

.hero-band .hero-meta {
    font-size: 13px;
    color: var(--muted);
}

.hero-image {
    margin-top: 48px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--hairline);
    max-height: 480px;
}

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

/* ── SECTION ── */
.section {
    padding: 80px 0;
}

.section-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 12px;
}

.section-title {
    font-size: 36px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.72px;
    color: var(--ink);
    margin-bottom: 16px;
}

.section-sub {
    font-size: 16px;
    color: var(--body);
    line-height: 1.5;
    max-width: 560px;
}

.section-divider {
    border: none;
    border-top: 1px solid var(--hairline);
    margin: 0;
}

/* ── ARTICLE GRID ── */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

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

.article-card:hover {
    border-color: var(--hairline-strong);
}

.article-card-image {
    height: 200px;
    overflow: hidden;
}

.article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.article-card:hover .article-card-image img {
    transform: scale(1.02);
}

.article-card-body {
    padding: 24px;
}

.article-card-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    background: var(--surface-strong);
    border-radius: 9999px;
    padding: 4px 10px;
    margin-bottom: 12px;
}

.article-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.4;
    margin-bottom: 10px;
}

.article-card p {
    font-size: 14px;
    color: var(--body);
    line-height: 1.5;
    margin-bottom: 16px;
}

.article-card-date {
    font-size: 13px;
    color: var(--muted);
}

/* ── FEATURE CARDS ── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

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

.feature-card-icon {
    font-size: 28px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.4;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 14px;
    color: var(--body);
    line-height: 1.5;
}

/* ── ARTICLE PAGE ── */
.article-header {
    padding: 64px 0 48px;
    border-bottom: 1px solid var(--hairline);
}

.article-header .breadcrumb {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 16px;
}

.article-header .breadcrumb a {
    color: var(--muted);
}

.article-header .breadcrumb a:hover {
    color: var(--ink);
}

.article-header h1 {
    font-size: 48px;
    font-weight: 400;
    letter-spacing: -1px;
    color: var(--ink);
    line-height: 1.1;
    max-width: 760px;
    margin-bottom: 20px;
}

.article-header .article-meta {
    display: flex;
    gap: 20px;
    align-items: center;
    font-size: 13px;
    color: var(--muted);
}

.article-header .article-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    background: var(--surface-strong);
    border-radius: 9999px;
    padding: 4px 10px;
}

.article-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 48px;
    padding: 48px 0 80px;
}

.article-content {
    max-width: 680px;
}

.article-content img {
    width: 100%;
    border-radius: 8px;
    margin: 24px 0;
    border: 1px solid var(--hairline);
}

.article-content h2 {
    font-size: 26px;
    font-weight: 400;
    letter-spacing: -0.325px;
    color: var(--ink);
    line-height: 1.25;
    margin: 32px 0 14px;
}

.article-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.4;
    margin: 24px 0 10px;
}

.article-content p {
    font-size: 16px;
    color: var(--body);
    line-height: 1.6;
    margin-bottom: 16px;
}

.article-content ul, .article-content ol {
    margin: 0 0 16px 24px;
}

.article-content li {
    font-size: 16px;
    color: var(--body);
    line-height: 1.6;
    margin-bottom: 6px;
}

.article-content a {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-color: rgba(245, 78, 0, 0.3);
}

.article-content a:hover {
    text-decoration-color: var(--primary);
}

.article-content .info-box {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: 8px;
    padding: 20px 24px;
    margin: 24px 0;
}

.article-content .info-box h4 {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 10px;
}

.article-content .info-box p {
    font-size: 14px;
    margin-bottom: 0;
}

.article-content .caption {
    font-size: 13px;
    color: var(--muted);
    text-align: center;
    margin-top: -16px;
    margin-bottom: 24px;
}

.article-sidebar {
    position: sticky;
    top: 84px;
    align-self: start;
}

.sidebar-widget {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.sidebar-widget h4 {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 16px;
}

.sidebar-widget ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-widget ul li a {
    font-size: 14px;
    color: var(--body);
    line-height: 1.4;
}

.sidebar-widget ul li a:hover {
    color: var(--primary);
}

.sidebar-toc a {
    display: block;
    font-size: 14px;
    color: var(--body);
    padding: 6px 0;
    border-bottom: 1px solid var(--hairline-soft);
    line-height: 1.4;
}

.sidebar-toc a:last-child {
    border-bottom: none;
}

.sidebar-toc a:hover {
    color: var(--primary);
}

/* ── RELATED ARTICLES ── */
.related-articles {
    border-top: 1px solid var(--hairline);
    padding-top: 48px;
    margin-top: 48px;
}

.related-articles h3 {
    font-size: 22px;
    font-weight: 400;
    letter-spacing: -0.11px;
    color: var(--ink);
    margin-bottom: 24px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.related-card {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.related-card span {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
}

.related-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.4;
}

.related-card p {
    font-size: 13px;
    color: var(--body);
    line-height: 1.5;
}

/* ── ABOUT / STATIC PAGES ── */
.page-header {
    padding: 64px 0 48px;
    border-bottom: 1px solid var(--hairline);
}

.page-header h1 {
    font-size: 48px;
    font-weight: 400;
    letter-spacing: -1px;
    color: var(--ink);
    line-height: 1.1;
    margin-bottom: 16px;
}

.page-header p {
    font-size: 16px;
    color: var(--body);
    max-width: 560px;
    line-height: 1.5;
}

.page-content {
    padding: 48px 0 80px;
    max-width: 760px;
}

.page-content h2 {
    font-size: 26px;
    font-weight: 400;
    letter-spacing: -0.325px;
    color: var(--ink);
    margin: 32px 0 14px;
}

.page-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    margin: 24px 0 10px;
}

.page-content p {
    font-size: 16px;
    color: var(--body);
    line-height: 1.6;
    margin-bottom: 16px;
}

.page-content ul, .page-content ol {
    margin: 0 0 16px 24px;
}

.page-content li {
    font-size: 16px;
    color: var(--body);
    line-height: 1.6;
    margin-bottom: 6px;
}

.page-content a {
    color: var(--primary);
}

/* ── TEAM / ABOUT CARDS ── */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 32px 0;
}

.about-card {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: 12px;
    padding: 24px;
}

.about-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 8px;
}

.about-card p {
    font-size: 14px;
    color: var(--body);
    line-height: 1.5;
    margin-bottom: 0;
}

/* ── CONTACT FORM ── */
.contact-section {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: 12px;
    padding: 32px;
    max-width: 540px;
}

.contact-section h3 {
    font-size: 22px;
    font-weight: 400;
    letter-spacing: -0.11px;
    color: var(--ink);
    margin-bottom: 8px;
}

.contact-section p {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 16px;
}

.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-card);
    color: var(--ink);
    border: 1px solid var(--hairline-strong);
    border-radius: 8px;
    padding: 12px 16px;
    height: 44px;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color 0.15s;
}

.form-group textarea {
    height: auto;
    min-height: 100px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--ink);
}

.form-group input.error,
.form-group textarea.error {
    border-color: var(--semantic-error);
}

.form-group .field-error {
    font-size: 13px;
    color: var(--semantic-error);
    margin-top: 4px;
    display: none;
}

.form-group .field-error.visible {
    display: block;
}

.btn-primary {
    background: var(--primary);
    color: var(--on-primary);
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    height: 40px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    background: var(--primary-active);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: default;
}

.form-success {
    display: none;
    background: #edfaf4;
    border: 1px solid #b2e6cf;
    border-radius: 8px;
    padding: 14px 18px;
    font-size: 14px;
    color: var(--semantic-success);
    margin-top: 16px;
}

.form-success.visible {
    display: block;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}

.footer-brand p {
    font-size: 14px;
    color: var(--body);
    line-height: 1.5;
    margin-top: 12px;
    max-width: 240px;
}

.footer-col h5 {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 14px;
    letter-spacing: 0.3px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-col ul li a {
    font-size: 14px;
    color: var(--body);
    transition: color 0.15s;
}

.footer-col ul li a:hover {
    color: var(--ink);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--hairline);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 14px;
    color: var(--muted);
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    font-size: 14px;
    color: var(--muted);
}

.footer-bottom-links a:hover {
    color: var(--ink);
}

/* ── COOKIE BANNER ── */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 680px;
    background: var(--ink);
    color: var(--canvas);
    border-radius: 12px;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: space-between;
    z-index: 200;
    box-shadow: 0 4px 24px rgba(38,37,30,0.18);
}

.cookie-banner p {
    font-size: 14px;
    line-height: 1.5;
    color: rgba(247,247,244,0.85);
    flex: 1;
}

.cookie-banner p a {
    color: var(--canvas);
    text-decoration: underline;
    text-decoration-color: rgba(247,247,244,0.4);
}

.cookie-banner-btns {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.btn-cookie-accept {
    background: var(--primary);
    color: var(--on-primary);
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
}

.btn-cookie-reject {
    background: transparent;
    color: var(--canvas);
    border: 1px solid rgba(247,247,244,0.3);
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
}

/* ── DISCLAIMER ── */
.disclaimer-bar {
    background: var(--surface-strong);
    padding: 10px 0;
    text-align: center;
}

.disclaimer-bar p {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.5;
}

/* ── SPLIT GRID ── */
.split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .hero-band h1 {
        font-size: 56px;
        letter-spacing: -1.5px;
    }

    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .article-layout {
        grid-template-columns: 1fr;
    }

    .article-sidebar {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .split-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }

    .nav-hamburger {
        display: flex;
    }

    .hero-band h1 {
        font-size: 36px;
        letter-spacing: -0.8px;
    }

    .hero-image img {
        height: 240px;
    }

    .section-title {
        font-size: 28px;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .cookie-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .article-header h1 {
        font-size: 32px;
    }

    .page-header h1 {
        font-size: 32px;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-band h1 {
        font-size: 30px;
    }
}
