:root {
  color-scheme: light;
  --paper: #f5f2e9;
  --ink: #172620;
  --green: #164b3a;
  --mint: #e1efdf;
  --edge: #c6cfc0;
  --muted: #4a6056;
  font: 16px/1.5 system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
[hidden] { display: none !important; }
.site-header { display: flex; justify-content: space-between; align-items: center; padding: 22px clamp(20px, 6vw, 88px); border-bottom: 1px solid var(--edge); }
.brand { color: var(--ink); font-size: 30px; font-weight: 840; letter-spacing: -.08em; text-decoration: none; line-height: 1; }
.brand span { color: #387753; }
a, .text-button { color: var(--green); text-underline-offset: .2em; }
.quiet { font-size: .88rem; font-weight: 650; }
.agent-actions { display: flex; align-items: center; gap: 12px; }
main { width: min(100% - 36px, 720px); margin: clamp(42px, 8vh, 104px) auto 40px; }
.intro { margin-bottom: 26px; }
.eyebrow { color: var(--green); letter-spacing: .11em; font-size: .75rem; font-weight: 780; margin: 0 0 12px; }
h1 { font-family: Georgia, serif; font-weight: 500; font-size: clamp(2.6rem, 8vw, 5.2rem); letter-spacing: -.065em; line-height: .96; margin: 0 0 20px; }
.lede { max-width: 470px; color: var(--muted); font-size: 1.02rem; margin: 0; }
.intake { border: 1px solid var(--edge); background: #fffefa; border-radius: 20px; padding: clamp(15px, 3.2vw, 28px); box-shadow: 0 12px 36px #263c2710; }
.examples, .choices { display: flex; gap: 8px; flex-wrap: wrap; }
.examples { margin-bottom: 14px; }
button, .button, select, textarea { font: inherit; }
button, .button { cursor: pointer; }
.chip { border: 1px solid var(--edge); background: var(--mint); color: var(--ink); border-radius: 99px; padding: 6px 12px; font-size: .88rem; }
.chip:hover { background: #ccdfcb; }
.conversation { display: grid; gap: 8px; max-height: 310px; overflow-y: auto; margin-bottom: 12px; }
.conversation:empty { display: none; }
.message { background: #edf2eb; width: fit-content; max-width: min(100%, 560px); padding: 9px 13px; border-radius: 12px; margin: 0; overflow-wrap: anywhere; }
.message.you { justify-self: end; background: #d7e8d6; }
#composer { display: flex; gap: 10px; align-items: end; }
textarea, select { border: 1px solid #8eaa96; background: #fff; color: var(--ink); border-radius: 10px; padding: 10px 12px; }
textarea { min-width: 0; width: 100%; resize: vertical; }
select { width: 100%; }
.button { display: inline-block; border: 1px solid var(--green); background: var(--green); color: #fff; border-radius: 10px; padding: 9px 14px; text-decoration: none; font-weight: 650; white-space: normal; text-align: center; }
.button:hover { background: #0c362a; }
.button.secondary { background: #fff; color: var(--green); }
.button.secondary:hover { background: var(--mint); }
.button:disabled { opacity: .65; cursor: wait; }
:focus-visible { outline: 3px solid #527b22; outline-offset: 3px; }
.footnote, #status { font-size: .82rem; color: var(--muted); margin: 12px 0 0; }
#status:empty { display: none; }
.text-button { border: none; background: transparent; padding: 0; text-decoration: underline; font-size: .85rem; }
footer { margin-top: 16px; }
#actions form { display: grid; gap: 10px; justify-items: start; margin-top: 15px; }
#actions label { font-weight: 600; }
.result { background: var(--mint); border-radius: 12px; padding: 15px; margin: 0 0 12px; }
.result h2 { font-size: 1.1rem; margin: 0 0 4px; }
.result p { margin: 0 0 4px; overflow-wrap: anywhere; }
.public-preview { background: #f3f5ef; border: 1px solid var(--edge); border-radius: 12px; margin-top: 12px; padding: 15px; }
.public-preview h2 { margin: 0 0 6px; font-size: 1.15rem; }
.public-preview p { margin: 0 0 8px; }
.share-page .brand { display: inline-block; margin-bottom: 36px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
@media (max-width: 460px) {
  #composer { flex-direction: column; align-items: stretch; }
  .site-header { padding-block: 18px; }
  main { margin-top: 35px; }
}
