@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;
    --timeline-thinking: #dfa88f;
    --timeline-grep: #9fc9a2;
    --timeline-read: #9fbbe0;
    --timeline-edit: #c0a8dd;
    --timeline-done: #c08532;
}

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-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;
}

code, pre, .code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* TOP NAV */
.top-nav {
    background: 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-wordmark {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.2px;
    text-decoration: none;
}

.nav-wordmark span {
    color: var(--primary);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-menu a {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--body);
    text-decoration: none;
    transition: color 0.15s;
}

.nav-menu a:hover {
    color: var(--ink);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: all 0.2s;
}

/* HERO */
.hero-band {
    background: var(--canvas);
    padding: 80px 0;
    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 24px;
}

.hero-band .hero-sub {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--body);
    max-width: 560px;
    margin: 0 auto 40px;
}

.hero-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

/* BUTTONS */
.btn-primary {
    display: inline-flex;
    align-items: center;
    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;
    text-decoration: none;
    transition: background 0.15s;
}

.btn-primary:hover {
    background: var(--primary-active);
    color: var(--on-primary);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    background: var(--surface-card);
    color: var(--ink);
    font-size: 14px;
    font-weight: 500;
    padding: 10px 18px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid var(--hairline-strong);
    cursor: pointer;
    text-decoration: none;
    transition: border-color 0.15s;
}

.btn-secondary:hover {
    border-color: var(--ink);
    color: var(--ink);
}

/* BADGE PILL */
.badge-pill {
    display: inline-flex;
    align-items: center;
    background: var(--surface-strong);
    color: var(--ink);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    border-radius: 9999px;
    padding: 4px 10px;
}

/* SECTION */
section {
    padding: 80px 0;
}

.section-label {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    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: 20px;
}

.section-subtitle {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--body);
    max-width: 600px;
}

/* CARDS */
.feature-card {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: 12px;
    padding: 24px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--ink);
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--body);
}

.card-grid {
    display: grid;
    gap: 24px;
}

.card-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.card-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

/* ARTICLE CARD */
.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: 220px;
    object-fit: cover;
}

.article-card-body {
    padding: 24px;
}

.article-card-body .meta {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 12px;
}

.article-card-body h3 {
    font-size: 22px;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: -0.11px;
    color: var(--ink);
    margin-bottom: 12px;
}

.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);
    text-decoration: none;
}

/* DIVIDER */
.divider {
    height: 1px;
    background: var(--hairline);
    border: none;
}

/* ARTICLE CONTENT */
.article-hero-img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--hairline);
    margin-bottom: 48px;
}

.article-content {
    max-width: 740px;
    margin: 0 auto;
}

.article-content h1 {
    font-size: 48px;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -1.2px;
    color: var(--ink);
    margin-bottom: 24px;
}

.article-content .article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 48px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--hairline);
    flex-wrap: wrap;
}

.article-content .article-meta span {
    font-size: 13px;
    color: var(--muted);
}

.article-content h2 {
    font-size: 26px;
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: -0.325px;
    color: var(--ink);
    margin: 48px 0 16px;
}

.article-content h3 {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--ink);
    margin: 32px 0 12px;
}

.article-content p {
    font-size: 16px;
    line-height: 1.5;
    color: var(--body);
    margin-bottom: 20px;
}

.article-content ul,
.article-content ol {
    padding-left: 24px;
    margin-bottom: 20px;
}

.article-content li {
    font-size: 16px;
    line-height: 1.5;
    color: var(--body);
    margin-bottom: 8px;
}

.article-content a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.article-content blockquote {
    border-left: 3px solid var(--hairline-strong);
    padding: 16px 24px;
    margin: 32px 0;
    background: var(--surface-card);
    border-radius: 0 8px 8px 0;
}

.article-content blockquote p {
    color: var(--muted);
    font-size: 15px;
    margin: 0;
}

.article-content .code-block {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: 12px;
    padding: 20px;
    margin: 24px 0;
    overflow-x: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    line-height: 1.5;
    color: var(--ink);
}

.article-img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--hairline);
    margin: 32px 0;
}

.img-caption {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.4;
    margin-top: -24px;
    margin-bottom: 32px;
    text-align: center;
}

/* FACT BOX */
.fact-box {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: 12px;
    padding: 24px;
    margin: 32px 0;
}

.fact-box .fact-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 12px;
}

.fact-box p {
    font-size: 15px;
    color: var(--body);
    margin: 0;
}

/* TIMELINE PILLS */
.timeline-pill {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    border-radius: 9999px;
    padding: 4px 10px;
    color: var(--ink);
}

.pill-thinking { background: var(--timeline-thinking); }
.pill-grep { background: var(--timeline-grep); }
.pill-read { background: var(--timeline-read); }
.pill-edit { background: var(--timeline-edit); }
.pill-done { background: var(--timeline-done); color: var(--on-primary); }

/* BREADCRUMB */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 32px;
    font-size: 13px;
    color: var(--muted);
}

.breadcrumb a {
    color: var(--muted);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--ink);
}

.breadcrumb-sep {
    color: var(--muted-soft);
}

/* CTA BAND */
.cta-band {
    background: var(--canvas);
    padding: 96px 0;
    text-align: center;
    border-top: 1px solid var(--hairline);
}

.cta-band h2 {
    font-size: 36px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.72px;
    color: var(--ink);
    margin-bottom: 32px;
}

/* FOOTER */
.footer {
    background: var(--canvas);
    border-top: 1px solid var(--hairline);
    padding: 64px 0 48px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 32px;
}

.footer-brand .wordmark {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 12px;
    display: block;
}

.footer-brand .wordmark span {
    color: var(--primary);
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.5;
    color: var(--body);
    max-width: 260px;
}

.footer-col h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 16px;
    letter-spacing: 0.2px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    font-size: 14px;
    color: var(--body);
    text-decoration: none;
    transition: color 0.15s;
}

.footer-col ul li a:hover {
    color: var(--ink);
}

.footer-bottom {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--hairline);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    font-size: 14px;
    color: var(--muted);
}

/* CONTACT FORM */
.contact-form {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: 12px;
    padding: 32px;
    max-width: 560px;
}

.form-group {
    margin-bottom: 20px;
}

.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);
    color: var(--ink);
    border: 1px solid var(--hairline-strong);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 16px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--ink);
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.form-success {
    display: none;
    background: #e8f5f0;
    border: 1px solid #9fcebb;
    border-radius: 8px;
    padding: 16px;
    color: var(--semantic-success);
    font-size: 14px;
    margin-top: 16px;
}

/* COOKIE BANNER */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--ink);
    color: var(--canvas);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    z-index: 9999;
    flex-wrap: wrap;
}

.cookie-banner p {
    font-size: 14px;
    line-height: 1.5;
    color: var(--canvas);
    flex: 1;
    min-width: 240px;
}

.cookie-banner p a {
    color: var(--canvas);
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.btn-cookie-accept {
    background: var(--primary);
    color: var(--on-primary);
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.btn-cookie-reject {
    background: transparent;
    color: var(--canvas);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

/* PAGE HEADER */
.page-header {
    background: var(--canvas);
    padding: 64px 0 48px;
    border-bottom: 1px solid var(--hairline);
}

.page-header h1 {
    font-size: 48px;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -1.2px;
    color: var(--ink);
    margin-bottom: 16px;
}

.page-header p {
    font-size: 16px;
    line-height: 1.5;
    color: var(--body);
    max-width: 560px;
}

/* PROSE (about/policy pages) */
.prose {
    max-width: 740px;
}

.prose h2 {
    font-size: 26px;
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: -0.325px;
    color: var(--ink);
    margin: 48px 0 16px;
}

.prose h3 {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--ink);
    margin: 32px 0 12px;
}

.prose p {
    font-size: 16px;
    line-height: 1.5;
    color: var(--body);
    margin-bottom: 20px;
}

.prose ul,
.prose ol {
    padding-left: 24px;
    margin-bottom: 20px;
}

.prose li {
    font-size: 16px;
    line-height: 1.5;
    color: var(--body);
    margin-bottom: 8px;
}

.prose a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* TEAM / ABOUT */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.about-img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--hairline);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .hero-band h1 {
        font-size: 56px;
        letter-spacing: -1.4px;
    }

    .card-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--canvas);
        border-bottom: 1px solid var(--hairline);
        flex-direction: column;
        gap: 0;
        padding: 16px 0;
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-menu a {
        padding: 12px 24px;
        display: block;
    }

    .nav-toggle {
        display: flex;
    }

    .top-nav {
        position: relative;
    }

    .hero-band h1 {
        font-size: 36px;
        letter-spacing: -0.8px;
    }

    .section-title {
        font-size: 28px;
    }

    .card-grid-3,
    .card-grid-2 {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }

    .article-content h1 {
        font-size: 32px;
    }

    .page-header h1 {
        font-size: 32px;
    }
}

@media (max-width: 640px) {
    .hero-band {
        padding: 48px 0;
    }

    section {
        padding: 48px 0;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }

    .cookie-banner {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-bottom {
        flex-direction: column;
    }
}
