/* Merrie — the page: home (fill in the blanks), loading (Merrie swims), and the gift guide.
   Built from the agreed mockups: home-v42, loading-v44, results-v24 (design/mockup/). */

/* ---------- Tokens. Home and loading sit on the neutral base; a guide takes its persona group's colours. ---------- */
.page { --bg: #E5E3DA; --ink: #29100C; --soft: #6B5C4E; --accent: #5A1D22; --card: #FFFDF8; --hair: rgba(41,16,12,.16); --tag-bg: #29100C; --tag-ink: #F2F1EB;
  background: var(--bg); color: var(--ink); min-height: 78vh; }
.page.ready { transition: background .45s ease, color .45s ease; }
.page[data-theme="sport"]   { --bg: #D5D9BC; --ink: #26301A; --soft: #56603F; --accent: #4E5C22; --hair: rgba(38,48,26,.2);    --tag-bg: #26301A; --tag-ink: #EEF0DD; }
.page[data-theme="food"]    { --bg: #3B2219; --ink: #F3E9DB; --soft: #CBB8A2; --accent: #E2B26B; --hair: rgba(243,233,219,.2); --tag-bg: #E2B26B; --tag-ink: #3B2219; }
.page[data-theme="senses"]  { --bg: #E9D6D2; --ink: #4A2228; --soft: #7A5157; --accent: #8E3B47; --hair: rgba(74,34,40,.18);    --tag-bg: #4A2228; --tag-ink: #F6EAE7; }
.page[data-theme="home"]    { --bg: #E6DCC8; --ink: #3A2E1E; --soft: #6E5E46; --accent: #7A5A2E; --hair: rgba(58,46,30,.18);    --tag-bg: #3A2E1E; --tag-ink: #F3EDE1; }
.page[data-theme="culture"] { --bg: #1F2A44; --ink: #EDE6D6; --soft: #AEB4C4; --accent: #E9B949; --hair: rgba(237,230,214,.22); --tag-bg: #E9B949; --tag-ink: #1F2A44; }
.page[data-theme="work"]    { --bg: #D9DDE2; --ink: #1E2730; --soft: #4F5B68; --accent: #2F4A66; --hair: rgba(30,39,48,.18);    --tag-bg: #1E2730; --tag-ink: #EEF1F4; }
.page[data-theme="life"]    { --bg: #F0D9B5; --ink: #4A2A12; --soft: #7D5A3A; --accent: #B5562B; --hair: rgba(74,42,18,.18);    --tag-bg: #4A2A12; --tag-ink: #FBF1E1; }
.page[data-theme="pride"]   { --bg: #5A1D22; --ink: #F2E6DA; --soft: #D9BFB3; --accent: #F0B5A8; --hair: rgba(242,230,218,.22); --tag-bg: #F0B5A8; --tag-ink: #5A1D22; }
.page a { color: inherit; }
.page { overflow-x: clip; } /* nothing (like a hover card near the edge) may widen the page on phones */
.serif { font-family: "Instrument Serif", Georgia, serif; font-style: italic; letter-spacing: -0.01em; }
.nowrap { white-space: nowrap; }

/* Header */
.g-top { padding-block: 14px; }
.g-top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.g-top .logo img { height: 48px; }
.g-top .again { font-size: 14px; text-decoration: none; border-bottom: 1px solid var(--hair); padding-bottom: 2px; }
.g-top .again:hover { border-color: currentColor; }

/* Merrie's chat bubble + typing dots, used on every screen */
.dots { display: inline-flex; gap: 4px; padding: 6px 2px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: #A39A8C; animation: dot 1s ease-in-out infinite; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.msg { animation: msgIn .25s ease-out; }
@keyframes msgIn { from { opacity: 0; transform: translateY(4px); } }

/* Same title on loading and the guide */
.g-title { line-height: .92; letter-spacing: -0.04em; }
.g-title .for { display: block; font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -0.01em; margin-bottom: .1em; }
.g-title .who { display: block; font-size: clamp(34px, 4.6vw, 60px); font-weight: 400; max-width: 24ch; margin: 0 auto; overflow-wrap: anywhere; }
.g-title .who em { font-family: "Instrument Serif", Georgia, serif; font-style: italic; letter-spacing: -0.01em; padding: 0 .04em; }
@media (min-width: 721px) { .g-title .who .pn { white-space: nowrap; } }

/* ================= 1. Home ================= */
.hero { display: grid; justify-items: center; text-align: center; padding-block: 18px 40px; position: relative; }
.hero h1 { line-height: .95; letter-spacing: -0.04em; }
.hero h1 .s { display: block; font-size: clamp(24px, 2.6vw, 34px); margin-bottom: .12em; }
.hero h1 .b { display: block; font-size: clamp(38px, 5.2vw, 64px); font-weight: 400; }

.m-say { display: flex; gap: 10px; align-items: flex-end; margin: 18px auto 0; text-align: left; width: fit-content; transform: translateX(-23px); }
.m-say img { width: 36px; height: 36px; border-radius: 50%; box-shadow: 0 6px 14px -8px rgba(0,0,0,.45); flex: none; }
/* Merrie's hello: two short texts, stacked like messages */
.m-say .stack { display: grid; gap: 5px; justify-items: start; }
.m-say p { max-width: 420px; background: var(--card); color: #29100C; font-size: 15px; line-height: 1.4; padding: 10px 14px; border-radius: 18px 18px 18px 6px; box-shadow: 0 10px 24px -16px rgba(0,0,0,.45); }
.m-say p:last-child { border-radius: 6px 18px 18px 4px; }

.cta { display: inline-flex; align-items: center; gap: 10px; border: 0; border-radius: 999px; background: var(--ink); color: var(--bg); padding: 13px 22px; font-size: 15px; font-weight: 500; cursor: pointer; }
.cta .arrow { transition: transform .15s; } .cta:hover .arrow { transform: translateX(3px); }

.chip { border: 1px solid var(--hair); background: transparent; color: var(--ink); border-radius: 999px; padding: 6px 12px; font-size: 13.5px; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* The fill-in-the-blanks sentence */
.mad { max-width: 760px; margin: 26px auto 0; font-size: clamp(22px, 2.6vw, 32px); line-height: 1.75; letter-spacing: -0.02em; text-align: center; text-wrap: balance; }
.mad .blank { display: inline-block; border: 0; border-bottom: 2px solid var(--ink); border-radius: 0; background: transparent; font: inherit; color: var(--accent); padding: 0 4px; text-align: center; outline: none; }
.mad .blank:focus-visible { border-bottom-color: var(--accent); }
.mad .blank::placeholder { color: rgba(41,16,12,.32); }
/* Relationship: the blank is only as wide as the word; a small menu of 9 choices opens under it */
.rel-native { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.mad .rel { position: relative; display: inline-block; }
.mad .rel-btn { display: inline-flex; align-items: baseline; gap: .18em; cursor: pointer; padding: 0 4px; }
.mad .rel-btn svg { width: .5em; height: .5em; align-self: center; transition: transform .2s ease; }
.mad .rel-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.rel-menu { position: absolute; left: 50%; top: calc(100% + 10px); transform: translateX(-50%); z-index: 20; display: grid; grid-template-columns: repeat(3, auto); gap: 4px; padding: 8px; background: var(--card); border-radius: 16px; box-shadow: 0 18px 40px -18px rgba(0,0,0,.5), 0 0 0 1px rgba(41,16,12,.06); font-size: 15px; letter-spacing: 0; line-height: 1.2; white-space: nowrap; text-align: center; }
.rel-menu::before { content: ""; position: absolute; left: 50%; bottom: 100%; margin-left: -7px; border: 7px solid transparent; border-bottom-color: var(--card); }
.rel-menu button { border: 0; background: transparent; color: #29100C; font: inherit; padding: 8px 12px; border-radius: 10px; cursor: pointer; }
.rel-menu button:hover, .rel-menu button:focus-visible { background: #F1EDE3; outline: none; }
.rel-menu button[aria-selected="true"] { background: var(--accent); color: #FFFDF8; }
.mad .who3 { display: inline-flex; gap: 4px; vertical-align: middle; margin-left: 4px; }
.mad .who3 .chip { font-size: 13px; padding: 4px 10px; }
/* "self": the sentence becomes "Make a gift guide for [name] (her/him), my [self]. I'm into [...]." */
.mad .for-self { display: none; }
.mad.self .for-other { display: none; }
.mad.self .for-self { display: inline; }
/* A gentle nudge on a blank that still needs filling */
.mad .blank.need { animation: nudge .4s ease; border-bottom-color: var(--accent); }
@keyframes nudge { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.a-foot { display: grid; justify-items: center; gap: 4px; margin-top: 26px; }

/* Interest tags: calm outline pills, all shown. Tap up to 3, they fill the blank */
.likes { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px 6px; max-width: 720px; margin: 18px auto 0; }
.like { border: 1px solid rgba(41,16,12,.22); cursor: pointer; font: inherit; font-size: 13.5px; background: transparent; color: #29100C; padding: 5px 12px; border-radius: 999px; transition: background .15s, color .15s, border-color .15s, opacity .15s; }
@media (hover: hover) { .like:hover { border-color: var(--ink); } }
.like[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.likes.full .like:not([aria-pressed="true"]) { opacity: .45; }
.likes:not(.open) .like.extra:not([aria-pressed="true"]) { display: none; }
.like-more { border: 0; background: none; cursor: pointer; font: inherit; font-size: 13.5px; color: var(--soft); padding: 5px 8px; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(41,16,12,.3); }
@media (hover: hover) { .like-more:hover { color: var(--ink); } }
.likes-note { font-size: 12.5px; color: var(--soft); margin-top: 12px; }
.likes-note.need { color: var(--accent); font-weight: 500; }

/* Today's four decorative stickers at the sides (desktop only) */
.peek { position: absolute; left: 0; right: 0; top: 0; height: 0; margin: 0 auto; max-width: 1200px; pointer-events: none; }
.peek img { position: absolute; width: var(--w); height: auto; filter: drop-shadow(0 10px 14px rgba(0,0,0,.16)); animation: peekDrift var(--d) ease-in-out infinite alternate; transform: rotate(var(--r)); }
@keyframes peekDrift { to { transform: translateY(-6px) rotate(calc(var(--r) * -1)); } }
/* Only where there's room beside the sentence, so they never cover it */
@media (max-width: 1180px) { .peek { display: none; } }

/* ================= 2. Loading ================= */
.load { display: grid; justify-items: center; text-align: center; padding-block: 18px 72px; }
.bub { display: flex; gap: 10px; align-items: flex-end; text-align: left; margin-top: 4px; }
.bub img { width: 36px; height: 36px; border-radius: 50%; flex: none; box-shadow: 0 6px 14px -8px rgba(0,0,0,.45); }
.bub p { background: var(--card); color: #29100C; font-size: 15px; line-height: 1.4; padding: 10px 14px; border-radius: 18px 18px 18px 4px; box-shadow: 0 10px 24px -16px rgba(0,0,0,.45); min-height: 41px; }
.tag { display: inline-block; font-size: 14px; background: var(--accent); color: #FFFDF8; padding: 7px 13px 6px; border-radius: 9px; box-shadow: 0 0 0 3px #FFFDF8, 0 9px 16px -9px rgba(0,0,0,.5); transform: rotate(var(--r)); max-width: 46%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.swim { position: relative; width: min(520px, 100%); height: 300px; margin-top: 18px; }
.swim .otter { position: absolute; left: 50%; top: 40px; width: 190px; height: auto; margin-left: -95px; animation: paddle 2.6s ease-in-out infinite; filter: drop-shadow(0 14px 18px rgba(0,0,0,.14)); }
@keyframes paddle { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-10px) rotate(3deg); } }
.swim .wave { position: absolute; left: 8%; right: 8%; top: 238px; height: 12px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 10'%3E%3Cpath d='M0 5 Q5 0 10 5 T20 5 T30 5 T40 5' fill='none' stroke='%2329100C' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x 0 0 / 40px 12px; opacity: .35; animation: wave 2s linear infinite; }
@keyframes wave { to { background-position: -40px 0; } }
.swim .tag { position: absolute; z-index: 2; max-width: 44%; animation: float var(--d) ease-in-out infinite alternate; }
.swim .tag.low { left: 0; right: 0; top: 256px; margin-inline: auto; width: max-content; max-width: 70%; }
@keyframes float { to { transform: translateY(-9px) rotate(calc(var(--r) * -1)); } }
.pips { display: flex; gap: 6px; margin-top: 18px; }
.pips i { width: 26px; height: 4px; border-radius: 4px; background: rgba(41,16,12,.14); transition: background .4s; }
.pips i.on { background: var(--ink); }
.trouble { display: grid; justify-items: center; gap: 14px; margin-top: 18px; max-width: 420px; }
.trouble .btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.btn-solid { background: var(--ink); color: var(--bg); padding: 10px 18px; font-size: 14px; }
.btn-line { border-color: var(--ink); background: transparent; color: var(--ink); padding: 10px 18px; font-size: 14px; }

/* ================= 3. The gift guide ================= */
.g-head { text-align: center; display: grid; justify-items: center; gap: 12px; padding-block: 8px 0; }
.g-note { display: flex; gap: 10px; align-items: flex-end; justify-content: center; margin: 14px auto 0; text-align: left; max-width: 520px; }
.g-note img { width: 36px; height: 36px; border-radius: 50%; flex: none; box-shadow: 0 6px 14px -8px rgba(0,0,0,.45); }
.g-note p { position: relative; background: var(--card); color: #29100C; font-size: 15px; line-height: 1.4; padding: 10px 14px; border-radius: 18px 18px 18px 4px; box-shadow: 0 10px 24px -16px rgba(0,0,0,.45); min-height: 41px; }
.g-note .msg { display: inline; }

/* The gifts: a calm grid of the stickers only, 5 × 2 on desktop, 2 columns on phones.
   Name, price and Merrie's gift note are in the card that opens on hover (tap on phones). */
.collage { display: grid; grid-template-columns: repeat(5, 1fr); row-gap: 44px; column-gap: 28px; padding-block: 40px 30px; max-width: 1000px; margin: 0 auto; }
.sticker { position: relative; display: flex; align-items: center; justify-content: center; height: 190px; min-width: 0; text-decoration: none; outline: none; animation: cellIn .5s ease-out var(--in) backwards; }
.sticker img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(0,0,0,.18)) drop-shadow(0 2px 2px rgba(0,0,0,.08)); transition: transform .25s ease; }
/* A photo that couldn't be cut out cleanly shows framed, like a photo sticker */
.sticker.framed img { width: min(100%, 168px); aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: #FFFDF8; box-shadow: 0 0 0 6px #FFFDF8; filter: drop-shadow(0 10px 14px rgba(0,0,0,.16)); }
@keyframes cellIn { from { opacity: 0; transform: translateY(10px); } }
/* The hovered or opened item, and its card, sit above the rest */
.sticker:focus-visible, .sticker.open { z-index: 20; }
.sticker.open img { transform: translateY(-4px) scale(1.03); }
@media (hover: hover) { .sticker:hover { z-index: 20; } .sticker:hover img { transform: translateY(-4px) scale(1.03); } }
.sticker:focus-visible img { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 8px; }
.collage.still .sticker { animation: none; }

/* Hover card (tap on phones) */
.pop { position: absolute; left: 50%; bottom: calc(100% - 6px); width: 256px; transform: translate(-50%, 6px); background: var(--card); color: #29100C; border-radius: 14px; padding: 14px 16px 13px; box-shadow: 0 18px 40px -18px rgba(0,0,0,.5); opacity: 0; pointer-events: none; transition: opacity .18s ease, transform .18s ease; text-align: left; z-index: 10; }
.pop::after { content: ""; position: absolute; left: 50%; top: 100%; margin-left: -7px; border: 7px solid transparent; border-top-color: var(--card); }
.pop .b, .pop .t { display: block; }
/* Close (×): on every open card. Phones put a tapped card away with it; computers can too, or just move the mouse away */
.pop .x { display: none; position: absolute; top: 0; right: 0; width: 46px; height: 46px; place-items: center; border-radius: 50%; font-size: 22px; line-height: 1; color: #6B5C4E; cursor: pointer; }
.sticker.open .pop .x, .sticker:focus-visible .pop .x { display: grid; }
.sticker.open .pop .b, .sticker:focus-visible .pop .b { padding-right: 26px; }
@media (hover: hover) {
  .sticker:hover .pop .x { display: grid; }
  .sticker:hover .pop .b { padding-right: 26px; }
  .pop .x:hover { color: #29100C; }
}
.sticker.shut .pop { opacity: 0 !important; pointer-events: none !important; }
.sticker.shut img { transform: none !important; }
.pop .b { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: #6B5C4E; }
.pop .t { font-size: 15px; line-height: 1.3; margin-top: 4px; }
/* Merrie's gift note: why this one will matter to them */
.pop .gn { display: block; font-size: 14px; line-height: 1.45; color: #4A3328; margin-top: 9px; padding-top: 9px; border-top: 1px solid rgba(41,16,12,.12); }
.pop .row2 { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; gap: 10px; }
.pop .p { font-weight: 500; }
.pop .go { font-size: 13px; background: #29100C; color: #F2F1EB; border-radius: 999px; padding: 6px 12px; white-space: nowrap; }
/* Cards in the top row open downwards, the rest upwards. Phones open the card with a tap (.open) only, so a leftover hover never covers another sticker */
.sticker:focus-visible .pop, .sticker.open .pop { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
@media (hover: hover) { .sticker:hover .pop { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; } }
.sticker.below .pop { bottom: auto; top: calc(100% - 6px); }
.sticker.below .pop::after { top: auto; bottom: 100%; border-top-color: transparent; border-bottom-color: var(--card); }
.sticker.edge-l .pop { left: 0; transform: translate(0, 6px); } .sticker.edge-l .pop::after { left: 40px; }
.sticker.edge-r .pop { left: auto; right: 0; transform: translate(0, 6px); } .sticker.edge-r .pop::after { left: auto; right: 33px; }
.sticker.edge-l.open .pop, .sticker.edge-l:focus-visible .pop, .sticker.edge-r.open .pop, .sticker.edge-r:focus-visible .pop { transform: translate(0, 0); }
@media (hover: hover) { .sticker.edge-l:hover .pop, .sticker.edge-r:hover .pop { transform: translate(0, 0); } }

/* The list: running text, like a magazine caption */
.g-list { max-width: 780px; margin: 0 auto; padding-block: 4px 0; text-align: center; font-size: 13.5px; line-height: 1.75; text-wrap: balance; transition: opacity .3s ease; }
.g-list a { text-decoration: none; white-space: nowrap; margin: 0 9px; }
.g-list a:hover span { text-decoration: underline; text-underline-offset: 3px; }
.g-list a .lb { color: var(--soft); }
.g-list.leaving { opacity: 0; }
/* The list folds away: a small centred toggle, the list opens beneath it */
.g-acc { max-width: 780px; margin: 0 auto; text-align: center; }
.g-acc summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; list-style: none; font-size: 14px; padding: 6px 2px; border-bottom: 1px solid var(--hair); }
.g-acc summary::-webkit-details-marker { display: none; }
.g-acc summary:hover { border-color: currentColor; }
.g-acc .chev { width: 16px; height: 16px; transition: transform .2s ease; }
.g-acc[open] .chev { transform: rotate(180deg); }
.g-acc .g-list { padding-top: 14px; animation: accIn .25s ease-out; }
@keyframes accIn { from { opacity: 0; transform: translateY(-4px); } }
/* Old gifts fade up and away before the new ones arrive */
.collage.leaving .sticker { animation: leave .4s ease-in calc(var(--in) / 2) forwards; }
@keyframes leave { to { opacity: 0; transform: translateY(-14px); } }

/* A founder's gifting memory on their guide (Merrie's Picks), taped on like a note */
.v-b { text-align: center; }
.v-b .card { display: inline-block; text-decoration: none; position: relative; max-width: 400px; background: #FFFDF8; color: #29100C; padding: 26px 26px 20px; border-radius: 4px; transform: rotate(-1.8deg); box-shadow: 0 0 0 7px #FFFDF8, 0 16px 30px -14px rgba(0,0,0,.45); text-align: left; transition: transform .25s cubic-bezier(.3,1.4,.6,1); }
a.card:hover { transform: rotate(0deg) scale(1.02); }
.v-b .card::before { content: ""; position: absolute; top: -16px; left: 50%; width: 92px; height: 26px; margin-left: -46px; background: var(--tag-bg); opacity: .85; transform: rotate(2deg); }
.v-b .lbl { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: #6B5C4E; }
.v-b blockquote { margin: 10px 0 14px; font-family: "Instrument Serif", Georgia, serif; font-size: 22px; line-height: 1.25; }
.v-b .by { display: flex; align-items: center; gap: 10px; font-size: 13.5px; border-top: 1px dashed #CFCBBE; padding-top: 12px; }

/* Share */
.g-share { display: grid; justify-items: center; gap: 12px; padding-block: 44px 40px; text-align: center; }
.g-share h3 { font-size: 20px; line-height: 1.2; letter-spacing: -0.02em; }
.g-share .btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.g-share .btn { border-color: var(--ink); color: var(--ink); background: transparent; padding: 9px 16px; font-size: 14px; gap: 8px; }
.g-share .btn.solid { background: var(--ink); color: var(--bg); }
.g-share .btn svg { width: 16px; height: 16px; }

/* "Not quite right?": its own quiet block, apart from Share */
.g-retry { display: grid; justify-items: center; gap: 12px; text-align: center; padding-block: 30px 34px; margin: 0 auto; max-width: 520px; border-top: 1px solid var(--hair); }
.g-retry .rq { font-size: 15px; color: var(--soft); }
.g-retry .ra { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; font-size: 14px; }
.g-retry .or { color: var(--soft); }
.g-retry .ra a { text-underline-offset: 3px; }
.g-retry .r-err { font-size: 13px; color: var(--soft); }
.reroll { background: transparent; color: var(--ink); border: 1px solid var(--ink); padding: 9px 16px; font-size: 14px; gap: 8px; }
.reroll:hover { background: var(--ink); color: var(--bg); }
.reroll svg { width: 16px; height: 16px; transition: transform .5s ease; }
.reroll:hover svg { transform: rotate(-90deg); }
.reroll.rolling svg { animation: spin .7s linear infinite; }
.reroll:disabled { opacity: .7; cursor: default; }
@keyframes spin { to { transform: rotate(-360deg); } }

/* Goodbye: Merrie's last word, at the very end of the guide */
.g-bye { display: grid; justify-items: center; gap: 12px; text-align: center; padding-block: 34px 72px; margin: 0 auto; max-width: 520px; border-top: 1px solid var(--hair); }
.g-bye img { width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 6px 14px -8px rgba(0,0,0,.45); }
.g-bye p { font-family: "Instrument Serif", serif; font-size: 24px; line-height: 1.2; max-width: 400px; text-wrap: balance; }

/* Footer: the email sits in the sentence, in the same font */
.f-col p { max-width: 40ch; }

/* ================= 4. Merrie's Picks: gift guides inspired by Singapore founders =================
   Built from the agreed mockups: home-v55 (C), collection-v56 (A), guide-hazel-draft (design/mockup/). */

/* Each founder guide's colours, for its gift tag and the home band (the same palettes as the guide pages) */
.t-sport   { --t-bg: #D5D9BC; --t-ink: #26301A; --t-soft: #56603F; --t-hair: rgba(38,48,26,.2); }
.t-food    { --t-bg: #3B2219; --t-ink: #F3E9DB; --t-soft: #CBB8A2; --t-hair: rgba(243,233,219,.2); }
.t-senses  { --t-bg: #E9D6D2; --t-ink: #4A2228; --t-soft: #7A5157; --t-hair: rgba(74,34,40,.18); }
.t-home    { --t-bg: #E6DCC8; --t-ink: #3A2E1E; --t-soft: #6E5E46; --t-hair: rgba(58,46,30,.18); }
.t-culture { --t-bg: #1F2A44; --t-ink: #EDE6D6; --t-soft: #AEB4C4; --t-hair: rgba(237,230,214,.22); }
.t-work    { --t-bg: #D9DDE2; --t-ink: #1E2730; --t-soft: #4F5B68; --t-hair: rgba(30,39,48,.18); }
.t-life    { --t-bg: #F0D9B5; --t-ink: #4A2A12; --t-soft: #7D5A3A; --t-hair: rgba(74,42,18,.18); }
.t-pride   { --t-bg: #5A1D22; --t-ink: #F2E6DA; --t-soft: #D9BFB3; --t-hair: rgba(242,230,218,.22); }

.mono-lbl { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); }
.ulink { text-decoration: none; border-bottom: 1px solid var(--hair); padding-bottom: 2px; font-size: 14px; }
.ulink:hover { border-color: currentColor; }
.page a.store { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.page a.store:hover { text-decoration-thickness: 2px; }
/* The founder's photo in a small circle, or their initial when there's no photo */
.f-av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 500; background: var(--tag-bg); color: var(--tag-ink); flex: none; }
img.f-av { object-fit: cover; object-position: 50% 30%; background: #FFFDF8; box-shadow: 0 0 0 2px #FFFDF8, 0 6px 14px -8px rgba(0,0,0,.45); }
.f-av.lg { width: 44px; height: 44px; }

/* Home: today's gifting story, a full-width band below the form, in the guide's colours */
.h-band { background: var(--t-bg); color: var(--t-ink); --soft: var(--t-soft); --hair: var(--t-hair); --tag-bg: var(--t-ink); --tag-ink: var(--t-bg); margin-top: 64px; }
.h-band .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; padding-block: 72px; max-width: 1080px; }
.h-band .mono-lbl { color: var(--t-soft); }
.h-band blockquote { margin: 14px 0 22px; font-family: "Instrument Serif", Georgia, serif; font-size: clamp(21px, 2vw, 27px); line-height: 1.22; letter-spacing: -0.01em; text-wrap: balance; }
.h-band .by { display: flex; gap: 12px; align-items: center; font-size: 15px; }
.h-band .by b { font-weight: 500; }
.h-band .acts { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-top: 28px; }
.page .h-band a.cta { background: var(--t-ink); color: var(--t-bg); text-decoration: none; }
.h-band .fan { position: relative; height: 320px; }
.h-band .fan img { position: absolute; height: 58%; object-fit: contain; filter: drop-shadow(0 12px 16px rgba(0,0,0,.18)); }
.h-band .fan img:nth-child(1) { width: 34%; left: 4%; top: 14%; transform: rotate(-8deg); }
.h-band .fan img:nth-child(2) { width: 36%; left: 34%; top: 2%; transform: rotate(4deg); }
.h-band .fan img:nth-child(3) { width: 34%; right: 2%; top: 38%; transform: rotate(-3deg); }

/* The collection page header */
.c-head { text-align: center; display: grid; justify-items: center; gap: 14px; padding-block: 18px 8px; }
.c-head h1 { line-height: .95; letter-spacing: -0.04em; }
.c-head h1 .s { display: block; font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -0.01em; margin-bottom: .1em; }
.c-head h1 .b { display: block; font-size: clamp(38px, 5.2vw, 64px); font-weight: 400; }
.c-head .sub { max-width: 520px; color: var(--soft); font-size: 16px; line-height: 1.45; text-wrap: balance; }
.picks-err { text-align: center; color: var(--soft); font-size: 15px; padding-block: 30px 90px; }

/* Gift tags: one per guide. An open guide's tag shows three of its gifts and the founder's story; the rest wait */
.tags-wrap { max-width: 1120px; margin: 0 auto; padding-block: 84px 100px; }
.string { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 88px 20px; }
/* Each tag sits in a cell that tilts it and holds its ribbon (the tag's own shape is clipped, so the bow lives outside it) */
.gcell { position: relative; display: grid; transform: rotate(var(--r)); transition: transform .25s cubic-bezier(.3,1.4,.6,1); }
.gtag { position: relative; display: grid; align-content: start; justify-items: center; text-align: center; text-decoration: none; padding: 34px 14px 20px; border-radius: 10px 10px 14px 14px; clip-path: polygon(22% 0, 78% 0, 100% 14%, 100% 100%, 0 100%, 0 14%); }
/* Red velvet ribbon (a cut-out photo). Its anchor point (--ax, --ay: where the ends meet) sits on the tag's hole, 18px down */
.ribbon { --ax: .52; --ay: .985; position: absolute; left: 50%; top: 18px; width: 96px; height: auto; z-index: 3; pointer-events: none; transform: translate(calc(var(--ax) * -100%), calc(var(--ay) * -100%)); filter: drop-shadow(0 4px 4px rgba(50,6,12,.25)); }
.gtag::before { content: ""; position: absolute; top: 12px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--hair); }
.page .gtag.live { background: var(--t-bg); color: var(--t-ink); --tag-bg: var(--t-ink); --tag-ink: var(--t-bg); }
.gtag.live { cursor: pointer; }
.gcell.live:hover, .gcell.live:focus-within { transform: rotate(0) translateY(-4px); }
/* The invisible link that makes the whole tag open the guide; the store link sits above it */
.gtag .gtag-go { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.gtag .gtag-go:focus-visible { outline: 2px solid currentColor; outline-offset: -6px; }
.gtag .fby a.store { position: relative; z-index: 2; }
.gtag.shut { background: #F2F1EB; color: #6B5C4E; min-height: 300px; }
.gtag .no { font-family: "Instrument Serif", Georgia, serif; font-size: 46px; line-height: 1; margin-top: 10px; color: #29100C; opacity: .3; }
.gtag .soon { font-size: 13px; margin-top: 14px; }
.gtag .trio { position: relative; width: 100%; height: 104px; margin: 4px 0 8px; }
.gtag .trio img { position: absolute; width: 46%; height: 84px; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(0,0,0,.2)); }
.gtag .trio img:nth-child(1) { left: 0; top: 18px; transform: rotate(-8deg); }
.gtag .trio img:nth-child(2) { left: 27%; top: 0; transform: rotate(4deg); z-index: 1; }
.gtag .trio img:nth-child(3) { right: 0; top: 20px; transform: rotate(-2deg); }
.gtag .q { font-family: "Instrument Serif", Georgia, serif; font-size: 16px; line-height: 1.25; text-align: left; margin: 4px 2px 12px; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.gtag .fby { display: flex; align-items: center; gap: 8px; font-size: 12.5px; line-height: 1.3; text-align: left; justify-self: start; width: 100%; padding: 10px 2px 0; border-top: 1px dashed color-mix(in srgb, currentColor 30%, transparent); }
.gtag .fby .f-av { width: 28px; height: 28px; font-size: 11px; }
.gtag .fby b { font-weight: 500; }

/* A founder's guide: the same page as a gift guide, with the founder's story first */
.g-head .byline { display: inline-flex; align-items: center; gap: 8px; background: var(--tag-bg); color: var(--tag-ink); font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em; padding: 5px 10px 4px; transform: rotate(-1.5deg); }
.g-head .byline a.store { color: inherit; }
/* A preview link of a guide that isn't open yet */
.f-preview { display: table; margin: 0 auto 18px; padding: 6px 12px 5px; border: 1px dashed currentColor; border-radius: 999px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em; opacity: .85; text-align: center; }
.f-preview[hidden] { display: none; }
.g-head .f-story { margin-top: 28px; }
.v-b .card.static { cursor: default; }
.v-b .card .by b { font-weight: 600; }
.page[data-screen="founder"] .g-note { margin-top: 30px; }
/* More of Merrie's Picks, at the end of a founder's guide */
.more { padding-block: 36px 40px; border-top: 1px solid var(--hair); max-width: 1000px; margin: 0 auto; text-align: center; }
.more h3 { font-size: 20px; letter-spacing: -0.02em; }
.more .tags-wrap { padding-block: 84px 0; }
.more .string { grid-template-columns: repeat(3, 220px); justify-content: center; text-align: left; }
.more .gtag.shut { min-height: 190px; }
.more .all { display: inline-block; margin-top: 30px; }

@media (max-width: 900px) {
  .string { grid-template-columns: repeat(2, 1fr); gap: 84px 14px; }
  .more .string { grid-template-columns: repeat(2, 1fr); }
  .more .string .gcell:nth-child(n+3) { display: none; } /* two a row, so two tags */
}
@media (max-width: 820px) {
  .h-band .wrap { grid-template-columns: 1fr; gap: 20px; padding-block: 44px 56px; }
  .h-band .fan { height: 220px; order: -1; }
}
@media (max-width: 720px) {
  .h-band { margin-top: 24px; }
  .tags-wrap { padding-block: 80px 72px; }
  .gtag { padding-inline: 12px; }
  .gtag .q { font-size: 15px; -webkit-line-clamp: 8; } /* narrower tags: more lines, so a story still reads whole */
  .gtag.shut { min-height: 190px; }
  .g-head .f-story { margin-top: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .dots i, .msg, .sticker, .sticker img, .peek img, .swim *, .mad .blank.need, .g-acc .g-list { animation: none !important; }
  .page.ready { transition: none; }
}

@media (max-width: 720px) {
  .g-top .logo img { height: 42px; }
  .m-say { transform: none; }
  .m-say .br-d { display: none; }
  .mad { line-height: 1.9; }
  .mad .loves { width: 100% !important; }
  .peek { display: none; }
  .swim { height: 270px; }
  .swim .otter { width: 160px; margin-left: -80px; }
  .swim .wave { top: 214px; }
  .swim .tag.low { top: 230px; }
  .g-head { padding-top: 4px; gap: 10px; }
  .g-note { padding-inline: 4px; }
  .g-note p { font-size: 14.5px; }
  .collage { grid-template-columns: repeat(2, 1fr); row-gap: 30px; column-gap: 18px; padding-block: 28px 20px; }
  .sticker { height: 140px; }
  .pop { width: 200px; }
  .g-list { font-size: 13px; line-height: 1.45; }
  .g-list a { white-space: normal; display: block; margin: 0 0 7px; }
  .g-share { padding-bottom: 36px; }
  .g-retry { margin-inline: 20px; }
  .g-bye { padding-bottom: 96px; margin-inline: 20px; }
  .g-bye p { font-size: 21px; }
}
