/* EatFit review space. Phone first: one column, roomy tap targets; two columns from tablet up. */
:root {
  --bg: #f6f6f2; --surface: #ffffff; --ink: #24302c; --muted: #5f6d67; --line: #dcdfd8;
  --green: #3a8268; --green-ink: #2c6a54; --green-soft: #e4f1eb; --amber: #9a5c1c; --amber-soft: #f7ebdb; --red: #a8372b;
  --display: "Outfit", "Segoe UI", system-ui, sans-serif;
  --body: "DM Sans", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131816; --surface: #1b221f; --ink: #e2e9e5; --muted: #9aa8a1; --line: #2c3632;
    --green: #78c4a4; --green-ink: #8fd3b5; --green-soft: #1d3229; --amber: #e0a463; --amber-soft: #33281b; --red: #ef8a7e;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--body); }
.wrap { max-width: 880px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(1.8rem, 6vw, 2.6rem); font-weight: 700; }
h2 { font-size: 1.3rem; font-weight: 600; margin-bottom: 12px; }
p { margin: 0; }
a { color: var(--green-ink); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 4px; }
main { display: flex; flex-direction: column; gap: 32px; padding-block: 24px 48px; }
main > section { display: flex; flex-direction: column; gap: 10px; }

/* Header */
.top { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; padding-top: env(safe-area-inset-top); }
.top-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 18px; padding-block: 12px; }
.brand { font-family: var(--display); font-size: 1.3rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.brand i { font-style: normal; color: var(--green); }
.brand span { font-family: var(--body); font-size: .85rem; color: var(--muted); font-weight: 500; }
nav { display: flex; gap: 4px; overflow-x: auto; max-width: 100%; }
nav a { padding: 8px 10px; border-radius: 8px; text-decoration: none; color: var(--muted); font-weight: 500; font-size: .95rem; white-space: nowrap; }
nav a.on { background: var(--green-soft); color: var(--green-ink); }

.eyebrow { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.hero { gap: 8px; }
.lede { font-size: 1.08rem; max-width: 62ch; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.why { background: var(--amber-soft); border-radius: 10px; padding: 10px 14px; max-width: 62ch; }

/* Callout and tiles */
.callout { display: flex; flex-direction: column; gap: 2px; padding: 18px 20px; border-radius: 14px; background: var(--green); color: #fff; text-decoration: none; }
.callout strong { font-family: var(--display); font-size: 1.3rem; }
.callout.calm { background: var(--green-soft); color: var(--green-ink); }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.tile { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); }
.tile strong { font-family: var(--display); font-size: 1.1rem; color: var(--green-ink); }
.tile span { color: var(--muted); font-size: .95rem; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ms { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding-bottom: 18px; position: relative; }
.ms::before { content: ""; position: absolute; left: 10px; top: 20px; bottom: 0; width: 2px; background: var(--line); }
.ms:last-child::before { display: none; }
.dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); background: var(--surface); margin-top: 2px; }
.ms.done .dot { background: var(--green); border-color: var(--green); }
.ms.now .dot { border-color: var(--green); box-shadow: inset 0 0 0 4px var(--surface); background: var(--green); }
.ms-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.ms p { color: var(--muted); font-size: .95rem; }
.ms.later p, .ms.later strong { color: var(--muted); }
.pill { display: inline-block; font-size: .75rem; font-weight: 700; padding: 2px 9px; border-radius: 99px; background: var(--bg); color: var(--muted); border: 1px solid var(--line); }
.pill.done, .pill.answered { background: var(--green-soft); color: var(--green-ink); border-color: transparent; }
.pill.now, .pill.open { background: var(--amber-soft); color: var(--amber); border-color: transparent; }

/* Needs */
.needs, .topics, .docs, .comments { list-style: none; margin: 0; padding: 0; }
.needs { display: flex; flex-direction: column; gap: 8px; }
.need { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--amber); border-radius: 12px; text-decoration: none; color: var(--ink); }
.need.answered, .need.done { border-left-color: var(--green); }
.need strong { font-weight: 600; }
.need .pill { align-self: flex-start; }
.need-kind { font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

/* Forms */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.card.green { background: var(--green-soft); border-color: transparent; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
label { font-weight: 600; font-size: .95rem; }
input[type=email], input[inputmode], textarea { font: inherit; width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); }
input:focus, textarea:focus { border-color: var(--green); outline: none; }
input.code { font-size: 1.6rem; letter-spacing: .3em; text-align: center; font-variant-numeric: tabular-nums; }
fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
legend { font-weight: 600; margin-bottom: 6px; }
.choice { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; font-weight: 500; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--green); background: var(--green-soft); }
.choice input { width: 20px; height: 20px; accent-color: var(--green); flex: none; }
.btn { font: inherit; font-weight: 700; border: 0; border-radius: 12px; padding: 13px 18px; background: var(--green); color: #fff; cursor: pointer; text-align: center; text-decoration: none; display: inline-block; }
.btn.ghost { background: transparent; color: var(--green-ink); border: 1.5px solid var(--green); }
.btn.small { padding: 6px 12px; font-size: .88rem; }
button.link { font: inherit; background: none; border: 0; color: var(--green-ink); text-decoration: underline; cursor: pointer; padding: 0; }
.error { color: var(--red); font-weight: 600; }
.ok { background: var(--green-soft); color: var(--green-ink); padding: 10px 14px; border-radius: 10px; font-weight: 600; }
.login { max-width: 420px; gap: 14px; }
.comments { display: flex; flex-direction: column; gap: 10px; }
.comments li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }

/* Material */
.topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.topic { display: flex; flex-direction: column; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px; text-decoration: none; color: var(--ink); height: 100%; }
.topic img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #fff; border-radius: 8px; }
.noimg { display: grid; place-items: center; aspect-ratio: 4 / 3; background: var(--green-soft); color: var(--green-ink); border-radius: 8px; font-weight: 700; }
.split { display: grid; gap: 28px; }
@media (min-width: 820px) { .split { grid-template-columns: 1fr 1fr; align-items: start; } .gallery { position: sticky; top: 76px; } }
.gallery { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
figure { margin: 0; display: flex; flex-direction: column; gap: 4px; }
figure img { max-width: 100%; height: auto; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
figcaption { font-size: .82rem; color: var(--muted); }
.bristol { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 10px; }
.bristol figure { align-items: center; text-align: center; }
.compare { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.steps { margin: 10px 0 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.docs { display: flex; flex-direction: column; gap: 10px; }
.docs a { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); }
.docs strong { font-family: var(--display); color: var(--green-ink); font-size: 1.1rem; }
.docs span { color: var(--muted); font-size: .95rem; }

/* Long text from transcriptions and docs */
.prose { min-width: 0; max-width: 68ch; }
.prose.wide { max-width: none; }
.prose h1 { font-size: 1.6rem; margin: 8px 0 12px; }
.prose h2 { font-size: 1.25rem; margin: 26px 0 8px; }
.prose h3 { font-size: 1.05rem; margin: 18px 0 6px; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose pre { margin: 0 0 12px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose blockquote { border-left: 3px solid var(--green); padding-left: 12px; color: var(--muted); }
.prose table { border-collapse: collapse; display: block; overflow-x: auto; margin-bottom: 14px; font-size: .92rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 6px 10px; text-align: left; vertical-align: top; }
.prose pre { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 12px; font-size: .78rem; line-height: 1.35; }
.prose code { font-size: .88em; }
.foot { padding-block: 20px 40px; color: var(--muted); font-size: .88rem; border-top: 1px solid var(--line); padding-bottom: max(40px, env(safe-area-inset-bottom)); }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
