@import url('https://fonts.googleapis.com/css2?family=Cormorant+Infant:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,500&display=swap');

:root {
    --bg: #f5f5f3;
    --bg-card: #ffffff;
    --border: rgba(10,10,10,0.12);
    --border-hover: rgba(10,10,10,0.25);
    --text: #0a0a0a;
    --text-muted: #4a4a4a;
    --text-faint: rgba(10,10,10,0.45);
    --gold: #8a6d3b;
    --blue: #1a3a6b;
    --red: #8b2332;
    --green: #2d6a4f;
    --font: 'Cormorant Infant', Georgia, serif;
    --font-mono: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
    --radius-card: 16px;
    --radius-btn: 12px;
    --radius-code: 8px;
    --max-width: 960px;
    --max-width-wide: 1200px;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    color-scheme: light;
}

body {
    margin: 0;
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

.section-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--gold);
    font-weight: 600;
}

.h1 {
    font-size: 55px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.h2 {
    font-size: 34px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.2;
}

.h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text);
}

.body-text {
    font-size: 21px;
    color: var(--text-muted);
    line-height: 1.7;
}

.small-text {
    font-size: 14px;
    color: var(--text-muted);
}

.gold-italic {
    color: var(--gold);
    font-style: italic;
}

@media (max-width: 768px) {
    .h1 {
        font-size: 34px;
    }

    .h2 {
        font-size: 28px;
    }

    .body-text {
        font-size: 18px;
    }

    .section {
        padding: 48px 16px;
    }

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

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

    .nav {
        font-size: 16px;
        gap: 16px;
        padding: 12px 16px;
    }
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--text);
    color: white;
    padding: 12px 32px;
    border-radius: var(--radius-btn);
    font-family: var(--font);
    font-size: 21px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.15s;
}

.btn:hover {
    background: rgba(10,10,10,0.85);
}

.btn-secondary {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--border-hover);
    color: var(--text);
    background: transparent;
}

.btn-small {
    font-size: 14px;
    padding: 8px 20px;
}

.code-block {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-code);
    padding: 16px 48px 16px 16px;
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--text);
    overflow-x: auto;
    position: relative;
}

.copy-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 12px;
    cursor: pointer;
    font-family: var(--font);
    color: var(--text-muted);
}

.copy-btn:hover {
    border-color: var(--border-hover);
    color: var(--text);
}

.section {
    max-width: 960px;
    margin: 0 auto;
    padding: 64px 24px;
}

.section-wide {
    max-width: 1200px;
}

.section-border {
    border-bottom: 1px solid var(--border);
}

.callout {
    border-left: 3px solid var(--gold);
    padding: 24px 24px 24px 28px;
    background: var(--bg-card);
    border-radius: 0 var(--radius-card) var(--radius-card) 0;
}

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

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

.badge {
    display: inline-block;
    font-size: 12px;
    padding: 2px 10px;
    border-radius: 99px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-active {
    background: rgba(45,106,79,0.1);
    color: var(--green);
}

.badge-provisional {
    background: rgba(138,109,59,0.1);
    color: var(--gold);
}

.nav {
    padding: 14px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    gap: 24px;
    align-items: center;
    background: var(--bg);
    font-size: 21px;
    flex-wrap: wrap;
}

.nav a {
    text-decoration: none;
    color: var(--text-muted);
    transition: color 0.15s;
}

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

.nav a.active {
    color: var(--text);
    font-weight: 500;
}

.nav .logo {
    font-weight: 600;
    color: var(--text);
    margin-right: auto;
}

.footer {
    border-top: 1px solid var(--border);
    padding: 48px 24px;
    background: white;
}

.footer-inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: start;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--text);
}

.footer-copyright {
    font-size: 13px;
    color: var(--text-faint);
    margin-top: 32px;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

.input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-code);
    font-family: var(--font);
    font-size: 18px;
    background: white;
    color: var(--text);
    transition: border-color 0.15s;
}

.input:focus {
    outline: none;
    border-color: var(--border-hover);
}

textarea.input {
    resize: vertical;
    min-height: 80px;
}

.input-label {
    display: block;
    font-size: 14px;
    color: var(--gold);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 6px;
}

.chat-msg {
    max-width: 80%;
    padding: 16px 20px;
    border-radius: var(--radius-card);
    margin-bottom: 12px;
    font-size: 18px;
    line-height: 1.6;
}

.chat-msg-user {
    background: var(--text);
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 4px;
}

.chat-msg-agent {
    background: var(--bg-card);
    border: 1px solid var(--border);
    margin-right: auto;
    border-bottom-left-radius: 4px;
}

.chat-meta {
    font-size: 12px;
    color: var(--text-faint);
    margin-top: 4px;
    font-family: var(--font-mono);
}

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mono {
    font-family: var(--font-mono);
    font-size: 14px;
    word-break: break-all;
}

.gold {
    color: var(--gold);
}

.loading {
    color: var(--text-muted);
    font-style: italic;
}

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-6 { margin-top: 48px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.text-center { text-align: center; }

.flex-row {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}
