/* ============================================================
   Honeywheel Bakery — warm honey/wheat editorial
   Fraunces (display) + Hanken Grotesk (text)
   ============================================================ */

:root {
  --cream:   #FBF3E4;   /* page background */
  --cream-2: #F5E9D2;   /* alt band */
  --paper:   #FFFCF6;   /* cards */
  --ink:     #2A1E12;   /* deep espresso-brown text */
  --ink-soft:#4A3A29;
  --muted:   #7B6A53;   /* secondary text */
  --honey:   #D68B1C;   /* signature accent */
  --honey-d: #B5711166;
  --honey-deep:#A9660F;
  --crust:   #7A4A22;   /* deep bread brown */
  --line:    #E7D8BC;   /* hairlines */
  --line-2:  #EFE3CB;
  --shadow:  30 25 12;  /* rgb base for shadows */

  --wrap: 1180px;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 26px;
  --ease: cubic-bezier(.22,.61,.36,1);

  --f-display: "Fraunces", Georgia, serif;
  --f-text: "Hanken Grotesk", system-ui, sans-serif;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--f-text);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2.5px solid var(--honey-deep); outline-offset: 3px; border-radius: 3px; }

.wrap { width: min(100% - 44px, var(--wrap)); margin-inline: auto; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--cream); padding: 10px 16px;
  border-radius: 8px; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--f-display); font-weight: 500; line-height: 1.04; letter-spacing: -0.015em; color: var(--ink); }
h1 { font-size: clamp(2.9rem, 7.2vw, 5.6rem); font-weight: 500; }
h1 em { font-style: italic; color: var(--honey-deep); font-weight: 500; }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); }

.eyebrow {
  font-family: var(--f-text);
  font-size: .78rem; font-weight: 600; letter-spacing: .19em; text-transform: uppercase;
  color: var(--honey-deep); margin-bottom: 1rem;
}
.eyebrow-dark { color: #E7B45E; }
.kicker {
  font-family: var(--f-text); font-size: .8rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--crust); margin-bottom: .7rem;
}

/* ---------- buttons ---------- */
.btn {
  --bg: var(--honey); --fg: var(--ink);
  display: inline-flex; align-items: center; gap: .55rem;
  background: var(--bg); color: var(--fg);
  border: 1px solid transparent; border-radius: 100px;
  padding: .72rem 1.35rem; font-weight: 600; font-size: .96rem;
  text-decoration: none; letter-spacing: -0.01em;
  transition: transform .18s var(--ease), box-shadow .2s var(--ease), background .2s;
  box-shadow: 0 1px 0 rgb(var(--shadow) / .04);
}
.btn-lg { padding: .92rem 1.7rem; font-size: 1.02rem; }
.btn-primary { background: var(--honey); color: #241704; box-shadow: 0 10px 22px -12px rgb(var(--shadow) / .55); }
.btn-primary:hover { background: #E29A2A; transform: translateY(-2px); box-shadow: 0 16px 28px -12px rgb(var(--shadow) / .6); }
.btn-primary:active { transform: translateY(0); }
.btn-dark { background: var(--ink); color: var(--cream); }
.btn-dark:hover { background: #3b2b1a; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--paper); border-color: var(--crust); transform: translateY(-2px); }
.btn-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #4c7a3f;
  box-shadow: 0 0 0 0 rgba(76,122,63,.5); animation: pulse 2.4s infinite;
}
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(76,122,63,.5);} 70%{box-shadow:0 0 0 7px rgba(76,122,63,0);} 100%{box-shadow:0 0 0 0 rgba(76,122,63,0);} }
@media (prefers-reduced-motion: reduce){ .btn-dot{animation:none;} }

.linkish {
  background: none; border: none; padding: 0; color: var(--honey-deep);
  font-weight: 600; text-decoration: underline; text-underline-offset: 3px;
  text-decoration-thickness: 1.5px; text-decoration-color: var(--honey-d);
  transition: text-decoration-color .2s, color .2s;
}
.linkish:hover { color: var(--crust); text-decoration-color: currentColor; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in oklab, var(--cream) 82%, transparent);
  backdrop-filter: blur(12px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s, box-shadow .3s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgb(var(--shadow) / .5); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; height: 74px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand-mark { display: inline-flex; filter: drop-shadow(0 3px 6px rgb(var(--shadow) / .18)); }
.brand-word { font-family: var(--f-display); font-weight: 600; font-size: 1.42rem; letter-spacing: -0.02em; }
.nav { margin-left: auto; display: flex; gap: 1.9rem; }
.nav a {
  text-decoration: none; font-weight: 500; font-size: .96rem; color: var(--ink-soft);
  position: relative; padding: .3rem 0; transition: color .2s;
}
.nav a::after { content:""; position:absolute; left:0; bottom:-1px; height:2px; width:0; background: var(--honey); transition: width .25s var(--ease); }
.nav a:hover { color: var(--ink); }
.nav a:hover::after { width: 100%; }
.header-cta { margin-left: 0; }

@media (max-width: 860px) {
  .nav { display: none; }
  .header-cta { margin-left: auto; }
}

/* ---------- hero ---------- */
.hero { padding: clamp(2.5rem, 6vw, 5.5rem) 0 clamp(1.5rem, 3vw, 2.5rem); position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero-copy { max-width: 34ch; }
.hero h1 { margin-bottom: 1.4rem; }
.lede { font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: var(--ink-soft); max-width: 40ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 2rem 0 1.3rem; }
.hero-note { font-size: .95rem; color: var(--muted); }

.hero-art { position: relative; }
.hero-frame {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 40px 80px -40px rgb(var(--shadow) / .55), 0 2px 0 rgba(255,255,255,.5) inset;
  transform: rotate(1.4deg);
  transition: transform .5s var(--ease);
}
.hero-frame::after { content:""; position:absolute; inset:0; box-shadow: inset 0 0 90px rgb(var(--shadow) / .12); }
.hero-frame img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.hero-art:hover .hero-frame { transform: rotate(0deg); }
.hero-badge {
  position: absolute; left: -18px; bottom: 26px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 14px; padding: .7rem 1.05rem; text-align: left;
  box-shadow: 0 18px 34px -20px rgb(var(--shadow) / .5);
  transform: rotate(-3deg);
}
.hero-badge-k { display:block; font-family: var(--f-display); font-style: italic; font-size: 1.15rem; color: var(--honey-deep); line-height: 1; }
.hero-badge-v { display:block; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: .25rem; font-weight: 600; }

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.4rem; }
  .hero-copy { max-width: none; }
  .lede { max-width: 46ch; }
  .hero-art { max-width: 460px; margin-inline: auto; width: 100%; }
}

/* ---------- marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--cream-2); padding: .85rem 0; margin-top: 1.5rem; }
.marquee-track { display: flex; gap: 1.6rem; width: max-content; animation: scroll 34s linear infinite; }
.marquee-track span { font-family: var(--f-display); font-style: italic; font-size: 1.35rem; color: var(--crust); white-space: nowrap; }
.marquee-track span:nth-child(even) { color: var(--honey); font-style: normal; }
@keyframes scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce){ .marquee-track{ animation: none; } }

/* ---------- sections ---------- */
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section-head { max-width: 42ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-sub { color: var(--muted); font-size: 1.08rem; margin-top: 1rem; }

.bake-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center; padding: clamp(1.5rem, 3vw, 2.5rem) 0;
}
.bake-row + .bake-row { border-top: 1px solid var(--line); }
.bake-art { border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 60px -38px rgb(var(--shadow) / .5); }
.bake-art img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .6s var(--ease); }
.bake-row:hover .bake-art img { transform: scale(1.04); }
.bake-text h3 { margin: .3rem 0 .9rem; }
.bake-text p { color: var(--ink-soft); max-width: 42ch; }
.bake-text .btn { margin-top: 1.4rem; }
.reverse .bake-art { order: 2; }
.reverse .bake-text { order: 1; }

.pill-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; }
.pill-list li {
  font-size: .86rem; font-weight: 500; color: var(--crust);
  background: var(--paper); border: 1px solid var(--line);
  padding: .35rem .8rem; border-radius: 100px;
}

@media (max-width: 780px) {
  .bake-row { grid-template-columns: 1fr; gap: 1.6rem; }
  .reverse .bake-art { order: 0; }
  .reverse .bake-text { order: 0; }
  .bake-text p, .section-head { max-width: none; }
}

/* ---------- custom cake band ---------- */
.band { background: var(--ink); color: var(--cream); padding: clamp(4rem, 8vw, 6.5rem) 0; }
.band-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.band h2 { color: var(--cream); max-width: 16ch; }
.band-sub { color: #D9C6A8; margin: 1.2rem 0 2rem; max-width: 46ch; font-size: 1.08rem; }
.cake-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.spec-card {
  background: #34261701; background: rgba(255,255,255,.05);
  border: 1px solid rgba(231,216,188,.16); border-radius: var(--r-md); padding: 1.3rem 1.3rem 1.5rem;
}
.spec-title { font-family: var(--f-display); font-style: italic; font-size: 1.2rem; color: #E7B45E; margin-bottom: .8rem; }
.spec-card ul { list-style: none; padding: 0; display: grid; gap: .5rem; }
.spec-card li { font-size: .95rem; color: #EADFC9; padding-left: 1.1rem; position: relative; }
.spec-card li::before { content:"·"; position:absolute; left: .2rem; color: var(--honey); font-weight: 700; }

@media (max-width: 780px) {
  .band-grid { grid-template-columns: 1fr; }
  .band h2, .band-sub { max-width: none; }
}
@media (max-width: 420px) { .cake-specs { grid-template-columns: 1fr; } }

/* ---------- visit ---------- */
.visit-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.addr { font-style: normal; color: var(--ink-soft); line-height: 1.8; margin: 1.6rem 0; font-size: 1.05rem; }
.addr a { color: var(--honey-deep); font-weight: 600; text-decoration: none; }
.addr a:hover { text-decoration: underline; text-underline-offset: 3px; }
.hours { width: 100%; border-collapse: collapse; margin-top: 1rem; max-width: 460px; }
.hours th, .hours td { text-align: left; padding: .85rem 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.hours th { color: var(--ink); font-weight: 600; }
.hours td { color: var(--ink-soft); text-align: right; font-variant-numeric: tabular-nums; }
.hours td.closed { color: var(--muted); font-style: italic; }

.visit-allergen {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(1.6rem, 3vw, 2.2rem); box-shadow: 0 30px 60px -44px rgb(var(--shadow) / .5);
}
.visit-allergen h3 { font-size: 1.35rem; margin-bottom: .8rem; }
.visit-allergen > p { color: var(--ink-soft); font-size: .98rem; }
.allergen-list { list-style: none; padding: 0; margin: 1.3rem 0; display: grid; gap: .85rem; }
.allergen-list li { display: flex; gap: .7rem; align-items: flex-start; font-size: .93rem; color: var(--ink-soft); line-height: 1.5; }
.allergen-list span {
  flex: none; width: 30px; height: 24px; display: grid; place-items: center;
  background: var(--cream-2); border: 1px solid var(--line); border-radius: 6px;
  font-size: .68rem; font-weight: 700; letter-spacing: .04em; color: var(--crust); margin-top: 1px;
}
.allergen-cta { font-size: .93rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 1.1rem; }

@media (max-width: 780px) { .visit-grid { grid-template-columns: 1fr; } .hours { max-width: none; } }

/* ---------- footer ---------- */
.site-footer { background: var(--cream-2); border-top: 1px solid var(--line); padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; }
.footer-inner { display: grid; grid-template-columns: 1.3fr 1.4fr; gap: 2.5rem; }
.footer-brand .brand-word { font-size: 1.6rem; }
.footer-brand p { color: var(--muted); margin-top: .8rem; max-width: 34ch; font-size: .95rem; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.footer-h { font-family: var(--f-display); font-style: italic; font-size: 1.1rem; color: var(--crust); margin-bottom: .9rem; }
.footer-cols a, .footer-cols span, .footer-cols .linkish { display: block; text-decoration: none; color: var(--ink-soft); font-size: .93rem; padding: .28rem 0; text-align: left; }
.footer-cols a:hover { color: var(--honey-deep); }
.footer-base {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin-top: clamp(2rem, 4vw, 3rem); padding-top: 1.5rem; border-top: 1px solid var(--line);
  color: var(--muted); font-size: .85rem;
}
@media (max-width: 720px) {
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-brand p { max-width: none; }
}
@media (max-width: 480px) { .footer-cols { grid-template-columns: 1fr 1fr; } }

/* ---------- entrance reveal (CSS-only, always ends visible) ---------- */
.reveal { animation: reveal-in .65s var(--ease) both; }
@keyframes reveal-in { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce){ .reveal { animation: none; } }

/* ============================================================
   CHAT WIDGET
   ============================================================ */
.chat-launcher {
  position: fixed; right: clamp(16px, 3vw, 30px); bottom: clamp(16px, 3vw, 30px); z-index: 90;
  display: inline-flex; align-items: center; gap: .6rem;
  background: var(--honey); color: #241704; border: none;
  padding: .8rem 1.25rem .8rem 1rem; border-radius: 100px; font-weight: 600;
  box-shadow: 0 16px 34px -12px rgb(var(--shadow) / .6), 0 2px 0 rgba(255,255,255,.35) inset;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), background .2s;
}
.chat-launcher:hover { transform: translateY(-3px); background: #E29A2A; box-shadow: 0 22px 40px -12px rgb(var(--shadow) / .65); }
.chat-launcher-icon { display: inline-flex; }
.chat-launcher.open { transform: translateY(8px) scale(.9); opacity: 0; pointer-events: none; }
@media (max-width: 520px) { .chat-launcher-label { display: none; } .chat-launcher { padding: .95rem; } }

.chat-scrim {
  position: fixed; inset: 0; z-index: 95; background: rgb(var(--shadow) / .28);
  backdrop-filter: blur(2px); opacity: 0; transition: opacity .25s;
}
.chat-scrim.show { opacity: 1; }

.chat-panel {
  position: fixed; z-index: 100; right: clamp(16px, 3vw, 30px); bottom: clamp(16px, 3vw, 30px);
  width: min(420px, calc(100vw - 32px)); height: min(640px, calc(100vh - 60px));
  background: var(--paper); border: 1px solid var(--line); border-radius: 22px;
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 40px 90px -30px rgb(var(--shadow) / .65), 0 4px 0 rgba(255,255,255,.4) inset;
  transform: translateY(24px) scale(.97); opacity: 0;
  transition: transform .3s var(--ease), opacity .28s var(--ease);
}
.chat-panel.show { transform: none; opacity: 1; }

@media (max-width: 520px) {
  .chat-panel {
    right: 0; bottom: 0; left: 0; top: 0;
    width: 100vw; height: 100dvh; border-radius: 0; border: none;
  }
}

.chat-head {
  display: flex; align-items: center; gap: .75rem;
  padding: .95rem 1.1rem; border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--cream) 0%, var(--paper) 100%);
}
.chat-avatar {
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  background: var(--honey); display: grid; place-items: center;
  box-shadow: 0 6px 14px -6px rgb(var(--shadow) / .5);
}
.chat-title-wrap { line-height: 1.2; min-width: 0; }
.chat-title { font-family: var(--f-display); font-weight: 600; font-size: 1.1rem; }
.chat-status { font-size: .76rem; color: var(--muted); display: flex; align-items: center; gap: .35rem; }
.chat-status::before { content:""; width: 7px; height: 7px; border-radius: 50%; background: #4c7a3f; }
.chat-head-actions { margin-left: auto; display: flex; gap: .25rem; }
.chat-icon-btn {
  width: 34px; height: 34px; border-radius: 9px; border: none; background: transparent;
  color: var(--muted); display: grid; place-items: center; transition: background .2s, color .2s;
}
.chat-icon-btn:hover { background: var(--cream-2); color: var(--ink); }

.chat-body {
  flex: 1; overflow-y: auto; padding: 1.1rem; scroll-behavior: smooth;
  display: flex; flex-direction: column; gap: .9rem;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.chat-body::-webkit-scrollbar { width: 8px; }
.chat-body::-webkit-scrollbar-thumb { background: var(--line); border-radius: 8px; }
@media (prefers-reduced-motion: reduce){ .chat-body { scroll-behavior: auto; } }

/* empty state */
.chat-empty { padding: .5rem .2rem 0; }
.chat-empty-hi { font-family: var(--f-display); font-size: 1.5rem; margin-bottom: .5rem; line-height: 1.15; }
.chat-empty-hi em { font-style: italic; color: var(--honey-deep); }
.chat-empty p { color: var(--muted); font-size: .95rem; margin-bottom: 1.1rem; }
.chat-chips { display: flex; flex-direction: column; gap: .55rem; }
.chat-chip {
  text-align: left; background: var(--cream); border: 1px solid var(--line);
  border-radius: 12px; padding: .7rem .9rem; font-size: .92rem; color: var(--ink-soft);
  transition: border-color .2s, background .2s, transform .15s;
}
.chat-chip:hover { border-color: var(--honey); background: var(--paper); transform: translateY(-1px); }
.chat-chip b { color: var(--ink); font-weight: 600; }

/* messages */
.msg { display: flex; flex-direction: column; max-width: 100%; animation: msgIn .3s var(--ease); }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce){ .msg { animation: none; } }
.msg-user { align-items: flex-end; }
.msg-user .bubble {
  background: var(--honey); color: #241704; padding: .65rem .95rem;
  border-radius: 16px 16px 5px 16px; max-width: 85%; font-weight: 500;
}
.msg-bot .bubble { color: var(--ink); max-width: 100%; }
.bubble { font-size: .96rem; line-height: 1.55; word-wrap: break-word; }
.bubble p { margin: 0 0 .6rem; } .bubble p:last-child { margin-bottom: 0; }
.bubble ul, .bubble ol { margin: .4rem 0 .7rem; padding-left: 1.25rem; }
.bubble li { margin: .2rem 0; }
.bubble strong { font-weight: 700; color: var(--ink); }
.bubble em { font-style: italic; }
.bubble a { color: var(--honey-deep); text-underline-offset: 2px; }
.bubble code { background: var(--cream-2); padding: .1em .4em; border-radius: 5px; font-size: .88em; font-family: ui-monospace, monospace; }

/* typing */
.typing { display: inline-flex; gap: 4px; padding: .3rem 0; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--crust); opacity: .5; animation: blink 1.3s infinite; }
.typing span:nth-child(2){ animation-delay: .18s; } .typing span:nth-child(3){ animation-delay: .36s; }
@keyframes blink { 0%,60%,100%{ transform: translateY(0); opacity:.4; } 30%{ transform: translateY(-4px); opacity: .9; } }

/* order card */
.order-card {
  border: 1px solid var(--honey); border-radius: 14px; overflow: hidden;
  background: var(--cream); box-shadow: 0 12px 26px -16px rgb(var(--shadow) / .5); margin-top: .2rem;
  animation: msgIn .35s var(--ease);
}
.order-card-head { background: var(--honey); color: #241704; padding: .6rem .9rem; font-weight: 700; display: flex; align-items: center; gap: .5rem; font-size: .92rem; }
.order-card-body { padding: .8rem .95rem; display: grid; gap: .5rem; }
.order-row { display: flex; justify-content: space-between; gap: 1rem; font-size: .9rem; border-bottom: 1px dashed var(--line); padding-bottom: .5rem; }
.order-row:last-child { border-bottom: none; padding-bottom: 0; }
.order-row .k { color: var(--muted); font-weight: 500; }
.order-row .v { color: var(--ink); font-weight: 600; text-align: right; }
.order-foot { font-size: .78rem; color: var(--muted); padding: 0 .95rem .8rem; }

/* notice */
.chat-notice {
  background: #FBEED2; border: 1px solid #E8CE93; color: #6B4E12;
  border-radius: 12px; padding: .7rem .9rem; font-size: .88rem; align-self: stretch;
}

/* composer */
.chat-composer { border-top: 1px solid var(--line); padding: .7rem .75rem .85rem; background: var(--paper); }
.composer-box {
  display: flex; align-items: flex-end; gap: .5rem;
  background: var(--cream); border: 1.5px solid var(--line); border-radius: 16px; padding: .35rem .35rem .35rem .85rem;
  transition: border-color .2s;
}
.composer-box:focus-within { border-color: var(--honey); }
.chat-input {
  flex: 1; border: none; background: transparent; resize: none; outline: none;
  font-family: var(--f-text); font-size: .96rem; color: var(--ink); line-height: 1.5;
  max-height: 132px; padding: .5rem 0; max-width: 100%;
}
.chat-input::placeholder { color: var(--muted); }
.chat-send {
  flex: none; width: 38px; height: 38px; border-radius: 11px; border: none;
  background: var(--honey); color: #241704; display: grid; place-items: center;
  transition: background .2s, transform .15s, opacity .2s;
}
.chat-send:hover:not(:disabled) { background: #E29A2A; transform: translateY(-1px); }
.chat-send:disabled { opacity: .4; cursor: not-allowed; }
.chat-send.stop { background: var(--ink); color: var(--cream); }
.composer-hint { font-size: .74rem; color: var(--muted); text-align: center; margin-top: .5rem; }
.composer-hint a, .composer-hint .linkish { font-size: inherit; }
