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

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 */
.top-nav {
    background-color: 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;
    justify-content: space-between;
    height: 100%;
}

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

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

.nav-menu {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.nav-menu a {
    font-size: 14px;
    font-weight: 500;
    color: var(--body);
    line-height: 1.4;
    transition: color 0.15s;
}

.nav-menu 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;
    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: 12px;
}

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

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

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

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

.hero-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
}

.badge-pill {
    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;
    border-radius: var(--rounded-pill);
    padding: 4px 10px;
}

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

.section-alt {
    background-color: var(--canvas-soft);
}

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

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

.section-subheading {
    font-size: 26px;
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: -0.325px;
    color: var(--ink);
    margin-bottom: 12px;
}

.section-body {
    font-size: 16px;
    line-height: 1.5;
    color: var(--body);
    max-width: 680px;
    margin-bottom: 48px;
}

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

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

.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;
    line-height: 1.5;
    color: var(--body);
}

.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-body h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.4;
    margin-bottom: 8px;
}

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

.article-card-body a {
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
}

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

.article-hero img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: var(--rounded-lg);
    margin-top: 32px;
}

.article-content {
    max-width: 760px;
    margin: 0 auto;
    padding: 48px 0 80px;
}

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

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

.article-content h3 {
    font-size: 22px;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: -0.11px;
    color: var(--ink);
    margin: 28px 0 10px;
}

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

.article-content ul, .article-content ol {
    margin: 0 0 20px 20px;
    color: var(--body);
    font-size: 16px;
    line-height: 1.6;
}

.article-content li {
    margin-bottom: 8px;
}

.article-content a {
    color: var(--primary);
    text-decoration: underline;
}

.article-content .article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--hairline);
    padding-bottom: 24px;
}

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

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

.article-content figure img {
    border-radius: var(--rounded-md);
    width: 100%;
}

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

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

.info-box h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-box p {
    margin-bottom: 0;
    font-size: 14px;
}

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

.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;
    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-message {
    display: none;
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-md);
    padding: 16px;
    margin-top: 16px;
    font-size: 14px;
    color: var(--semantic-success);
}

/* BUTTONS */
.btn-primary {
    display: inline-flex;
    align-items: center;
    background: var(--primary);
    color: var(--on-primary);
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    padding: 10px 18px;
    height: 40px;
    border-radius: var(--rounded-md);
    border: none;
    cursor: pointer;
    transition: background 0.15s;
    text-decoration: none;
}

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

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

.btn-secondary {
    display: inline-flex;
    align-items: center;
    background: var(--surface-card);
    color: var(--ink);
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    padding: 10px 18px;
    height: 40px;
    border-radius: var(--rounded-md);
    border: 1px solid var(--hairline-strong);
    cursor: pointer;
    transition: border-color 0.15s;
    text-decoration: none;
}

.btn-secondary:hover {
    border-color: var(--ink);
    color: var(--ink);
}

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

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

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

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

/* ABOUT PAGE */
.about-content h2 {
    font-size: 26px;
    font-weight: 400;
    letter-spacing: -0.325px;
    line-height: 1.25;
    color: var(--ink);
    margin: 40px 0 12px;
}

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

/* COOKIE BANNER */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--ink);
    color: var(--canvas);
    padding: 16px 24px;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.cookie-banner p {
    font-size: 14px;
    line-height: 1.5;
    color: var(--canvas);
    max-width: 700px;
}

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

.cookie-actions {
    display: flex;
    gap: 8px;
    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;
    cursor: pointer;
    white-space: nowrap;
}

.btn-cookie-reject {
    background: transparent;
    color: var(--canvas);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: var(--rounded-md);
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
}

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

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

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

.footer-col h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

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

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

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

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

/* BREADCRUMB */
.breadcrumb {
    padding: 12px 0;
    font-size: 13px;
    color: var(--muted);
    display: flex;
    gap: 8px;
    align-items: center;
}

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

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

.breadcrumb-sep {
    color: var(--muted-soft);
}

/* PROSE (static pages) */
.prose h2 {
    font-size: 22px;
    font-weight: 400;
    color: var(--ink);
    letter-spacing: -0.11px;
    margin: 40px 0 12px;
}

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

.prose ul {
    margin: 0 0 16px 20px;
    color: var(--body);
    font-size: 16px;
    line-height: 1.6;
}

.prose li {
    margin-bottom: 6px;
}

.prose a {
    color: var(--primary);
    text-decoration: underline;
}

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

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

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

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

    .nav-hamburger {
        display: flex;
    }

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

    .hero-band h1 {
        font-size: 32px;
        letter-spacing: -0.72px;
    }

    .section {
        padding: 48px 0;
    }

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

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

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

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

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

@media (max-width: 640px) {
    .hero-band h1 {
        font-size: 28px;
    }

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

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

    .contact-form {
        padding: 20px;
    }
}
