@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;
    --rounded-xs: 4px;
    --rounded-sm: 6px;
    --rounded-md: 8px;
    --rounded-lg: 12px;
    --rounded-xl: 16px;
    --rounded-pill: 9999px;
}

html {
    font-size: 16px;
    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 {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* NAV */
.site-nav {
    background-color: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    position: sticky;
    top: 0;
    z-index: 100;
    height: 64px;
    display: flex;
    align-items: center;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

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

.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;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}

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

.nav-mobile {
    display: none;
    background-color: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    padding: 16px 24px;
}

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

.nav-mobile ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nav-mobile a {
    font-size: 15px;
    font-weight: 500;
    color: var(--body);
}

/* HERO */
.hero {
    padding: 80px 0;
    border-bottom: 1px solid var(--hairline);
}

.hero-label {
    display: inline-flex;
    align-items: center;
    background-color: var(--surface-strong);
    color: var(--ink);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    border-radius: var(--rounded-pill);
    padding: 4px 10px;
    margin-bottom: 24px;
}

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

.hero-desc {
    font-size: 18px;
    line-height: 1.6;
    color: var(--body);
    max-width: 600px;
    margin-bottom: 40px;
}

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

/* SECTION TITLES */
.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-desc {
    font-size: 16px;
    line-height: 1.5;
    color: var(--body);
    max-width: 600px;
}

/* ARTICLES GRID */
.articles-section {
    padding: 80px 0;
    border-bottom: 1px solid var(--hairline);
}

.articles-header {
    margin-bottom: 48px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

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

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

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

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

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

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

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

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

.article-card-link:hover {
    color: var(--primary);
    border-color: var(--primary);
}

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

/* INFO BLOCKS */
.info-section {
    padding: 80px 0;
    border-bottom: 1px solid var(--hairline);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.info-card {
    background-color: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-lg);
    padding: 24px;
}

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

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

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

/* FEATURED ARTICLE */
.featured-section {
    padding: 80px 0;
    border-bottom: 1px solid var(--hairline);
}

.featured-article {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.featured-article-img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: var(--rounded-lg);
    border: 1px solid var(--hairline);
}

.featured-article-content .section-label {
    margin-bottom: 16px;
}

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

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

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

.article-read-link:hover {
    color: var(--primary);
    border-color: var(--primary);
}

/* CONTACT FORM */
.contact-section {
    padding: 80px 0;
    border-bottom: 1px solid var(--hairline);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    margin-top: 48px;
}

.contact-info h3 {
    font-size: 22px;
    font-weight: 400;
    letter-spacing: -0.325px;
    color: var(--ink);
    margin-bottom: 12px;
}

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

.contact-detail {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 6px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

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

.contact-form input,
.contact-form textarea {
    width: 100%;
    background-color: var(--surface-card);
    color: var(--ink);
    border: 1px solid var(--hairline-strong);
    border-radius: var(--rounded-md);
    padding: 12px 16px;
    font-size: 15px;
    font-family: inherit;
    line-height: 1.5;
    transition: border-color 0.15s;
    outline: none;
}

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

.contact-form input {
    height: 44px;
}

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

.btn-submit {
    background-color: var(--ink);
    color: var(--canvas);
    border: none;
    border-radius: var(--rounded-md);
    padding: 12px 20px;
    height: 44px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: background-color 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

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

.form-message {
    display: none;
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: var(--rounded-md);
    font-size: 14px;
    font-weight: 500;
}

.form-message.success {
    background-color: #e6f4f0;
    color: var(--semantic-success);
    border: 1px solid #b3dfd4;
}

.form-loading {
    display: none;
    margin-top: 12px;
    font-size: 14px;
    color: var(--muted);
}

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

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

.footer-brand-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 8px;
}

.footer-brand-name span {
    color: var(--primary);
}

.footer-brand-desc {
    font-size: 14px;
    line-height: 1.6;
    color: var(--body);
    max-width: 260px;
}

.footer-col-title {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

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

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

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

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

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

.footer-bottom-links a {
    font-size: 13px;
    color: var(--muted);
    transition: color 0.15s;
}

.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: 720px;
    background-color: var(--ink);
    color: var(--canvas);
    border-radius: var(--rounded-lg);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    z-index: 1000;
    box-shadow: 0 4px 24px rgba(38, 37, 30, 0.15);
}

.cookie-banner.hidden {
    display: none;
}

.cookie-text {
    font-size: 14px;
    line-height: 1.5;
    color: var(--canvas-soft);
    flex: 1;
}

.cookie-text a {
    color: var(--canvas);
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

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

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

.btn-cookie-reject {
    background-color: transparent;
    color: var(--muted-soft);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--rounded-md);
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
}

.btn-cookie-reject:hover {
    border-color: rgba(255,255,255,0.5);
    color: var(--canvas);
}

/* ARTICLE PAGE */
.article-page {
    padding: 64px 0 80px;
}

.article-page-inner {
    max-width: 760px;
    margin: 0 auto;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 32px;
    font-size: 13px;
    color: var(--muted);
}

.breadcrumb a {
    color: var(--muted);
    transition: color 0.15s;
}

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

.breadcrumb-sep {
    color: var(--hairline-strong);
}

.article-header {
    margin-bottom: 40px;
}

.article-header .article-card-tag {
    margin-bottom: 16px;
}

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

.article-header .article-intro {
    font-size: 18px;
    line-height: 1.6;
    color: var(--body);
    margin-bottom: 20px;
}

.article-meta {
    font-size: 13px;
    color: var(--muted);
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.article-hero-img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: var(--rounded-lg);
    border: 1px solid var(--hairline);
    margin-bottom: 48px;
}

.article-body h2 {
    font-size: 26px;
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: -0.325px;
    color: var(--ink);
    margin-top: 48px;
    margin-bottom: 16px;
}

.article-body h3 {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--ink);
    margin-top: 32px;
    margin-bottom: 12px;
}

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

.article-body ul,
.article-body ol {
    padding-left: 24px;
    margin-bottom: 20px;
}

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

.article-body strong {
    font-weight: 600;
    color: var(--ink);
}

.article-body a {
    color: var(--ink);
    border-bottom: 1px solid var(--hairline-strong);
    transition: color 0.15s, border-color 0.15s;
}

.article-body a:hover {
    color: var(--primary);
    border-color: var(--primary);
}

.info-box {
    background-color: var(--surface-card);
    border: 1px solid var(--hairline);
    border-left: 3px solid var(--ink);
    border-radius: var(--rounded-md);
    padding: 20px 24px;
    margin: 32px 0;
}

.info-box p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--body);
    margin-bottom: 0;
}

.article-img-inline {
    width: 100%;
    border-radius: var(--rounded-lg);
    border: 1px solid var(--hairline);
    margin: 32px 0 8px;
}

.img-caption {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 32px;
    text-align: center;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 32px 0;
    font-size: 14px;
}

.data-table th {
    background-color: var(--surface-strong);
    color: var(--ink);
    font-weight: 600;
    text-align: left;
    padding: 12px 16px;
    border: 1px solid var(--hairline);
}

.data-table td {
    padding: 12px 16px;
    border: 1px solid var(--hairline);
    color: var(--body);
    background-color: var(--surface-card);
}

.data-table tr:nth-child(even) td {
    background-color: var(--canvas-soft);
}

.related-articles {
    margin-top: 64px;
    padding-top: 48px;
    border-top: 1px solid var(--hairline);
}

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

.related-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.related-card {
    background-color: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-lg);
    padding: 20px;
    transition: border-color 0.15s;
}

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

.related-card h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 6px;
}

.related-card p {
    font-size: 13px;
    color: var(--body);
    margin-bottom: 0;
}

/* PAGE (about/privacy/terms) */
.page-content {
    padding: 64px 0 80px;
    max-width: 760px;
    margin: 0 auto;
}

.page-content h1 {
    font-size: 42px;
    font-weight: 400;
    letter-spacing: -1px;
    line-height: 1.15;
    color: var(--ink);
    margin-bottom: 8px;
}

.page-content .page-updated {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 40px;
}

.page-content h2 {
    font-size: 24px;
    font-weight: 400;
    letter-spacing: -0.325px;
    color: var(--ink);
    margin-top: 40px;
    margin-bottom: 12px;
}

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

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

.page-content ul, .page-content ol {
    padding-left: 24px;
    margin-bottom: 16px;
}

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

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

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

/* RESPONSIVE */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 48px;
    }

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

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

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

    .featured-article {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .featured-article-img {
        height: 280px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-hamburger {
        display: flex;
    }

    .hero {
        padding: 56px 0;
    }

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

    .hero-desc {
        font-size: 16px;
    }

    .articles-section,
    .info-section,
    .featured-section,
    .contact-section {
        padding: 56px 0;
    }

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

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

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

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

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

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

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

    .cookie-banner {
        flex-direction: column;
        align-items: flex-start;
        bottom: 0;
        left: 0;
        right: 0;
        transform: none;
        width: 100%;
        border-radius: var(--rounded-lg) var(--rounded-lg) 0 0;
    }

    .page-content h1 {
        font-size: 30px;
    }
}

@media (max-width: 640px) {
    .hero h1 {
        font-size: 28px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}
