@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 {
    font-family: 'Inter', system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif;
    background-color: var(--canvas);
    color: var(--body);
    line-height: 1.5;
    font-weight: 400;
}

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

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);
    height: 64px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.nav-logo {
    font-family: 'Inter', sans-serif;
    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: 32px;
    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,
.nav-links a.active {
    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);
    transition: all 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: 16px;
}

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

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

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

.hero-band .badge-pill {
    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 12px;
    margin-bottom: 24px;
}

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

.hero-band .hero-sub {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--body);
    max-width: 560px;
    margin-bottom: 48px;
}

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

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

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

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

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

.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: 640px;
    margin-bottom: 48px;
}

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

/* CARDS */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

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

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

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

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

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

/* ARTICLE CARDS */
.article-card {
    background-color: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

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

.article-card .card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

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

.article-card h3 {
    font-size: 20px;
    font-weight: 400;
    letter-spacing: -0.2px;
    color: var(--ink);
    line-height: 1.3;
    margin-bottom: 12px;
}

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

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

.read-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    margin-top: 16px;
    transition: color 0.15s;
}

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

.read-link::after {
    content: '→';
}

/* INFO TABLE */
.info-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.info-table th {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid var(--hairline);
    background-color: var(--canvas-soft);
}

.info-table td {
    padding: 12px 16px;
    color: var(--body);
    border-bottom: 1px solid var(--hairline-soft);
    vertical-align: top;
}

.info-table tr:last-child td {
    border-bottom: none;
}

.info-table td:first-child {
    font-weight: 500;
    color: var(--ink);
    white-space: nowrap;
}

.table-wrap {
    background-color: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-lg);
    overflow: hidden;
}

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

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

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

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

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

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

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

.article-header .article-meta .sep {
    color: var(--hairline-strong);
}

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

.article-body {
    max-width: 760px;
}

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

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

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

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

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

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

.article-body .note-box {
    background-color: var(--surface-card);
    border: 1px solid var(--hairline);
    border-left: 3px solid var(--primary);
    border-radius: var(--rounded-md);
    padding: 16px 20px;
    margin: 24px 0;
}

.article-body .note-box p {
    font-size: 14px;
    color: var(--body);
    margin-bottom: 0;
}

.article-body .note-box strong {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    display: block;
    margin-bottom: 8px;
}

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

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

.sources-section {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--hairline);
}

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

.sources-section ul {
    list-style: none;
    padding: 0;
}

.sources-section li {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 8px;
    padding-left: 16px;
    position: relative;
}

.sources-section li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--hairline-strong);
}

.sources-section a {
    color: var(--body);
    border-bottom: 1px solid var(--hairline);
    transition: color 0.15s;
}

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

/* CONTACT FORM */
.form-section {
    background-color: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-lg);
    padding: 40px;
}

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

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

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

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

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

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--muted-soft);
}

.form-group .error-msg {
    font-size: 12px;
    color: var(--semantic-error);
    margin-top: 6px;
    display: none;
}

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

.form-group.has-error .error-msg {
    display: block;
}

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

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

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

.form-confirmation {
    background-color: var(--canvas-soft);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-md);
    padding: 16px 20px;
    font-size: 14px;
    color: var(--semantic-success);
    display: none;
    margin-top: 16px;
}

/* COOKIE BANNER */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--ink);
    color: var(--canvas);
    padding: 20px 24px;
    z-index: 1000;
    display: none;
    border-top: 1px solid rgba(255,255,255,0.1);
}

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

.cookie-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.cookie-text {
    font-size: 14px;
    color: rgba(247, 247, 244, 0.8);
    flex: 1;
}

.cookie-text a {
    color: var(--canvas);
    border-bottom: 1px solid rgba(247, 247, 244, 0.4);
}

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

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

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

.btn-cookie-reject {
    background-color: transparent;
    color: var(--canvas);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 20px;
    height: 36px;
    border-radius: var(--rounded-md);
    border: 1px solid rgba(247, 247, 244, 0.3);
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.15s;
}

.btn-cookie-reject:hover {
    border-color: rgba(247, 247, 244, 0.6);
}

/* 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: 40px;
    margin-bottom: 48px;
}

.footer-brand .footer-logo {
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 12px;
    display: block;
}

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

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

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

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 10px;
}

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

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

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

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

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

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

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

/* PAGE HEADER */
.page-header {
    padding: 64px 0 48px;
    border-bottom: 1px solid var(--hairline-soft);
}

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

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

/* STATIC PAGE BODY */
.static-body {
    max-width: 760px;
    padding: 64px 0;
}

.static-body h2 {
    font-size: 26px;
    font-weight: 400;
    letter-spacing: -0.3px;
    color: var(--ink);
    margin-top: 48px;
    margin-bottom: 16px;
}

.static-body h3 {
    font-size: 20px;
    font-weight: 500;
    color: var(--ink);
    margin-top: 32px;
    margin-bottom: 12px;
}

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

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

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

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

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

.updated-note {
    font-size: 13px;
    color: var(--muted);
    margin-top: 8px;
}

/* ARTICLES INDEX */
.articles-index {
    padding: 80px 0;
}

/* SIDEBAR LAYOUT */
.two-col {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
    align-items: start;
}

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

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

.sidebar-card ul {
    list-style: none;
    padding: 0;
}

.sidebar-card li {
    padding: 10px 0;
    border-bottom: 1px solid var(--hairline-soft);
    font-size: 14px;
}

.sidebar-card li:last-child {
    border-bottom: none;
}

.sidebar-card a {
    color: var(--body);
    transition: color 0.15s;
}

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

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

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

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

    .two-col {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-band h1 {
        font-size: 32px;
        letter-spacing: -0.8px;
    }

    .hero-band {
        padding: 48px 0;
    }

    .section {
        padding: 48px 0;
    }

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

    .nav-links {
        display: none;
    }

    .nav-hamburger {
        display: flex;
    }

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

    .cards-grid-2 {
        grid-template-columns: 1fr;
    }

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

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

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

    .form-section {
        padding: 24px;
    }

    .cookie-inner {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .static-body h2 {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

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

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