:root {
  color-scheme: light;
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  background: #f6f2e9;
  color: #17231f;
}

* { box-sizing: border-box; }

body { margin: 0; min-height: 100vh; }

main {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 72px;
}

header, section {
  background: #fffdf8;
  border: 1px solid #d9d0bf;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 18px;
  box-shadow: 0 12px 32px rgba(30, 42, 36, 0.07);
}

h1, h2, p { margin-top: 0; }
h1 { font-size: clamp(2.4rem, 8vw, 4.5rem); margin-bottom: 8px; }
h2 { font-size: 1.25rem; }
.eyebrow { color: #7a4b23; letter-spacing: .12em; text-transform: uppercase; font: 700 .75rem/1.2 ui-sans-serif, system-ui, sans-serif; }

label, button, input, textarea { font: 500 1rem/1.45 ui-sans-serif, system-ui, sans-serif; }
label { display: block; margin-bottom: 6px; }
input, textarea {
  width: 100%;
  border: 1px solid #a89f90;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 12px;
  background: white;
  color: #17231f;
}
button {
  border: 0;
  border-radius: 999px;
  background: #225b47;
  color: white;
  padding: 10px 18px;
  cursor: pointer;
}
button:disabled { opacity: .55; cursor: wait; }
#messages { display: grid; gap: 12px; margin-bottom: 18px; }
.message { border-radius: 12px; padding: 12px 14px; white-space: pre-wrap; }
.message.user { background: #e7efe9; }
.message.assistant { background: #f2eadf; }
.message.error { background: #f8dddd; color: #761b1b; }

