@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    --ink: #202326;
    --paper: #eee9df;
    --panel: #f7f4ed;
    --line: #d6d0c5;
    --acid: #d7f26c;
    --muted: #77766f;
    --warm: #e7a67e;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background: radial-gradient(circle at 10% 10%, #f8c7a0 0, transparent 23%), var(--paper);
    font-family: 'Space Grotesk', sans-serif;
}
.shell { width: min(960px, calc(100% - 40px)); margin: 0 auto; padding: 28px 0 44px; }
.topbar { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.top-actions { display: flex; align-items: center; gap: 12px; }
.identity { display: flex; gap: 12px; align-items: center; }
.avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: var(--acid); font-weight: 700; font-size: 22px; }
.eyebrow { margin: 0 0 5px; color: var(--muted); font: 500 11px 'DM Mono', monospace; letter-spacing: 0; }
h1, h2, p { margin-top: 0; }
h1 { margin: 0; font-size: 22px; }
.secondary-button { background: transparent; border: 1px solid var(--line); color: var(--ink); padding: 9px 12px; }
.status { color: var(--muted); font: 12px 'DM Mono', monospace; }
.status span { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: #8baa35; }
.intro { padding: 65px 0 38px; max-width: 610px; animation: rise .6s ease both; }
h2 { margin-bottom: 17px; font-size: clamp(42px, 8vw, 78px); line-height: .94; letter-spacing: 0; }
h2 em { color: #ad684b; font-style: normal; }
.subline { max-width: 420px; color: var(--muted); line-height: 1.5; }
.chat { display: flex; flex-direction: column; gap: 15px; min-height: 130px; padding: 22px 0; }
.message { max-width: min(690px, 86%); padding: 15px 18px; border: 1px solid var(--line); background: var(--panel); line-height: 1.5; animation: rise .25s ease both; }
.message.user { align-self: flex-end; border-color: var(--ink); background: var(--ink); color: var(--panel); }
.message.assistant { align-self: flex-start; border-left: 4px solid var(--warm); }
.message small { display: block; margin-bottom: 7px; color: var(--muted); font: 10px 'DM Mono', monospace; }
.user small { color: #aaa89f; }
.composer { display: flex; gap: 10px; align-items: stretch; padding-top: 14px; border-top: 1px solid var(--line); }
input { min-width: 0; flex: 1; border: 1px solid var(--line); padding: 15px 16px; outline: none; background: var(--panel); color: var(--ink); font: 15px 'Space Grotesk', sans-serif; }
input:focus { border-color: var(--ink); }
button { border: 0; cursor: pointer; font: 500 12px 'DM Mono', monospace; }
.icon-button, .send-button { background: var(--ink); color: var(--acid); padding: 0 17px; }
.icon-button.listening {
    background: #d83b2f;
    color: white;
    box-shadow: 0 0 0 0 rgba(216, 59, 47, 0.7);
    animation: micPulse 1.4s infinite;
}
.send-button span { margin-left: 12px; color: #aaa89f; }
.voice-status { min-height: 18px; margin: 10px 0 0; color: var(--muted); font: 11px 'DM Mono', monospace; }
@keyframes micPulse {
    0% { box-shadow: 0 0 0 0 rgba(216, 59, 47, 0.6); }
    70% { box-shadow: 0 0 0 12px rgba(216, 59, 47, 0); }
    100% { box-shadow: 0 0 0 0 rgba(216, 59, 47, 0); }
}
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 600px) { .shell { width: min(100% - 24px, 960px); padding-top: 18px; } .intro { padding-top: 45px; } .send-button { padding: 0 13px; } .send-button span { display: none; } }
