@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 {
    --primary: #f54e00;
    --primary-active: #d04200;
    --canvas: #f7f7f4;
    --canvas-soft: #fafaf7;
    --surface-card: #ffffff;
    --surface-strong: #e6e5e0;
    --hairline: #e6e5e0;
    --hairline-soft: #efeee8;
    --hairline-strong: #cfcdc4;
    --ink: #26251e;
    --body: #5a5852;
    --body-strong: #26251e;
    --muted: #807d72;
    --muted-soft: #a09c92;
    --on-primary: #ffffff;
    --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-weight: 400;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

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

code, pre, .mono {
    font-family: 'JetBrains Mono', monospace;
}

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

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

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

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

.nav-wordmark 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-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: var(--ink);
    border-radius: 2px;
    transition: all 0.2s;
}

/* HERO BAND */
.hero-band {
    padding: 80px 0;
    background: var(--canvas);
    text-align: center;
}

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

.hero-band .hero-sub {
    font-size: 16px;
    color: var(--body);
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.5;
}

.hero-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.badge-pill {
    background: 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;
}

.hero-image {
    margin: 48px auto 0;
    max-width: 960px;
    border-radius: var(--rounded-lg);
    border: 1px solid var(--hairline);
    overflow: hidden;
}

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

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

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

.section-head {
    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: 600px;
    line-height: 1.5;
}

/* CARDS GRID */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 48px;
}

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

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

.feature-card h3 {
    font-size: 18px;
    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;
}

.feature-card .card-icon {
    font-size: 24px;
    margin-bottom: 12px;
}

/* ARTICLE CARD */
.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: 20px 24px 24px;
}

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

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

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

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

/* ARTICLE PAGE */
.article-layout {
    padding: 48px 0 80px;
}

.article-header {
    margin-bottom: 40px;
    border-bottom: 1px solid var(--hairline);
    padding-bottom: 32px;
}

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

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

.article-header .article-meta .badge-pill {
    color: var(--primary);
    background: transparent;
    border: 1px solid var(--primary);
    font-size: 11px;
}

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

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

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

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

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

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

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

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

.article-content a:hover {
    border-color: var(--ink);
}

.article-content .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: 32px 0;
}

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

.article-content figure {
    margin: 32px 0;
}

.article-content figure img {
    width: 100%;
    border-radius: var(--rounded-lg);
    border: 1px solid var(--hairline);
}

.article-content figcaption {
    font-size: 13px;
    color: var(--muted);
    margin-top: 8px;
    line-height: 1.4;
}

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

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

.article-content .data-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--hairline-soft);
    color: var(--body);
}

.article-content .data-table tr:last-child td {
    border-bottom: none;
}

/* DIVIDER */
.divider {
    border: none;
    border-top: 1px solid var(--hairline);
}

/* PAGE CONTENT */
.page-layout {
    padding: 48px 0 80px;
}

.page-header {
    margin-bottom: 40px;
    border-bottom: 1px solid var(--hairline);
    padding-bottom: 24px;
}

.page-header h1 {
    font-size: 36px;
    font-weight: 400;
    color: var(--ink);
    letter-spacing: -0.72px;
    line-height: 1.2;
}

.page-header .updated {
    font-size: 14px;
    color: var(--muted);
    margin-top: 8px;
}

.page-content {
    max-width: 740px;
}

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

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

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

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

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

/* CONTACT FORM */
.contact-form {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-lg);
    padding: 32px;
    max-width: 560px;
    margin-top: 48px;
}

.contact-form h2 {
    font-size: 22px;
    font-weight: 400;
    color: var(--ink);
    letter-spacing: -0.11px;
    margin-bottom: 24px;
}

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

.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: var(--rounded-md);
    padding: 12px 16px;
    font-size: 16px;
    font-family: inherit;
    height: 44px;
    outline: none;
    transition: border-color 0.15s;
}

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

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

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

.btn-primary {
    background: var(--primary);
    color: var(--on-primary);
    border: none;
    border-radius: var(--rounded-md);
    padding: 10px 18px;
    height: 40px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    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-soft);
    border: 1px solid var(--hairline);
    border-left: 3px solid var(--semantic-success);
    border-radius: var(--rounded-md);
    padding: 16px 20px;
    font-size: 15px;
    color: var(--semantic-success);
    margin-top: 16px;
}

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

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

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

.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 ul li {
    margin-bottom: 10px;
}

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

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

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

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

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

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

/* COOKIE BANNER */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--ink);
    color: var(--canvas);
    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(--canvas);
    line-height: 1.5;
    flex: 1;
}

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

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

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

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

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

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

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

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

/* RELATED ARTICLES */
.related-section {
    padding: 48px 0 80px;
    border-top: 1px solid var(--hairline);
}

.related-section h2 {
    font-size: 22px;
    font-weight: 400;
    color: var(--ink);
    letter-spacing: -0.11px;
    margin-bottom: 32px;
}

/* ABOUT PAGE */
.about-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.about-intro-text h2 {
    font-size: 36px;
    font-weight: 400;
    color: var(--ink);
    letter-spacing: -0.72px;
    line-height: 1.2;
    margin-bottom: 20px;
}

.about-intro-text p {
    font-size: 16px;
    color: var(--body);
    line-height: 1.5;
    margin-bottom: 16px;
}

.about-intro-img {
    border-radius: var(--rounded-lg);
    border: 1px solid var(--hairline);
    overflow: hidden;
}

.about-intro-img img {
    width: 100%;
    height: 360px;
    object-fit: cover;
}

/* DISCLAIMER */
.disclaimer-bar {
    background: var(--surface-card);
    border-top: 1px solid var(--hairline);
    padding: 12px 0;
}

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

/* RESPONSIVE */
@media (max-width: 1024px) {
    .hero-band h1 {
        font-size: 56px;
        letter-spacing: -1.5px;
    }
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .about-intro {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .hero-band h1 {
        font-size: 36px;
        letter-spacing: -0.72px;
    }
    .hero-image img {
        height: 240px;
    }
    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--canvas);
        border-bottom: 1px solid var(--hairline);
        flex-direction: column;
        padding: 16px 24px;
        gap: 16px;
        align-items: flex-start;
    }
    .nav-links.open {
        display: flex;
    }
    .nav-hamburger {
        display: flex;
    }
    .site-nav {
        position: relative;
    }
    .cards-grid, .cards-grid-2 {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .section-head {
        font-size: 26px;
    }
    .article-header h1 {
        font-size: 26px;
    }
    .article-hero-img {
        height: 240px;
    }
    .contact-form {
        padding: 24px;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
    .cookie-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .hero-band {
        padding: 48px 0;
    }
    .section {
        padding: 48px 0;
    }
    .hero-band h1 {
        font-size: 32px;
    }
}
