@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500&display=swap');

:root {
    --canvas: #f5f1ec;
    --surface-1: #ffffff;
    --surface-2: #ede8e0;
    --ink: #111111;
    --ink-muted: #626260;
    --ink-subtle: #7b7b78;
    --ink-tertiary: #9c9fa5;
    --hairline: #d3cec6;
    --hairline-soft: #e0dbd3;
    --accent: #ff5600;
    --inverse-canvas: #000000;
    --inverse-ink: #ffffff;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    background-color: var(--canvas);
    color: var(--ink);
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
    font-weight: 400;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
    color: var(--ink);
    line-height: 1.2;
}

a {
    color: var(--ink);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--accent);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

.site-nav {
    background-color: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    height: 56px;
    position: sticky;
    top: 0;
    z-index: 200;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-logo {
    font-size: 16px;
    font-weight: 500;
    color: var(--ink);
    letter-spacing: -0.2px;
}

.nav-logo .accent {
    color: var(--accent);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    font-size: 14px;
    font-weight: 400;
    color: var(--ink-muted);
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--ink);
}

.nav-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    color: var(--ink);
    border-radius: 6px;
}

.nav-hamburger:hover {
    background: var(--surface-2);
}

.hero {
    padding: 80px 0 72px;
}

.hero-eyebrow {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-muted);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-eyebrow::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 2px;
    background: var(--accent);
}

.hero h1 {
    font-size: 56px;
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -1.4px;
    max-width: 820px;
    margin-bottom: 28px;
}

.hero-desc {
    font-size: 20px;
    line-height: 1.6;
    color: var(--ink-muted);
    max-width: 620px;
    font-weight: 400;
    letter-spacing: -0.1px;
}

.section {
    padding: 80px 0;
}

.section-header {
    margin-bottom: 48px;
}

.section-eyebrow {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-subtle);
    margin-bottom: 14px;
    display: block;
}

.section-title {
    font-size: 40px;
    font-weight: 500;
    letter-spacing: -0.8px;
    line-height: 1.12;
    max-width: 600px;
}

.section-divider {
    border: none;
    border-top: 1px solid var(--hairline);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.article-card {
    background: var(--surface-1);
    border-radius: 12px;
    border: 1px solid var(--hairline);
    overflow: hidden;
    transition: border-color 0.2s, transform 0.2s;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    border-color: var(--ink-muted);
    transform: translateY(-2px);
}

.card-thumb {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--surface-2);
}

.card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.article-card:hover .card-thumb img {
    transform: scale(1.03);
}

.card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-category {
    font-size: 12px;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 10px;
    text-transform: none;
}

.card-title {
    font-size: 20px;
    font-weight: 500;
    letter-spacing: -0.3px;
    line-height: 1.3;
    margin-bottom: 12px;
    color: var(--ink);
}

.card-excerpt {
    font-size: 14px;
    color: var(--ink-muted);
    line-height: 1.65;
    margin-bottom: 20px;
    flex: 1;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--hairline-soft);
}

.card-date {
    font-size: 12px;
    color: var(--ink-tertiary);
}

.card-read-more {
    font-size: 13px;
    font-weight: 500;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}

.card-read-more:hover {
    color: var(--accent);
}

.card-read-more svg {
    transition: transform 0.2s;
}

.card-read-more:hover svg {
    transform: translateX(3px);
}

.hero-image-wrap {
    margin-top: 64px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--hairline);
    background: var(--surface-2);
}

.hero-image-wrap img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
}

.contact-section {
    padding: 80px 0;
    background: var(--surface-1);
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-info h2 {
    font-size: 36px;
    letter-spacing: -0.6px;
    margin-bottom: 16px;
}

.contact-info p {
    font-size: 16px;
    color: var(--ink-muted);
    line-height: 1.7;
    margin-bottom: 32px;
}

.contact-detail {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-detail-item {
    font-size: 14px;
    color: var(--ink-muted);
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-detail-item svg {
    color: var(--accent);
    flex-shrink: 0;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    background: var(--canvas);
    border: 1px solid var(--hairline);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 15px;
    color: var(--ink);
    font-family: inherit;
    transition: border-color 0.2s, background 0.2s;
    min-height: 44px;
    line-height: 1.5;
}

.form-control:focus {
    outline: none;
    border-color: var(--ink);
    background: var(--surface-1);
}

.form-control::placeholder {
    color: var(--ink-tertiary);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.btn-primary {
    background: var(--ink);
    color: var(--inverse-ink);
    border: none;
    border-radius: 8px;
    padding: 11px 20px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    min-height: 44px;
    transition: opacity 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    opacity: 0.82;
}

.btn-primary:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.form-message {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-top: 14px;
    display: none;
}

.form-message.success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.form-disclaimer {
    font-size: 12px;
    color: var(--ink-tertiary);
    margin-top: 12px;
    line-height: 1.5;
}

.site-footer {
    background: var(--canvas);
    border-top: 1px solid var(--hairline);
    padding: 64px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand .nav-logo {
    display: inline-block;
    margin-bottom: 14px;
}

.footer-brand p {
    font-size: 14px;
    color: var(--ink-subtle);
    line-height: 1.65;
    max-width: 290px;
}

.footer-col h6 {
    font-size: 13px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 16px;
    letter-spacing: 0;
}

.footer-col ul li {
    margin-bottom: 9px;
}

.footer-col ul li a {
    font-size: 13px;
    color: var(--ink-subtle);
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: var(--ink);
}

.footer-bottom {
    border-top: 1px solid var(--hairline-soft);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-bottom p {
    font-size: 12px;
    color: var(--ink-tertiary);
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--inverse-canvas);
    z-index: 500;
    display: none;
}

.cookie-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cookie-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.5;
}

.cookie-text a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-btns {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.btn-cookie-accept {
    background: var(--surface-1);
    color: var(--ink);
    border: none;
    border-radius: 8px;
    padding: 9px 18px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
}

.btn-cookie-reject {
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    padding: 9px 18px;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    transition: color 0.2s, border-color 0.2s;
}

.btn-cookie-reject:hover {
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.5);
}

.article-hero {
    padding: 56px 0 48px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--ink-subtle);
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--ink-subtle);
}

.breadcrumb a:hover {
    color: var(--ink);
}

.breadcrumb .sep {
    color: var(--hairline);
}

.article-category-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    color: var(--accent);
    background: rgba(255, 86, 0, 0.08);
    border-radius: 4px;
    padding: 3px 8px;
    margin-bottom: 16px;
}

.article-hero h1 {
    font-size: 48px;
    font-weight: 500;
    letter-spacing: -1.0px;
    line-height: 1.08;
    max-width: 800px;
    margin-bottom: 20px;
}

.article-intro {
    font-size: 20px;
    line-height: 1.65;
    color: var(--ink-muted);
    max-width: 700px;
    margin-bottom: 24px;
    letter-spacing: -0.1px;
}

.article-meta-row {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 13px;
    color: var(--ink-tertiary);
    flex-wrap: wrap;
}

.article-meta-row span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-divider {
    border: none;
    border-top: 1px solid var(--hairline);
    margin: 48px 0;
}

.article-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 64px;
    padding-bottom: 80px;
    align-items: start;
}

.article-body h2 {
    font-size: 30px;
    font-weight: 500;
    letter-spacing: -0.5px;
    margin-top: 44px;
    margin-bottom: 18px;
    line-height: 1.15;
}

.article-body h3 {
    font-size: 22px;
    font-weight: 500;
    letter-spacing: -0.3px;
    margin-top: 32px;
    margin-bottom: 14px;
}

.article-body p {
    font-size: 16px;
    line-height: 1.75;
    color: var(--ink);
    margin-bottom: 20px;
}

.article-body ul,
.article-body ol {
    padding-left: 22px;
    margin-bottom: 20px;
    list-style: initial;
}

.article-body ol {
    list-style: decimal;
}

.article-body li {
    font-size: 16px;
    line-height: 1.7;
    color: var(--ink);
    margin-bottom: 8px;
}

.article-figure {
    margin: 40px 0;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--hairline);
}

.article-figure img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    display: block;
}

.article-figure figcaption {
    font-size: 12px;
    color: var(--ink-subtle);
    padding: 10px 16px;
    background: var(--surface-1);
    border-top: 1px solid var(--hairline-soft);
    line-height: 1.5;
}

.info-box {
    background: var(--surface-1);
    border: 1px solid var(--hairline);
    border-left: 3px solid var(--accent);
    border-radius: 8px;
    padding: 20px 22px;
    margin: 32px 0;
}

.info-box h4 {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 8px;
}

.info-box p {
    font-size: 14px;
    color: var(--ink-muted);
    margin: 0;
    line-height: 1.65;
}

.external-ref {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: var(--ink-muted);
    border-bottom: 1px solid var(--hairline);
    padding-bottom: 1px;
}

.external-ref:hover {
    color: var(--ink);
    border-color: var(--ink-muted);
}

.article-sidebar {
    position: sticky;
    top: 72px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-card {
    background: var(--surface-1);
    border-radius: 12px;
    border: 1px solid var(--hairline);
    padding: 22px;
}

.sidebar-card h5 {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 14px;
    color: var(--ink);
}

.sidebar-card ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-card ul li a {
    font-size: 14px;
    color: var(--ink-muted);
    line-height: 1.5;
    display: block;
    transition: color 0.2s;
}

.sidebar-card ul li a:hover {
    color: var(--ink);
}

.sidebar-refs ul li {
    border-bottom: 1px solid var(--hairline-soft);
    padding-bottom: 8px;
}

.sidebar-refs ul li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.related-section {
    padding: 64px 0;
    border-top: 1px solid var(--hairline);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 32px;
}

.page-hero {
    padding: 56px 0 40px;
    border-bottom: 1px solid var(--hairline);
}

.page-hero h1 {
    font-size: 44px;
    letter-spacing: -0.8px;
    max-width: 700px;
    margin-bottom: 16px;
}

.page-intro {
    font-size: 18px;
    color: var(--ink-muted);
    max-width: 600px;
    line-height: 1.65;
}

.page-content {
    max-width: 760px;
    padding: 48px 0 80px;
}

.page-content h2 {
    font-size: 26px;
    font-weight: 500;
    margin-top: 40px;
    margin-bottom: 16px;
    letter-spacing: -0.3px;
}

.page-content h3 {
    font-size: 20px;
    font-weight: 500;
    margin-top: 28px;
    margin-bottom: 12px;
}

.page-content p {
    font-size: 15px;
    line-height: 1.75;
    color: var(--ink);
    margin-bottom: 16px;
}

.page-content ul,
.page-content ol {
    padding-left: 22px;
    margin-bottom: 16px;
    list-style: initial;
}

.page-content ol {
    list-style: decimal;
}

.page-content li {
    font-size: 15px;
    line-height: 1.7;
    color: var(--ink);
    margin-bottom: 8px;
}

.page-content a {
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.page-content a:hover {
    color: var(--accent);
}

.about-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 80px;
    padding: 56px 0 80px;
    align-items: start;
}

.about-sidebar {
    background: var(--surface-1);
    border-radius: 12px;
    border: 1px solid var(--hairline);
    padding: 28px;
    position: sticky;
    top: 72px;
}

.about-sidebar h4 {
    font-size: 17px;
    margin-bottom: 16px;
}

.about-sidebar ul li {
    border-bottom: 1px solid var(--hairline-soft);
    padding: 10px 0;
}

.about-sidebar ul li:last-child {
    border-bottom: none;
}

.about-sidebar ul li a {
    font-size: 14px;
    color: var(--ink-muted);
    transition: color 0.2s;
}

.about-sidebar ul li a:hover {
    color: var(--ink);
}

@media (max-width: 1024px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
    .article-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .article-sidebar {
        position: static;
    }
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .about-sidebar {
        position: static;
    }
    .hero h1 {
        font-size: 44px;
    }
    .article-hero h1 {
        font-size: 38px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    .hero {
        padding: 48px 0 40px;
    }
    .hero h1 {
        font-size: 32px;
        letter-spacing: -0.5px;
    }
    .hero-desc {
        font-size: 17px;
    }
    .section {
        padding: 56px 0;
    }
    .section-title {
        font-size: 28px;
    }
    .articles-grid {
        grid-template-columns: 1fr;
    }
    .related-grid {
        grid-template-columns: 1fr;
    }
    .nav-links {
        display: none;
        position: absolute;
        top: 56px;
        left: 0;
        right: 0;
        background: var(--canvas);
        border-bottom: 1px solid var(--hairline);
        padding: 16px 20px;
        flex-direction: column;
        gap: 0;
        z-index: 199;
    }
    .nav-links.open {
        display: flex;
    }
    .nav-links a {
        padding: 12px 0;
        border-bottom: 1px solid var(--hairline-soft);
        display: block;
    }
    .nav-links li:last-child a {
        border-bottom: none;
    }
    .nav-hamburger {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
    .cookie-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 18px 20px;
    }
    .article-hero h1 {
        font-size: 28px;
        letter-spacing: -0.3px;
    }
    .article-intro {
        font-size: 17px;
    }
    .page-hero h1 {
        font-size: 30px;
    }
    .hero-image-wrap {
        margin-top: 40px;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .article-body h2 {
        font-size: 24px;
    }
}
