/* Camber Home. Layout concept: a shop window. Photography carries the page; type is quiet and editorial;
   the accent marks only what the page did for you (ticks, the why line, the budget, the Ask button).
   The shop's four themes are the owner's to choose and do not follow the viewer's light or dark setting. */
:root {
  --bg: #f7f4ee;
  --surface: #efe9df;
  --photo: #dcd7d1;
  --ink: #1c1b19;
  --muted: #645e55;
  --line: #ddd5c9;
  --accent: #a84b2a;
  --on-accent: #ffffff;
  --glow: #f2b45c;

  --display: 'Gloock', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --sans: 'Schibsted Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --t-xs: 0.75rem; --t-sm: 0.8125rem; --t-base: 0.9375rem; --t-md: 1.0625rem; --t-lg: 1.25rem;
  --t-xl: 1.75rem; --t-2xl: 2.375rem; --t-3xl: 3.25rem; --t-hero: clamp(2.75rem, 6vw, 4.75rem);

  --maxw: 1240px;
  --pad-x: max(16px, env(safe-area-inset-left, 0px));
  --pad-x-r: max(16px, env(safe-area-inset-right, 0px));
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
:root[data-shop="warm"] { --bg: #f1e5d0; --surface: #e8d9c0; --photo: #ddd3c4; --ink: #2a1d15; --muted: #6e5a4b; --line: #dccab0; --accent: #94381a; --on-accent: #fff; }
:root[data-shop="evening"] { --bg: #161412; --surface: #221e1a; --photo: #2b2621; --ink: #f1ebe2; --muted: #b3a798; --line: #39332c; --accent: #e7a06e; --on-accent: #1b120b; color-scheme: dark; }
:root[data-shop="sage"] { --bg: #eef1ec; --surface: #e2e8e0; --photo: #d9dfd6; --ink: #17201b; --muted: #56655c; --line: #cfd9cf; --accent: #2f6049; --on-accent: #fff; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: var(--t-base); line-height: 1.5; margin: 0; transition: background-color .4s var(--ease), color .4s var(--ease); }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg { width: 1em; height: 1em; flex: none; }

/* ---------- the honesty strip, header, banner, footer ---------- */
.strip { background: #1d1c1a; color: #e8e2d8; font-size: var(--t-xs); letter-spacing: .01em; }
.strip-in, .top-in, .foot-in, .main, .banner-in { max-width: calc(var(--maxw) + 64px); margin: 0 auto; padding-left: var(--pad-x); padding-right: var(--pad-x-r); }
.strip-in { padding-block: 7px; }
.top { border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 28px; padding-block: 18px; }
.wordmark { font-family: var(--display); font-size: 1.625rem; line-height: 1; color: var(--ink); text-decoration: none; letter-spacing: -.01em; white-space: nowrap; }
.wordmark em, .foot-name em { font-style: normal; color: var(--accent); }
.nav { display: flex; gap: 22px; flex: 1; justify-content: center; }
.nav button { background: none; border: 0; padding: 4px 0; cursor: pointer; font-size: var(--t-sm); color: var(--muted); border-bottom: 1px solid transparent; }
.nav button:hover { color: var(--ink); border-bottom-color: var(--ink); }
.edit-open { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .02em; padding: 8px 12px; border: 1px dashed currentColor; border-radius: 4px; background: transparent; cursor: pointer; color: var(--ink); }
.edit-open:hover { background: var(--ink); color: var(--bg); border-style: solid; }
.banner { background: var(--ink); color: var(--bg); text-align: center; font-size: var(--t-sm); }
.banner-in { padding-block: 9px; }
.foot { margin-top: 96px; border-top: 1px solid var(--line); }
.foot-in { padding-block: 40px 56px; display: grid; gap: 8px; color: var(--muted); font-size: var(--t-sm); max-width: calc(var(--maxw) + 64px); }
.foot-in p { margin: 0; max-width: 62ch; }
.foot-name { font-family: var(--display); font-size: var(--t-xl); color: var(--ink); }
.foot-small { font-size: var(--t-xs); }

.main { padding-block: 0; outline: none; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding-block: clamp(28px, 5vw, 64px) clamp(40px, 6vw, 88px); }
.hero-text { min-width: 0; }
.display { font-family: var(--display); font-weight: 400; letter-spacing: -.015em; line-height: 1.02; text-wrap: balance; margin: 0; }
.hero h1 { font-size: var(--t-hero); }
.lede { font-size: var(--t-lg); color: var(--muted); margin: 18px 0 30px; max-width: 34ch; }
.hero-pic { margin: 0; position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--photo); border-radius: 2px; }
.hero-img { width: 100%; height: 100%; object-fit: cover; }
.hero-pic.featured figcaption { position: absolute; left: 16px; bottom: 16px; right: 16px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; background: color-mix(in srgb, var(--bg) 92%, transparent); padding: 12px 16px; backdrop-filter: blur(6px); }
.hero-pic.featured strong { font-weight: 600; }
.hero-pic.featured figcaption > span:last-child { margin-left: auto; }

/* ---------- the ask box ---------- */
.ask { display: grid; gap: 8px; }
.ask-label { font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.ask-row { display: flex; gap: 0; border: 1.5px solid var(--ink); border-radius: 3px; background: var(--bg); overflow: hidden; }
.ask input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 15px 16px; font: inherit; font-size: var(--t-md); color: var(--ink); outline: none; }
.ask input::placeholder { color: color-mix(in srgb, var(--muted) 80%, transparent); }
.ask-row:focus-within { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 28%, transparent); }
.ask-go { border: 0; background: var(--ink); color: var(--bg); padding: 0 24px; font-weight: 600; cursor: pointer; letter-spacing: .01em; }
.ask-go:hover { background: var(--accent); color: var(--on-accent); }
.ask-go[disabled] { opacity: .6; cursor: progress; }

.try { margin-top: 26px; }
.try-label { font-size: var(--t-sm); color: var(--muted); margin: 0 0 8px; }
.try-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.try-list li { border-bottom: 1px solid var(--line); }
.try-q { width: 100%; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 10px 2px; background: none; border: 0; cursor: pointer; text-align: left; }
.try-words { font-size: var(--t-base); }
.try-words::before { content: '“'; color: var(--accent); margin-right: 1px; }
.try-words::after { content: '”'; color: var(--accent); }
.try-shape { font-family: var(--mono); font-size: var(--t-xs); color: var(--muted); white-space: nowrap; letter-spacing: .02em; }
.try-q:hover .try-words { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.try-q:hover .try-shape { color: var(--accent); }

.own { margin: 22px 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; font-size: var(--t-sm); color: var(--muted); }
.own-tag { font-family: var(--mono); font-size: var(--t-xs); color: var(--ink); border: 1px dashed currentColor; border-radius: 3px; padding: 1px 6px; }
.own-go { background: none; border: 0; padding: 0; cursor: pointer; font-size: var(--t-sm); font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.own-go:hover { color: var(--accent); }

/* ---------- home shelves ---------- */
.sections { display: grid; gap: clamp(56px, 7vw, 96px); }
.shelf-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.shelf-title { font-family: var(--display); font-weight: 400; font-size: var(--t-2xl); line-height: 1.05; margin: 0 0 6px; letter-spacing: -.01em; }
.shelf-intro { margin: 0; color: var(--muted); max-width: 52ch; }
.see-all { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; border-bottom: 1px solid var(--ink); padding: 2px 0; cursor: pointer; font-size: var(--t-sm); white-space: nowrap; }
.see-all:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 24px; }
.cards.a-1 { grid-template-columns: minmax(0, 1fr); }
.cards.a-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards.a-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { min-width: 0; display: flex; flex-direction: column; }
.pic { margin: 0; position: relative; aspect-ratio: 3 / 4; background: var(--photo); overflow: hidden; border-radius: 2px; }
.pic img { width: 100%; height: 100%; object-fit: cover; transition: opacity .25s var(--ease); }
.card-text { padding-top: 12px; display: grid; gap: 8px; align-content: start; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.card-name { font-size: var(--t-base); font-weight: 600; margin: 0; line-height: 1.3; }
.price { white-space: nowrap; }
.spec { margin: 0; color: var(--muted); font-size: var(--t-sm); }
.sep { margin: 0 6px; opacity: .6; }
.note { color: var(--muted); font-size: var(--t-sm); margin: 0; }
.marks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.marks li { font-size: var(--t-xs); padding: 2px 7px; border: 1px solid var(--line); border-radius: 3px; color: var(--muted); }

.swatches { display: flex; flex-wrap: wrap; gap: 6px; }
.swatch { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px 3px 4px; border: 1px solid var(--line); border-radius: 3px; background: transparent; cursor: pointer; font-size: var(--t-xs); color: var(--muted); }
.swatch .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .14); }
.swatch[aria-pressed="true"] { border-color: var(--ink); color: var(--ink); }
.swatch:hover { color: var(--ink); }
.swatches.big .swatch { padding: 7px 12px 7px 8px; font-size: var(--t-sm); }
.swatches.big .dot { width: 16px; height: 16px; }

.wbar { display: flex; align-items: center; gap: 10px; }
.wbar-track { flex: 1; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.wbar-fill { display: block; height: 100%; width: calc(var(--w) * 100%); background: color-mix(in srgb, var(--ink) 55%, var(--bg)); border-radius: 2px; transition: width .4s var(--ease); }
.wbar-num { font-size: var(--t-xs); color: var(--muted); }

.ticks { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.ticks li { display: inline-flex; align-items: center; gap: 5px; font-size: var(--t-sm); }
.ticks li.ok svg { color: var(--accent); width: 13px; height: 13px; }
.ticks li.no { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1px; }
.ticks li.no svg { width: 12px; height: 12px; }

/* the light switch on a lamp */
.switch { position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 7px; padding: 5px 9px 5px 6px; border-radius: 999px; border: 0; background: rgb(255 255 255 / .86); color: #1c1b19; font-size: var(--t-xs); font-weight: 600; cursor: pointer; backdrop-filter: blur(6px); box-shadow: 0 1px 2px rgb(0 0 0 / .12); }
.switch-track { width: 26px; height: 15px; border-radius: 999px; background: #c9c3ba; position: relative; transition: background .25s var(--ease); }
.switch-knob { position: absolute; top: 2px; left: 2px; width: 11px; height: 11px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / .25); transition: transform .25s var(--ease); }
.switch[aria-pressed="true"] .switch-track { background: var(--glow); }
.switch[aria-pressed="true"] .switch-knob { transform: translateX(11px); }
.is-lit::after { content: ''; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 1px rgb(242 180 92 / .35); }

/* list form */
.cards.form-list { grid-template-columns: minmax(0, 1fr); gap: 0; border-top: 1px solid var(--line); }
.form-list .card { flex-direction: row; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.form-list .pic { width: 120px; flex: none; }
.form-list .ph-small .pic { width: 84px; }
.form-list .ph-large .pic { width: min(300px, 40%); }
.form-list .card-text { padding-top: 0; flex: 1; }
.cards .ph-small .pic { aspect-ratio: 1; }

/* ---------- an answer ---------- */
.answer-top { display: flex; align-items: flex-end; gap: 20px; padding-block: 18px 0; }
.answer-top .ask { flex: 1; max-width: 640px; margin-left: auto; }
.answer-top .ask-label { display: none; }
.answer-top .ask input { padding: 11px 14px; font-size: var(--t-base); }
.back { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; cursor: pointer; padding: 10px 0; font-size: var(--t-sm); color: var(--muted); }
.back:hover { color: var(--ink); }

.answer { padding-top: clamp(24px, 4vw, 48px); }
.answer-head { display: grid; gap: 14px; margin-bottom: clamp(28px, 4vw, 44px); max-width: 980px; }
.kicker { font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .14em; color: var(--accent); margin: 0; font-weight: 600; }
.q { font-size: clamp(2.125rem, 4.6vw, 3.5rem); max-width: 22ch; }
.qm { color: var(--accent); }
.why { margin: 0; font-size: var(--t-md); display: flex; gap: 12px; align-items: baseline; max-width: 64ch; }
.why-mark { width: 9px; height: 9px; background: var(--accent); flex: none; transform: translateY(-1px); }
.answer-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 8px 5px 11px; border: 1px solid var(--line); background: var(--surface); border-radius: 3px; font-size: var(--t-sm); cursor: pointer; }
.chip span { color: var(--muted); font-size: 1rem; line-height: 1; }
.chip:hover { border-color: var(--ink); }
.mark { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-family: var(--mono); font-size: var(--t-xs); color: var(--muted); letter-spacing: .02em; }
.mark-dot { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid currentColor; }
.mark-live { color: var(--ink); }
.mark-live .mark-dot { background: #3f9b5c; border-color: #3f9b5c; box-shadow: 0 0 0 3px rgb(63 155 92 / .2); }
.mark-none .mark-dot { border-radius: 1px; height: 2px; border-width: 1px; }
.count { font-size: var(--t-sm); color: var(--muted); margin: 0 0 16px; }

.decided { margin-top: 48px; border-top: 1px solid var(--line); padding-top: 14px; max-width: 760px; }
.decided summary { cursor: pointer; font-size: var(--t-sm); font-weight: 600; list-style: none; display: inline-flex; align-items: center; gap: 8px; }
.decided summary::-webkit-details-marker { display: none; }
.decided summary::before { content: '+'; font-family: var(--mono); color: var(--accent); width: 1ch; }
.decided[open] summary::before { content: '−'; }
.decided ul { margin: 12px 0 0; padding-left: 18px; color: var(--muted); font-size: var(--t-sm); display: grid; gap: 6px; }

/* ---------- a set ---------- */
.slots { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 28px; }
.slot { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.slot-role { margin: 0; display: flex; align-items: center; gap: 10px; font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .12em; font-weight: 600; }
.slot-n { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--ink); display: inline-grid; place-items: center; font-size: .6875rem; letter-spacing: 0; }
.slot .card { flex: 1; }
.slot .card-head .price { display: none; }
.slot-price-in { display: none; margin: 0; font-weight: 600; }
.swap-n { color: var(--muted); font-size: var(--t-xs); margin-left: 2px; }
.swap:hover .swap-n { color: inherit; }
.slot-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding-top: 10px; }
.slot-price { font-weight: 600; display: grid; }
.each { font-weight: 400; font-size: var(--t-xs); color: var(--muted); }
.swap { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border: 1px solid var(--ink); background: transparent; border-radius: 3px; cursor: pointer; font-size: var(--t-sm); }
.swap:hover { background: var(--ink); color: var(--bg); }
.only { font-size: var(--t-xs); color: var(--muted); }
.slot-empty { aspect-ratio: 3 / 4; display: grid; place-items: center; text-align: center; padding: 20px; border: 1px dashed var(--line); color: var(--muted); font-size: var(--t-sm); }
.total { margin-top: 32px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px 40px; align-items: center; background: var(--surface); padding: 22px 26px; border-radius: 2px; }
.total-sum { margin: 0; font-size: var(--t-lg); }
.total-sum strong { font-family: var(--display); font-weight: 400; font-size: var(--t-2xl); margin-right: 6px; letter-spacing: -.01em; }
.total-note { margin: 2px 0 0; color: var(--accent); font-size: var(--t-sm); font-weight: 600; }
.total-note.over { color: var(--ink); font-weight: 400; }
.meter { height: 14px; background: var(--bg); border-radius: 2px; display: flex; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.seg { display: block; height: 100%; width: calc(var(--f) * 100%); background: color-mix(in srgb, var(--accent) calc(100% - var(--i) * 22%), var(--bg)); border-right: 2px solid var(--surface); transition: width .45s var(--ease); }
.is-over .meter { box-shadow: inset 0 0 0 1px var(--ink); }

/* ---------- a spotlight ---------- */
.spot { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.spot-gallery { min-width: 0; display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; align-items: start; }
.spot-main { margin: 0; aspect-ratio: 4 / 5; background: var(--photo); overflow: hidden; border-radius: 2px; position: relative; grid-column: 2; grid-row: 1; }
.spot-img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-column: 1; grid-row: 1; }
.thumb { width: 100%; padding: 0; border: 0; background: none; cursor: pointer; display: grid; gap: 6px; text-align: left; }
.thumb-img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; background: var(--photo); border-radius: 2px; outline: 1px solid transparent; outline-offset: 2px; }
.thumb span { font-size: var(--t-xs); color: var(--muted); line-height: 1.3; }
.thumb[aria-pressed="true"] .thumb-img { outline-color: var(--ink); }
.thumb[aria-pressed="true"] span { color: var(--ink); }
.spot-text { min-width: 0; display: grid; gap: 18px; position: sticky; top: 24px; }
.spot-name { font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 3.4vw, 2.875rem); line-height: 1.04; margin: -8px 0 0; letter-spacing: -.01em; text-wrap: balance; }
.spot-price { margin: -6px 0 0; font-size: var(--t-xl); }
.label { margin: 0 0 8px; font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.switch.big { position: static; justify-self: start; padding: 9px 16px 9px 10px; font-size: var(--t-sm); gap: 10px; background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.switch.big .switch-track { width: 38px; height: 22px; }
.switch.big .switch-knob { width: 18px; height: 18px; }
.switch.big[aria-pressed="true"] .switch-knob { transform: translateX(16px); }
.facts { margin: 0; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: var(--t-sm); }
.facts dd { margin: 0; }
.goes { margin-top: clamp(48px, 6vw, 80px); }
.goes-title, .group-title { font-family: var(--display); font-weight: 400; font-size: var(--t-xl); margin: 0; }
.goes-why { margin: 4px 0 20px; color: var(--muted); font-size: var(--t-sm); }
.mini-facts { margin: 0; display: grid; gap: 2px; font-size: var(--t-xs); color: var(--muted); }
.mini-facts div { display: flex; gap: 8px; }
.mini-facts dt { min-width: 4.5em; }
.mini-facts dd { margin: 0; color: var(--ink); }

/* ---------- a face-off ---------- */
.faceoff { display: grid; gap: 0; }
.fo-heads { display: grid; grid-template-columns: 12rem repeat(var(--n), minmax(0, 1fr)); gap: 24px; }
.fo-heads::before { content: ''; }
.fo-col { min-width: 0; display: grid; gap: 10px; align-content: start; }
.fo-col .pic { aspect-ratio: 4 / 5; }
.fo-name { margin: 0 0 12px; font-family: var(--display); font-weight: 400; font-size: var(--t-xl); line-height: 1.1; }
.fo-row { display: grid; grid-template-columns: 12rem minmax(0, 1fr); gap: 24px; border-top: 1px solid var(--line); padding: 12px 0; }
.fo-row.is-first { background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%); }
.fo-label { margin: 0; font-size: var(--t-sm); color: var(--muted); display: grid; gap: 2px; padding-left: 8px; }
.fo-flag { font-size: var(--t-xs); color: var(--accent); font-weight: 600; }
.fo-vals { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 24px; }
.fo-val { display: grid; gap: 6px; align-content: start; }
.fo-val em { font-style: normal; color: var(--accent); font-size: var(--t-sm); font-weight: 600; }
.fo-none { margin: 18px 0 0; color: var(--muted); font-size: var(--t-sm); }
.faceoff.stacked { display: grid; gap: 32px; }
.faceoff.phone-only { display: none; }
.fo-stack { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 32px; align-items: start; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.fo-stack .fo-name { margin-bottom: 12px; }
.fo-stack .facts div.is-first { background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%); }
.fo-stack .facts dd em { display: block; font-style: normal; color: var(--accent); font-weight: 600; font-size: var(--t-sm); }

/* ---------- an edit (spread) ---------- */
.spread { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px 24px; }
.spread-item { margin: 0; grid-column: span 4; min-width: 0; }
.spread-item img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; background: var(--photo); border-radius: 2px; }
.spread-item.sw-big { grid-column: span 7; grid-row: span 2; display: flex; flex-direction: column; }
.spread-item.sw-big img { aspect-ratio: auto; flex: 1; min-height: 420px; height: 0; }
.spread-item.sw-side { grid-column: span 5; }
.spread-item.sw-side img { aspect-ratio: 4 / 3.2; }
.spread-item.sw-third { grid-column: span 4; }
.spread-item.sw-half { grid-column: span 6; }
.spread-item.sw-half img { aspect-ratio: 4 / 3.6; }
.spread-item.sw-wide { grid-column: span 12; }
.spread-item.sw-wide img { aspect-ratio: 16 / 7; }
.spread-item figcaption { padding-top: 12px; display: grid; gap: 2px; }
.spread-item figcaption strong { font-family: var(--display); font-weight: 400; font-size: var(--t-lg); }
.spread-item figcaption span { color: var(--muted); font-size: var(--t-sm); }
.spread-item figcaption .price { color: var(--ink); }
.spread + .note { margin-top: 28px; }

/* ---------- grouped and ask back ---------- */
.group + .group { margin-top: 56px; }
.group-title { display: flex; align-items: baseline; gap: 10px; margin-bottom: 18px; }
.group-n { font-family: var(--mono); font-size: var(--t-xs); color: var(--muted); }
.askback { padding: 26px; background: var(--surface); margin-bottom: 36px; display: grid; gap: 16px; border-radius: 2px; }
.ab-q { font-family: var(--display); font-size: var(--t-2xl); margin: 0; line-height: 1.1; }
.ab-opts { display: flex; flex-wrap: wrap; gap: 10px; }
.ab-opt { padding: 12px 20px; border: 1.5px solid var(--ink); background: var(--bg); border-radius: 3px; cursor: pointer; font-size: var(--t-md); }
.ab-opt:hover { background: var(--ink); color: var(--bg); }
.answer.off { max-width: 760px; display: grid; gap: 18px; }

/* ---------- a thinking state ---------- */
.thinking .main > * { transition: opacity .2s var(--ease); }
.pending { display: inline-flex; align-items: center; gap: 10px; font-size: var(--t-sm); color: var(--muted); }

/* ---------- the closest, under a line ---------- */
.close { margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--line); }
.close-line { margin: 0 0 18px; font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.close .card .pic { opacity: .92; }

/* ---------- follow-ups, waiting, notes ---------- */
.next { margin-top: 40px; display: grid; gap: 10px; }
.next-label { margin: 0; font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.next-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.next-q { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--line); background: var(--surface); border-radius: 3px; cursor: pointer; font-size: var(--t-base); }
.next-q::before { content: '“'; color: var(--accent); margin-right: -6px; }
.next-q:hover { border-color: var(--ink); }
.next-q svg { color: var(--accent); }
.answer-note { margin: 0; }
.pending { margin: 0; }
.dots { display: inline-flex; gap: 4px; }
.dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); animation: dot 1.1s var(--ease) infinite; }
.dots i:nth-child(2) { animation-delay: .15s; }
.dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 80%, 100% { opacity: .25; transform: none; } 40% { opacity: 1; transform: translateY(-2px); } }
.ghosts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ghosts span { aspect-ratio: 3 / 4; background: linear-gradient(100deg, var(--photo) 30%, color-mix(in srgb, var(--photo) 60%, var(--bg)) 50%, var(--photo) 70%); background-size: 300% 100%; animation: sheen 1.6s linear infinite; border-radius: 2px; }
@keyframes sheen { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 40; max-width: min(560px, calc(100vw - 32px)); background: #1d1c1a; color: #f1ece4; padding: 12px 16px; border-radius: 4px; font-size: var(--t-sm); box-shadow: 0 8px 30px rgb(0 0 0 / .25); }
[data-edit].flash { border-radius: 2px; }

/* ---------- the Edit panel: a plain tool look of its own ---------- */
.editor { --ed-bg: #f4f4f2; --ed-ink: #18181a; --ed-muted: #5f5f66; --ed-line: #d9d9dc; --ed-field: #ffffff; --ed-go: #18181a; --ed-ok: #1f6b45; --ed-warn: #8a3b12;
  position: fixed; top: 0; right: 0; bottom: 0; width: min(400px, 100vw); z-index: 30; background: var(--ed-bg); color: var(--ed-ink); border-left: 1px solid var(--ed-line); box-shadow: -12px 0 40px rgb(0 0 0 / .14); overflow-y: auto; font-family: var(--sans); font-size: var(--t-sm); color-scheme: light; }
.editor:not([hidden]) { animation: edIn .28s var(--ease) both; }
@keyframes edIn { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.ed-in { padding: calc(16px + env(safe-area-inset-top, 0px)) max(18px, env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) 18px; display: grid; gap: 16px; }
.ed-head { display: flex; align-items: center; justify-content: space-between; }
.ed-title { margin: 0; font-family: var(--mono); font-size: var(--t-sm); font-weight: 500; letter-spacing: .02em; }
.ed-close { width: 32px; height: 32px; border: 1px solid var(--ed-line); background: var(--ed-field); border-radius: 4px; cursor: pointer; font-size: 18px; line-height: 1; color: var(--ed-ink); }
.ed-who { margin: -6px 0 0; color: var(--ed-muted); font-size: var(--t-xs); }
.ed-kicker { margin: 0 0 6px; display: block; font-family: var(--mono); font-size: .6875rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ed-muted); }
.ed-ask { display: grid; gap: 8px; }
.ed-ask textarea { width: 100%; resize: vertical; min-height: 64px; border: 1px solid var(--ed-line); border-radius: 4px; background: var(--ed-field); color: var(--ed-ink); padding: 10px 12px; font: inherit; font-size: var(--t-base); }
.ed-ask textarea:focus { outline: 2px solid var(--ed-ink); outline-offset: 1px; }
.ed-row { display: flex; gap: 8px; flex-wrap: wrap; }
.ed-btn { padding: 8px 14px; border: 1px solid var(--ed-line); background: var(--ed-field); color: var(--ed-ink); border-radius: 4px; cursor: pointer; font-size: var(--t-sm); font-weight: 500; }
.ed-btn:hover:not([disabled]) { border-color: var(--ed-ink); }
.ed-btn[disabled] { opacity: .5; cursor: default; }
.ed-primary, .ed-publish { background: var(--ed-go); color: #fff; border-color: var(--ed-go); }
.ed-publish:not([disabled]) { background: var(--ed-ok); border-color: var(--ed-ok); }
.ed-msg { margin: 0; padding: 10px 12px; border-radius: 4px; background: var(--ed-field); border: 1px solid var(--ed-line); }
.ed-msg-refuse { border-color: var(--ed-warn); color: var(--ed-warn); }
.ed-msg-ok { border-color: var(--ed-ok); color: var(--ed-ok); }
.ed-draft { border: 1px dashed var(--ed-ink); border-radius: 4px; padding: 12px; background: var(--ed-field); display: grid; gap: 8px; }
.ed-draft .ed-kicker { margin: 0; color: var(--ed-ink); }
.ed-q { margin: 0; font-size: var(--t-base); }
.ed-draft-for { margin: 0; color: var(--ed-muted); font-size: var(--t-xs); }
.ed-draft blockquote { margin: 0; font-size: var(--t-base); }
.ed-sugs ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ed-sug { padding: 6px 10px; border: 1px solid var(--ed-line); border-radius: 4px; background: transparent; cursor: pointer; font-size: var(--t-xs); text-align: left; color: var(--ed-ink); }
.ed-sug:hover { background: var(--ed-field); border-color: var(--ed-ink); }
.ed-changes { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; counter-reset: ch; }
.ed-changes > li { background: var(--ed-field); border: 1px solid var(--ed-line); border-radius: 4px; padding: 10px 12px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; align-items: start; }
.ed-said { grid-column: 1; font-weight: 500; display: grid; gap: 2px; }
.ed-mark { font-family: var(--mono); font-size: .6875rem; color: var(--ed-muted); font-weight: 400; }
.ed-changes ul { grid-column: 1; margin: 0; padding-left: 16px; color: var(--ed-muted); font-size: var(--t-xs); display: grid; gap: 2px; }
.ed-undo { grid-column: 2; grid-row: 1 / span 2; padding: 4px 9px; border: 1px solid var(--ed-line); border-radius: 4px; background: transparent; cursor: pointer; font-size: var(--t-xs); color: var(--ed-ink); }
.ed-undo:hover { border-color: var(--ed-ink); }
.ed-empty { margin: 0; color: var(--ed-muted); }
.ed-n { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--ed-ink); color: #fff; font-size: .625rem; margin-left: 4px; }
.ed-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; border-top: 1px solid var(--ed-line); padding-top: 14px; }
.ed-theme { margin: 0 0 0 auto; font-family: var(--mono); font-size: .6875rem; color: var(--ed-muted); }
.ed-versions summary { cursor: pointer; font-family: var(--mono); font-size: .6875rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ed-muted); }
.ed-versions ol { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.ed-versions li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: baseline; font-size: var(--t-xs); }
.ed-v-sum { color: var(--ed-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ed-link { background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; font-size: var(--t-xs); color: var(--ed-ink); }
@media (min-width: 1100px) { body.editing { padding-right: 400px; } }
.ed-bar { display: flex; align-items: center; gap: 10px; padding: 12px max(16px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.ed-bar-n { font-family: var(--mono); font-size: var(--t-xs); margin-right: auto; }
.ed-bar-note { font-size: var(--t-xs); color: var(--ed-muted); }
.editor.collapsed { overflow: visible; }
@media (max-width: 760px) {
  .editor { top: auto; left: 0; width: 100%; max-height: 72vh; border-left: 0; border-top: 1px solid var(--ed-line); border-radius: 12px 12px 0 0; box-shadow: 0 -12px 40px rgb(0 0 0 / .18); }
  .editor:not([hidden]) { animation-name: edUp; }
  @keyframes edUp { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
  .ed-in { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .ghosts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- motion ---------- */
::view-transition-group(*) { animation-duration: .38s; animation-timing-function: var(--ease); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .3s; }
.fade-in { animation: fadeIn .32s var(--ease) both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.flash { animation: flash 2.6s var(--ease) both; }
@keyframes flash { 0%, 30% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 55%, transparent); background-color: color-mix(in srgb, var(--accent) 10%, transparent); } 100% { box-shadow: 0 0 0 3px transparent; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* ---------- narrower screens ---------- */
@media (max-width: 1000px) {
  .cards.a-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .slots.n-4, .slots.n-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nav { display: none; }
  .top-in { justify-content: space-between; }
}
@media (max-width: 760px) {
  :root { --t-2xl: 1.875rem; }
  .hero { grid-template-columns: minmax(0, 1fr); padding-top: 0; }
  .hero-pic { order: -1; aspect-ratio: 16 / 10; margin-left: calc(-1 * var(--pad-x)); margin-right: calc(-1 * var(--pad-x-r)); border-radius: 0; }
  .hero-pic.featured { aspect-ratio: 4 / 4.2; }
  .lede { margin: 12px 0 22px; }
  .try-q { flex-direction: column; gap: 2px; }
  .cards { gap: 28px 14px; }
  .cards.a-3, .cards.a-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards.a-2.form-grid .card-name { font-size: var(--t-sm); }
  .shelf-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .answer-top { flex-direction: column; align-items: stretch; gap: 4px; }
  .answer-top .ask { margin-left: 0; max-width: none; }
  .back { align-self: flex-start; }
  .slots { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .slot .card { flex-direction: row; gap: 14px; }
  .slot .pic { width: 38%; flex: none; }
  .slot .card-text { padding-top: 0; }
  .slot-price-in { display: grid; gap: 0; }
  .slot-foot .slot-price { display: none; }
  .slot-foot { justify-content: flex-end; }
  .total { grid-template-columns: minmax(0, 1fr); padding: 18px; }
  .spot { grid-template-columns: minmax(0, 1fr); }
  .spot-text { position: static; }
  .spot-main { max-height: none; }
  .spot-gallery { grid-template-columns: minmax(0, 1fr); }
  .spot-main { grid-column: 1; grid-row: 1; margin-left: calc(-1 * var(--pad-x)); margin-right: calc(-1 * var(--pad-x-r)); border-radius: 0; }
  .thumbs { grid-column: 1; grid-row: 2; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
  .facts div { grid-template-columns: 8em minmax(0, 1fr); }
  .fo-heads { grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 14px; }
  .fo-heads::before { display: none; }
  .fo-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .fo-label { padding-left: 0; }
  .fo-vals { gap: 14px; }
  .fo-stack { grid-template-columns: minmax(0, 36%) minmax(0, 1fr); gap: 14px 16px; align-items: center; }
  .fo-stack-text { display: contents; }
  .fo-stack .fo-name { grid-column: 2; margin: 0; font-size: var(--t-lg); }
  .fo-stack .facts { grid-column: 1 / -1; }
  .fo-stack .facts div { grid-template-columns: 7.5em minmax(0, 1fr); }
  .faceoff.wide-only { display: none; }
  .faceoff.phone-only { display: grid; }
  .spread { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .spread-item, .spread-item[class*='sw-'] { grid-column: auto; grid-row: auto; display: block; }
  .spread-item[class*='sw-'] img { aspect-ratio: 3 / 4; height: auto; min-height: 0; flex: none; }
  .edit-open span { display: none; }
}
