/* One quiet green room. Her picture, one question box, one answer beneath.
   The shop and her answer desk are separate pages behind small links. */
:root {
  color-scheme: light;
  --green: #8fd65c;
  --green-deep: #7cc34a;
  --green-line: #5fa33a;
  --text: #12391d;
  --text-soft: #24532f;
  --placeholder: #4d7a55;
  --bubble: #fbfff4;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; background: var(--green); color: var(--text); font: 500 17px/1.6 var(--body); }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.site { min-height: 100vh; display: flex; flex-direction: column; padding-inline: 16px; }
.site-nav { display: flex; justify-content: flex-end; gap: 24px; padding-block: 20px; max-width: 1080px; width: 100%; margin: 0 auto; font-size: 14px; letter-spacing: 0.04em; }
.site-nav a { text-decoration: none; color: var(--text-soft); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }
[hidden] { display: none !important; }

/* Home */
.home { flex: 1; display: flex; flex-direction: column; align-items: center; padding-block: 8px 64px; gap: 32px; }
.name { text-align: center; display: flex; flex-direction: column; align-items: center; }
.portrait { width: clamp(110px, 20vw, 150px); height: auto; margin-bottom: 14px; filter: drop-shadow(0 12px 22px rgba(18, 57, 29, 0.25)); }
.name h1 { margin: 4px 0 0; font-family: var(--display); font-size: clamp(1.4rem, 4vw, 1.9rem); font-weight: 400; line-height: 1.3; }

.chat { width: 100%; max-width: 620px; display: flex; flex-direction: column; gap: 14px; }
.ask { display: flex; align-items: center; gap: 8px; background: var(--green-deep); border: 1px solid var(--green-line); border-radius: 999px; padding: 6px 6px 6px 20px; }
.ask:focus-within { border-color: var(--text); }
input, textarea { background: transparent; border: none; color: var(--text); font: inherit; outline: none; }
input::placeholder, textarea::placeholder { color: var(--placeholder); }
.ask input { flex: 1; min-width: 0; padding-block: 8px; }
.send { border: none; background: var(--text); color: var(--bubble); border-radius: 999px; padding: 9px 18px; font-weight: 600; cursor: pointer; }
.send:hover { background: var(--text-soft); }
.send:disabled { opacity: 0.6; cursor: default; }
.starters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.starters button { background: none; border: 1px solid var(--green-line); color: var(--text-soft); border-radius: 999px; padding: 6px 14px; font-size: 14px; cursor: pointer; }
.starters button:hover { color: var(--text); border-color: var(--text-soft); }

.answer { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; min-height: 120px; }
.asked { margin: 0; color: var(--text-soft); font-size: 15px; font-style: italic; }
.asked::before { content: "You asked: "; font-style: normal; }
.reply { font-family: var(--display); font-size: 1.2rem; font-weight: 400; line-height: 1.55; }
.reply p { margin: 0 0 0.6em; }
.who { display: block; font-family: var(--body); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-soft); font-weight: 600; margin-bottom: 6px; }
.reply.thinking p { color: var(--text-soft); }
.notify { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--green-line); font-size: 14px; color: var(--text-soft); }
.notify[hidden] { display: none; }
.notify p { margin: 0; }
.notify form { display: flex; gap: 8px; flex-wrap: wrap; }
.notify input { flex: 1 1 200px; min-width: 0; border-bottom: 1px solid var(--green-line); padding: 6px 2px; }

/* Shop */
.shop { flex: 1; max-width: 1080px; width: 100%; margin: 0 auto; padding-block: 24px 80px; }
.page-title { font-family: var(--display); font-weight: 300; font-size: clamp(2.2rem, 6vw, 3.4rem); margin: 0 0 8px; line-height: 1.1; }
.lead { color: var(--text-soft); max-width: 60ch; margin: 0 0 40px; }
.books { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 40px 28px; }
.book { display: flex; flex-direction: column; gap: 10px; }
.book img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 2px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3); }
.book h3 { font-family: var(--display); font-weight: 400; font-size: 1.25rem; margin: 8px 0 0; line-height: 1.25; }
.book p { margin: 0; color: var(--text-soft); font-size: 14px; }
.book .buy { margin-top: 4px; align-self: flex-start; text-decoration: none; border-bottom: 1px solid var(--text); font-size: 14px; padding-bottom: 2px; }
.book .soon { font-size: 14px; color: var(--text-soft); font-style: italic; }

/* Answer desk */
.desk { flex: 1; max-width: 780px; width: 100%; margin: 0 auto; padding-block: 24px 80px; }
.login { display: flex; gap: 8px; max-width: 420px; }
.login input { flex: 1; border-bottom: 1px solid var(--green-line); padding: 6px 2px; }
.error { color: #7a1d12; font-weight: 600; }
.tabs { display: flex; gap: 8px; margin: 0 0 20px; flex-wrap: wrap; }
.tabs button { background: none; border: 1px solid var(--green-line); color: var(--text-soft); border-radius: 999px; padding: 6px 14px; font-size: 14px; cursor: pointer; }
.tabs button[aria-pressed="true"] { background: var(--text); color: var(--bubble); border-color: var(--text); }
.questions { display: flex; flex-direction: column; gap: 16px; }
.q { background: var(--green-deep); border: 1px solid var(--green-line); border-radius: 14px; padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.q .meta { font-size: 12px; color: var(--text-soft); letter-spacing: 0.04em; }
.q .text { font-family: var(--display); font-size: 1.15rem; margin: 0; }
.q details { font-size: 14px; color: var(--text-soft); }
.q details summary { cursor: pointer; }
.q details p { white-space: pre-wrap; margin: 6px 0 0; }
.q textarea, .q input.q-title { width: 100%; border: 1px solid var(--green-line); border-radius: 10px; padding: 10px 12px; }
.q textarea { min-height: 110px; resize: vertical; }
.q textarea:focus, .q input.q-title:focus { border-color: var(--text); }
.q .row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.q .done { font-size: 14px; font-weight: 600; }
.link { background: none; border: none; padding: 0; color: var(--text-soft); text-decoration: underline; cursor: pointer; font-size: 14px; }
.learned { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--green-line); color: var(--text-soft); font-size: 14px; }

footer { text-align: center; padding-block: 24px 40px; font-size: 12px; color: var(--text-soft); }

@media (prefers-reduced-motion: no-preference) {
  .reply.in { animation: rise 0.4s ease both; }
  @keyframes rise { from { opacity: 0.2; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}
.prompt-me { align-items: center; margin: 0; }
.q textarea.q-title { min-height: 0; resize: none; font-family: var(--display); font-size: 1.1rem; }
