/* themayhews.house. White, Helvetica, Reed = Barbie pink, Sam = cobalt, both = a diagonal split. */
:root {
  /* Palette: Reed's brief (white, pink, cobalt) tuned by TheFriend's answer in interviews/01-design.md:
     blush ground instead of pure white, warm plum ink instead of black, violet where the two colours meet. */
  --hot: #FF2D95;         /* hot Barbie pink: decoration only (white text on it is 3.4:1) */
  --pink: #E0218A;        /* Reed. Carries bold white text 16px+ (4.4:1) */
  --pink-ink: #C81277;    /* pink for small text on light grounds (5.5:1) */
  --cobalt: #0047AB;      /* Sam. White on it: 8.4:1 */
  --violet: #7A2BBF;      /* pink + cobalt = "both of them". White on it: 6.9:1 */
  --ink: #2A1245;         /* deep violet, the house text colour (was a plum that read as brown) */
  --soft: #5E4D75;        /* thin subtext, 7:1 on blush */
  --line: #F3DCE8;
  --wash: #FFEAF4;
  --blush: #FFF5FA;
  --split: linear-gradient(115deg, var(--pink) 0 50%, var(--cobalt) 50% 100%);
  --blend: linear-gradient(90deg, var(--hot), var(--violet) 55%, var(--cobalt));
  --radius: 18px;
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--blush) radial-gradient(rgba(255,45,149,.07) 1.5px, transparent 2px) 0 0 / 24px 24px; font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--cobalt); }
h1, h2, h3 { font-weight: 700; letter-spacing: -0.025em; line-height: 1.08; margin: 0; }
h1 { font-size: clamp(2.1rem, 8vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 5vw, 2.3rem); }
p { margin: 0; }
main { display: block; }
section { padding: 44px 20px; max-width: 1120px; margin: 0 auto; }
.sub, .lede, .fine { font-weight: 300; color: var(--soft); }
.sub { margin-top: 8px; font-size: 1.05rem; }
.lede { font-size: clamp(1.1rem, 3.4vw, 1.35rem); line-height: 1.4; }
.fine { font-size: .875rem; margin-top: 12px; }
.eyebrow { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--pink-ink); margin-bottom: 14px; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 6px; }

/* ---------- banner + header */
.banner { display: block; text-align: center; padding: 9px 16px; background: var(--split); color: #fff; font-weight: 700; font-size: .95rem; text-decoration: none; text-shadow: 0 1px 2px rgba(0,0,0,.25); }
.banner b { font-size: 1.1em; font-variant-numeric: tabular-nums; }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; background: rgba(255,245,250,.88); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--line); }
.logo { font-weight: 700; font-size: 1.2rem; letter-spacing: -0.03em; color: var(--ink); text-decoration: none; }
.dot-reed { color: var(--pink); } .dot-sam { color: var(--cobalt); margin-left: -0.08em; }
.top nav { display: flex; align-items: center; gap: 18px; }
.top nav a { color: var(--ink); text-decoration: none; font-size: .95rem; }
.bag-link { position: relative; display: inline-flex; padding: 6px; }
.bag-count { position: absolute; top: -2px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--violet); color: #fff; font-size: .72rem; font-weight: 700; display: grid; place-items: center; }
.bag-count.is-empty { display: none; }
.bag-count.pop { animation: pop .35s ease; }
@keyframes pop { 40% { transform: scale(1.45); } }

/* ---------- buttons */
.btn { display: inline-block; border: 0; border-radius: 999px; padding: 13px 22px; font: 700 1rem/1.2 var(--font); color: #fff; text-decoration: none; cursor: pointer; text-align: center; transition: transform .12s ease, box-shadow .12s ease, filter .12s ease; -webkit-tap-highlight-color: transparent; }
.btn:hover { transform: translateY(-1px); filter: saturate(1.1); box-shadow: 0 8px 20px rgba(0,0,0,.14); }
.btn:active { transform: scale(.97); }
.btn-reed { background: var(--pink); text-shadow: 0 1px 1px rgba(120,0,60,.45); }
.btn-sam { background: var(--cobalt); }
.btn-both { background: var(--split); text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.btn-ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--violet); }
.btn-big { font-size: 1.12rem; padding: 17px 30px; }
.btn.is-in { background: var(--violet); color: #fff; text-shadow: none; box-shadow: none; }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--cobalt); text-decoration: underline; cursor: pointer; text-align: left; }
.link-soft { color: var(--soft); font-size: .875rem; }
.inline { display: inline; }

/* ---------- hero + countdown */
.hero { position: relative; max-width: none; padding: 0; text-align: center; overflow: hidden; background: radial-gradient(1200px 500px at 15% -10%, rgba(224,33,138,.11), transparent 60%), radial-gradient(1200px 500px at 85% -10%, rgba(0,71,171,.11), transparent 60%); }
.hero-inner { position: relative; padding: 64px 20px 56px; max-width: 880px; margin: 0 auto; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero.has-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,245,250,.80), rgba(255,245,250,.93) 55%, var(--blush)); }
.hero.has-photo .hero-inner { z-index: 1; }
.hero h1 { font-size: clamp(2.7rem, 12vw, 6rem); letter-spacing: -0.045em; line-height: .98; }
.hero .lede { margin: 18px auto 0; max-width: 30ch; }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 560px; margin: 34px auto 10px; }
.countdown div { border-radius: 20px; padding: 16px 4px 12px; color: #fff; background: var(--split); box-shadow: 0 14px 30px -12px rgba(224,33,138,.5), 0 14px 30px -12px rgba(0,71,171,.5); }
.countdown div:nth-child(1) { background: var(--pink); }
.countdown div:nth-child(2) { background: linear-gradient(115deg, var(--pink) 0 50%, var(--violet) 50% 100%); }
.countdown div:nth-child(3) { background: linear-gradient(115deg, var(--violet) 0 50%, var(--cobalt) 50% 100%); }
.countdown div:nth-child(4) { background: var(--cobalt); }
.countdown b { display: block; font-size: clamp(2.1rem, 10vw, 3.9rem); line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; text-shadow: 0 2px 6px rgba(0,0,0,.28); }
.countdown span { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.count-note { font-weight: 300; color: var(--soft); margin-bottom: 30px; }
.dayn { margin: 34px 0 30px; font-size: 1.3rem; font-weight: 300; color: var(--soft); }
.dayn b { font-size: clamp(4rem, 20vw, 7rem); line-height: 1; letter-spacing: -0.05em; background: var(--blend); -webkit-background-clip: text; background-clip: text; color: transparent; padding: 0 .1em; }
.hero-foot { margin-top: 18px; font-size: .875rem; font-weight: 300; color: var(--soft); }

/* ---------- how it works */
.how { padding-top: 8px; padding-bottom: 8px; }
.how ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: s; }
.how li { counter-increment: s; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 18px 62px; position: relative; }
.how li::before { content: counter(s); position: absolute; left: 16px; top: 16px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; background: var(--pink); }
.how li:nth-child(2)::before { background: var(--violet); }
.how li:nth-child(3)::before { background: var(--cobalt); }
.how b { display: block; font-size: 1.1rem; }
.how span { font-weight: 300; color: var(--soft); }

/* ---------- rooms */
.room-grid { display: grid; gap: 12px; margin-top: 22px; grid-template-columns: 1fr; }
.room { display: block; padding: 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.room:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(0,0,0,.25); }
.room h3 { font-size: 1.45rem; }
.room p { font-weight: 300; color: var(--soft); margin: 4px 0 16px; }
.room-count { font-size: .82rem; font-weight: 700; }
progress { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 10px; border: 0; border-radius: 999px; background: var(--wash); overflow: hidden; margin-bottom: 6px; }
progress::-webkit-progress-bar { background: var(--wash); border-radius: 999px; }
progress::-webkit-progress-value { background: var(--blend); border-radius: 999px; }
progress::-moz-progress-bar { background: var(--blend); border-radius: 999px; }
.room-progress { max-width: 360px; margin-top: 12px; font-size: .85rem; font-weight: 700; }

/* ---------- product grid + cards */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0 12px 40px; max-width: 1120px; margin: 0 auto; }
section .grid { padding: 0; margin-top: 22px; }
.card { --accent: var(--pink); --accent-ink: var(--pink-ink); --fill: var(--pink); display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card.who-sam { --accent: var(--cobalt); --accent-ink: var(--cobalt); --fill: var(--cobalt); }
.card.who-both { --fill: var(--split); --accent-ink: var(--ink); }
.card-img { position: relative; aspect-ratio: 1 / 1; background: #fff; border-bottom: 1px solid var(--line); }
.card-img img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.tile { width: 100%; height: 100%; display: grid; place-items: center; background: radial-gradient(circle at 30% 25%, rgba(224,33,138,.16), transparent 60%), radial-gradient(circle at 75% 80%, rgba(0,71,171,.16), transparent 60%), var(--wash); }
.who-reed .tile { background: radial-gradient(circle at 30% 25%, rgba(224,33,138,.22), transparent 65%), var(--wash); }
.who-sam .tile { background: radial-gradient(circle at 70% 75%, rgba(0,71,171,.2), transparent 65%), var(--wash); }
.tile span { font-size: clamp(3rem, 14vw, 5rem); filter: drop-shadow(0 8px 10px rgba(0,0,0,.14)); }
.badge { position: absolute; left: 10px; top: 10px; padding: 5px 10px; border-radius: 999px; font-size: .72rem; font-weight: 700; background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(0,0,0,.12); max-width: calc(100% - 20px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge-gifted { background: var(--violet); color: #fff; }
.ribbon { position: absolute; right: 0; bottom: 12px; padding: 4px 10px 4px 14px; font-size: .68rem; font-weight: 700; letter-spacing: .04em; color: #fff; background: var(--fill); clip-path: polygon(10px 0, 100% 0, 100% 100%, 10px 100%, 0 50%); text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.card-body { padding: 12px 12px 14px; display: flex; flex-direction: column; flex: 1; gap: 6px; }
.card-meta { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
.card h3 { font-size: 1.02rem; letter-spacing: -0.01em; line-height: 1.2; }
.callout { font-size: .875rem; font-weight: 300; color: var(--soft); border-left: 3px solid var(--accent); padding-left: 9px; line-height: 1.35; }
.who-both .callout { border-left-color: var(--violet); }
.price { margin-top: auto; padding-top: 4px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.amount { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; }
.peek { font-size: .78rem; color: var(--soft); }
.add { display: grid; gap: 8px; }
.add .btn { width: 100%; padding: 12px 10px; font-size: .95rem; }
.upgrade { background: var(--wash); border-radius: 14px; padding: 10px; display: grid; gap: 8px; }
.upgrade p { font-size: .82rem; font-weight: 300; color: var(--soft); line-height: 1.3; }
.upgrade b { color: var(--ink); font-weight: 700; }
.upgrade .btn { font-size: .82rem; padding: 10px 8px; }
.is-gifted .card-img img, .is-gifted .tile { filter: grayscale(1); opacity: .5; }
.is-gifted h3, .is-gifted .callout { color: #7A6470; }
.is-gifted { background: #FBF3F7; }
.is-gifted .amount { text-decoration: line-through; color: #7A6470; font-weight: 400; }
.is-gifted .ribbon { background: #7A6470; }

/* ---------- essentials + the big full-row cards (the bed is #1, then the couch) */
.essentials .sub { max-width: 46ch; }
.badge-essential { background: var(--violet); color: #fff; }
.chip-essential.on { background: var(--violet); }
.need-by { align-self: flex-start; font-size: .74rem; font-weight: 700; letter-spacing: .03em; padding: 3px 9px; border-radius: 999px; background: var(--wash); color: var(--pink-ink); }
.item-note { font-size: .8rem; font-weight: 300; color: var(--soft); line-height: 1.35; }
.hero-alt { margin-top: 14px; font-size: .95rem; }
.card.is-essential { border-color: #D9C2EC; }
.card.is-feature { grid-column: 1 / -1; border: 2px solid var(--violet); box-shadow: 0 18px 40px -22px rgba(122,43,191,.55); }
.card.feature-2 { border-width: 3px; }
.is-feature .card-img { aspect-ratio: 4 / 3; }
.is-feature .card-img img { padding: 4px; }
.is-feature .card-body { padding: 18px 18px 20px; gap: 10px; }
.card.is-feature h3 { font-size: clamp(1.5rem, 6vw, 2.4rem); letter-spacing: -0.03em; line-height: 1.05; }
.is-feature .callout { font-size: 1rem; }
.is-feature .amount { font-size: clamp(1.8rem, 7vw, 2.6rem); }
.is-feature .badge { font-size: .85rem; padding: 7px 14px; left: 14px; top: 14px; }
.is-feature .ribbon { font-size: .8rem; padding: 6px 12px 6px 18px; }
.is-feature .add .btn { padding: 16px 12px; font-size: 1.08rem; }
.is-feature .need-by { font-size: .85rem; padding: 5px 12px; }
@media (min-width: 700px) {
  .card.is-feature { flex-direction: row; align-items: stretch; }
  .is-feature .card-img { flex: 0 0 52%; aspect-ratio: auto; min-height: 380px; border-bottom: 0; border-right: 1px solid var(--line); }
  .feature-1 .card-img { flex-basis: 44%; min-height: 300px; }
  .is-feature .card-body { padding: 36px 40px; justify-content: center; }
  .is-feature .price { margin-top: 6px; }
  .is-feature .add { max-width: 380px; }
  .card.feature-1 h3 { font-size: 1.9rem; }
}

.upgrade.is-preferred { background: #F3E8FB; box-shadow: inset 0 0 0 1.5px var(--violet); }
.pref-tag { justify-self: start; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--violet); padding: 3px 9px; border-radius: 999px; }
.btn-pref { background: var(--violet); color: #fff; }
.is-feature .upgrade p { font-size: .95rem; }
.is-feature .upgrade .btn { font-size: 1rem; padding: 14px 10px; }

/* both versions live in the card; .is-up decides which one shows */
.card .v-up, .card.is-up .v-base { display: none; }
.card.is-up .v-up { display: revert; }
.card.is-up p.price.v-up { display: flex; }
.card.is-up .card-img .tile.v-up { display: grid; }
.card.is-up .upgrade .btn.v-up { display: inline-block; }
.btn-down { background: #E7E1F0; color: var(--ink); }
.btn-down:hover { box-shadow: none; filter: none; background: #DAD1D7; }

/* ---------- shop head + chips */
.shop-head { padding-bottom: 18px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 14px 20px 4px; margin: 0 -20px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 9px 15px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); text-decoration: none; font-size: .9rem; white-space: nowrap; }
.chip.on { background: var(--violet); color: #fff; font-weight: 700; }
.chip-reed.on { background: var(--pink-ink); } .chip-sam.on { background: var(--cobalt); } .chip-both.on { background: var(--violet); }
.chips-filter { padding-top: 6px; }
.empty { text-align: center; padding: 40px 20px 80px; font-weight: 300; color: var(--soft); font-size: 1.1rem; }
.bag-fab { position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 30; background: var(--violet); color: #fff; padding: 14px 24px; border-radius: 999px; font-weight: 700; text-decoration: none; box-shadow: 0 12px 30px rgba(0,0,0,.3); white-space: nowrap; transition: transform .25s ease, opacity .25s ease; }
.bag-fab.is-empty { transform: translate(-50%, 140%); opacity: 0; pointer-events: none; }

/* ---------- the place */
.place-cols { display: grid; gap: 28px; margin-top: 20px; }
.story p + p { margin-top: 12px; font-weight: 300; color: var(--soft); }
.roomlist { list-style: none; padding: 0; margin: 20px 0 0; border-top: 1px solid var(--line); }
.roomlist li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.roomlist a { color: var(--ink); font-weight: 700; text-decoration: none; }
.roomlist span { font-weight: 300; color: var(--soft); text-align: right; }
.photos { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; min-height: 320px; }
.ph { margin: 0; border-radius: var(--radius); display: grid; place-items: center; text-align: center; color: #fff; font-weight: 700; padding: 12px; overflow: hidden; }
.ph small { font-weight: 300; opacity: .9; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph-1 { grid-row: 1 / 3; background: var(--split); text-shadow: 0 1px 3px rgba(0,0,0,.35); }
.ph-2 { background: var(--pink); text-shadow: 0 1px 2px rgba(120,0,60,.5); }
.ph-3 { background: var(--cobalt); }

/* ---------- bag, checkout, receipt */
.narrow { max-width: 680px; }
.narrow h1 { margin-bottom: 14px; }
.notice { background: #EEF4FF; border-radius: 14px; padding: 14px 16px; margin: 0 0 18px; color: #0B2F6B; }
.notice-warn { background: #FFF0F7; color: #7A0A47; }
.bag-list, .r-list { list-style: none; padding: 0; margin: 18px 0 0; }
.bag-list li { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.bag-thumb { width: 72px; height: 72px; border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.bag-thumb img { width: 100%; height: 100%; object-fit: contain; }
.bag-thumb .tile span { font-size: 2rem; }
.bag-info { display: grid; gap: 3px; }
.bag-info span { font-size: .85rem; font-weight: 300; color: var(--soft); }
.bag-info .link { font-size: .85rem; }
.bag-price { text-align: right; display: grid; gap: 4px; justify-items: end; }
.bag-total { margin: 16px 0 0; font-weight: 300; color: var(--soft); }
.bag-total b { color: var(--ink); font-size: 1.4rem; letter-spacing: -0.02em; }
.checkout { display: grid; gap: 16px; margin-top: 30px; }
.checkout h2 { font-size: 1.6rem; }
.checkout label { display: grid; gap: 6px; font-weight: 700; font-size: .95rem; }
.checkout input:not([type=checkbox]):not([type=radio]), .checkout textarea, .checkout select { font: 400 1rem var(--font); padding: 14px; border: 1.5px solid #CDBBE0; border-radius: 14px; background: #fff; color: var(--ink); width: 100%; }
.checkout input:focus, .checkout textarea:focus, .checkout select:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 3px rgba(0,71,171,.18); }
.checkout .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 300; color: var(--soft); }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--cobalt); flex: none; }
.opt { font-weight: 300; color: var(--soft); font-size: .8rem; }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
legend { font-weight: 700; font-size: .95rem; padding: 0; margin-bottom: 8px; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choice { position: relative; display: block !important; }
.choice input { position: absolute; opacity: 0; inset: 0; }
.choice span { display: block; padding: 13px 10px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); text-align: center; font-weight: 400; font-size: .9rem; cursor: pointer; border: 1.5px solid transparent; }
.choice input:checked + span { background: var(--violet); color: #fff; font-weight: 700; }
.choice input:focus-visible + span { outline: 3px solid var(--cobalt); outline-offset: 2px; }
.js .date-field { display: none; }
.js .date-field.on { display: grid; }
.hp { position: absolute !important; left: -9999px; height: 0; overflow: hidden; }
.receipt .btn-big { margin-top: 22px; }
.facts { margin: 26px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 300; color: var(--soft); flex: none; }
.facts dd { margin: 0; font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.store { margin-top: 30px; font-size: 1.3rem; color: var(--cobalt); }
.r-list li { display: flex; justify-content: space-between; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.r-list a { display: block; font-size: .92rem; margin-top: 3px; overflow-wrap: anywhere; }
.r-price { text-align: right; white-space: nowrap; font-weight: 700; display: grid; gap: 4px; justify-items: end; align-content: start; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 999px; background: #FFE3F1; color: #7A0A47; font-size: .72rem; font-weight: 700; vertical-align: middle; }
.tag-warn { background: #FFF2CC; color: #6B4E00; }
.manage { margin-top: 34px; border-top: 1px solid var(--line); padding-top: 18px; }
.manage summary { font-weight: 700; cursor: pointer; padding: 6px 0; }
.cancel { margin-top: 18px; }
.similar { padding-top: 0; }

/* ---------- admin */
.admin { max-width: 1200px; }
.admin h2 { margin: 34px 0 12px; font-size: 1.4rem; }
.admin-head { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
table { border-collapse: collapse; width: 100%; font-size: .88rem; min-width: 760px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--wash); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
tr.muted td { color: #767676; }
.nowrap { white-space: nowrap; }
td small { color: var(--soft); }

/* ---------- footer + Olivia */
.foot { position: relative; text-align: center; padding: 40px 20px calc(96px + env(safe-area-inset-bottom)); color: var(--soft); font-weight: 300; font-size: .875rem; border-top: 1px solid var(--line); overflow: hidden; }
.paw { background: none; border: 0; font-size: 1.4rem; cursor: pointer; margin-top: 10px; padding: 8px; opacity: .55; transition: transform .2s ease, opacity .2s ease; }
.paw:hover { opacity: 1; transform: rotate(-12deg) scale(1.15); }
.cat-run { position: absolute; bottom: 14px; left: -60px; font-size: 2.2rem; transform: scaleX(-1); pointer-events: none; }
.cat-run.go { animation: catwalk 5s linear forwards; }
@keyframes catwalk { to { left: calc(100% + 60px); } }
canvas.confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 50; }

/* ---------- wider screens */
@media (min-width: 700px) {
  section { padding: 64px 32px; }
  .how ol { grid-template-columns: repeat(3, 1fr); }
  .room-grid { grid-template-columns: repeat(6, 1fr); }
  .room { grid-column: span 2; }
  .room-1, .room-2 { grid-column: span 3; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding: 0 32px 60px; }
  .card-body { padding: 16px 16px 18px; }
  .card h3 { font-size: 1.12rem; }
  .place-cols { grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; }
  .hero-inner { padding: 96px 32px 80px; }
  .chips { flex-wrap: wrap; overflow: visible; }
}
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ---------- edit mode (signed-in Reed and Sam only) */
.editbar { background: var(--violet); color: #fff; padding: 10px 16px; font-size: .9rem; }
.editbar form { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; max-width: 1200px; margin: 0 auto; }
.editbar span { font-weight: 300; }
.editbar button { border: 0; border-radius: 999px; padding: 7px 14px; font: 700 .85rem/1.2 var(--font); background: #fff; color: var(--ink); cursor: pointer; }
.editbar a { color: #fff; }
.editbar-msg { max-width: 1200px; margin: 8px auto 0; padding: 8px 12px; border-radius: 10px; background: #fff; color: var(--ink); }
.card.is-hidden .card-img, .card.is-hidden h3, .card.is-hidden .card-meta, .card.is-hidden .price, .card.is-hidden .callout { opacity: .4; }
.ed { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: .85rem; }
.ed form { display: flex; flex-direction: column; gap: 8px; }
.ed label { display: flex; flex-direction: column; gap: 3px; font-weight: 700; font-size: .78rem; }
.ed label.check { flex-direction: row; align-items: center; gap: 6px; font-weight: 400; }
.ed small { font-weight: 300; }
.ed input:not([type=checkbox]):not([type=hidden]), .ed textarea { width: 100%; font: 400 .9rem/1.35 var(--font); padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
.ed .ed-who { flex-direction: row; align-items: center; gap: 6px; }
.seg { flex: 1; border: 0; border-radius: 999px; padding: 9px 4px; font: 700 .85rem/1.2 var(--font); background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; }
.seg-reed.on { background: var(--pink); color: #fff; box-shadow: none; } .seg-sam.on { background: var(--cobalt); color: #fff; box-shadow: none; } .seg-both.on { background: var(--violet); color: #fff; box-shadow: none; }
.btn-ed { padding: 10px 14px; font-size: .9rem; background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--violet); width: 100%; }
.btn-hide { background: #E7E1F0; box-shadow: none; } .btn-show { background: var(--violet); color: #fff; box-shadow: none; }
.ed-replace summary { list-style: none; } .ed-replace summary::-webkit-details-marker { display: none; }
.ed-replace[open] summary { margin-bottom: 8px; background: var(--violet); color: #fff; }
.ed-flag { align-self: flex-start; font-weight: 700; font-size: .74rem; padding: 3px 9px; border-radius: 999px; background: var(--violet); color: #fff; }
.ed-lock { margin-top: 8px; font-size: .85rem; color: var(--soft); }

/* quantity */
.card-img img { position: absolute; inset: 0; box-sizing: border-box; }
.unit { font-weight: 600; }
.qty-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.qty-grid input { width: 100%; }

/* ---------- several of one thing: "(3 needed)" and the − n of N + pill */
.needed { font-size: .85rem; font-weight: 700; color: var(--violet); }
.add-multi .stepper { display: none; }
.add-multi:not([data-qty="0"]) .stepper { display: flex; }
.add-multi:not([data-qty="0"]) [data-main] { display: none; }
.stepper { border-radius: 999px; overflow: hidden; background: var(--violet); color: #fff; align-items: stretch; }
.step { flex: 0 0 30%; max-width: 72px; border: 0; padding: 0; font: 700 1.5rem/1 var(--font); color: #fff; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.step-minus { background: var(--pink); }        /* pink left, violet middle, cobalt right: the house colours */
.step-plus { background: var(--cobalt); }
.step-plus:disabled { background: #9DB3D6; cursor: default; }
.step:not(:disabled):active { filter: brightness(.9); }
.step-mid { flex: 1; text-align: center; padding: 12px 2px; font-size: .95rem; white-space: nowrap; font-weight: 700; line-height: 1.2; }
/* ---------- the countdown bar stays on top, with the header right under it */
:root { --bar: 40px; }
.banner { position: sticky; top: 0; z-index: 21; height: var(--bar); padding: 0 12px; display: flex; align-items: center; justify-content: center; gap: .35em; white-space: nowrap; }
.top { top: var(--bar); }
.card, section[id] { scroll-margin-top: 110px; }

/* ---------- a tapped card opens over the whole screen; the image or the x closes it */
.js .card { cursor: pointer; }
.card-x { display: none; }
.has-open { overflow: hidden; }
.card.is-open { position: fixed; inset: 0; z-index: 60; margin: 0; border: 0; border-radius: 0; box-shadow: none; overflow-y: auto; overscroll-behavior: contain; cursor: auto; flex-direction: column; padding-top: env(safe-area-inset-top); animation: card-open .2s ease; }
@keyframes card-open { from { opacity: 0; transform: scale(.96); } }
@media (prefers-reduced-motion: reduce) { .card.is-open { animation: none; } }
.card.is-open .card-x { display: grid; place-items: center; position: fixed; top: calc(12px + env(safe-area-inset-top)); right: 12px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.94); color: var(--ink); font: 400 1.7rem/1 var(--font); cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.14); }
.card.is-open .card-img { flex: 0 0 auto; aspect-ratio: auto; height: min(50vh, 100vw); min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); cursor: zoom-out; }
.card.is-open .card-img img { padding: 16px; }
.card.is-open .card-body { flex: 1 0 auto; width: 100%; max-width: 620px; margin: 0 auto; padding: 22px 22px calc(26px + env(safe-area-inset-bottom)); gap: 12px; justify-content: flex-start; }
.card.is-open .card-meta { font-size: .8rem; }
.card.is-open h3 { font-size: clamp(1.5rem, 6vw, 2.1rem); line-height: 1.1; letter-spacing: -0.025em; }
.card.is-open .callout { font-size: 1.08rem; line-height: 1.45; }
.card.is-open .amount { font-size: 1.9rem; }
.card.is-open .peek, .card.is-open .item-note { font-size: .95rem; }
.card.is-open .price { margin-top: auto; padding-top: 18px; }      /* price and button sit toward the bottom */
.card.is-open .add { max-width: none; }
.card.is-open .add .btn, .card.is-open .step-mid { padding-top: 16px; padding-bottom: 16px; font-size: 1.08rem; }
@media (min-width: 900px) {
  .card.is-open { flex-direction: row; }
  .card.is-open .card-img { flex: 0 0 55%; height: auto; border-bottom: 0; border-right: 1px solid var(--line); }
  .card.is-open .card-body { flex: 1; margin: auto; padding: 60px 48px; overflow-y: auto; max-height: 100%; }
  .card.is-open .price { margin-top: 10px; }
}
.card.is-busy { opacity: .6; pointer-events: none; }
.editbar-msg.toast { position: fixed; left: 12px; right: 12px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 70; max-width: 560px; margin: 0 auto; box-shadow: 0 10px 30px rgba(0,0,0,.25); border: 2px solid var(--violet); }
.needed small { font-weight: 400; color: var(--soft); }
/* ---------- checkout: how the gift gets to them */
.choices-how { grid-template-columns: 1fr; }
.choices-how .choice span { text-align: left; padding: 13px 16px; }
.choices-how .choice b { display: block; font-size: 1rem; }
.choices-how .choice small { display: block; margin-top: 2px; font-size: .85rem; font-weight: 300; line-height: 1.35; }
.how-note { margin: 0 0 10px; }
