@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;
    --success: #1f8a65;
    --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-size: 16px;
    font-weight: 400;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* TOP NAV */
.top-nav {
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    height: 64px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.top-nav .container {
    display: flex;
    align-items: center;
    height: 100%;
    justify-content: space-between;
}

.nav-brand {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.3px;
    flex-shrink: 0;
}

.nav-brand 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 {
    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: var(--ink);
    border-radius: 2px;
    transition: all 0.2s;
}

.nav-mobile {
    display: none;
    background: 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);
}

/* HERO */
.hero-band {
    padding: 80px 0;
    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);
    padding: 4px 10px;
    border-radius: var(--rounded-pill);
    margin-bottom: 24px;
}

.hero-band h1 {
    font-size: 72px;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -2.16px;
    color: var(--ink);
    max-width: 800px;
    margin-bottom: 24px;
}

.hero-band .hero-sub {
    font-size: 18px;
    color: var(--body);
    max-width: 560px;
    line-height: 1.5;
    margin-bottom: 48px;
}

.hero-image-wrap {
    border-radius: var(--rounded-lg);
    overflow: hidden;
    border: 1px solid var(--hairline);
    background: var(--surface-card);
    margin-top: 48px;
}

.hero-image-wrap img {
    width: 100%;
    height: 420px;
    object-fit: cover;
}

/* SECTION HEADINGS */
.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);
    max-width: 560px;
    line-height: 1.5;
}

/* CONTENT SECTIONS */
.section {
    padding: 80px 0;
}

.section + .section {
    border-top: 1px solid var(--hairline-soft);
}

/* ARTICLE CARDS GRID */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.article-card {
    background: 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;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    background: var(--surface-strong);
    padding: 4px 10px;
    border-radius: var(--rounded-pill);
    margin-bottom: 12px;
}

.article-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.4;
    margin-bottom: 12px;
}

.article-card p {
    font-size: 14px;
    color: var(--body);
    line-height: 1.5;
    margin-bottom: 16px;
}

.article-card-meta {
    font-size: 13px;
    color: var(--muted);
}

/* INFO BLOCKS */
.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.info-card {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-lg);
    padding: 24px;
}

.info-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.4;
    margin-bottom: 12px;
}

.info-card p {
    font-size: 15px;
    color: var(--body);
    line-height: 1.5;
}

/* TWO COL LAYOUT */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    margin-top: 48px;
}

.two-col.reverse {
    direction: rtl;
}

.two-col.reverse > * {
    direction: ltr;
}

.two-col img {
    border-radius: var(--rounded-lg);
    border: 1px solid var(--hairline);
    width: 100%;
    height: 340px;
    object-fit: cover;
}

.two-col-text h2 {
    font-size: 26px;
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: -0.325px;
    color: var(--ink);
    margin-bottom: 16px;
}

.two-col-text p {
    font-size: 16px;
    color: var(--body);
    line-height: 1.5;
    margin-bottom: 12px;
}

/* ARTICLE PAGE */
.article-page {
    padding: 64px 0 80px;
}

.article-header {
    max-width: 760px;
    margin: 0 auto 48px;
}

.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);
    padding: 4px 10px;
    border-radius: var(--rounded-pill);
    margin-bottom: 20px;
}

.article-header h1 {
    font-size: 48px;
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -1.2px;
    color: var(--ink);
    margin-bottom: 20px;
}

.article-header .article-meta {
    font-size: 14px;
    color: var(--muted);
}

.article-hero-img {
    max-width: 960px;
    margin: 0 auto 48px;
    border-radius: var(--rounded-lg);
    overflow: hidden;
    border: 1px solid var(--hairline);
}

.article-hero-img img {
    width: 100%;
    height: 460px;
    object-fit: cover;
}

.article-body {
    max-width: 760px;
    margin: 0 auto;
}

.article-body h2 {
    font-size: 26px;
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: -0.325px;
    color: var(--ink);
    margin: 40px 0 16px;
}

.article-body h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--ink);
    margin: 28px 0 12px;
}

.article-body p {
    font-size: 16px;
    color: var(--body);
    line-height: 1.6;
    margin-bottom: 16px;
}

.article-body ul,
.article-body ol {
    margin: 0 0 16px 24px;
}

.article-body li {
    font-size: 16px;
    color: var(--body);
    line-height: 1.6;
    margin-bottom: 6px;
}

.article-body a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.info-box {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-left: 3px solid var(--primary);
    border-radius: var(--rounded-md);
    padding: 20px 24px;
    margin: 24px 0;
}

.info-box p {
    margin: 0;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 15px;
}

.data-table th {
    background: var(--surface-strong);
    color: var(--ink);
    font-weight: 600;
    text-align: left;
    padding: 10px 16px;
    border: 1px solid var(--hairline);
}

.data-table td {
    padding: 10px 16px;
    border: 1px solid var(--hairline);
    color: var(--body);
    background: var(--surface-card);
}

.data-table tr:nth-child(even) td {
    background: var(--canvas-soft);
}

/* FORM */
.form-section {
    padding: 80px 0;
    border-top: 1px solid var(--hairline-soft);
}

.form-wrap {
    max-width: 600px;
    margin: 48px auto 0;
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-lg);
    padding: 40px;
}

.form-group {
    margin-bottom: 24px;
}

.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: var(--surface-card);
    border: 1px solid var(--hairline-strong);
    border-radius: var(--rounded-md);
    padding: 12px 16px;
    height: 44px;
    font-size: 15px;
    color: var(--ink);
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s;
}

.form-group textarea {
    height: 120px;
    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(--error);
}

.form-error-msg {
    font-size: 13px;
    color: var(--error);
    margin-top: 4px;
    display: none;
}

.form-error-msg.visible {
    display: block;
}

.btn-primary {
    background: var(--primary);
    color: var(--on-primary);
    font-size: 14px;
    font-weight: 500;
    padding: 10px 18px;
    height: 40px;
    border-radius: var(--rounded-md);
    border: none;
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.15s;
}

.btn-primary:hover {
    background: var(--primary-active);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-success {
    display: none;
    background: var(--canvas);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-md);
    padding: 16px 20px;
    font-size: 15px;
    color: var(--success);
    margin-top: 16px;
    text-align: center;
}

.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: 48px;
    margin-bottom: 48px;
}

.footer-brand {
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 12px;
}

.footer-brand span {
    color: var(--primary);
}

.footer-desc {
    font-size: 14px;
    color: var(--body);
    line-height: 1.5;
}

.footer-col h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col a {
    font-size: 14px;
    color: var(--body);
    transition: color 0.15s;
}

.footer-col 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: 12px;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--muted);
}

/* COOKIE BANNER */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface-card);
    border-top: 1px solid var(--hairline);
    padding: 20px 24px;
    z-index: 999;
    display: none;
}

.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: var(--body);
    flex: 1;
    min-width: 240px;
}

.cookie-text a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.btn-accept {
    background: var(--ink);
    color: var(--canvas);
    font-size: 14px;
    font-weight: 500;
    padding: 10px 18px;
    height: 40px;
    border-radius: var(--rounded-md);
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.btn-reject {
    background: var(--surface-card);
    color: var(--ink);
    font-size: 14px;
    font-weight: 500;
    padding: 10px 18px;
    height: 40px;
    border-radius: var(--rounded-md);
    border: 1px solid var(--hairline-strong);
    cursor: pointer;
    font-family: inherit;
}

/* PAGE INNER */
.page-inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 64px 0 80px;
}

.page-inner h1 {
    font-size: 48px;
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -1.2px;
    color: var(--ink);
    margin-bottom: 8px;
}

.page-inner .page-updated {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 48px;
}

.page-inner h2 {
    font-size: 22px;
    font-weight: 400;
    letter-spacing: -0.11px;
    color: var(--ink);
    margin: 40px 0 12px;
}

.page-inner p {
    font-size: 16px;
    color: var(--body);
    line-height: 1.6;
    margin-bottom: 14px;
}

.page-inner ul {
    margin: 0 0 14px 24px;
}

.page-inner li {
    font-size: 16px;
    color: var(--body);
    line-height: 1.6;
    margin-bottom: 6px;
}

.page-inner a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* BREADCRUMB */
.breadcrumb {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.breadcrumb a {
    color: var(--muted);
    transition: color 0.15s;
}

.breadcrumb a:hover {
    color: var(--ink);
}

.breadcrumb-sep {
    color: var(--muted-soft);
}

/* RELATED ARTICLES */
.related-section {
    border-top: 1px solid var(--hairline-soft);
    padding: 64px 0 80px;
}

/* SCHEMA IMAGES */
.schema-img-wrap {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-lg);
    overflow: hidden;
    margin: 32px 0;
}

.schema-img-wrap img {
    width: 100%;
    height: auto;
}

.img-caption {
    font-size: 13px;
    color: var(--muted);
    padding: 12px 16px;
    border-top: 1px solid var(--hairline-soft);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .hero-band h1 {
        font-size: 56px;
        letter-spacing: -1.4px;
    }

    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .two-col {
        grid-template-columns: 1fr;
    }

    .two-col.reverse {
        direction: ltr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-hamburger {
        display: flex;
    }

    .hero-band h1 {
        font-size: 36px;
        letter-spacing: -0.9px;
    }

    .hero-band .hero-sub {
        font-size: 16px;
    }

    .hero-image-wrap img {
        height: 240px;
    }

    .section-title {
        font-size: 28px;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .article-header h1 {
        font-size: 32px;
        letter-spacing: -0.6px;
    }

    .article-hero-img img {
        height: 260px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .two-col img {
        height: 240px;
    }

    .form-wrap {
        padding: 24px;
    }

    .page-inner h1 {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .cookie-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}
