@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;
    -webkit-font-smoothing: antialiased;
}

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

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

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

/* TYPOGRAPHY */
.display-mega {
    font-size: 72px;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -2.16px;
    color: var(--ink);
}

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

.display-md {
    font-size: 26px;
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: -0.325px;
    color: var(--ink);
}

.display-sm {
    font-size: 22px;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: -0.11px;
    color: var(--ink);
}

.title-md {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--ink);
}

.title-sm {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--ink);
}

.body-md {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--body);
}

.body-sm {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--body);
}

.caption {
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--muted);
}

.caption-uppercase {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
}

/* NAVIGATION */
.top-nav {
    background-color: var(--canvas);
    height: 64px;
    border-bottom: 1px solid var(--hairline);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.nav-logo {
    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);
    transition: color 0.15s;
}

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

.nav-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}

.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
}

.nav-mobile {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    padding: 16px 24px;
    z-index: 99;
}

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

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

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

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

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

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

.hero-band p {
    font-size: 18px;
    color: var(--body);
    line-height: 1.6;
    max-width: 580px;
    margin-bottom: 32px;
}

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

/* CARDS */
.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-head {
    font-size: 36px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.72px;
    color: var(--ink);
    margin-bottom: 12px;
}

.section-sub {
    font-size: 16px;
    color: var(--body);
    max-width: 560px;
    margin-bottom: 48px;
}

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

.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;
}

.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: 3px 8px;
    border-radius: var(--rounded-xs);
    margin-bottom: 12px;
}

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

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

.article-card-meta {
    font-size: 12px;
    color: var(--muted);
    border-top: 1px solid var(--hairline-soft);
    padding-top: 12px;
}

/* FEATURE BANDS */
.feature-band {
    padding: 80px 0;
    background: var(--surface-card);
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
}

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

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

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

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

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

/* DIVIDER */
.divider {
    height: 1px;
    background: var(--hairline);
}

/* CONTACT FORM */
.contact-section {
    padding: 80px 0;
    background: var(--canvas);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.contact-info h2 {
    font-size: 36px;
    font-weight: 400;
    letter-spacing: -0.72px;
    color: var(--ink);
    margin-bottom: 16px;
}

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

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

.contact-detail strong {
    color: var(--body-strong);
}

.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;
}

.btn-submit {
    background: var(--ink);
    color: var(--canvas);
    border: none;
    border-radius: var(--rounded-md);
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    height: 44px;
    transition: opacity 0.15s;
}

.btn-submit:hover {
    opacity: 0.85;
}

.btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

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

.form-message.success {
    background: #e6f4ef;
    color: var(--semantic-success);
    border: 1px solid #b3ddd0;
    display: block;
}

.form-message.error {
    background: #fce8ec;
    color: var(--semantic-error);
    border: 1px solid #f0b3c0;
    display: block;
}

/* COOKIE BANNER */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: 24px;
    max-width: 480px;
    background: var(--surface-card);
    border: 1px solid var(--hairline-strong);
    border-radius: var(--rounded-lg);
    padding: 20px 24px;
    z-index: 999;
    box-shadow: none;
    display: none;
}

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

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

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

.cookie-buttons {
    display: flex;
    gap: 8px;
}

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

.btn-cookie-reject {
    background: var(--surface-card);
    color: var(--ink);
    border: 1px solid var(--hairline-strong);
    border-radius: var(--rounded-md);
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    height: 40px;
}

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

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

.footer-col h5 {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    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 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 24px;
    border-top: 1px solid var(--hairline);
    font-size: 13px;
    color: var(--muted);
}

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

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

/* ARTICLE PAGE */
.article-header {
    padding: 60px 0 40px;
    border-bottom: 1px solid var(--hairline);
}

.article-header .breadcrumb {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 20px;
}

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

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

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

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

.article-body {
    padding: 48px 0 80px;
}

.article-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 64px;
    align-items: start;
}

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

.article-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--ink);
    margin: 32px 0 12px;
    line-height: 1.35;
}

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

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

.article-content figcaption {
    font-size: 13px;
    color: var(--muted);
    margin-top: -24px;
    margin-bottom: 32px;
    padding: 0 4px;
}

.article-content ul,
.article-content ol {
    margin: 0 0 20px 20px;
}

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

.article-sidebar {
    position: sticky;
    top: 80px;
}

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

.sidebar-card h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 12px;
}

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

.sidebar-card li {
    font-size: 13px;
    color: var(--body);
    padding: 6px 0;
    border-bottom: 1px solid var(--hairline-soft);
}

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

.sidebar-card a {
    color: var(--body);
    font-size: 13px;
    line-height: 1.4;
}

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

/* PAGE */
.page-header {
    padding: 60px 0 40px;
    border-bottom: 1px solid var(--hairline);
}

.page-header h1 {
    font-size: 48px;
    font-weight: 400;
    letter-spacing: -1.2px;
    color: var(--ink);
    margin-bottom: 12px;
}

.page-header p {
    font-size: 16px;
    color: var(--body);
}

.page-body {
    padding: 48px 0 80px;
    max-width: 760px;
}

.page-body h2 {
    font-size: 26px;
    font-weight: 400;
    letter-spacing: -0.325px;
    color: var(--ink);
    margin: 40px 0 16px;
}

.page-body h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--ink);
    margin: 28px 0 12px;
}

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

.page-body ul,
.page-body ol {
    margin: 0 0 16px 20px;
}

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

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

/* ABOUT */
.about-hero {
    padding: 60px 0 48px;
    border-bottom: 1px solid var(--hairline);
}

.about-hero h1 {
    font-size: 48px;
    font-weight: 400;
    letter-spacing: -1.2px;
    color: var(--ink);
    margin-bottom: 16px;
    max-width: 700px;
}

.about-hero p {
    font-size: 18px;
    color: var(--body);
    line-height: 1.6;
    max-width: 600px;
}

.about-body {
    padding: 60px 0 80px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
    margin-bottom: 64px;
}

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

.about-grid-text h2 {
    font-size: 26px;
    font-weight: 400;
    letter-spacing: -0.325px;
    color: var(--ink);
    margin-bottom: 16px;
}

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

/* HERO IMAGE */
.hero-image-wrap {
    margin-top: 48px;
    border-radius: var(--rounded-lg);
    overflow: hidden;
    border: 1px solid var(--hairline);
}

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

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

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

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

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

    .footer-brand {
        grid-column: 1 / -1;
    }

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

    .article-layout {
        grid-template-columns: 1fr;
    }

    .article-sidebar {
        position: static;
    }

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

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

    .nav-hamburger {
        display: flex;
    }

    .hero-band h1,
    .display-mega {
        font-size: 36px;
        letter-spacing: -1px;
    }

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

    .section {
        padding: 48px 0;
    }

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

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

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

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .article-header h1,
    .page-header h1,
    .about-hero h1 {
        font-size: 32px;
        letter-spacing: -0.8px;
    }

    .hero-image-wrap img {
        height: 260px;
    }

    .cookie-banner {
        left: 16px;
        right: 16px;
        bottom: 16px;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

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