
/* Layout: one printed-card column (max 34rem): brand band, the recommend question as hero, four detail rows, then the team tally. */
:root {
  --bg: #ebe4d6;
  --card: #fcf9f2;
  --ink: #2a1c12;
  --ink-soft: #6f5b4a;
  --band: #321912;
  --band-ink: #fcf9f2;
  --rule: #d6c7b1;
  --field: #f3ebdb;
  --pip: #e6d9c3;
  --pip-ink: #5a4636;
  --hero: #c96a22;
  --s1: #dd5d5e;
  --s2: #efb839;
  --s3: #dd8336;
  --s4: #46bea5;
  --logo-bg: #ffffff;
  --tan: #ecdcbc;
  --amber: #e9a23b;
  --gold: #f3cd55;
  --orange: #c96a22;
  --shadow: 0 1px 2px rgba(42,28,18,.10), 0 10px 28px rgba(42,28,18,.12);
  --script: "Yellowtail", "Brush Script MT", cursive;
  --display: "Alfa Slab One", Rockwell, Georgia, serif;
  --body: "Barlow", "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #16100b;
    --card: #231811;
    --ink: #f4ecdf;
    --ink-soft: #b49f8a;
    --band: #0f0905;
    --band-ink: #f4ecdf;
    --rule: #4b3627;
    --field: #2d2017;
    --pip: #3a2a1e;
    --pip-ink: #d9c7b2;
    --hero: #ec7a3c;
    --s1: #ec7172;
    --s2: #f2c04e;
    --s3: #e8924a;
    --s4: #56cdb4;
    --shadow: 0 1px 2px rgba(0,0,0,.5), 0 12px 32px rgba(0,0,0,.45);
    --tan: #3b2b1d;
  --amber: #b9792a;
  --gold: #c9a23a;
  --orange: #d9772f;
  color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #16100b;
  --card: #231811;
  --ink: #f4ecdf;
  --ink-soft: #b49f8a;
  --band: #0f0905;
  --band-ink: #f4ecdf;
  --rule: #4b3627;
  --field: #2d2017;
  --pip: #3a2a1e;
  --pip-ink: #d9c7b2;
  --hero: #ec7a3c;
  --s1: #ec7172;
  --s2: #f2c04e;
  --s3: #e8924a;
  --s4: #56cdb4;
  --shadow: 0 1px 2px rgba(0,0,0,.5), 0 12px 32px rgba(0,0,0,.45);
  --tan: #3b2b1d;
  --amber: #b9792a;
  --gold: #c9a23a;
  --orange: #d9772f;
  color-scheme: dark;
}

* { box-sizing: border-box; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--body); font-size: 16px; line-height: 1.5;
  padding-inline: 16px; padding-block: 24px 56px;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 34rem; margin-inline: auto; display: flex; flex-direction: column; gap: 28px; }

.card { background: var(--card); border-radius: 10px; box-shadow: var(--shadow); overflow: hidden; }

/* brand band: the real logo on its own white ground, then a four-stripe rule in the logo's colors */
.band { background: var(--logo-bg); text-align: center; padding: 14px 16px 10px; }
.band img { display: block; width: 72%; max-width: 15rem; height: auto; margin: 0 auto; }
.band .sub { margin: 2px 0 0; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: #6f5b4a; }
.stripes { display: grid; grid-template-rows: repeat(4, 5px); }
.stripes i:nth-child(1) { background: var(--s1); }
.stripes i:nth-child(2) { background: var(--s2); }
.stripes i:nth-child(3) { background: var(--s3); }
.stripes i:nth-child(4) { background: var(--s4); }
.body { padding-top: 18px !important; }

.body { padding: 4px 18px 20px; display: flex; flex-direction: column; gap: 22px; }

/* written fields */
.fields { display: flex; flex-direction: column; gap: 12px; }
.field { display: grid; gap: 5px; min-width: 0; }
.field label, .eyebrow {
  font-size: .68rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; color: var(--ink-soft);
}
.field input {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--field);
  border: 0; border-bottom: 2px solid var(--rule); border-radius: 3px 3px 0 0;
  padding: 8px 10px; width: 100%; min-width: 0;
}
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 420px) { .two { grid-template-columns: 1fr; } }
input:focus-visible, button:focus-visible { outline: 3px solid var(--hero); outline-offset: 2px; }

/* steps */
[hidden] { display: none !important; }
.progress { display: flex; gap: 4px; }
.progress i { flex: 1; height: 5px; border-radius: 3px; background: var(--pip); display: block; }
.progress i.done { background: var(--hero); }
.steplabel { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.step { display: flex; flex-direction: column; gap: 14px; }
.step h2 { font-family: var(--display); font-weight: 400; font-size: 1.35rem; line-height: 1.2; margin: 0; text-wrap: balance; }
.step .desc { margin: 0; color: var(--ink-soft); font-size: .95rem; max-width: 60ch; }
.step[data-cat="density"]    { --dot: var(--s1); }
.step[data-cat="flavor"]     { --dot: var(--s3); }
.step[data-cat="value"]      { --dot: var(--s2); }
.step[data-cat="uniqueness"] { --dot: var(--s4); }
.step[data-cat="recommend"]  { --dot: var(--hero); }
.step h2 .sw { display: inline-block; width: .7em; height: .7em; border-radius: 50%; background: var(--dot); margin-right: .35em; vertical-align: .05em; }

.opts { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; border: 0; min-width: 0; }
.opt { display: grid; grid-template-columns: 1.3rem 2rem minmax(0,1fr); gap: 10px; align-items: center;
  padding: 8px 10px; border-radius: 6px; background: var(--field); cursor: pointer; border: 2px solid transparent; }
.opt input { appearance: none; -webkit-appearance: none; margin: 0; width: 1.3rem; height: 1.3rem; border: 2px solid var(--ink-soft); border-radius: 4px; display: grid; place-items: center; cursor: pointer; background: var(--card); }
.opt input:checked { background: var(--dot); border-color: var(--dot); }
.opt input:checked::after { content: ""; width: .35rem; height: .65rem; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: translateY(-1px) rotate(45deg); }
.opt input:focus-visible { outline: 3px solid var(--hero); outline-offset: 2px; }
.opt .n { font-family: var(--display); font-size: 1.1rem; font-variant-numeric: tabular-nums; text-align: center; }
.opt .t { min-width: 0; font-size: .95rem; }
.opt:has(input:checked) { border-color: var(--dot); background: color-mix(in srgb, var(--dot) 14%, var(--card)); }
.opt:has(input:checked) .t { font-weight: 600; }

.weight { display: inline-flex; align-self: flex-start; gap: 6px; align-items: baseline; background: color-mix(in srgb, var(--dot, var(--hero)) 16%, var(--card)); border-radius: 999px; padding: 3px 12px; font-size: .82rem; font-weight: 600; }
.weight b { font-family: var(--display); font-weight: 400; font-size: 1rem; font-variant-numeric: tabular-nums; }
.sideopt { grid-template-columns: 1.3rem minmax(0,1fr); }
.step[data-cat="side"] { --dot: var(--s4); }
.sides-line { margin: 0; font-size: .85rem; color: var(--ink-soft); }
.sides-line b { color: var(--ink); }
.sofar { background: var(--field); border-radius: 8px; padding: 10px 14px; display: flex; align-items: baseline; gap: 12px; }
.sofar strong { font-family: var(--display); font-weight: 400; font-size: 1.8rem; line-height: 1; font-variant-numeric: tabular-nums; }
.sofar span { font-size: .9rem; color: var(--ink-soft); }

.result { border: 2px solid var(--band); border-radius: 8px; padding: 12px 14px; display: grid; grid-template-columns: auto minmax(0,1fr); gap: 14px; align-items: center; }
.result strong { font-family: var(--display); font-weight: 400; font-size: 2.6rem; line-height: 1; color: var(--hero); font-variant-numeric: tabular-nums; }
.result p { margin: 0; font-size: .85rem; color: var(--ink-soft); }
.result p b { color: var(--ink); display: block; font-size: .95rem; }

.nav { display: flex; gap: 10px; }
.nav button { font-family: var(--display); font-size: 1rem; letter-spacing: .03em; border: 0; border-radius: 6px; padding: 13px 18px; cursor: pointer; }
.nav .back { background: transparent; color: var(--ink-soft); border: 2px solid var(--rule); flex: 0 0 auto; }
.nav .go { background: var(--band); color: var(--band-ink); flex: 1; }
:root[data-theme="dark"] .nav .go { background: var(--hero); color: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .nav .go { background: var(--hero); color: #fff; } }
.nav .go:disabled { opacity: .45; cursor: not-allowed; }
.note { font-size: .84rem; color: var(--ink-soft); margin: 0; }
.note.err { color: var(--s1); font-weight: 600; }
.done-msg { text-align: center; display: grid; gap: 8px; justify-items: center; }
.done-msg strong { font-family: var(--display); font-weight: 400; font-size: 3rem; line-height: 1; color: var(--hero); }

/* tally */
.tally h2 { font-family: var(--display); font-weight: 400; font-size: 1.1rem; margin: 0; }
.tally > p { margin: 2px 0 14px; font-size: .85rem; color: var(--ink-soft); }
.visits { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.visit { background: var(--card); border-radius: 10px; box-shadow: var(--shadow); padding: 14px 16px; display: grid; gap: 12px; }
.visit-top { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 14px; align-items: center; }
.big { text-align: center; }
.big strong { font-family: var(--display); font-weight: 400; font-size: 2.1rem; line-height: 1; color: var(--hero); display: block; font-variant-numeric: tabular-nums; }
.big small { font-size: .6rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.visit-name { min-width: 0; }
.visit-name b { display: block; font-size: 1.05rem; overflow-wrap: anywhere; }
.visit-name small { color: var(--ink-soft); font-size: .8rem; }
.raters { display: flex; flex-wrap: wrap; gap: 6px; }
.raters span { background: var(--field); border-radius: 999px; padding: 2px 10px; font-size: .8rem; font-variant-numeric: tabular-nums; }
.raters span b { color: var(--hero); }
.bars { display: grid; gap: 6px; }
.bar { display: grid; grid-template-columns: 6.4rem minmax(0,1fr) 2.2rem; gap: 8px; align-items: center; font-size: .82rem; }
.bar .track { height: 8px; background: var(--pip); border-radius: 4px; overflow: hidden; }
.bar .fill { height: 100%; border-radius: 4px; background: var(--dot); }
.bar em { font-style: normal; text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-soft); }
.why { margin: 0; font-size: .88rem; color: var(--ink); border-left: 3px solid var(--rule); padding-left: 10px; }
.why span { color: var(--ink-soft); }
.empty { border: 2px dashed var(--rule); border-radius: 10px; padding: 18px 16px; color: var(--ink-soft); font-size: .9rem; }
.empty b { color: var(--ink); display: block; margin-bottom: 3px; }
footer { font-size: .78rem; color: var(--ink-soft); text-align: center; }
footer a { color: var(--hero); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* page header + place banner */
.place-banner { background: var(--field); border-radius: 8px; padding: 10px 14px; display: grid; gap: 2px; }
.place-banner b { font-family: var(--display); font-weight: 400; font-size: 1.3rem; line-height: 1.2; overflow-wrap: anywhere; }
.place-banner span { font-size: .85rem; color: var(--ink-soft); }
.closed-box { border: 2px dashed var(--rule); border-radius: 10px; padding: 16px; display: grid; gap: 4px; }
.closed-box b { font-family: var(--display); font-weight: 400; font-size: 1.15rem; }
.closed-box span { color: var(--ink-soft); font-size: .92rem; }
.go-btn { font-family: var(--display); font-size: 1rem; letter-spacing: .03em; border: 0; border-radius: 6px; padding: 13px 18px; cursor: pointer; background: var(--band); color: var(--band-ink); width: 100%; }
:root[data-theme="dark"] .go-btn { background: var(--hero); color: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .go-btn { background: var(--hero); color: #fff; } }
.go-btn:disabled { opacity: .45; cursor: not-allowed; }
.foot-links { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; font-size: .82rem; }
.foot-links a { color: var(--hero); }

/* board */
.tally { display: flex; flex-direction: column; gap: 10px; }
.board-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.board-head h2 { font-family: var(--display); font-weight: 400; font-size: 1.1rem; margin: 0; }
.board-pick { font: inherit; font-size: .92rem; color: var(--ink); background: var(--card); border: 2px solid var(--rule); border-radius: 6px; padding: 6px 8px; max-width: 100%; min-width: 0; }
.board-note { margin: 0; font-size: .85rem; color: var(--ink-soft); }
