/* Colors and fonts come from /theme.css (src/theme.ts). */
:root { --tick-white: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12.5l5 5L20 6.5' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); --tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12.5l5 5L20 6.5' fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); --wrap: 1080px; --gutter: clamp(20px, 5vw, 48px); --ease: cubic-bezier(.2, .7, .2, 1); }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { transition: background-color .7s var(--ease); background: var(--tint, var(--bg)) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .27 0 0 0 0 .15 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); color: var(--ink); -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 16px/1.55 var(--font-sans); overflow-x: clip; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(32px, 5vw, 48px); line-height: 1.08; margin: 0 0 12px; }
h2 { font-size: clamp(26px, 3.6vw, 36px); line-height: 1.1; margin: 0 0 10px; }
h3 { font-size: 21px; line-height: 1.2; margin: 0 0 8px; }
p { margin: 0 0 12px; }
a { color: var(--link); }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 560px; }
main { padding-top: clamp(16px, 4vw, 40px); }

.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--tint, var(--bg)) 86%, transparent); backdrop-filter: blur(10px) saturate(1.2); -webkit-backdrop-filter: blur(10px) saturate(1.2); border-bottom: 1px solid transparent; transition: background-color .7s var(--ease); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; font-family: var(--font-logo); font-size: 21px; text-decoration: none; color: var(--ink); }
.wordmark-bear { width: 34px; height: 34px; flex: none; transition: transform .3s var(--ease); }
.wordmark:hover .wordmark-bear { transform: rotate(-10deg) scale(1.08); }
.wordmark-accent { color: var(--accent); }
.top nav { display: flex; gap: 6px; align-items: center; }
.top nav form { margin: 0; }
.top nav a, .nav-quiet { white-space: nowrap; text-decoration: none; color: var(--ink); font: inherit; font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 999px; background: none; border: 0; cursor: pointer; }
.top nav a:hover, .nav-quiet:hover { background: var(--wash); }
.top nav .nav-pill { display: inline-flex; align-items: center; gap: 6px; background: var(--surface); box-shadow: 0 0 0 1.5px var(--line) inset; }
.top nav .nav-pill.strong { background: var(--accent-deep); color: var(--surface); box-shadow: none; }
.top nav .nav-pill.strong:hover { background: #9E3122; }
.nav-quiet { color: var(--muted); }
.icon { width: 18px; height: 18px; flex: none; }
@media (max-width: 560px) { .nav-hide, .top nav .icon { display: none; } .top nav { gap: 2px; } .wordmark { font-size: 18px; } .wordmark-bear { width: 30px; height: 30px; } .top nav a, .nav-quiet { padding: 8px 9px; font-size: 14px; } }

.card { background: var(--surface); border-radius: 18px; padding: clamp(18px, 3vw, 28px); box-shadow: 0 24px 60px -30px rgba(35,32,28,.45), 0 1px 0 rgba(35,32,28,.06); }
.stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.field { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.field > span, .field legend { font-weight: 600; font-size: 14px; }
.field > legend { padding: 0; margin-bottom: 10px; }
.field input[type="text"], .field input[type="email"], .field input[type="password"], .field input[type="number"], .field select, .field textarea { font: inherit; font-size: 17px; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); width: 100%; }
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--link); outline: none; box-shadow: 0 0 0 3px rgba(42,101,163,.35); }
fieldset.field { border: 0; padding: 0; margin: 0; }
.hint { font-size: 13px; color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; }
.chips span { display: flex; align-items: center; gap: 6px; padding: 9px 16px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; cursor: pointer; font-weight: 500; font-size: 15px; transition: background .15s, border-color .15s, color .15s; }
.chips span:hover { border-color: var(--ink); }
.chips input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--surface); }
.chips input:checked + span::before { content: ""; width: 14px; height: 14px; flex: none; background: currentColor; -webkit-mask: var(--tick) center / contain no-repeat; mask: var(--tick) center / contain no-repeat; }
.chips input:focus-visible + span { outline: 3px solid var(--link); outline-offset: 3px; }

.button { display: inline-block; font: inherit; font-weight: 600; padding: 11px 20px; border-radius: 999px; border: 1.5px solid transparent; cursor: pointer; text-align: center; text-decoration: none; transition: transform .12s var(--ease), background .12s, box-shadow .12s; }
.button.primary { background: var(--accent-deep); color: var(--surface); font-size: 17px; padding: 14px 24px; box-shadow: 0 4px 0 #7E2619, 0 14px 24px -14px rgba(126,38,25,.8); }
.button.primary:hover { background: #A8341F; transform: translateY(-1px); box-shadow: 0 5px 0 #7E2619, 0 18px 28px -14px rgba(126,38,25,.8); }
.button.primary:active { transform: translateY(3px); box-shadow: 0 1px 0 #7E2619; }
.button.primary:disabled { opacity: .6; cursor: wait; transform: none; }
.button.big { font-size: 18px; padding: 16px 30px; }
.button.small { font-size: 14px; padding: 7px 14px; }
.button.secondary { background: #fff; border-color: var(--ink); color: var(--ink); box-shadow: 0 3px 0 var(--ink); }
.button.secondary:hover { background: var(--wash); transform: translateY(-1px); box-shadow: 0 4px 0 var(--ink); }
.button.secondary:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.button.quiet { background: transparent; color: var(--ink); text-decoration: underline; padding: 6px 4px; }
.fine { color: var(--muted); font-size: 13px; line-height: 1.5; }
.error { color: var(--accent-deep); font-size: 14px; font-weight: 600; }
.notice { background: var(--wash); border-radius: 12px; padding: 12px 16px; }

.spinner { display: inline-block; width: 22px; height: 22px; border-radius: 50%; border: 3px solid rgba(35,32,28,.18); border-top-color: var(--accent); animation: spin .8s linear infinite; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }

.bottom { margin-top: clamp(56px, 9vw, 112px); padding: 40px 0 32px; background: var(--surface); border-radius: 32px 32px 0 0; color: var(--muted); font-size: 14px; box-shadow: 0 -1px 0 var(--line); }
.bottom-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 28px; }
.bottom-brand p { margin: 10px 0 0; max-width: 30ch; }
.bottom nav { display: grid; gap: 6px; align-content: start; }
.bottom nav b { color: var(--ink); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 4px; }
.bottom a { color: inherit; text-decoration: none; }
.bottom nav a:hover { color: var(--accent-deep); text-decoration: underline; }
.bottom-company { margin: 32px 0 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12.5px; }
@media (max-width: 760px) { .bottom-grid { grid-template-columns: 1fr 1fr; } .bottom-brand { grid-column: 1 / -1; } }

.step { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-deep); margin: 0; }
.lead { font-size: 18px; color: var(--muted); max-width: 60ch; }

.style-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(230px, calc(50% - 8px)), 1fr)); gap: 16px; }
.style-card { position: relative; cursor: pointer; }
.style-card input { position: absolute; opacity: 0; inset: 0; }
.style-face { display: grid; gap: 4px; background: var(--surface); border: 2px solid transparent; border-radius: 16px; padding: 8px 8px 12px; box-shadow: 0 10px 30px -22px rgba(35,32,28,.5); transition: transform .12s var(--ease); }
.style-face img { width: 100%; height: auto; aspect-ratio: 1; border-radius: 10px; }
.style-name { font-family: var(--font-display); font-size: 21px; padding: 4px 4px 0; }
.style-blurb { font-size: 14px; color: var(--muted); padding: 0 4px; }
.style-card input:checked + .style-face { border-color: var(--accent); transform: translateY(-2px); }
.style-card input:focus-visible + .style-face { outline: 3px solid var(--link); outline-offset: 3px; }

.members { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.member { display: grid; grid-template-columns: 120px 1fr; gap: 18px; align-items: start; }
.member-photo { width: 120px; height: 120px; object-fit: cover; border-radius: 12px; background: #EDEBE6; }
.member-head { justify-content: space-between; }
.member-head h3 { margin: 0; }
.member-type { font-size: 13px; background: var(--wash); border-radius: 999px; padding: 3px 10px; }
.member-age input { max-width: 110px; }
.member-status { font-size: 14px; color: var(--muted); margin: 0; }
.member-actions { gap: 6px; }
.member-actions .button { font-size: 14px; color: var(--muted); }
.member-rephoto { cursor: pointer; }
@media (max-width: 520px) { .member { grid-template-columns: 1fr; } .member-photo { width: 100%; height: auto; aspect-ratio: 1; } }

.add-member h2 { margin: 0; }
.photo-pick input[type="file"] { font: inherit; max-width: 100%; }
.photo-preview img { width: 120px; height: 120px; object-fit: cover; border-radius: 12px; }
.reveal-bar { position: sticky; bottom: 0; padding: 14px 0 18px; background: linear-gradient(transparent, var(--bg) 35%); }

.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.hero-card { display: grid; gap: 8px; }
.hero-frame { position: relative; background: #EDEBE6; border-radius: 18px; overflow: hidden; aspect-ratio: 1; box-shadow: 0 18px 40px -26px rgba(35,32,28,.55); }
.hero-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-frame img.is-waiting { filter: blur(6px) saturate(.6); opacity: .55; transform: scale(1.06); }
.hero-busy { position: absolute; inset: auto 0 0 0; padding: 10px 12px; background: rgba(255,253,247,.9); font-size: 14px; font-weight: 600; }
.hero-name { text-align: center; margin: 4px 0 0; }
.hero-fix summary { cursor: pointer; font-size: 14px; color: var(--muted); text-align: center; }
.hero-fix form { margin-top: 10px; }
.style-switch h2 { margin: 0; }
.style-switch .style-grid { grid-template-columns: repeat(auto-fill, minmax(min(190px, calc(50% - 8px)), 1fr)); gap: 14px; }
.style-confirm { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 14px 16px; background: var(--surface); border-radius: 16px; box-shadow: 0 10px 30px -22px rgba(35,32,28,.5); }
.style-confirm p { margin: 0; flex: 1 1 220px; }
.style-switch .style-blurb { display: none; }
.style-switch .style-name { font-size: 18px; }
.style-switch { margin-top: 12px; }
.button.is-disabled { opacity: .5; cursor: wait; }


.adventure-head { margin-bottom: 24px; }
.buy { max-width: 620px; }
.buy-head { justify-content: space-between; }
.buy-head h2 { margin: 0; }
.price { font-family: var(--font-display); font-size: 28px; }
.page-btn { position: absolute; right: 10px; bottom: 10px; font: inherit; font-size: 13px; font-weight: 600; border: 0; border-radius: 999px; padding: 7px 12px; background: rgba(255,253,247,.92); cursor: pointer; opacity: 0; transition: opacity .15s; }
.page:hover .page-btn, .page-btn:focus-visible { opacity: 1; }
.redraw-panel { width: min(680px, calc(100% - 32px)); max-height: calc(100% - 32px); border: 0; border-radius: 16px; padding: 24px; background: var(--surface); color: var(--ink); display: none; }
.redraw-panel[open] { display: grid; gap: 14px; }
.redraw-panel::backdrop { background: rgba(35,32,28,.55); }
.redraw-panel h2, .redraw-panel p { margin: 0; }
.redraw-current { width: min(320px, 100%); border-radius: 8px; }
.redraw-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.redraw-choices button.is-current { border-color: var(--accent); }
.redraw-choices button { position: relative; padding: 0; border: 3px solid transparent; border-radius: 10px; background: none; cursor: pointer; overflow: hidden; }
.redraw-choices button:hover, .redraw-choices button:focus-visible { border-color: var(--accent-deep); }
.redraw-choices img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.redraw-choices.wide img { aspect-ratio: 3 / 2; }
.redraw-choices span { position: absolute; left: 8px; bottom: 8px; font-size: 13px; font-weight: 600; border-radius: 999px; padding: 4px 10px; background: rgba(255,253,247,.92); }
@media (hover: none) { .page-btn { opacity: 1; } }
.edit-form { display: grid; gap: 10px; position: relative; }
.text .edit-form { flex: 1; grid-template-rows: 1fr auto auto; }
.text-edit, .title-edit { font: inherit; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; width: 100%; }
.text-edit { font-family: var(--font-story); font-size: max(15px, 3.4cqw); line-height: 1.45; resize: none; min-height: 0; }
.title-edit { font-family: var(--font-display); font-size: 26px; max-width: 620px; }
.text-edit:focus, .title-edit:focus { border-color: var(--link); outline: none; box-shadow: 0 0 0 3px rgba(42,101,163,.35); }


.poster-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.poster-pick { position: relative; }
.poster-pick input { position: absolute; opacity: 0; inset: 0; }
.poster-pick span { display: grid; gap: 6px; background: #fff; border: 2px solid transparent; border-radius: 12px; padding: 6px; cursor: pointer; }
.poster-pick img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 8px; }
.poster-pick small { font-size: 13px; color: var(--muted); }
.poster-pick input:checked + span { border-color: var(--accent); }
.poster-pick input:focus-visible + span { outline: 3px solid var(--link); outline-offset: 3px; }

.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; background: var(--surface); border-radius: 12px; overflow: hidden; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 15px; }
th { font-size: 13px; color: var(--muted); font-weight: 600; }

.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 5vw, 64px); align-items: center; padding-top: clamp(8px, 2vw, 24px); }
.hero h1 { font-size: clamp(38px, 5.8vw, 64px); line-height: 1.04; }
.ink-mark { position: relative; white-space: nowrap; color: var(--accent-deep); }
.ink-mark::after { content: ""; position: absolute; left: -2%; right: -2%; bottom: .02em; height: .32em; background: var(--highlight); border-radius: 40% 60% 50% 50%; z-index: -1; transform: rotate(-1.5deg) scaleX(0); transform-origin: left; animation: mark-in .9s .3s var(--ease) forwards; }
@keyframes mark-in { to { transform: rotate(-1.5deg) scaleX(1); } }
.hero-facts { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-facts li { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; padding: 6px 12px; background: var(--surface); border-radius: 999px; box-shadow: 0 0 0 1px var(--line) inset; }
.hero-facts li:first-child { background: var(--mint); color: var(--mint-deep); box-shadow: none; }
.hero-facts li:first-child::before { content: ""; width: 12px; height: 12px; background: currentColor; -webkit-mask: var(--tick) center / contain no-repeat; mask: var(--tick) center / contain no-repeat; }
.hero-art { position: relative; justify-self: center; width: min(100%, 440px); }
.hero-picture { position: relative; z-index: 1; margin: 0; }
.hero-picture img { width: 100%; height: auto; border-radius: 20px; transform: rotate(2deg); box-shadow: 0 34px 70px -36px rgba(35,32,28,.75); }
@media (max-width: 760px) { .hero { grid-template-columns: 1fr; } .hero-art { width: min(80%, 340px); margin: 12px auto 24px; } }
.block { margin-top: clamp(48px, 8vw, 96px); }
.sub { color: var(--muted); max-width: 60ch; margin: 0; }

.before-after { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.before-after figure { margin: 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; background: var(--surface); border-radius: 16px; padding: 10px; }
.before-after img { width: 100%; height: auto; border-radius: 10px; }
.before-after figure { transition: opacity .4s; }
.before-after figure.is-fading { opacity: 0; }
.before-after span { font-size: 22px; color: var(--accent); font-weight: 700; }

.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.steps li { background: var(--surface); border-radius: 20px; padding: 18px; box-shadow: 0 20px 40px -32px rgba(35,32,28,.6); }
.steps li:nth-child(2)::before { background: var(--sky); }
.steps li:nth-child(3)::before { background: var(--peach); }
.steps li:nth-child(4)::before { background: var(--mint); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--highlight); font-family: var(--font-display); font-size: 20px; }
.steps p { margin: 4px 0 0; color: var(--muted); }

.style-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.style-strip figure { margin: 0; display: grid; gap: 6px; }
.style-strip img { width: 100%; height: auto; border-radius: 14px; box-shadow: 0 14px 24px -18px rgba(35,32,28,.6); transition: transform .25s var(--ease); }
.style-strip figure:nth-child(odd) img { rotate: -2deg; }
.style-strip figure:nth-child(even) img { rotate: 2deg; }
.style-strip figure:hover img { transform: scale(1.06) rotate(0); }
.style-strip figcaption { font-family: var(--font-display); text-align: center; }

.theme-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.theme-chips li { background: var(--chip, var(--surface)); color: var(--chip-ink, var(--ink)); border-radius: 999px; padding: 8px 15px; font-weight: 600; transition: transform .2s var(--ease); }
.theme-chips li:hover { transform: translateY(-2px) rotate(-2deg); }

.price-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.price-cards h3 { margin: 0; }
.price-cards p { margin: 0; }
.price-cards a.card { color: inherit; text-decoration: none; }
.prices .price-cards { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.prices .price-cards > :nth-child(-n+3) { grid-column: span 2; }
.prices .price-cards > :nth-child(n+4) { grid-column: span 3; }
@media (max-width: 760px) { .prices .price-cards { grid-template-columns: 1fr; } .prices .price-cards > * { grid-column: auto !important; } }
.price-cards .card.is-free { background: var(--highlight); box-shadow: 0 24px 50px -30px rgba(221,165,42,.9); }
.price-cards a.card h3 { text-decoration: underline; text-decoration-color: var(--highlight); text-decoration-thickness: 3px; text-underline-offset: 4px; }

.faq details { border-top: 1.5px solid var(--line); padding: 14px 16px; background: var(--surface); max-width: 70ch; }
.faq details:last-of-type { border-bottom: 1.5px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 10px 0 0; }

.legal { max-width: 70ch; }
.legal h2 { font-size: 22px; margin: 18px 0 4px; }
.photo-pick input[type="file"]::file-selector-button { font: inherit; font-weight: 600; padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--ink); background: #fff; color: var(--ink); margin-right: 12px; cursor: pointer; }

.example-gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.example-gallery.all { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.example-gallery a { display: grid; gap: 4px; color: var(--ink); text-decoration: none; }
.example-gallery img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 12px; box-shadow: 0 14px 28px -18px rgba(35, 32, 28, .6); }
.example-gallery b { font-family: var(--font-display); font-weight: 400; font-size: 1.15rem; margin-top: 6px; }
.example-gallery span { color: var(--muted); font-size: .9rem; }
.example-gallery a:hover b, .example-gallery a:focus-visible b { color: var(--accent-deep); }
.before-after figure { grid-template-rows: auto auto; }
.before-after figcaption { grid-column: 1 / -1; text-align: center; font-family: var(--font-display); }
.before-after img[width="600"] { aspect-ratio: 3 / 4; object-fit: cover; }
.share-ask { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; background: var(--highlight); border-radius: 16px; padding: 14px 16px; }
.share-ask p { margin: 0; flex: 1 1 220px; font-weight: 600; }
.idea-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.idea-list a { display: inline-block; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1.5px solid var(--line); color: var(--ink); text-decoration: none; }
.idea-list a:hover, .idea-list a:focus-visible { border-color: var(--accent); color: var(--accent-deep); }
.guide-example { margin: clamp(32px, 5vw, 56px) 0 0; }
.guide-example figcaption { color: var(--muted); font-size: .95rem; }
.guide-text p { max-width: 65ch; margin: 0; }
.chat-frame iframe { display: block; width: 100%; height: min(600px, 75vh); border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); }

.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.shop-card { text-decoration: none; color: var(--ink); }
.shop-card h2 { font-size: 22px; margin: 0; }
.shop-card .price { margin: 0; }
.shop-pic { display: grid; place-items: center; background: var(--wash); border-radius: 14px; overflow: hidden; aspect-ratio: 1; }
.shop-pic .mock { zoom: .48; }
.shop-pic > img { width: 100%; height: 100%; object-fit: cover; }
.band-swatch { display: inline-block; width: 44px; height: 44px; zoom: .5; border-radius: 50%; margin-right: 12px; vertical-align: -14px; border: 2px solid var(--line); }
.shop-preview { width: min(320px, 100%); height: auto; border-radius: 14px; box-shadow: 0 20px 40px -28px rgba(35,32,28,.6); }
.poster-grid.wide .poster-pick img { aspect-ratio: 3 / 2; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.consent input { margin-top: 4px; width: 18px; height: 18px; flex: none; accent-color: var(--accent-deep); }
.season ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.season-line { display: flex; gap: 10px; align-items: baseline; margin: 0; font-size: 14.5px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); border-radius: 14px; padding: 10px 14px; }
.mock { position: relative; width: 360px; margin-inline: auto; }
@media (max-width: 400px) { .mock { zoom: .86; } }
.mock-print { position: absolute; }
.mock-photo .mock-blank { display: block; width: 100%; height: auto; border-radius: 14px; }
.mock-photo .mock-over { position: absolute; inset: 0; width: 100%; height: auto; pointer-events: none; }
.mock-photo .mock-shade { position: absolute; inset: 0; mix-blend-mode: multiply; background-size: 360px auto; pointer-events: none; }
.mock-mug { height: 350px; }
.mock-mug .mug-body { position: absolute; left: 40px; top: 33px; width: 250px; height: 308px; overflow: hidden; background: #fff; border-radius: 0 0 125px 125px / 0 0 18px 18px; box-shadow: 0 18px 30px -18px rgba(35, 32, 28, .5); }
.mock-mug .mug-wrap { position: absolute; left: 0; top: 0; width: 250px; height: 310px; filter: url(#mug-warp); }
.mock-mug .mock-print { left: -177px; top: 0; }
.mock-mug .mug-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(35, 32, 28, .3), rgba(35, 32, 28, .06) 18%, rgba(255, 255, 255, .28) 34%, rgba(255, 255, 255, 0) 52%, rgba(35, 32, 28, .08) 78%, rgba(35, 32, 28, .34)); pointer-events: none; }
.mock-mug .mug-rim { position: absolute; left: 40px; top: 15px; width: 250px; height: 36px; border-radius: 50%; background: radial-gradient(ellipse at 50% 70%, #CFC9BE, #E9E5DD 70%); border: 4px solid #FDFCF9; box-shadow: inset 0 3px 6px rgba(35, 32, 28, .25); }
.mock-mug .mug-handle { position: absolute; left: 250px; top: 90px; width: 92px; height: 150px; border: 24px solid #F4F2EE; border-left: none; border-radius: 0 80px 80px 0; box-shadow: 4px 4px 10px rgba(35, 32, 28, .14); }
.design-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.design-pick label { cursor: pointer; }
.design-pick input { position: absolute; opacity: 0; }
.design-pick span { display: grid; gap: 4px; padding: 6px; border: 2px solid transparent; border-radius: 12px; background: var(--surface); font-size: 13px; line-height: 1.25; }
.design-pick img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: #EDEBE6; }
.design-pick input:checked + span { border-color: var(--accent); }
.design-pick input:focus-visible + span { outline: 2px solid var(--accent-deep); outline-offset: 2px; }
.design-group { display: grid; gap: 8px; }
.design-group h3 { margin: 0; font-size: 15px; }
.design-stage { display: grid; gap: 12px; justify-items: center; }
.design-stage .fine { margin: 0; }
@media (min-width: 760px) {
  .design-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 28px; align-items: start; }
  .design-stage { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 16px); }
}
@media (min-width: 760px) {
  .design-layout > .design-stage { grid-column: 2; grid-row: 1; }
}
.product-head { display: grid; gap: 24px; }
.product-gallery { display: grid; gap: 10px; }
.product-gallery figure { margin: 0; }
.product-gallery figure:first-child { grid-column: 1 / -1; }
.product-gallery img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 14px; background: var(--wash); }
.product-head .fine { margin: 0; }
.specs { display: grid; gap: 6px; margin: 0; }
.specs div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; }
.specs dt { font-weight: 700; }
.specs dd { margin: 0; }
.design-list { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 18px; }
.product-card { text-decoration: none; color: inherit; }
.product-card img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }
.product-card h2 { margin: 0; font-size: 20px; }
@media (min-width: 860px) {
  .product-head { grid-template-columns: minmax(0, 560px) minmax(0, 1fr); align-items: start; }
}

/* Shared pieces: status pills, add tiles, section heads, the tick on a chosen card. */
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.pill.done { background: var(--mint); color: var(--mint-deep); }
.pill.done::before { content: ""; width: 11px; height: 11px; background: currentColor; -webkit-mask: var(--tick) center / contain no-repeat; mask: var(--tick) center / contain no-repeat; }
.pill.preview { background: var(--wash); color: #7A5410; }
.pill.busy { background: var(--sky); color: var(--link); }
.pill.busy::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: pulse 1.2s ease-in-out infinite; }
.pill.failed { background: var(--peach); color: var(--accent-deep); }
@keyframes pulse { 50% { opacity: .25; } }
.add-tile { display: grid; place-content: center; justify-items: center; gap: 8px; min-height: 100%; padding: 24px 12px; border: 2px dashed var(--line); border-radius: 20px; color: var(--muted); font-weight: 600; text-align: center; text-decoration: none; transition: border-color .15s, color .15s, background .15s; }
.add-tile span { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--surface); color: var(--accent-deep); font-size: 30px; line-height: 1; box-shadow: 0 8px 18px -10px rgba(35,32,28,.4); transition: transform .2s var(--ease); }
.add-tile:hover { border-color: var(--accent); color: var(--accent-deep); background: color-mix(in srgb, var(--surface) 50%, transparent); }
.add-tile:hover span { transform: scale(1.1) rotate(90deg); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-bottom: 18px; }
.section-head h2 { margin: 0; }
.cast-section { margin-top: clamp(48px, 7vw, 80px); }
.tick { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-deep); box-shadow: 0 0 0 3px #fff; transform: scale(0); transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.tick::after { content: ""; position: absolute; inset: 6px; background: #fff; -webkit-mask: var(--tick) center / contain no-repeat; mask: var(--tick) center / contain no-repeat; }

/* New adventure: the steps on the left, the summary with the example book on the right. */
.adv-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.adv-intro .lead { margin: 0; }
.adv-intro h1 { margin-top: 6px; }
.adv-steps { display: grid; gap: 20px; }
.adv-step { border: 0; margin: 0; background: var(--surface); border-radius: 24px; padding: clamp(18px, 3vw, 28px); box-shadow: 0 24px 50px -36px rgba(35,32,28,.5); min-width: 0; }
.adv-step > legend { float: left; width: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 0; margin: 0 0 6px; font-family: var(--font-display); font-size: clamp(22px, 2.6vw, 27px); line-height: 1.15; }
.adv-step > legend + * { clear: both; }
.adv-step > legend .hint { font-family: var(--font-sans); font-size: 14px; }
.adv-step > .hint { margin: 0 0 16px; font-size: 14.5px; }
.adv-step .field + .field { margin-top: 16px; }
.adv-step > legend ~ .field:first-of-type { margin-top: 12px; }
.num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--highlight); font-size: 18px; flex: none; }
.theme-group h3 { font-family: var(--font-sans); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 22px 0 10px; }
.theme-group:first-of-type h3 { margin-top: 12px; }
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(122px, calc(33.3% - 8px)), 1fr)); gap: 12px; }
.theme-card { position: relative; display: block; min-width: 0; cursor: pointer; }
.theme-card input { position: absolute; opacity: 0; inset: 0; }
.theme-face { position: relative; display: grid; gap: 7px; padding: 6px 6px 9px; background: #fff; border: 2px solid var(--line); border-radius: 16px; transition: transform .18s var(--ease), border-color .15s, box-shadow .18s, background .15s, filter .2s; }
.theme-face img, .theme-emoji { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 11px; }
.theme-emoji { display: grid; place-items: center; font-size: 44px; font-weight: 400; line-height: 1; background: linear-gradient(135deg, var(--wash), var(--peach)); }
.theme-name { text-align: center; font-weight: 600; font-size: 14.5px; line-height: 1.2; overflow-wrap: anywhere; hyphens: auto; }
.theme-card:hover .theme-face { transform: translateY(-3px); box-shadow: 0 16px 26px -18px rgba(35,32,28,.6); border-color: #D6C292; }
.theme-card input:checked + .theme-face { border-color: var(--accent-deep); background: var(--wash); box-shadow: 0 0 0 4px rgba(224,82,62,.22), 0 16px 26px -18px rgba(35,32,28,.6); transform: translateY(-3px); }
.theme-card input:focus-visible + .theme-face { outline: 3px solid var(--link); outline-offset: 3px; }
.adv-step:has(.theme-card input:checked) .theme-card input:not(:checked) + .theme-face { filter: saturate(.55); }
.adv-step:has(.theme-card input:checked) .theme-card:hover input:not(:checked) + .theme-face { filter: none; }

.member-picks { display: flex; flex-wrap: wrap; gap: 14px 18px; }
.member-pick { position: relative; display: grid; justify-items: center; gap: 8px; cursor: pointer; width: 108px; }
.member-pick input { position: absolute; opacity: 0; inset: 0; }
.member-face { position: relative; display: block; width: 104px; height: 104px; border-radius: 28px; background: #EDEBE6; box-shadow: 0 0 0 2px var(--line); transition: box-shadow .15s, transform .2s var(--ease); }
.member-face img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 10%; border-radius: inherit; transition: filter .2s, opacity .2s; }
.member-face .tick { top: -6px; right: -6px; }
.member-pick-name { font-weight: 700; font-size: 15px; color: var(--muted); text-align: center; overflow-wrap: anywhere; }
.member-pick input:not(:checked) + .member-face img { filter: grayscale(1); opacity: .45; }
.member-pick input:not(:checked) + .member-face { box-shadow: 0 0 0 2px var(--line); background: repeating-linear-gradient(45deg, #EDEBE6 0 6px, #E6E2DA 6px 12px); }
.member-pick input:checked + .member-face { box-shadow: 0 0 0 3px var(--accent-deep), 0 14px 24px -14px rgba(35,32,28,.6); transform: translateY(-2px); }
.member-pick input:checked ~ .member-pick-name { color: var(--ink); }
.member-pick:hover .member-face { transform: translateY(-3px); }
.member-pick input:focus-visible + .member-face { outline: 3px solid var(--link); outline-offset: 4px; }

.style-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(104px, calc(33% - 8px)), 1fr)); gap: 10px; }
.style-pick { position: relative; cursor: pointer; }
.style-pick input { position: absolute; opacity: 0; inset: 0; }
.style-pick > span { position: relative; display: grid; gap: 6px; padding: 5px 5px 8px; border: 2px solid var(--line); border-radius: 14px; background: #fff; text-align: center; transition: border-color .15s, transform .18s var(--ease), box-shadow .15s; }
.style-pick img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 9px; }
.style-pick b { font-size: 14px; font-weight: 600; }
.style-pick small { position: absolute; top: 10px; left: 10px; font-size: 11px; font-weight: 700; background: var(--surface); border-radius: 999px; padding: 2px 8px; }
.style-pick:hover > span { transform: translateY(-2px); }
.style-pick input:checked + span { border-color: var(--accent-deep); background: var(--wash); box-shadow: 0 0 0 4px rgba(224,82,62,.22); }
.style-pick input:focus-visible + span { outline: 3px solid var(--link); outline-offset: 3px; }

.adv-summary { display: grid; gap: 14px; align-content: start; background: var(--surface); border-radius: 24px; padding: 18px; border-top: 6px solid var(--tint-deep, var(--highlight)); box-shadow: 0 30px 60px -36px rgba(35,32,28,.6); transition: border-color .6s; }
.adv-summary .button.big { width: 100%; }
.adv-summary .fine { margin: 0; text-align: center; }
.peek-empty { display: grid; gap: 14px; text-align: center; color: var(--muted); font-size: 15px; }
.peek-empty p { margin: 0; }
.peek-stack { position: relative; height: 130px; }
.peek-stack img { position: absolute; left: 50%; top: 10px; width: 62%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; box-shadow: 0 12px 24px -12px rgba(35,32,28,.6); border: 3px solid #fff; }
.peek-stack img:nth-child(1) { transform: translateX(-88%) rotate(-9deg); }
.peek-stack img:nth-child(2) { transform: translateX(-12%) rotate(8deg); }
.peek-stack img:nth-child(3) { transform: translateX(-50%) translateY(14px); z-index: 1; }
.peek-full { display: grid; gap: 10px; }
.peek-cover img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 14px; box-shadow: 0 16px 30px -18px rgba(35,32,28,.7); }
.peek-cover .theme-emoji { font-size: 64px; }
.peek-name { margin: 4px 0 0; font-family: var(--font-display); font-size: 26px; line-height: 1.1; color: var(--tint-deep, var(--ink)); transition: color .5s; }
.peek-blurb { margin: 0; color: var(--muted); }
.peek-pages { display: grid; gap: 8px; }
.adv-summary .peek-cover.has-flip { display: none; }
.peek-flip { position: relative; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: var(--wash); box-shadow: 0 16px 30px -18px rgba(35,32,28,.7); }
.peek-flip img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity .8s var(--ease), transform 3.2s ease-out; }
.peek-flip img.on { opacity: 1; transform: scale(1); }
.peek-dots { display: flex; justify-content: center; gap: 6px; }
.peek-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); transition: background .3s, width .3s; }
.peek-dots i.on { width: 20px; border-radius: 4px; background: var(--tint-deep, var(--accent)); }
.peek-line { margin: 0; min-height: 3em; padding: 4px 0 4px 14px; border-left: 4px solid var(--tint-deep, var(--highlight)); font-family: var(--font-story); font-style: italic; font-size: 15px; }
.peek-link { font-size: 14px; font-weight: 600; }
.peek.is-new .peek-full { animation: peek-in .45s var(--ease); }
@keyframes peek-in { from { opacity: 0; transform: translateY(8px); } }
.peek-cast { display: flex; justify-content: center; padding: 4px 0; }
.peek-cast img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; object-position: 50% 8%; background: #EDEBE6; border: 3px solid var(--surface); margin-left: -10px; box-shadow: 0 4px 10px -4px rgba(35,32,28,.5); }
.peek-cast img:first-child { margin-left: 0; }
.adv-step .peek { margin-top: 16px; padding: 14px; background: var(--tint, var(--wash)); border-radius: 18px; }
.adv-step .peek-full { grid-template-columns: 132px minmax(0, 1fr); column-gap: 14px; align-items: start; }
.adv-step .peek-full > :not(.peek-cover) { grid-column: 2; }
.adv-step .peek-cover { grid-row: 1 / span 6; }
.adv-step .peek-pages { display: none !important; }
.adv-step .peek-name { margin: 0; font-size: 21px; }
.adv-step .peek-line { display: none; }
@media (min-width: 900px) {
  .adv-form { grid-template-columns: minmax(0, 1fr) 340px; column-gap: 32px; align-items: start; }
  .adv-intro { grid-column: 1 / -1; }
  .adv-summary { position: sticky; top: 84px; }
}

/* The cast page. */
.cast-hero { margin-top: 12px; display: grid; grid-template-columns: minmax(0, 400px) 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.cast-hero h1 { margin: 4px 0 14px; font-size: clamp(36px, 5.4vw, 58px); }
.cast-picture { position: relative; }
.cast-picture::before { content: ""; position: absolute; inset: 6% -4% -4% 8%; background: var(--highlight); border-radius: 40% 60% 55% 45% / 50% 45% 55% 50%; transform: rotate(-6deg); z-index: -1; opacity: .55; }
.cast-picture img, .picture-wait { width: 100%; height: auto; aspect-ratio: 3 / 4; border-radius: 20px; box-shadow: 0 30px 60px -34px rgba(35,32,28,.7); transform: rotate(-2deg); transition: transform .4s var(--ease); }
.cast-picture:hover img { transform: rotate(0) scale(1.01); }
.picture-wait { display: grid; place-content: center; gap: 8px; background: var(--highlight); font-weight: 600; text-align: center; }
.cast-intro { display: grid; gap: 18px; align-content: center; }
.cast-intro > * { margin: 0; }
.cast-intro h1 { margin: 0; }
.face-row { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.face-row li { display: inline-flex; align-items: center; gap: 8px; padding: 4px 14px 4px 4px; background: var(--surface); border-radius: 999px; font-weight: 600; font-size: 15px; box-shadow: 0 6px 14px -10px rgba(35,32,28,.5); }
.face-row img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; object-position: 50% 8%; background: #EDEBE6; }
.tool-row { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.tool { display: inline-flex; align-items: center; gap: 7px; padding: 6px 0; font: inherit; font-weight: 600; font-size: 15px; color: var(--ink); background: none; border: 0; cursor: pointer; text-decoration: none; }
.tool .icon { color: var(--accent-deep); }
.tool:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 760px) { .cast-hero { grid-template-columns: 1fr; } .cast-picture { width: min(270px, 82%); margin: 0 auto; } }

.book-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, calc(50% - 9px)), 1fr)); gap: 18px; }
.book-tile { display: grid; gap: 8px; justify-items: start; color: var(--ink); text-decoration: none; }
.book-cover { position: relative; display: block; width: 100%; aspect-ratio: 3 / 2; border-radius: 6px 14px 14px 6px; overflow: hidden; background: var(--wash); box-shadow: inset 6px 0 0 rgba(0,0,0,.12), 0 18px 30px -18px rgba(35,32,28,.7); transition: transform .25s var(--ease), box-shadow .25s; }
.book-cover::after { content: ""; position: absolute; inset: 0 auto 0 6px; width: 3px; background: rgba(255,255,255,.35); }
.book-cover img { width: 100%; height: 100%; object-fit: cover; }
.book-emoji { display: grid; place-items: center; height: 100%; font-size: 48px; }
.book-tile b { font-family: var(--font-display); font-weight: 400; font-size: 19px; line-height: 1.15; }
.book-tile:hover .book-cover { transform: translateY(-4px) rotate(-1deg); box-shadow: inset 6px 0 0 rgba(0,0,0,.12), 0 26px 36px -20px rgba(35,32,28,.75); }
.book-tile:hover b { color: var(--accent-deep); }
.add-tile.book { aspect-ratio: 3 / 2; min-height: 0; }
.first-adventure { display: grid; grid-template-columns: minmax(0, 340px) 1fr; gap: clamp(20px, 4vw, 48px); align-items: center; background: var(--surface); border-radius: 28px; padding: clamp(20px, 4vw, 40px); box-shadow: 0 30px 60px -40px rgba(35,32,28,.6); }
.first-adventure p { color: var(--muted); max-width: 52ch; }
.fan { position: relative; aspect-ratio: 16 / 9; }
.fan img { position: absolute; top: 8%; width: 52%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; border: 4px solid #fff; box-shadow: 0 16px 30px -16px rgba(35,32,28,.6); transition: transform .4s var(--ease); }
.fan img:nth-child(1) { left: 2%; transform: rotate(-9deg); }
.fan img:nth-child(2) { right: 2%; transform: rotate(9deg); }
.fan img:nth-child(3) { left: 24%; top: 26%; z-index: 1; }
.first-adventure:hover .fan img:nth-child(1) { transform: translateX(-4%) rotate(-12deg); }
.first-adventure:hover .fan img:nth-child(2) { transform: translateX(4%) rotate(12deg); }
@media (max-width: 680px) { .first-adventure { grid-template-columns: 1fr; } }

.hero-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(190px, calc(50% - 9px)), 1fr)); gap: 22px 18px; }
.hero-tile { background: #fff; border-radius: 20px; padding: 8px 8px 14px; text-align: center; box-shadow: 0 20px 34px -24px rgba(35,32,28,.6); transform: rotate(-1.2deg); transition: transform .3s var(--ease); }
.hero-tile:nth-child(even) { transform: rotate(1.2deg); }
.hero-tile:hover { transform: rotate(0) translateY(-4px); }
.hero-tile .hero-frame { aspect-ratio: 4 / 5; border-radius: 14px; box-shadow: none; }
.hero-tile h3 { margin: 10px 0 0; }
.hero-tile p { margin: 2px 0 0; font-size: 13.5px; color: var(--muted); }
.hero-cards + p { margin-top: 18px; font-size: 15px; }

.shop-band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px; align-items: center; background: var(--sky); border-radius: 28px; padding: clamp(20px, 4vw, 40px); overflow: hidden; }
.shop-band-text p { max-width: 40ch; }
.shop-band-pics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.shop-band-pics img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 16px; box-shadow: 0 16px 28px -18px rgba(35,32,28,.6); }
.shop-band-pics img:nth-child(2) { transform: translateY(14px); }
@media (max-width: 680px) { .shop-band { grid-template-columns: 1fr; } }

/* The account page. */
.account-head { margin-bottom: 22px; }
.group-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(230px, calc(50% - 9px)), 1fr)); gap: 18px; }
.group-card { position: relative; display: grid; background: var(--surface); border-radius: 22px; padding: 10px 10px 14px; box-shadow: 0 22px 40px -28px rgba(35,32,28,.6); transition: transform .25s var(--ease), box-shadow .25s; }
.group-card:hover { transform: translateY(-4px); box-shadow: 0 30px 46px -28px rgba(35,32,28,.7); }
.group-card > a:first-child { display: grid; gap: 4px; color: var(--ink); text-decoration: none; }
.group-card img, .group-empty { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 14px; margin-bottom: 8px; }
.group-empty { display: grid; place-items: center; font-size: 48px; color: var(--highlight-shade); background: var(--wash); }
.group-card b { font-family: var(--font-display); font-weight: 400; font-size: 21px; line-height: 1.15; padding: 0 4px; }
.group-card small { color: var(--muted); padding: 0 4px; }
.group-go { margin: 8px 4px 0; font-size: 14px; font-weight: 600; color: var(--accent-deep); text-decoration: none; }
.group-go:hover { text-decoration: underline; }
.orders { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.order { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto auto; gap: 14px; align-items: center; background: var(--surface); border-radius: 16px; padding: 12px 14px; }
.order-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--wash); font-size: 24px; }
.order-what { display: grid; gap: 2px; }
.order-what b { font-weight: 600; }
.order-what small { color: var(--muted); font-size: 13.5px; font-variant-numeric: tabular-nums; }
@media (max-width: 600px) { .order { grid-template-columns: 44px minmax(0, 1fr); row-gap: 8px; } .order-icon { width: 44px; height: 44px; grid-row: span 3; align-self: start; } .order > .pill, .order > .button { grid-column: 2; justify-self: start; } }
.account-box { background: var(--surface); border-radius: 22px; padding: clamp(18px, 3vw, 28px); max-width: 560px; }
.account-box p:last-child { margin: 0; }
input:checked + * .tick { transform: scale(1); }
@media (max-width: 520px) { .theme-grid { gap: 8px; } .theme-face { padding: 4px 4px 7px; border-radius: 13px; } .theme-face img, .theme-emoji { border-radius: 9px; } .theme-emoji { font-size: 34px; } .theme-name { font-size: 13px; } .theme-face .tick { width: 24px; height: 24px; top: 4px; right: 4px; } .member-pick { width: 88px; } .member-face { width: 84px; height: 84px; border-radius: 24px; } .member-picks { gap: 12px 14px; } }
.bottom .wordmark { color: var(--ink); }

/* Motion: blocks rise into view, stars fly from a picked card. All of it stops for reduced motion. */
.rise { opacity: 0; translate: 0 22px; }
.rise.rise-in { opacity: 1; translate: 0 0; transition: opacity .6s var(--ease) var(--delay, 0ms), translate .7s var(--ease) var(--delay, 0ms); }
.spark { position: absolute; left: 50%; top: 40%; z-index: 3; color: var(--highlight); font-size: 16px; line-height: 1; pointer-events: none; text-shadow: 0 1px 0 var(--highlight-shade); animation: spark .75s var(--ease) forwards; }
.spark:nth-child(odd) { color: var(--accent); font-size: 12px; }
@keyframes spark { from { transform: translate(-50%, -50%) scale(.4); opacity: 1; } to { transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) rotate(var(--r)) scale(1); opacity: 0; } }
.theme-card input:checked + .theme-face { animation: pop .4s cubic-bezier(.3, 1.6, .5, 1); }
.member-pick input:checked + .member-face { animation: pop .4s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes pop { 40% { scale: 1.06; } }

/* The page while the preview is made. */
.back { margin: 0 0 8px; }
.brewing { display: grid; justify-items: center; text-align: center; gap: 12px; max-width: 560px; margin: 0 auto; }
.brewing h1 { margin: 0; color: var(--tint-deep, var(--ink)); }
.brewing .step { color: var(--tint-deep, var(--accent-deep)); }
.brewing .lead { margin: 0; }
.brew-stage { position: relative; width: 300px; height: 300px; margin-bottom: 8px; }
.brew-book { position: absolute; inset: 85px; display: grid; place-items: center; font-size: 64px; border-radius: 50%; background: var(--surface); box-shadow: 0 0 0 10px color-mix(in srgb, var(--surface) 45%, transparent), 0 24px 40px -20px rgba(35,32,28,.6); animation: bob 2.6s ease-in-out infinite; }
.brew-face { position: absolute; left: 110px; top: 110px; width: 80px; height: 80px; border-radius: 50%; object-fit: cover; object-position: 50% 8%; background: #EDEBE6; border: 4px solid var(--surface); box-shadow: 0 10px 20px -10px rgba(35,32,28,.6); --turn: calc(var(--i) / var(--n) * 360deg); transform: rotate(var(--turn)) translateX(112px) rotate(calc(-1 * var(--turn))); animation: orbit 16s linear infinite; }
@keyframes orbit { from { transform: rotate(var(--turn)) translateX(112px) rotate(calc(-1 * var(--turn))); } to { transform: rotate(calc(var(--turn) + 360deg)) translateX(112px) rotate(calc(-1 * var(--turn) - 360deg)); } }
@keyframes bob { 50% { translate: 0 -8px; rotate: -4deg; } }
.brew-steps { list-style: none; margin: 12px 0 0; padding: 18px 22px; display: grid; gap: 12px; text-align: left; background: var(--surface); border-radius: 22px; width: min(100%, 380px); box-shadow: 0 24px 50px -36px rgba(35,32,28,.6); }
.brew-steps li { display: flex; align-items: center; gap: 12px; color: var(--muted); font-weight: 500; transition: color .3s; }
.brew-steps li::before { content: ""; flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); background: #fff; transition: background .3s, border-color .3s; }
.brew-steps li.now { color: var(--ink); font-weight: 700; }
.brew-steps li.now::before { border-color: var(--line); border-top-color: var(--tint-deep, var(--accent)); animation: spin .9s linear infinite; }
.brew-steps li.done { color: var(--ink); }
.brew-steps li.done::before { border-color: var(--mint-deep); background: var(--mint-deep) var(--tick-white) center / 14px no-repeat; }
.brew-tip { min-height: 3em; margin: 6px 0 0; color: var(--muted); font-size: 15px; transition: opacity .4s, translate .4s; }
.brew-tip.out { opacity: 0; translate: 0 6px; }
@media (max-width: 420px) { .brew-stage { transform: scale(.82); margin: -26px 0 -18px; } }


/* Dark sections: the home page's example book and its closing call, full width behind the content. */
.band-night { position: relative; color: var(--surface); background: var(--night); box-shadow: 0 0 0 100vmax var(--night); clip-path: inset(0 -100vmax); padding: clamp(40px, 7vw, 80px) 0; }
.band-night::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .7; background-image: radial-gradient(1.5px 1.5px at 8% 20%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 22% 70%, #fff 50%, transparent 51%), radial-gradient(2px 2px at 40% 12%, var(--highlight) 50%, transparent 51%), radial-gradient(1px 1px at 58% 82%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 76% 30%, #fff 50%, transparent 51%), radial-gradient(2px 2px at 90% 64%, var(--highlight) 50%, transparent 51%), radial-gradient(1px 1px at 30% 44%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 68% 54%, #fff 50%, transparent 51%); }
.band-night > .sub, .band-night > p { color: color-mix(in srgb, var(--surface) 80%, transparent); }
.band-night > p a { color: var(--highlight); }
.band-night > h2 { color: var(--surface); }
.band-night .book { color: var(--ink); }
.cta-band { display: grid; justify-items: center; text-align: center; gap: 14px; }
.cta-band h2 { font-size: clamp(30px, 4.6vw, 48px); margin: 0; }
.cta-band p { margin: 0; font-size: 18px; }
.cta-faces { display: flex; justify-content: center; margin-bottom: 6px; }
.cta-faces img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; object-position: 50% 10%; background: #EDEBE6; border: 4px solid var(--night); margin-left: -14px; box-shadow: 0 0 0 2px var(--highlight); }
.cta-faces img:first-child { margin-left: 0; }

.shelf > ul { display: grid; grid-auto-flow: column; grid-auto-columns: min(250px, 72%); grid-template-columns: none; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 4px 18px; scrollbar-width: thin; }
.shelf > ul > li { scroll-snap-align: start; }
.shelf .example-gallery a { transition: transform .25s var(--ease); }
.shelf .example-gallery a:hover { transform: translateY(-4px) rotate(-1deg); }
.shelf-nav { display: flex; gap: 8px; }
.shelf-btn { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--ink); background: #fff; font: inherit; font-size: 18px; cursor: pointer; box-shadow: 0 3px 0 var(--ink); transition: transform .12s, box-shadow .12s; }
.shelf-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
@media (hover: none) { .shelf-nav { display: none; } }

.more-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.more-card { display: grid; align-content: start; gap: 8px; background: var(--surface); border-radius: 22px; padding: 10px 10px 18px; color: var(--ink); text-decoration: none; box-shadow: 0 22px 40px -30px rgba(35,32,28,.6); transition: transform .25s var(--ease); }
.more-card:hover { transform: translateY(-4px); }
.more-card img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 14px; margin-bottom: 6px; }
.more-card h3, .more-card p { margin: 0; padding: 0 6px; }
.more-card p { color: var(--muted); font-size: 15px; }
.more-card:hover h3 { color: var(--accent-deep); }

.before-after figure { box-shadow: 0 20px 36px -28px rgba(35,32,28,.6); }
.card { box-shadow: 0 24px 60px -30px rgba(35,32,28,.45), 0 0 0 1px rgba(35,32,28,.05); }

@media (max-width: 400px) { .top-in { gap: 8px; } .wordmark { font-size: 16.5px; gap: 6px; } .wordmark-bear { width: 26px; height: 26px; } .top nav a, .nav-quiet { padding: 7px 7px; font-size: 13.5px; } .top nav .nav-pill.strong { padding: 7px 11px; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .rise { opacity: 1; translate: none; }
}

/* Gift: /cadeau, the giver's page and the reveal page. The card's own CSS is in src/giftpages.ts. */
.gift-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: center; margin: 12px 0 28px; }
.gift-prices { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 17px; }
.gift-prices b { font-weight: 600; margin-right: 4px; }
.gift-fan { position: relative; aspect-ratio: 5 / 4; }
.gift-fan img { position: absolute; width: 62%; height: auto; border-radius: 12px; border: 5px solid #fff; box-shadow: 0 18px 40px -22px rgba(35,32,28,.6); }
.gift-fan img:nth-child(1) { left: 0; top: 6%; transform: rotate(-7deg); }
.gift-fan img:nth-child(2) { right: 0; top: 2%; transform: rotate(6deg); }
.gift-fan img:nth-child(3) { left: 19%; bottom: 4%; z-index: 1; transform: rotate(-1deg); }
.gift-form { max-width: 720px; margin: 0 auto 36px; }
.gift-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.gift-choice { position: relative; }
.gift-choice input { position: absolute; opacity: 0; inset: 0; }
.gift-choice span { display: grid; gap: 4px; height: 100%; padding: 16px 18px; border: 2px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; }
.gift-choice small { color: var(--muted); font-size: 14px; line-height: 1.4; }
.gift-choice em { font-style: normal; font-family: var(--font-display); font-size: 22px; margin-top: 4px; }
.gift-choice input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--wash); }
.gift-choice input:focus-visible + span { outline: 3px solid var(--link); outline-offset: 3px; }
.gift-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; align-items: start; }
.gift-mail { margin-top: 12px; }
.gift-mail[hidden] { display: none; }
.field input[type="date"] { font: inherit; font-size: 17px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); width: 100%; }
.giver-page { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: start; margin: 16px 0 40px; }
.copy-box { display: flex; gap: 8px; }
.copy-box input { flex: 1; min-width: 0; font: inherit; font-size: 15px; padding: 8px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
.steps.compact { grid-template-columns: minmax(0, 1fr); gap: 12px; }
.gift-notice { display: flex; gap: 14px; align-items: center; background: var(--wash); border-radius: 16px; padding: 14px 18px; margin: 0 0 20px; }
.gift-notice .icon { width: 28px; height: 28px; flex: none; color: var(--accent-deep); }
.gift-notice p { margin: 0; }
@media (max-width: 760px) {
  .gift-head, .giver-page { grid-template-columns: minmax(0, 1fr); }
  .gift-fan { max-width: 300px; width: 100%; margin: 0 auto; }
}

/* German compounds are long: let the browser break them. */
html[lang="de"] body { hyphens: auto; -webkit-hyphens: auto; }
.order-summary { border-top: 1px solid var(--line, rgba(35,32,28,.12)); padding-top: 10px; font-size: 15px; }
.order-summary ul { margin: 6px 0 0; padding-left: 18px; }
