/* TasteBranch v1. White page, black and coloured boxes, one warm light colour for the stream of light, an editorial serif for names. */
:root {
  --bg: #ffffff;
  --surface: #faf8f3;
  --surface-2: #f2eee5;
  --line: #e7e1d6;
  --line-2: #cdc5b6;
  --text: #14110d;
  --muted: #5d564c;
  --dim: #766e62;
  --light: #f0a52e;
  --light-2: #f6c27a;
  --light-a: rgba(240, 165, 46, 0.14);
  --light-glow: rgba(240, 165, 46, 0.45);
  --ink-accent: #8a5200;
  --stone: #b9ad9b;
  --sea: #f4f1ea;
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --r: 14px;
}
* { box-sizing: border-box; }
html { color-scheme: light; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(1100px 460px at 50% -160px, rgba(240, 165, 46, 0.16), transparent 62%), var(--bg);
  background-repeat: no-repeat;
  color: var(--text);
  font: 400 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, fieldset, legend { margin: 0; padding: 0; }
ul { list-style: none; }
fieldset { border: 0; min-width: 0; }
a { color: var(--ink-accent); text-underline-offset: 3px; }
a:hover { color: var(--text); }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--light); color: #1a1206; padding: 8px 12px; border-radius: 8px; z-index: 5; }
.skip:focus { top: 12px; }

.app { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0 10px; }
.brand { display: inline-flex; align-items: baseline; gap: 8px; color: var(--text); text-decoration: none; }
.brand-mark { width: 22px; height: 22px; color: var(--ink-accent); align-self: center; filter: drop-shadow(0 0 6px var(--light-glow)); }
.brand-name { font: 500 1.25rem/1 var(--serif); letter-spacing: -0.01em; }
.brand-by { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }

.preview { display: inline-block; margin: 0 0 4px; padding: 6px 12px; border: 1px solid var(--light); border-radius: 999px; background: var(--light-a); color: var(--ink-accent); font-size: 0.84rem; }
.eyebrow { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-accent); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border: 1px solid var(--line-2); border-radius: 999px; background: transparent; color: var(--text);
  font-weight: 500; font-size: 0.92rem; text-decoration: none; transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.btn:hover { border-color: var(--text); color: var(--text); }
.btn.primary { background: var(--text); border-color: var(--text); color: #ffffff; box-shadow: 0 6px 22px -10px rgba(20, 17, 13, 0.55); }
.btn.primary:hover { background: #000000; color: #ffffff; }
.btn[disabled] { opacity: 0.4; cursor: not-allowed; box-shadow: none; }
.btn.small { min-height: 36px; padding: 0 14px; font-size: 0.84rem; }
.src { font-size: 0.84rem; color: var(--muted); overflow-wrap: anywhere; }
.dov { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.tchip { display: inline-block; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--light); color: var(--ink-accent); background: var(--light-a); font-size: 0.76rem; white-space: nowrap; }
.lab { display: block; font: 500 0.66rem/1.3 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-accent); margin-bottom: 2px; }
.linkish { border: 0; background: none; padding: 0; color: var(--ink-accent); text-decoration: underline; text-underline-offset: 3px; font-size: inherit; text-align: left; }
.foot { margin: 44px 0 0; padding: 22px 0 34px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.86rem; display: grid; gap: 4px; }
.foot-brand { font: 500 1rem/1.3 var(--serif); color: var(--text); }
.foot-small { color: var(--dim); font-size: 0.78rem; margin-top: 6px; }
.toast { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--text); color: #ffffff; padding: 10px 16px; border-radius: 999px; font-size: 0.9rem; transition: opacity 0.25s, transform 0.25s; max-width: calc(100vw - 32px); z-index: 10; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.noscript { padding: 24px 0; }

/* ===== Onboarding: one question per screen ===== */
.view { min-height: 60vh; }
.ob { max-width: 620px; margin: 0 auto; padding: 18px 0 8px; }
.ob-top { display: flex; align-items: center; gap: 12px; margin-bottom: 30px; }
.back { border: 1px solid var(--line-2); background: transparent; border-radius: 999px; min-height: 36px; padding: 0 14px; font-size: 0.86rem; flex: none; }
.back[disabled] { opacity: 0.35; cursor: not-allowed; }
.bar { flex: 1; height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--light); border-radius: 999px; transition: width 0.3s; }
.ob-n { font-size: 0.78rem; color: var(--muted); flex: none; min-width: 52px; text-align: right; }
.q { font: 500 clamp(1.7rem, 6vw, 2.5rem)/1.12 var(--serif); letter-spacing: -0.015em; margin-bottom: 10px; outline: none; }
.hint { color: var(--muted); margin-bottom: 18px; }
.hint.small { font-size: 0.86rem; margin-top: 10px; }
.field { width: 100%; min-height: 52px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: var(--r); background: #fff; font-size: 1.05rem; }
.field:focus { border-color: var(--text); outline: none; box-shadow: 0 0 0 3px var(--light-a); }
.taps { display: grid; gap: 10px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-bottom: 14px; }
.tap { min-height: 52px; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: var(--r); background: #fff; text-align: left; font-size: 1rem; line-height: 1.25; overflow-wrap: anywhere; transition: border-color 0.15s, background 0.15s; }
.grid .tap { min-height: 48px; font-size: 0.94rem; }
.tap:hover { border-color: var(--text); }
.tap.on { background: var(--text); border-color: var(--text); color: #fff; }
.under { margin-top: 16px; font-size: 0.9rem; }
.consent { margin: 14px 0 10px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); font-size: 0.92rem; color: var(--text); }
.tick { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 1rem; }
.tick input { width: 22px; height: 22px; accent-color: var(--text); }
.city { margin-top: 18px; }
.lab2 { display: block; font-weight: 500; margin-bottom: 8px; }
.combo { position: relative; }
.sugg { display: grid; gap: 6px; margin-top: 8px; }
.sg { min-height: 44px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); text-align: left; }
.sg span { color: var(--muted); font-size: 0.84rem; margin-left: 6px; }
.sg:hover { border-color: var(--text); }
.addrow { display: flex; gap: 8px; }
.addrow .field { min-height: 46px; font-size: 0.96rem; }
.addrow .btn { flex: none; min-height: 46px; }
.count { color: var(--muted); font-size: 0.86rem; margin-top: 8px; }
.note { min-height: 1.5em; margin-top: 12px; color: var(--ink-accent); font-size: 0.94rem; }
.ob-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.ob-actions .btn { min-height: 50px; min-width: 150px; font-size: 1rem; }
.btn.big { min-width: 200px; }
.sum { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #fff; }
.sumrow { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr) auto; gap: 10px; align-items: baseline; padding: 11px 14px; border-top: 1px solid var(--line); }
.sumrow:first-child { border-top: 0; }
.sumrow dt { color: var(--muted); font-size: 0.86rem; overflow-wrap: anywhere; }
.sumrow dd { margin: 0; overflow-wrap: anywhere; }
.sumrow .linkish { min-height: 32px; padding: 0 4px; }

/* ===== Tree: one thing at a time ===== */
.tree { max-width: 760px; margin: 0 auto; padding: 14px 0 0; }
.hello { font: 500 clamp(1.6rem, 5.4vw, 2.3rem)/1.12 var(--serif); letter-spacing: -0.015em; margin: 4px 0 14px; outline: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border-radius: 999px; font-size: 0.86rem; max-width: 100%; overflow-wrap: anywhere; }
.chip.place { background: var(--text); color: #fff; }
.chip.area { background: var(--light-a); border: 1px solid var(--light); color: var(--ink-accent); }
.chip.prio { background: var(--light-2); color: #2a1a00; font-weight: 600; }
.chip em { font-style: normal; font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; }
.soon, .device { color: var(--muted); font-size: 0.9rem; margin-bottom: 8px; }
.path { list-style: none; margin: 18px 0 0; padding: 0 0 0 9px; }
.past { position: relative; padding: 0 0 16px 24px; border-left: 3px solid var(--light); }
.past.skip { border-left-color: var(--line-2); }
.past .dot { position: absolute; left: -9px; top: 2px; width: 15px; height: 15px; border-radius: 50%; background: var(--light); box-shadow: 0 0 10px var(--light-glow); }
.past.skip .dot { background: #fff; border: 2px solid var(--line-2); box-shadow: none; }
.ptitle { font-weight: 500; overflow-wrap: anywhere; }
.pst { font-size: 0.74rem; color: var(--muted); margin-left: 6px; }
.xlink { margin-top: 6px; padding: 8px 12px; border-left: 3px solid var(--light); background: var(--light-a); border-radius: 0 10px 10px 0; font-size: 0.92rem; }
.now { margin: 6px 0 0; padding: 20px; border: 1px solid var(--light); border-radius: 18px; background: linear-gradient(180deg, #fff6e3, #fff 55%); box-shadow: 0 14px 40px -26px rgba(138, 82, 0, 0.6); }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0 8px; }
.area { font-size: 0.8rem; color: var(--muted); }
.stitle { font: 500 1.45rem/1.18 var(--serif); letter-spacing: -0.01em; overflow-wrap: anywhere; }
.opt .stitle { font-size: 1.16rem; }
.by { color: var(--muted); font-size: 0.9rem; margin-top: 2px; }
.what { margin-top: 10px; }
.prep { margin-top: 8px; font-size: 0.9rem; color: var(--ink-accent); }
.where, .short, .shift, .quick { margin-top: 10px; font-size: 0.94rem; }
.whyline { margin-top: 12px; padding: 9px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; font-size: 0.9rem; color: var(--text); overflow-wrap: anywhere; }
.row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.options { margin-top: 14px; }
.oh { font: 500 1.3rem/1.2 var(--serif); outline: none; }
.repl { color: var(--muted); font-size: 0.9rem; margin: 4px 0 12px; }
.ogrid { display: grid; gap: 12px; }
.opt { padding: 16px; border: 1px solid var(--line-2); border-radius: 16px; background: #fff; }
.endline { margin-top: 18px; color: var(--muted); }
.controls { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); }
.confirm { margin-top: 12px; padding: 14px; border: 1px solid var(--text); border-radius: var(--r); background: var(--surface); }
.prose { max-width: 720px; }
.prose h1 { font: 500 2rem/1.15 var(--serif); margin: 18px 0 12px; }
.prose h2 { font: 500 1.2rem/1.2 var(--serif); margin: 22px 0 6px; }
.prose p { margin-bottom: 10px; }
.modeline { padding: 12px 14px; background: var(--light-a); border: 1px solid var(--light); border-radius: var(--r); }
@media (min-width: 860px) { .ogrid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); } .tree { max-width: 980px; } .now, .path, .chips, .soon, .device, .hello, .tree > .eyebrow { max-width: 760px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
