:root {
  --ground: #fff8ef;
  --surface: #ffffff;
  --ink: #1f1b2e;
  --muted: #4a4458;
  --accent: #c2410c;
  --tangerine: #ff6b35;
  --pink: #ff8fb1;
  --sun: #ffd25a;
  --sky: #7cc6fe;
  --tint-orange: #ffe3d6;
  --tint-pink: #ffe6ee;
  --tint-sky: #e3f2ff;
  --tint-sun: #fff1d6;
  --line: #ece3d6;
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --sans: 'Inter', system-ui, sans-serif;
  --shadow: 0 14px 34px rgba(31, 27, 46, 0.08);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; overflow-x: hidden; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; margin: 0; line-height: 1; letter-spacing: -0.035em; }
h1 { font-size: clamp(48px, 7vw, 88px); line-height: 0.95; }
h2 { font-size: clamp(38px, 4.6vw, 60px); }
h3 { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
p { margin: 0; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.eyebrow { font-size: 14px; font-weight: 600; color: var(--accent); }
.lead { font-size: 19px; color: var(--muted); }
.muted { color: var(--muted); }
.section { padding: 104px 0; }
.section.white { background: var(--surface); }
.section.pink { background: var(--tint-pink); }
.section.dark { background: var(--ink); color: var(--ground); }
.section.dark .muted, .section.dark .lead { color: #e6ddf0; }
.section.dark .card, .section.dark .card .muted { color: var(--ink); }
.section.dark .card .muted { color: var(--muted); }
.center { text-align: center; }
.tag { display: inline-block; background: var(--pink); padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; transform: rotate(-2deg); }

.btn { display: inline-block; padding: 18px 32px; font-family: var(--sans); font-size: 17px; font-weight: 700; border-radius: 999px; border: 2px solid var(--ink); cursor: pointer; background: transparent; color: var(--ink); text-align: center; }
.btn.solid { background: var(--tangerine); border-color: var(--tangerine); color: var(--ink); box-shadow: 0 10px 24px rgba(255, 107, 53, 0.35); }
.btn.solid:hover { background: #ff7d4d; color: var(--ink); }
.btn.dark { background: var(--ink); border-color: var(--ink); color: var(--ground); }
.btn.dark:hover { color: var(--ground); background: #2e2942; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
.link-line { font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }

.announce { background: var(--sun); text-align: center; font-size: 14px; font-weight: 600; padding: 10px 16px; }
.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 32px; max-width: 1280px; margin: 0 auto; }
.site-header nav { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 26px; font-weight: 800; letter-spacing: -0.04em; }
.logo img { width: 40px; height: 40px; }
.nav-cta { background: var(--ink); color: var(--ground) !important; padding: 12px 22px; border-radius: 999px; font-weight: 600; }

.ph { background: var(--tint-sun); display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; font-size: 14px; font-weight: 500; color: var(--muted); border-radius: 24px; }
.ph.orange { background: var(--tangerine); color: var(--ink); }
.ph.pink { background: var(--pink); color: var(--ink); }
.ph.sun { background: var(--sun); color: var(--ink); }
.ph.sky { background: var(--sky); color: var(--ink); }
.ph img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.arch { border-radius: 999px 999px 28px 28px; }

.hero { display: flex; flex-wrap: wrap; gap: 64px; align-items: center; padding: 32px 32px 104px; max-width: 1280px; margin: 0 auto; }
.hero > div { flex: 1 1 440px; min-width: 0; }
.hero-art { position: relative; height: 600px; flex: 1 1 480px; }
.hero-art .blob { position: absolute; border-radius: 50%; }
.hero-art .main { position: absolute; left: 50px; top: 30px; width: min(400px, 80%); height: 540px; box-shadow: 0 30px 60px rgba(31, 27, 46, 0.16); }
.hero-art .pattern { position: absolute; right: 10px; bottom: 0; width: 240px; height: 300px; background: var(--surface); border-radius: 22px; padding: 14px; box-shadow: 0 24px 50px rgba(31, 27, 46, 0.18); transform: rotate(4deg); display: flex; flex-direction: column; gap: 10px; }
.hero-art .pattern .ph { flex: 1; border-radius: 14px; }
.hero-art .sticker { position: absolute; left: 0; top: 80px; background: var(--ink); color: var(--ground); font-family: var(--display); font-weight: 700; font-size: 18px; padding: 10px 18px; border-radius: 999px; transform: rotate(-6deg); }

.row { display: flex; flex-wrap: wrap; gap: 24px; }
.row > * { flex: 1 1 260px; min-width: 0; }
.card { background: var(--surface); border-radius: 32px; padding: 16px; display: flex; flex-direction: column; gap: 18px; box-shadow: var(--shadow); }
.card .body { padding: 0 12px 12px; display: flex; flex-direction: column; gap: 8px; }
.step { border-radius: 32px; padding: 40px 36px; display: flex; flex-direction: column; gap: 12px; }
.step .num { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; font-size: 26px; margin-bottom: 12px; }
.tile { background: var(--surface); border-radius: 28px; padding: 30px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; }
.tile .t { font-family: var(--display); font-weight: 700; font-size: 26px; letter-spacing: -0.02em; }
.tile.soft { background: #f4ede4; box-shadow: none; }
.cta-band { background: var(--tangerine); border-radius: 40px; padding: 80px 48px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 32px; position: relative; overflow: hidden; }
.cta-band > * { position: relative; }
.cta-band .blob { position: absolute; right: -60px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: var(--sun); }

footer { background: var(--ink); color: var(--ground); padding: 72px 0 40px; }
footer a { color: var(--ground); }
footer a:hover { color: var(--sun); }
footer .cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 48px; }
footer nav { display: flex; flex-wrap: wrap; gap: 64px; font-size: 15px; }
footer nav div { display: flex; flex-direction: column; gap: 10px; }
footer .eyebrow { color: var(--sun); }
.email-row { display: flex; max-width: 440px; background: var(--surface); border-radius: 999px; padding: 6px; }
.email-row input { flex: 1; min-width: 0; height: 48px; border: 0; background: transparent; padding: 0 18px; font: 15px var(--sans); color: var(--ink); }
.email-row button { height: 48px; padding: 0 24px; border: 0; border-radius: 999px; background: var(--tangerine); color: var(--ink); font: 700 15px var(--sans); cursor: pointer; }
.fineprint { font-size: 13px; color: #cfc6dc; margin-top: 56px; }

/* create page */
.create { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; padding: 16px 32px 96px; max-width: 1280px; margin: 0 auto; }
.create .left { flex: 1 1 520px; min-width: 0; position: sticky; top: 24px; }
.create .right { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 36px; }
.stage { background: var(--surface); padding: 24px; border-radius: 32px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 16px; }
.stage canvas { width: 100%; height: auto; background: var(--tint-sun); display: block; border-radius: 16px; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tab { padding: 10px 18px; border: 2px solid var(--line); border-radius: 999px; background: transparent; font: 600 14px var(--sans); color: var(--ink); cursor: pointer; min-height: 44px; }
.tab[aria-pressed="true"] { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.empty { aspect-ratio: 4 / 5; display: flex; align-items: center; justify-content: center; text-align: center; padding: 32px; background: var(--tint-pink); color: var(--muted); border-radius: 16px; font-weight: 500; }
fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
legend { font-family: var(--display); font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 12px; }
.options { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.option { position: relative; }
.option input { position: absolute; opacity: 0; inset: 0; }
.option label { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; background: var(--surface); border: 2px solid var(--line); border-radius: 20px; cursor: pointer; min-height: 44px; height: 100%; }
.option input:checked + label { border-color: var(--tangerine); background: var(--tint-orange); }
.option input:focus-visible + label { outline: 3px solid var(--ink); outline-offset: 2px; }
.option .t { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.option .s { font-size: 14px; color: var(--muted); }
.upload { border: 2px dashed var(--pink); border-radius: 24px; background: var(--tint-pink); padding: 28px; text-align: center; display: flex; flex-direction: column; gap: 8px; align-items: center; cursor: pointer; }
.upload input { display: none; }
textarea, select, input.text { width: 100%; border: 2px solid var(--line); border-radius: 14px; background: var(--surface); padding: 12px 14px; font: 15px var(--sans); color: var(--ink); }
textarea { min-height: 96px; resize: vertical; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--muted); }
.check input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--tangerine); }
.total { display: flex; justify-content: space-between; align-items: baseline; border-top: 2px solid var(--line); padding-top: 20px; }
.total .price { font-family: var(--display); font-weight: 800; font-size: 40px; letter-spacing: -0.03em; }
.slider { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }
.slider input { width: 100%; accent-color: var(--tangerine); }
.status { font-size: 14px; color: var(--muted); min-height: 22px; }
.error { color: #9b2c2c; }
.overlay { position: fixed; inset: 0; background: rgba(255, 248, 239, 0.94); display: none; align-items: center; justify-content: center; z-index: 10; flex-direction: column; gap: 16px; text-align: center; padding: 32px; }
.overlay.show { display: flex; }
.spinner { width: 44px; height: 44px; border: 4px solid var(--tint-orange); border-top-color: var(--tangerine); border-radius: 50%; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* faq */
.prose { max-width: 820px; margin: 0 auto; padding: 24px 32px 96px; display: flex; flex-direction: column; gap: 16px; }
.prose h2 { margin-top: 28px; font-size: 30px; letter-spacing: -0.02em; }
.prose p, .prose li { color: var(--muted); font-size: 17px; }
.prose a { text-decoration: underline; }

/* admin */
.admin { padding: 32px; }
.admin table { width: 100%; border-collapse: collapse; background: var(--surface); font-size: 14px; }
.admin th, .admin td { text-align: left; padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin th { background: #f3f3f3; font-weight: 600; }
.admin input, .admin select { border: 1px solid var(--line); padding: 8px; font: 14px var(--sans); }
.admin .files button { margin: 0 6px 6px 0; }
.admin .small { font-size: 12px; color: var(--muted); }
.table-scroll { overflow-x: auto; }

@media (max-width: 640px) {
  .wrap, .site-header, .hero, .create { padding-left: 20px; padding-right: 20px; }
  .section { padding: 72px 0; }
  .hero-art { height: 480px; }
  .hero-art .main { left: 20px; height: 420px; }
  .hero-art .pattern { width: 180px; height: 230px; }
  .cta-band { padding: 56px 28px; }
}

.controls { display: flex; flex-direction: column; gap: 12px; }

/* photo vs art sliders */
.ba-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.ba { position: relative; margin: 0; aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); user-select: none; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba .before { clip-path: inset(0 calc(100% - var(--x)) 0 0); }
.ba .bar { position: absolute; top: 0; bottom: 0; left: var(--x); width: 4px; margin-left: -2px; background: #fff; box-shadow: 0 0 12px rgba(0, 0, 0, 0.25); pointer-events: none; }
.ba .bar::after { content: ''; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: var(--tangerine); border: 4px solid #fff; }
.ba input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba .lab { position: absolute; top: 14px; background: rgba(31, 27, 46, 0.85); color: #fff; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; pointer-events: none; }
.ba .lab.l { left: 14px; }
.ba .lab.r { right: 14px; background: var(--tangerine); color: var(--ink); }
.more-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.more-row img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 22px; }
.ba-grid { grid-template-columns: repeat(3, 1fr); }
.more-row { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 760px) {
  .ba-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .ba-grid .ba:nth-child(n+3) { display: none; }
  .ba .lab { font-size: 11px; padding: 4px 9px; top: 10px; }
  .more-row { grid-template-columns: 1fr 1fr; }
}
/* Phones: card rows swipe sideways instead of stacking into a long column */
@media (max-width: 760px) {
  .row { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -20px; padding: 4px 20px 16px; gap: 14px; scrollbar-width: none; }
  .row::-webkit-scrollbar { display: none; }
  .row > * { flex: 0 0 76%; scroll-snap-align: start; }
  .step { padding: 22px; }
  .step img { aspect-ratio: 1 !important; }
  .card .ph { height: 300px !important; }
}

/* product pages */
.pp-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; padding-top: 24px; padding-bottom: 96px; }
.gallery #galMain { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 28px; box-shadow: var(--shadow); background: #fff; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; }
.thumb { width: 84px; height: 105px; padding: 0; border: 3px solid transparent; border-radius: 16px; overflow: hidden; cursor: pointer; background: none; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb[aria-current="true"] { border-color: var(--tangerine); }
.pp-info { position: sticky; top: 24px; }
.pp-price { font-family: var(--display); font-weight: 800; font-size: 34px; letter-spacing: -0.03em; margin: 0; }
.pp-points { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.pp-points li { padding-left: 30px; position: relative; font-weight: 500; }
.pp-points li::before { content: ''; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--tangerine); box-shadow: inset 0 0 0 5px var(--tint-orange); }
.pp-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); min-width: 560px; }
.pp-table th, .pp-table td { text-align: left; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.pp-table th { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); background: #fff3e6; }
.pp-table tr:last-child td { border-bottom: 0; }
.pp-faq details { background: var(--surface); border-radius: 20px; padding: 20px 24px; margin-bottom: 12px; }
.pp-faq summary { font-family: var(--display); font-weight: 700; font-size: 20px; cursor: pointer; }
.pp-faq p { margin-top: 10px; color: var(--muted); }
.lvl { background: var(--ground); border-radius: 28px; padding: 16px; }
.lvl-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.lvl-imgs img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 16px; background: #fff; }
.lvl h3 { font-size: 24px; }
@media (max-width: 860px) {
  .pp-hero { grid-template-columns: 1fr; gap: 28px; padding-left: 20px; padding-right: 20px; }
  .pp-info { position: static; }
  .thumb { width: 64px; height: 80px; }
}

/* editor: save, extras, order lines */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.save-box { margin-top: 20px; background: var(--tint-sun); border-radius: 24px; padding: 22px; }
.save-row { display: flex; gap: 10px; flex-wrap: wrap; }
.save-row input { flex: 1 1 200px; }
.save-row .btn { padding: 14px 22px; font-size: 15px; }
.box-shot { margin-top: 20px; }
.box-shot img { width: 100%; border-radius: 24px; box-shadow: var(--shadow); }
.check.bundle { background: var(--surface); border: 2px solid var(--line); border-radius: 18px; padding: 16px; color: var(--ink); }
.check.bundle:has(input:checked) { border-color: var(--tangerine); background: var(--tint-orange); }
.lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.lines li { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); }
@media (max-width: 760px) { .create .left { position: static; } }
.box-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: start; }
.box-grid > img { width: 100%; border-radius: 28px; box-shadow: var(--shadow); }
.box-list { display: flex; flex-direction: column; gap: 14px; }
@media (max-width: 860px) { .box-grid { grid-template-columns: 1fr; } }

/* occasion pages */
.occ-notice { background: var(--tint-sun); border-radius: 14px; padding: 12px 16px; font-weight: 600; font-size: 15px; margin-bottom: 14px; }
body.gentle .announce { background: #efe3d3; }
body.gentle .tag { background: #efe3d3; transform: none; }
body.gentle .cta-band { background: #e9dccb; }
body.gentle .cta-band .blob { display: none; }
.gallery.full #galMain { aspect-ratio: auto; }
.section.white .pp-faq details { background: var(--ground); }
