/* Layout: one-screen swipe stage, a narrow column centred on polka-dot wrapping paper; server pages reuse the column.
   Pressie: plum ink, ribbon pink as the one accent, gold foil for price tags and ribbons. */
:root {
  --paper: #fbf1f5;          /* blush wrapping paper */
  --dot: #f1d6e2;            /* its polka dots */
  --surface: #ffffff;
  --ink: #2b1131;            /* plum */
  --muted: #7b6079;
  --line: #ecd5e1;
  --berry: #e0236a;          /* ribbon pink: the accent */
  --berry-ink: #ffffff;
  --spruce: #6b1f72;         /* plum links */
  --kraft: #e3b23c;          /* gold foil tags and ribbon */
  --kraft-ink: #3a2400;
  --no: #8a7487;
  --love: #c88a00;
  --shadow: 0 1px 2px rgb(43 17 49 / .08), 0 14px 30px -12px rgb(43 17 49 / .3);
  --idea-a: #3d1446;
  --idea-b: #5c1f66;
  --idea-ink: #fbeff6;
  --f-display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --f-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-tag: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1a0d1d; --dot: #2a1630; --surface: #261429; --ink: #f8e9f2; --muted: #b99ab4; --line: #40243f;
    --berry: #ff5a98; --berry-ink: #2b0414; --spruce: #e2a8e8; --kraft: #f0c552; --kraft-ink: #3a2400;
    --no: #a891a4; --love: #f2c03a; --shadow: 0 1px 2px rgb(0 0 0 / .45), 0 16px 34px -14px rgb(0 0 0 / .75);
    --idea-a: #3a1543; --idea-b: #57205f; --idea-ink: #fbeff6; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #1a0d1d; --dot: #2a1630; --surface: #261429; --ink: #f8e9f2; --muted: #b99ab4; --line: #40243f;
  --berry: #ff5a98; --berry-ink: #2b0414; --spruce: #e2a8e8; --kraft: #f0c552; --kraft-ink: #3a2400;
  --no: #a891a4; --love: #f2c03a; --shadow: 0 1px 2px rgb(0 0 0 / .45), 0 16px 34px -14px rgb(0 0 0 / .75);
  --idea-a: #3a1543; --idea-b: #57205f; --idea-ink: #fbeff6; color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  margin: 0; color: var(--ink);
  background: radial-gradient(circle, var(--dot) 1.6px, transparent 2.2px) 0 0 / 22px 22px, var(--paper);
  background-attachment: fixed;
  font: 400 15px/1.5 var(--f-body);
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--berry); outline-offset: 2px; border-radius: 6px; }

.wrap { max-width: 440px; margin: 0 auto; min-height: 100%; display: flex; flex-direction: column; }
.wrap.wide { max-width: 760px; }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 14px 10px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.brand svg { width: 30px; height: 26px; flex: none; }
.brand b { font: 800 26px/1 var(--f-display); letter-spacing: -.035em; color: var(--berry); }
.brand span { font: 500 11px/1 var(--f-tag); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.liked-btn {
  display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--surface);
  border-radius: 999px; padding: 7px 14px 7px 12px; cursor: pointer; font-weight: 600; font-size: 14px;
}
.liked-btn .n { font: 500 13px/1 var(--f-tag); background: var(--berry); color: var(--berry-ink); border-radius: 999px; padding: 3px 7px; min-width: 22px; text-align: center; }
.liked-btn[disabled] { opacity: .5; cursor: default; }

/* setup */
.setup { display: flex; flex-direction: column; gap: 22px; padding-block: 8px 28px; }
.setup h1 { font: 800 clamp(30px, 8vw, 40px)/1.02 var(--f-display); letter-spacing: -.03em; margin: 0; text-wrap: balance; }
.setup h1 em { font-style: normal; color: var(--berry); }
.setup p.lede { margin: 0; color: var(--muted); max-width: 36ch; }
.q { display: flex; flex-direction: column; gap: 10px; border: 0; padding: 0; margin: 0; }
.q legend { font: 500 11px/1 var(--f-tag); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding: 0; margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-block; border: 1px solid var(--line); background: var(--surface); border-radius: 999px;
  padding: 7px 13px; font-size: 14px; font-weight: 500; transition: background .12s, border-color .12s;
}
.chip input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--berry); outline-offset: 2px; }
.hint { font-size: 13px; color: var(--muted); margin: 0; }
.cta {
  appearance: none; border: 0; background: var(--berry); color: var(--berry-ink); font-weight: 700; font-size: 16px;
  border-radius: 14px; padding: 15px 18px; cursor: pointer; box-shadow: var(--shadow);
}
.cta[disabled] { opacity: .45; cursor: default; box-shadow: none; }
.banner { background: var(--surface); border: 1px dashed var(--berry); border-radius: 14px; padding: 14px 16px; }
.banner strong { display: block; font: 700 17px/1.25 var(--f-display); margin-bottom: 4px; }

/* deck */
.deckview { flex: 1; display: flex; flex-direction: column; gap: 14px; padding-bottom: 10px; min-height: 0; }
.for-line { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.for-line button { background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; color: var(--muted); font-size: 13px; }
.stage { position: relative; flex: 1; min-height: 380px; max-height: 560px; }
.card {
  position: absolute; inset: 0; background: var(--surface); border-radius: 22px; box-shadow: var(--shadow);
  overflow: hidden; display: flex; flex-direction: column; touch-action: none; user-select: none;
  will-change: transform; transition: transform .28s cubic-bezier(.2,.8,.2,1), opacity .28s;
}
.card.under { transform: scale(.955) translateY(10px); }
.card.dragging { transition: none; cursor: grabbing; }
.card .pic { flex: 1; min-height: 0; background: #fff; display: grid; place-items: center; position: relative; }
.card .pic img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.card .ph { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center;
  background: repeating-linear-gradient(135deg, var(--paper) 0 14px, var(--surface) 14px 28px); color: var(--muted);
  font: 700 20px/1.15 var(--f-display); }
.card .meta { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line); }
.card h2 { margin: 0; font: 600 16px/1.3 var(--f-body); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; }
.src { font: 500 11px/1 var(--f-tag); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.view { font-size: 13px; font-weight: 600; color: var(--spruce); text-decoration: none; white-space: nowrap; }
.view:hover { text-decoration: underline; }

/* swing tag price: a kraft label with a punched hole and string */
.tag {
  position: absolute; top: 14px; right: 14px; background: var(--kraft); color: var(--kraft-ink);
  font: 500 15px/1 var(--f-tag); padding: 8px 12px 8px 22px; border-radius: 4px 8px 8px 4px;
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 10px 100%, 0 50%); transform: rotate(4deg);
  font-variant-numeric: tabular-nums;
}
.tag { box-shadow: inset 0 0 0 1px rgb(255 255 255 / .35); }
.tag::before { content: ""; position: absolute; left: 9px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--surface); }
.tag-string { position: absolute; top: 4px; right: 70px; width: 40px; height: 30px; border-top: 1.5px solid var(--kraft); border-radius: 50% 50% 0 0; transform: rotate(-18deg); opacity: .8; pointer-events: none; }

/* idea card: typeset, no photo */
.card.idea { background: linear-gradient(160deg, var(--idea-a), var(--idea-b)); color: var(--idea-ink); }
.card.idea .pic { background: transparent; place-items: stretch; }
.card.idea .pic::before, .card.idea .pic::after { content: ""; position: absolute; background: var(--kraft); opacity: .92; pointer-events: none; }
.card.idea .pic::before { top: 0; bottom: 0; right: 44px; width: 16px; }
.card.idea .pic::after { left: 0; right: 0; top: 46px; height: 16px; }
.bow { position: absolute; right: 22px; top: 26px; width: 60px; height: 56px; z-index: 1; pointer-events: none; }
.idea-body { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 84px 84px 20px 24px; gap: 18px; }
.idea-body .kicker { font: 500 11px/1 var(--f-tag); text-transform: uppercase; letter-spacing: .14em; opacity: .8; }
.idea-body h2 { font: 800 clamp(32px, 9vw, 42px)/1 var(--f-display); letter-spacing: -.03em; margin: 0; text-wrap: balance; -webkit-line-clamp: unset; display: block; }
.idea-body p { margin: 0; font-size: 16px; line-height: 1.45; max-width: 30ch; opacity: .92; }
.card.idea .meta { border-top-color: rgb(255 255 255 / .16); }
.card.idea .src, .card.idea .view { color: var(--idea-ink); }
.band { font: 500 13px/1 var(--f-tag); border: 1px solid rgb(255 255 255 / .35); border-radius: 999px; padding: 6px 10px; }

/* drag stamps */
.stamp { position: absolute; top: 22px; padding: 6px 12px; border: 3px solid; border-radius: 8px; font: 800 26px/1 var(--f-display);
  letter-spacing: .04em; opacity: 0; transform: rotate(-12deg); pointer-events: none; background: var(--surface); }
.stamp.yes { left: 18px; color: var(--berry); }
.stamp.no { right: 18px; color: var(--no); transform: rotate(12deg); }
.stamp.love { left: 50%; top: auto; bottom: 120px; color: var(--love); transform: translateX(-50%) rotate(-4deg); }

/* controls */
.controls { display: flex; justify-content: center; align-items: center; gap: 18px; }
.ctl { width: 60px; height: 60px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface);
  display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); transition: transform .1s; }
.ctl:active { transform: scale(.92); }
.ctl svg { width: 26px; height: 26px; }
.ctl.no svg { stroke: var(--no); }
.ctl.yes svg { fill: var(--berry); }
.ctl.love { width: 50px; height: 50px; }
.ctl.love svg { fill: var(--love); width: 22px; height: 22px; }
.keys { text-align: center; font-size: 12px; color: var(--muted); margin: 0; }
.keys kbd { font: 500 11px/1 var(--f-tag); border: 1px solid var(--line); border-radius: 4px; padding: 2px 5px; }
.empty { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 30px; color: var(--muted); border: 2px dashed var(--line); border-radius: 22px; }

/* footer */
.foot { padding-block: 14px 18px; display: flex; flex-direction: column; gap: 8px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); margin-top: 6px; }
.foot nav { display: flex; gap: 14px; flex-wrap: wrap; }
.foot nav a { font-weight: 600; color: var(--ink); }
.post { font-size: 12.5px; color: var(--ink); }
.post b { font-family: var(--f-tag); font-weight: 500; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--berry); margin-right: 6px; }

/* shortlist sheet + server pages */
.sheet-back { position: fixed; inset: 0; background: rgb(10 18 15 / .45); z-index: 20; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 21; max-height: 86%; overflow: auto; background: var(--paper);
  border-radius: 22px 22px 0 0; box-shadow: var(--shadow);
  padding: 18px max(16px, env(safe-area-inset-right, 0px)) calc(20px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
}
.sheet-in { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.sheet h2, .page h1 { font: 800 26px/1.1 var(--f-display); letter-spacing: -.02em; margin: 0; text-wrap: balance; }
.page h1 { font-size: clamp(28px, 7vw, 38px); }
.page h2 { font: 700 19px/1.2 var(--f-display); margin: 0; }
.page { display: flex; flex-direction: column; gap: 18px; padding-block: 6px 24px; flex: 1; }
.page p { margin: 0; max-width: 62ch; }
.list { display: flex; flex-direction: column; gap: 10px; list-style: none; margin: 0; padding: 0; }
.li { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px; }
.li .th { width: 64px; height: 64px; border-radius: 10px; background: #fff; overflow: hidden; display: grid; place-items: center; }
.li .th img { width: 100%; height: 100%; object-fit: contain; }
.li .th.idea { background: linear-gradient(160deg, var(--idea-a), var(--idea-b)); color: var(--idea-ink); font: 800 12px/1 var(--f-tag); text-transform: uppercase; letter-spacing: .1em; }
.li .th.ph { background: repeating-linear-gradient(135deg, var(--paper) 0 7px, var(--surface) 7px 14px); }
.li .t { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.li .t b { font-weight: 600; font-size: 14px; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.li .t small { color: var(--muted); font-size: 12.5px; }
.li .p { font: 500 14px/1 var(--f-tag); font-variant-numeric: tabular-nums; }
.love-mark { color: var(--love); font-weight: 700; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); background: var(--surface);
  border-radius: 12px; padding: 11px 14px; font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: none; }
.btn.primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn.go { background: var(--berry); color: var(--berry-ink); border-color: var(--berry); padding: 8px 12px; font-size: 13px; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; }
.share { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.share label { font: 500 11px/1 var(--f-tag); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.share .linkrow { display: flex; gap: 8px; }
.share input { flex: 1; min-width: 0; font: 13px/1 var(--f-tag); padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); }
.note { font-size: 13px; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; }
.tile .im { aspect-ratio: 1; background: #fff; display: grid; place-items: center; max-width: 100%; }
.tile .im img { width: 100%; height: 100%; object-fit: contain; }
.tile .im.idea { background: linear-gradient(160deg, var(--idea-a), var(--idea-b)); color: var(--idea-ink); padding: 14px; font: 800 20px/1.05 var(--f-display); text-align: left; place-items: end start; }
.tile .tx { padding: 10px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.tile .tx b { font-weight: 600; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tile .tx small { color: var(--muted); font-family: var(--f-tag); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: var(--paper);
  padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; z-index: 30; }

@media (prefers-reduced-motion: reduce) { .card { transition: none; } }
@media (max-height: 700px) { .stage { min-height: 330px; } .ctl { width: 54px; height: 54px; } }
.brand span { white-space: nowrap; }
@media (max-width: 440px) { .brand span { display: none; } }

/* ---- Added for the static launch (2 Nov 2026). Everything above is the design as received. ---- */
@font-face { font-family: "Bricolage Grotesque"; src: url("/static/fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "Bricolage Grotesque"; src: url("/static/fonts/bricolage-grotesque-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Figtree"; src: url("/static/fonts/figtree.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("/static/fonts/dm-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
.preview-bar { margin: 0 calc(-1 * max(16px, env(safe-area-inset-left, 0px))); background: var(--kraft); color: var(--kraft-ink); text-align: center; font: 500 11px/1 var(--f-tag); letter-spacing: .08em; text-transform: uppercase; padding: 6px; }
.setup.flush { padding: 0; }
.mt { margin-top: 10px; }
.hint.more a, .note a, .disc a, .page p a, .legal-page li a { color: var(--spruce); }
.chip.off span { opacity: .45; }
.foot .disc, .foot .owner { margin: 0; }
.foot nav.legal a { font-weight: 500; color: var(--muted); }
.post span { color: var(--ink); }
.card .row.facts { justify-content: flex-start; gap: 6px 12px; font-size: 13px; color: var(--muted); }
.card .ship.free { color: var(--spruce); font-weight: 600; }
.ebay-note { margin: 0; align-self: center; font: 500 11px/1.4 var(--f-tag); letter-spacing: .04em; color: var(--muted); border: 1px dashed var(--line); border-radius: 999px; padding: 6px 12px; text-align: center; }
.page .ebay-note { align-self: flex-start; border-radius: 10px; }
.controls .ctl.undo { width: 42px; height: 42px; box-shadow: none; }
.ctl.undo svg { width: 20px; height: 20px; stroke: var(--muted); }
.ctl.undo[disabled] { opacity: .35; cursor: default; }
.xmas { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; cursor: pointer; align-self: flex-start; }
.xmas input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.xmas .sw { width: 34px; height: 20px; border-radius: 999px; background: var(--line); position: relative; transition: background .15s; flex: none; }
.xmas .sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 2px rgb(0 0 0 / .25); transition: transform .15s; }
.xmas input:checked + .sw { background: var(--berry); }
.xmas input:checked + .sw::after { transform: translateX(14px); }
.xmas input:focus-visible + .sw { outline: 2px solid var(--berry); outline-offset: 2px; }
.hint-over { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; background: rgb(26 13 29 / .72); border-radius: 22px; color: #fbeff6; text-align: center; padding: 24px; }
.hint-over p { margin: 0 0 10px; font: 700 19px/1.3 var(--f-display); }
.hint-over b { display: inline-block; width: 30px; color: var(--kraft); }
.hint-over .btn { margin-top: 8px; }
.sheet h3.sub { margin: 0; font: 700 16px/1.2 var(--f-display); }
.crumbs { font-size: 13px; }
.crumbs a { color: var(--muted); }
.page .lede { color: var(--muted); }
.cta.link { display: inline-block; text-decoration: none; }
.tile { position: relative; }
.tile .tx .btn.go { align-self: flex-start; margin-top: 4px; }
.tile .tx .eta { font-family: var(--f-body); }
.guide-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.guide-list a { display: flex; flex-direction: column; gap: 6px; height: 100%; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.guide-list b { font: 700 18px/1.15 var(--f-display); color: var(--berry); }
.guide-list small { color: var(--muted); font-size: 13px; }
.legal-page ul { margin: 0; padding-left: 20px; max-width: 62ch; display: flex; flex-direction: column; gap: 6px; }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
dl.facts dt { font: 500 11px/1.6 var(--f-tag); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
dl.facts dd { margin: 0; }
section.amazon, section.popular { display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 440px) { dl.facts { grid-template-columns: 1fr; } dl.facts dd { margin-bottom: 6px; } .controls { gap: 14px; } }
.post { margin: 0; }
/* the photo must not size the card: absolutely placed in its box, so the title, postage and eBay link always show (design had no real photo) */
.card .pic { overflow: hidden; }
.card .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.card .meta { background: var(--surface); position: relative; }
.card.idea .meta { background: transparent; }
.tile .im { overflow: hidden; }

/* ---- Who's it for, in rows (2 Nov 2026: her / him / anyone) ---- */
.chip-group { display: flex; flex-direction: column; gap: 6px; }
.chip-group + .chip-group { margin-top: 6px; }
.group-label { font: 500 10.5px/1 var(--f-tag); text-transform: uppercase; letter-spacing: .1em; color: var(--berry); opacity: .9; }

/* ---- Desktop (Hal, 2 Nov: "amazing on phone, a bit crappy on desktop"). Phones are untouched: everything here is from 960 px up. ---- */
.fan, .side-list { display: none; }
@media (min-width: 960px) {
  .wrap.home { max-width: 1120px; }
  .wrap.home .top { padding-block: 22px 18px; }
  .wrap.home .brand svg { width: 38px; height: 33px; }
  .wrap.home .brand b { font-size: 32px; }

  /* start screen: the pitch and a card fan on the left, the picks in a panel on the right */
  .wrap.home #setup:not([hidden]) {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); grid-template-areas: "intro form" "intro extra" "intro more";
    column-gap: clamp(40px, 6vw, 96px); row-gap: 14px; align-items: start; padding-block: 28px 48px;
  }
  .wrap.home #setup .intro { grid-area: intro; position: sticky; top: 32px; display: flex; flex-direction: column; gap: 22px; }
  .wrap.home #setup-form { grid-area: form; }
  .wrap.home #setup > noscript { grid-area: extra; }
  .wrap.home #setup .hint.more { grid-area: more; }
  .wrap.home .setup h1 { font-size: clamp(46px, 4.8vw, 68px); line-height: .98; max-width: 11ch; }
  .wrap.home .setup p.lede { font-size: 17px; max-width: 34ch; }
  .panel { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 26px 26px 24px !important; box-shadow: var(--shadow); }
  .panel .chip span { background: var(--paper); }
  .panel .chip input:checked + span { background: var(--ink); }

  .fan { display: block; position: relative; height: 380px; margin-top: 10px; }
  .fan-card { position: absolute; left: 30px; top: 10px; width: 270px; height: 340px; border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; }
  .fan-card.back { background: linear-gradient(160deg, var(--idea-a), var(--idea-b)); transform: rotate(-11deg) translate(-26px, 18px); opacity: .75; }
  .fan-card.mid { background: linear-gradient(160deg, var(--idea-b), var(--idea-a)); transform: rotate(-4deg) translate(-6px, 6px); }
  .fan-card.back::before, .fan-card.mid::before, .fan-card.front::before { content: ""; position: absolute; top: 0; bottom: 0; right: 40px; width: 14px; background: var(--kraft); opacity: .9; }
  .fan-card.back::after, .fan-card.mid::after, .fan-card.front::after { content: ""; position: absolute; left: 0; right: 0; top: 44px; height: 14px; background: var(--kraft); opacity: .9; }
  .fan-card.front { background: var(--surface); transform: rotate(5deg) translate(70px, -4px); padding: 92px 64px 24px 26px; display: flex; flex-direction: column; gap: 12px; }
  .fan-card.front .bow { right: 18px; top: 22px; z-index: 1; }
  .fan-card.front .kicker { font: 500 11px/1 var(--f-tag); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
  .fan-card.front p { margin: 0; font: 700 19px/1.25 var(--f-display); }
  .fan-card.front p b { display: inline-block; width: 28px; color: var(--berry); }
  .fan-stamp { position: absolute; padding: 5px 11px; border: 3px solid; border-radius: 8px; font: 800 24px/1 var(--f-display); letter-spacing: .04em; background: var(--surface); z-index: 2; }
  .fan-stamp.yes { color: var(--berry); left: 22px; bottom: 26px; transform: rotate(-10deg); }
  .fan-stamp.no { color: var(--no); right: 66px; top: 110px; transform: rotate(9deg); }

  /* swiping: a bigger card, the shortlist growing beside it */
  .wrap.home #deck:not([hidden]) { display: grid; grid-template-columns: minmax(0, 480px) 320px; justify-content: center; column-gap: 48px; align-items: start; padding-block: 12px 40px; }
  .deck-main { display: flex; flex-direction: column; gap: 14px; }
  .wrap.home .stage { min-height: 600px; max-height: 640px; }
  .side-list { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 18px; box-shadow: var(--shadow); max-height: calc(100vh - 48px); overflow: auto; }
  .side-list h2 { margin: 0; font: 800 22px/1 var(--f-display); display: flex; align-items: center; gap: 10px; }
  .side-list h2 .n { font: 500 13px/1 var(--f-tag); background: var(--berry); color: var(--berry-ink); border-radius: 999px; padding: 4px 8px; }
  .list.compact .li { grid-template-columns: 48px 1fr; padding: 8px; gap: 10px; }
  .list.compact .li .th { width: 48px; height: 48px; }
  .list.compact .li .btn.go { grid-column: 2; justify-self: start; padding: 5px 10px; font-size: 12px; }

  /* footer: a readable measure across the wider page */
  .wrap.home .foot { display: grid; grid-template-columns: 1.4fr 1fr; column-gap: 48px; }
  .wrap.home .foot .post { grid-column: 1 / -1; }
}
@media (min-width: 960px) and (max-height: 760px) { .wrap.home .stage { min-height: 480px; } .fan { height: 330px; } }
.intro { display: flex; flex-direction: column; gap: 22px; }       /* phones: the same spacing the headline and lede had before the intro wrapper */
@media (min-width: 960px) { .fan-card.front::before { display: none; } .fan-card.front { padding-right: 30px; } }   /* no ribbon through the how-to text */

/* 3 Nov: Christmas badge, More like this */
.xmas-badge { font: 600 11.5px/1 var(--f-body); color: var(--kraft-ink); background: var(--kraft); border-radius: 999px; padding: 4px 8px; align-self: flex-start; }
.card .row.facts .xmas-badge { margin-left: auto; }
.more-like { border: 1px solid var(--line); background: transparent; color: var(--muted); border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 600; cursor: pointer; }
.more-like:hover { color: var(--ink); border-color: var(--muted); }
.card .row .more-like + .src { margin-right: auto; }
.chip.lux span { border-color: var(--kraft); }
.chip.lux input:checked + span { background: var(--kraft); color: var(--kraft-ink); border-color: var(--kraft); }

/* 3 Nov: Royal Mail cut-off beside the Christmas switch, and the source line in the footer */
.xmas-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.cutoff { font: 500 11.5px/1.3 var(--f-tag); color: var(--muted); letter-spacing: .02em; }
.post .src-cite { color: var(--muted); }
.post .src-cite a { color: var(--muted); }

/* ---- Pick a Pressie (3 Nov 2026): the domain in the wordmark. A gold swing tag reading "pick a", tied to the bow like the price tags on the
   cards, swinging once on arrival and again on hover; the headline's "pick" on a gold highlighter stroke; pink and gold confetti dots. ---- */
:root { --dot2: rgb(227 178 60 / .28); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --dot2: rgb(240 197 82 / .10); } }
:root[data-theme="dark"] { --dot2: rgb(240 197 82 / .10); }
body { background: radial-gradient(circle, var(--dot2) 1.4px, transparent 2px) 11px 11px / 22px 22px,
                    radial-gradient(circle, var(--dot) 1.6px, transparent 2.2px) 0 0 / 22px 22px, var(--paper); background-attachment: fixed; }
.brand { gap: 6px; align-items: center; }
.brand span.by { font: 500 11px/1 var(--f-tag); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; margin-left: 4px; }
.brand span.brand-tag {
  text-transform: none;
  position: relative; display: inline-block; margin: 0 2px 0 -2px; padding: 4px 8px 4px 15px; background: var(--kraft); color: var(--kraft-ink);
  font: 700 12px/1 var(--f-display); letter-spacing: .01em; white-space: nowrap; border-radius: 3px 6px 6px 3px;
  clip-path: polygon(7px 0, 100% 0, 100% 100%, 7px 100%, 0 50%); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .35);
  transform-origin: 2px 50%; transform: rotate(-7deg); animation: tag-swing 1.6s cubic-bezier(.3, .7, .3, 1) .3s 1 both;
}
.brand span.brand-tag::before { content: ""; position: absolute; left: 6px; top: 50%; width: 4px; height: 4px; margin-top: -2px; border-radius: 50%; background: var(--paper); }
.brand:hover span.brand-tag, .brand:focus-visible span.brand-tag { animation: tag-swing 1.2s cubic-bezier(.3, .7, .3, 1) 1; }
@keyframes tag-swing { 0% { transform: rotate(-7deg); } 20% { transform: rotate(9deg); } 42% { transform: rotate(-11deg); } 62% { transform: rotate(4deg); } 80% { transform: rotate(-8deg); } 100% { transform: rotate(-7deg); } }
@media (prefers-reduced-motion: reduce) { .brand span.brand-tag, .brand:hover span.brand-tag { animation: none; } }
.setup h1 .hl { position: relative; white-space: nowrap; z-index: 0; }
.setup h1 .hl::after { content: ""; position: absolute; left: -.08em; right: -.08em; bottom: .06em; height: .38em; background: var(--kraft); opacity: .85; z-index: -1;
  border-radius: .18em .5em .22em .4em; transform: rotate(-1.5deg); }
@media (max-width: 440px) { .brand span.by { display: none; } .brand b { font-size: 24px; } .brand span.brand-tag { display: inline-block; font-size: 11px; padding: 4px 7px 4px 14px; } }
@media (min-width: 960px) { .wrap.home .brand span.brand-tag { font-size: 14px; padding: 5px 10px 5px 17px; } }
