:root {
  color-scheme: light dark;
  --bg: #f7f2ec;
  --card: #fffdfa;
  --ink: #2b2420;
  --soft: #5e524b;
  --line: #e4d9cd;
  --line-soft: #efe6dc;
  --pill-line: #d8cab9;
  --accent: #a8584a;        /* terracotta: buttons and play circles (white text on it) */
  --accent-hover: #8a4538;
  --accent-text: #8a4538;   /* labels and links on cream */
  --accent-tint: #f3e0d8;   /* resource cards */
  --on-accent: #ffffff;
  --bg-clear: rgba(247, 242, 236, 0);
  --crisis-bg: #fbeee9;
  --crisis-line: #d9a08e;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1f1b18; --card: #2a2420; --ink: #f1e9e1; --soft: #bfb2a7; --line: #43392f; --line-soft: #3a312a;
    --pill-line: #5a4d42; --accent: #a8584a; --accent-hover: #bd6655; --accent-text: #eaa190;
    --accent-tint: #3b2723; --bg-clear: rgba(31, 27, 24, 0); --crisis-bg: #3a2621; --crisis-line: #a8654f;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 17px/1.65 var(--sans); padding-bottom: 190px; }
a { color: var(--accent-text); }
a:hover { color: var(--accent-hover); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---- header ---- */
.top { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 5; }
.top-inner { max-width: 1040px; margin: 0 auto; padding: 8px 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.brand { display: flex; align-items: center; min-height: 44px; }
.brand img { display: block; height: 56px; width: auto; }
nav { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.link { background: none; border: 0; color: var(--soft); font: 500 14px var(--sans); cursor: pointer; min-height: 44px; padding: 0 12px;
        letter-spacing: .08em; text-transform: uppercase; }
.link:hover { color: var(--ink); }
.pill { min-height: 44px; padding: 0 16px; background: var(--card); border: 1px solid var(--pill-line); border-radius: 999px;
        font: 500 14px var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink); cursor: pointer; }
.pill:hover { border-color: var(--accent); }

/* ---- start screen ---- */
main { max-width: 808px; margin: 0 auto; padding: 0 16px; }
.hero { text-align: center; padding: 56px 0 24px; }
.hero h1 { font: 500 clamp(34px, 6vw, 52px)/1.1 var(--serif); margin: 0 0 10px; }
.tagline { color: var(--soft); margin: 0 0 22px; font-style: italic; font-family: var(--serif); font-size: 21px; }
.tagline:empty { display: none; }
.hero h1 + .tagline:empty + .welcome { margin-top: 18px; }
.welcome { max-width: 720px; margin: 0 auto 26px; text-wrap: balance; }   /* two even lines on desktop; balanced lines on phones */
.starters { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; }
.starters-label { font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); margin-right: 4px; }
/* start screen: the question bar sits right under the common questions; it floats at the bottom once a question is asked */
body:has(.hero:not(.compact)) { padding-bottom: 0; display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
/* auto margins share the leftover height evenly above and below the title-to-privacy-link block */
body:has(.hero:not(.compact)) main { width: 100%; box-sizing: border-box; margin-top: auto; }
body:has(.hero:not(.compact)) .hero { padding-top: 32px; }
body:has(.hero:not(.compact)) .ask { position: static; background: none; margin-bottom: auto; padding-top: 72px; padding-bottom: 32px; }
.starter { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 10px 18px; min-height: 44px;
           font: 15px var(--sans); color: var(--ink); cursor: pointer; text-align: left; }
.starter:hover { border-color: var(--accent); }
.hero.compact { padding: 8px 0 0; }
.hero.compact .welcome, .hero.compact .starters, .hero.compact .tagline, .hero.compact h1 { display: none; }

/* ---- one question and its answer ---- */
.turn { padding: 36px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 22px; }
.turn:last-child { border-bottom: 0; }
.label { margin: 0; font: 500 13px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); }
.turn > .label { margin-bottom: -16px; }
.you { font: 600 clamp(26px, 4vw, 34px)/1.2 var(--serif); margin: 0; }
.status { color: var(--soft); font-size: 15px; display: flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 1.2s infinite ease-in-out; }
@keyframes pulse { 50% { opacity: .25; } }
.crisis { background: var(--crisis-bg); border: 1px solid var(--crisis-line); border-radius: 14px; padding: 16px 20px; font-size: 18px; }
.crisis p { margin: 0 0 10px; } .crisis p:last-child { margin: 0; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 32px 36px; display: flex; flex-direction: column; gap: 4px; }
.answer p { margin: 0 0 14px; }
.answer ul, .answer ol { margin: 0 0 14px; padding-left: 22px; }
.answer > :last-child { margin-bottom: 0; }
.full { border-left: 3px solid var(--accent-tint); padding-left: 18px; margin: 18px 0 0; }
.card-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.helpful { color: var(--soft); font-size: 14px; }
.thumb { width: 44px; height: 44px; border-radius: 50%; background: var(--card); border: 1px solid var(--line); color: var(--soft);
         display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.thumb:hover { border-color: var(--accent); color: var(--ink); }
.thumb.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.send-open { text-transform: none; letter-spacing: 0; font-size: 15px; }

.btn { background: var(--accent); color: var(--on-accent); border: 0; border-radius: 999px; min-height: 44px; padding: 0 22px;
       font: 500 15px var(--sans); letter-spacing: .03em; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn:hover { background: var(--accent-hover); }
.btn:disabled { opacity: .55; cursor: default; }
.btn.small { min-height: 40px; padding: 0 16px; }

/* resources and episodes */
.products, .related { display: flex; flex-direction: column; gap: 12px; }
.product-list { display: flex; flex-direction: column; gap: 10px; }
.product { display: flex; align-items: center; gap: 16px; padding: 16px 20px; background: var(--accent-tint); border-radius: 14px;
           text-decoration: none; color: var(--ink); }
.product-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--card); color: var(--accent-text);
                display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.product-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.4; }
.product b { font-weight: 500; }
.product small { color: var(--soft); font-size: 15px; }
.product .open { font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-text); }
.product:hover .open { text-decoration: underline; }
.episodes { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.episode { display: flex; gap: 16px; padding: 16px 20px; text-decoration: none; color: var(--ink); border-top: 1px solid var(--line-soft); }
.episode:first-child { border-top: 0; }
.episode:hover { background: var(--bg); }
.play { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--on-accent); flex-shrink: 0;
        display: flex; align-items: center; justify-content: center; }
.play svg { margin-left: 2px; }
.episode-text { display: flex; flex-direction: column; gap: 2px; line-height: 1.4; min-width: 0; }
.episode .meta { font-size: 13px; color: var(--soft); letter-spacing: .04em; }
.episode b { font-weight: 500; }
.episode small { font-size: 15px; color: var(--soft); }

/* feedback and send-to-show forms */
.comment, .send { display: grid; gap: 10px; max-width: 620px; }
.comment label, .send label { display: grid; gap: 4px; font-size: 15px; color: var(--soft); }
.send label.check { display: flex; gap: 8px; align-items: flex-start; color: var(--ink); }
.send label.check input { margin-top: 5px; accent-color: var(--accent); }
.comment .btn, .send .btn { justify-self: start; }
textarea, input[type=email] { width: 100%; font: 16px var(--sans); color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
textarea:focus, input:focus { outline: 2px solid var(--accent); outline-offset: 0; }
.thanks { color: var(--soft); font-style: italic; margin: 0; }
.send-error { color: #a3402e; margin: 0; }

/* ---- question box: floats above the bottom edge, with the page fading out behind it ---- */
.ask { position: fixed; left: 0; right: 0; bottom: 0; z-index: 4; padding: 28px 16px 22px;
       background: linear-gradient(to top, var(--bg) 70%, var(--bg-clear)); pointer-events: none; }
.ask > * { pointer-events: auto; }
.ask-inner { max-width: 776px; margin: 0 auto; display: flex; gap: 8px; align-items: flex-end; background: var(--card);
             border: 1px solid var(--pill-line); border-radius: 26px; padding: 5px 5px 5px 20px;
             box-shadow: 0 6px 24px rgba(43, 36, 32, .10), 0 1px 3px rgba(43, 36, 32, .06); }
.ask-inner:focus-within { border-color: var(--accent); }
.ask textarea { resize: none; max-height: 160px; border: 0; background: none; border-radius: 0; padding: 10px 0; line-height: 1.5; }
.ask textarea:focus { outline: none; }
.send-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--accent); color: var(--on-accent); flex-shrink: 0;
            display: flex; align-items: center; justify-content: center; cursor: pointer; }
.send-btn:hover { background: var(--accent-hover); }
.send-btn:disabled { opacity: .55; cursor: default; }
.notice { max-width: 776px; margin: 10px auto 0; color: var(--soft); font-size: 13px; text-align: center; line-height: 1.5; }
.notice a { display: block; }

/* ---- about ---- */
.about { position: fixed; inset: 0; background: rgba(30, 24, 20, .55); display: flex; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 40px 16px; z-index: 10; }
.about[hidden] { display: none; }
.about-card { background: var(--card); max-width: 760px; width: 100%; border-radius: 16px; padding: 28px; position: relative; }
.about-card h2 { font: 600 30px var(--serif); margin: 0 0 12px; }
.fine { color: var(--soft); font-size: 15px; }
.close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; background: none; border: 0; font-size: 30px; color: var(--soft); cursor: pointer; }
.host { display: grid; grid-template-columns: 120px 1fr; gap: 18px; padding: 18px 0; border-top: 1px solid var(--line); }
.host img { width: 120px; height: 120px; object-fit: cover; border-radius: 50%; }
.host h3 { font: 600 24px var(--serif); margin: 0; }
.host .role { color: var(--soft); font-size: 14px; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 8px; }
.host p { margin: 0 0 8px; font-size: 15px; }

/* ---- phones ---- */
@media (max-width: 720px) {
  body { font-size: 16px; }
  .top-inner { padding: 6px 16px; }
  .brand img { height: 46px; }
  .link { padding: 0 8px; }
  .pill { padding: 0 14px; font-size: 13px; }
  .turn { padding: 24px 0; gap: 18px; }
  .turn > .label { margin-bottom: -12px; }
  .card { padding: 20px 18px; border-radius: 14px; }
  .actions { margin-left: 0; }
  .product { padding: 12px 14px; gap: 12px; }
  .product-icon { width: 40px; height: 40px; border-radius: 10px; }
  .product .open { display: none; }
  .episode { padding: 12px 14px; gap: 12px; }
  .play { width: 36px; height: 36px; }
  .ask { padding: 24px 12px calc(16px + env(safe-area-inset-bottom)); }
  .hero { padding-top: 32px; }
  .host { grid-template-columns: 1fr; }
  .host img { width: 96px; height: 96px; }
}
