@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;
    --on-primary: #ffffff;
    --ink: #26251e;
    --body: #5a5852;
    --body-strong: #26251e;
    --muted: #807d72;
    --muted-soft: #a09c92;
    --hairline: #e6e5e0;
    --hairline-soft: #efeee8;
    --hairline-strong: #cfcdc4;
    --semantic-success: #1f8a65;
    --semantic-error: #cf2d56;
}

html {
    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;
}

/* TOP 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;
}

.site-nav .container {
    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.3px;
}

.nav-logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    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: 4px;
    color: var(--ink);
}

.nav-hamburger svg {
    width: 24px;
    height: 24px;
}

.nav-mobile-menu {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    padding: 16px 24px;
    z-index: 99;
}

.nav-mobile-menu.open {
    display: block;
}

.nav-mobile-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.nav-mobile-menu a {
    font-size: 16px;
    font-weight: 500;
    color: var(--body);
}

/* HERO */
.hero {
    padding: 80px 0;
    border-bottom: 1px solid var(--hairline);
}

.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: 9999px;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 72px;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -2.16px;
    color: var(--ink);
    max-width: 800px;
    margin-bottom: 20px;
}

.hero-sub {
    font-size: 18px;
    color: var(--body);
    line-height: 1.5;
    max-width: 560px;
    margin-bottom: 40px;
}

.hero-image-wrap {
    margin-top: 48px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--hairline);
    background: var(--surface-card);
}

.hero-image-wrap img {
    width: 100%;
    height: 420px;
    object-fit: cover;
}

.hero-image-caption {
    font-size: 13px;
    color: var(--muted);
    padding: 12px 16px;
    border-top: 1px solid var(--hairline);
}

/* SECTION LABELS */
.section-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 16px;
}

/* SECTION GENERAL */
.section {
    padding: 80px 0;
    border-bottom: 1px solid var(--hairline);
}

.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;
}

/* ARTICLE GRID */
.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: 12px;
    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 {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 8px;
}

.article-card-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--ink);
    margin-bottom: 8px;
}

.article-card-excerpt {
    font-size: 14px;
    color: var(--body);
    line-height: 1.5;
    margin-bottom: 16px;
}

.article-card-meta {
    font-size: 13px;
    color: var(--muted);
}

/* INFO GRID (3 columns) */
.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.info-card {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: 12px;
    padding: 24px;
}

.info-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 12px;
}

.info-card p {
    font-size: 15px;
    color: var(--body);
    line-height: 1.6;
}

/* TWO-COL SPLIT */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.two-col-text h2 {
    font-size: 36px;
    font-weight: 400;
    letter-spacing: -0.72px;
    color: var(--ink);
    line-height: 1.2;
    margin-bottom: 16px;
}

.two-col-text p {
    font-size: 16px;
    color: var(--body);
    line-height: 1.6;
    margin-bottom: 12px;
}

.two-col-img {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--hairline);
}

.two-col-img img {
    width: 100%;
    height: 340px;
    object-fit: cover;
}

/* ARTICLE PAGE */
.article-header {
    padding: 64px 0 48px;
    border-bottom: 1px solid var(--hairline);
}

.article-header .article-tag {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 16px;
}

.article-header h1 {
    font-size: 48px;
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -1.2px;
    color: var(--ink);
    max-width: 760px;
    margin-bottom: 16px;
}

.article-header .article-meta {
    font-size: 14px;
    color: var(--muted);
}

.article-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 64px;
    padding: 64px 0;
}

.article-content h2 {
    font-size: 28px;
    font-weight: 400;
    letter-spacing: -0.4px;
    color: var(--ink);
    line-height: 1.3;
    margin: 48px 0 16px;
}

.article-content h2:first-child {
    margin-top: 0;
}

.article-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--ink);
    margin: 32px 0 12px;
}

.article-content p {
    font-size: 16px;
    color: var(--body);
    line-height: 1.7;
    margin-bottom: 20px;
}

.article-content ul, .article-content ol {
    margin: 0 0 20px 24px;
    color: var(--body);
    font-size: 16px;
    line-height: 1.7;
}

.article-content li {
    margin-bottom: 6px;
}

.article-content .article-image {
    margin: 32px 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--hairline);
}

.article-content .article-image img {
    width: 100%;
    height: 360px;
    object-fit: cover;
}

.article-content .article-image figcaption {
    font-size: 13px;
    color: var(--muted);
    padding: 10px 16px;
    border-top: 1px solid var(--hairline);
}

.article-content .callout {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-left: 3px solid var(--ink);
    border-radius: 8px;
    padding: 20px 24px;
    margin: 32px 0;
    font-size: 15px;
    color: var(--body-strong);
    line-height: 1.6;
}

.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;
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid var(--hairline-strong);
}

.article-content .data-table td {
    color: var(--body);
    padding: 12px 16px;
    border-bottom: 1px solid var(--hairline-soft);
}

.article-content .data-table tr:last-child td {
    border-bottom: none;
}

.article-refs {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--hairline);
}

.article-refs h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 12px;
}

.article-refs ul {
    list-style: none;
    padding: 0;
}

.article-refs li {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 8px;
    padding-left: 16px;
    position: relative;
}

.article-refs li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--muted-soft);
}

.article-refs a {
    color: var(--body);
    border-bottom: 1px solid var(--hairline);
}

.article-refs a:hover {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.article-sidebar {
    position: sticky;
    top: 80px;
}

.sidebar-section {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.sidebar-section h4 {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 16px;
}

.sidebar-section ul {
    list-style: none;
    padding: 0;
}

.sidebar-section li {
    font-size: 14px;
    color: var(--body);
    padding: 8px 0;
    border-bottom: 1px solid var(--hairline-soft);
    line-height: 1.4;
}

.sidebar-section li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-section li a {
    color: var(--body);
}

.sidebar-section li a:hover {
    color: var(--primary);
}

/* BREADCRUMB */
.breadcrumb {
    padding: 16px 0;
    font-size: 13px;
    color: var(--muted);
}

.breadcrumb a {
    color: var(--muted);
}

.breadcrumb a:hover {
    color: var(--ink);
}

.breadcrumb span {
    margin: 0 6px;
    color: var(--muted-soft);
}

/* CONTACT FORM */
.contact-section {
    padding: 80px 0;
}

.contact-wrap {
    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: 8px;
}

.contact-form {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: 12px;
    padding: 32px;
}

.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: 8px;
    padding: 12px 16px;
    height: 44px;
    font-size: 16px;
    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(--semantic-error);
}

.form-group .field-error {
    font-size: 13px;
    color: var(--semantic-error);
    margin-top: 4px;
    display: none;
}

.form-group .field-error.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: 8px;
    border: none;
    cursor: pointer;
    line-height: 1;
    transition: background 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    background: var(--primary-active);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-message {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    display: none;
}

.form-message.success {
    background: #e8f5f0;
    color: var(--semantic-success);
    border: 1px solid #b8ddd0;
    display: block;
}

/* PAGE HEADER */
.page-header {
    padding: 64px 0 48px;
    border-bottom: 1px solid var(--hairline);
}

.page-header h1 {
    font-size: 48px;
    font-weight: 400;
    letter-spacing: -1.2px;
    color: var(--ink);
    line-height: 1.15;
    margin-bottom: 12px;
}

.page-header p {
    font-size: 18px;
    color: var(--body);
    max-width: 560px;
}

/* STATIC PAGE CONTENT */
.static-content {
    padding: 64px 0;
    max-width: 760px;
}

.static-content h2 {
    font-size: 26px;
    font-weight: 400;
    letter-spacing: -0.3px;
    color: var(--ink);
    margin: 48px 0 12px;
}

.static-content h2:first-child {
    margin-top: 0;
}

.static-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    margin: 32px 0 10px;
}

.static-content p {
    font-size: 16px;
    color: var(--body);
    line-height: 1.7;
    margin-bottom: 16px;
}

.static-content ul, .static-content ol {
    margin: 0 0 16px 24px;
    color: var(--body);
    font-size: 16px;
    line-height: 1.7;
}

.static-content li {
    margin-bottom: 6px;
}

.static-content a {
    color: var(--ink);
    border-bottom: 1px solid var(--hairline);
}

.static-content a:hover {
    color: var(--primary);
}

/* 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: 240px;
}

.footer-col h5 {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    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);
    line-height: 1.4;
}

.footer-col a:hover {
    color: var(--ink);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--hairline);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--muted);
}

.footer-bottom a {
    font-size: 13px;
    color: var(--muted);
}

.footer-bottom a:hover {
    color: var(--ink);
}

/* COOKIE BANNER */
#cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: 24px;
    max-width: 600px;
    margin: 0 auto;
    left: 50%;
    transform: translateX(-50%);
    background: var(--surface-card);
    border: 1px solid var(--hairline-strong);
    border-radius: 12px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: 0 4px 16px rgba(38,37,30,0.08);
    z-index: 1000;
}

#cookie-banner p {
    font-size: 14px;
    color: var(--body);
    line-height: 1.5;
}

#cookie-banner a {
    color: var(--ink);
    border-bottom: 1px solid var(--hairline);
}

.cookie-buttons {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.btn-cookie-accept {
    background: var(--ink);
    color: var(--canvas);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    height: 36px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.btn-cookie-reject {
    background: transparent;
    color: var(--body);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--hairline-strong);
    cursor: pointer;
    white-space: nowrap;
}

.btn-cookie-reject:hover {
    background: var(--surface-strong);
}

/* ABOUT PAGE */
.about-intro {
    padding: 64px 0;
    border-bottom: 1px solid var(--hairline);
}

.about-intro .two-col-text h2 {
    font-size: 36px;
}

/* UTILITY */
.text-muted {
    color: var(--muted);
}

.updated-date {
    font-size: 13px;
    color: var(--muted);
    margin-top: 4px;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 56px;
        letter-spacing: -1.4px;
    }

    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .article-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .article-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 40px;
        letter-spacing: -1px;
    }

    .section-title {
        font-size: 28px;
    }

    .page-header h1 {
        font-size: 36px;
    }

    .article-header h1 {
        font-size: 32px;
    }

    .nav-links {
        display: none;
    }

    .nav-hamburger {
        display: block;
    }

    .two-col {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .contact-wrap {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .hero h1 {
        font-size: 32px;
        letter-spacing: -0.8px;
    }

    .hero-image-wrap img {
        height: 240px;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    #cookie-banner {
        flex-direction: column;
        align-items: flex-start;
        bottom: 16px;
        left: 16px;
        right: 16px;
        transform: none;
    }

    .static-content h2 {
        font-size: 22px;
    }
}
