/* Hallmark · shape: studio · genre: playful · theme: Hum (deal 2/3, seed soft-floral-bilingual-ordering-bfd8·c5c0a4b3·2026-11-30·r0) with the Kadi brand colours and faces · job: buy · draw: manual
 * hero: stage · nav: wordmark and language · footer: logo mast · imagery: the product, drawn live · signature: the card that updates as you type
 * axes: light/serif-display/brand-rose · posture: restrained · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R4 V4 · weakest: R, one control recipe reused on every screen */
:root {
  color-scheme: light;
  --space-3xs: 2px; --space-2xs: 4px; --space-xs: 8px; --space-sm: 12px; --space-md: 16px; --space-lg: 24px; --space-xl: 40px; --space-2xl: 64px; --space-3xl: 96px; --space-4xl: 144px;
  --text-xs: 0.8125rem; --text-sm: 0.875rem; --text-md: 1rem; --text-lg: 1.25rem; --text-xl: 1.5625rem; --text-2xl: 1.953rem; --text-3xl: 2.441rem;
  --text-display-s: clamp(2.25rem, 4vw + 0.5rem, 3.75rem); --text-display: clamp(2.75rem, 5vw + 1rem, 5.25rem);
  --text-section: clamp(2rem, 2.5vw + 1rem, 3.5rem); --text-title: clamp(1.25rem, 0.75vw + 0.875rem, 1.625rem); --text-lead: clamp(1.125rem, 0.35vw + 1rem, 1.375rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1); --ease-in: cubic-bezier(0.7, 0, 0.84, 0); --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-micro: 120ms; --dur-short: 220ms; --dur-long: 420ms;
  --color-error: oklch(52% 0.19 27); --color-success: oklch(50% 0.12 150);
  --container: 1440px; --gutter: 64px; --gap-columns: 32px; --section-gap-s: 120px; --section-gap: 144px; --section-gap-l: 176px;
  --z-base: 1; --z-raised: 10; --z-dropdown: 100; --z-sticky: 200; --z-sticky-nav: 300; --z-modal: 400; --z-toast: 500; --z-tooltip: 600;
  --color-paper: oklch(97% 0.012 95); --color-paper-2: oklch(94.5% 0.018 95); --color-paper-3: oklch(91% 0.022 95);
  --color-ink: oklch(20% 0.014 255); --color-ink-2: oklch(29% 0.014 255); --color-muted: oklch(47% 0.014 255);
  --color-rule: oklch(87% 0.016 95);
  --color-accent: oklch(87% 0.175 96); --color-accent-deep: oklch(72% 0.16 92); --color-accent-ink: oklch(20% 0.014 255);
  --color-accent-2: oklch(50% 0.17 250); --color-accent-3: oklch(70% 0.2 22);
  --color-mint: oklch(82% 0.15 152); --color-mint-deep: oklch(48% 0.12 155); --color-focus: oklch(50% 0.17 250);
  --color-card: oklch(98.8% 0.007 95); --color-edge: oklch(83% 0.04 88); --color-fringe: oklch(99.2% 0.006 95);
  --color-kraft: oklch(63% 0.085 62); --color-sand: oklch(77% 0.1 76); --color-sugar: oklch(89% 0.035 236);
  --color-hill-1: oklch(94.5% 0.03 118); --color-hill-2: oklch(91.5% 0.045 135); --color-leaf: oklch(64% 0.15 150);
  --radius-card: 24px; --radius-stock: 16px; --radius-input: 14px; --radius-pill: 999px; --rule-hair: 1px;
  --shadow-card: 0 1px 2px oklch(20% 0.014 255 / 0.06), 0 12px 28px -14px oklch(20% 0.014 255 / 0.22);
  --shadow-paper: drop-shadow(0 0 0.6px oklch(20% 0.014 255 / 0.32)) drop-shadow(1.5px 2.5px 1.5px oklch(20% 0.014 255 / 0.1)) drop-shadow(6px 14px 16px oklch(20% 0.014 255 / 0.13));
  --tracking-display: -0.03em; --display-weight: 600;
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1); --ease-snap: cubic-bezier(0.22, 1, 0.36, 1);
}
/* Kadi Designs brand, taken from logo.jpg. This replaces the colours and faces of the Hum theme. */
:root {
  --color-paper: #faf1ed; --color-paper-2: #f4e5df; --color-paper-3: #ecd8d1;
  --color-ink: #38262a; --color-ink-2: #543a40; --color-muted: #765b61; --color-rule: #e8d3cc;
  --color-accent: #9e5a65; --color-accent-deep: #764049; --color-accent-ink: #fffaf8; --color-accent-2: #8a4854;
  --color-rose: #eaa8b5; --color-sage: #9caf8c; --color-sage-soft: #e4ebdd; --color-sage-deep: #52663f; --color-gold: #c4985a;
  --color-card: #fffbf9; --color-edge: #e2c6be; --color-focus: #52663f;
  --color-error: #a3261d; --color-success: #3f6b33; --color-success-soft: #e6efdf; --color-error-soft: #fbe7e4;
  --font-display: "Cormorant Garamond", "Alexandria", ui-serif, serif;
  --font-body: "Alexandria", ui-sans-serif, system-ui, sans-serif;
  --shadow-card: 0 1px 2px rgb(56 38 42 / 0.06), 0 14px 30px -16px rgb(56 38 42 / 0.28);
  --tracking-display: 0; --display-weight: 600; --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scrollbar-color: var(--color-muted) var(--color-paper); scroll-padding-top: var(--space-3xl); }
body { margin: 0; background: var(--color-paper); color: var(--color-ink); font-family: var(--font-body); font-size: var(--text-md); line-height: 1.55; -webkit-font-smoothing: antialiased; caret-color: var(--color-accent); }
::selection { background: color-mix(in oklab, var(--color-accent) 22%, transparent); color: var(--color-ink); }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.16em; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: var(--display-weight, 700); font-synthesis: none; letter-spacing: var(--tracking-display); line-height: 1.05; overflow-wrap: break-word; min-width: 0; text-wrap: balance; }
h1 { max-width: 20ch; font-size: var(--text-display); } h2 { max-width: 30ch; font-size: var(--text-section); } h3 { max-width: 40ch; font-size: var(--text-title); line-height: 1.2; }
.lead { font-size: var(--text-lead); line-height: 1.45; max-width: 52ch; }
p { margin: 0; text-wrap: pretty; }
p:not([class]) { max-width: 65ch; }
img, video { max-width: 100%; height: auto; display: block; }
svg { display: block; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); box-sizing: border-box; }
.num, .figure, td.num { font-variant-numeric: tabular-nums; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[data-slot] { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--color-paper-2, var(--color-paper)), var(--color-paper-3, var(--color-paper))); }
[data-slot] > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
[data-slot]:has(> img) > :not(img):not([data-keep]) { display: none !important; }
@media (max-width: 60rem) { :root { --gutter: 24px; --section-gap-s: 80px; --section-gap: 96px; --section-gap-l: 120px; } }
@media (max-width: 40rem) { :root { --gutter: 16px; --section-gap-s: 56px; --section-gap: 72px; --section-gap-l: 96px; --gap-columns: 16px; } }
@media (prefers-reduced-motion: reduce) { *:not(.keep-motion), *:not(.keep-motion)::before, *:not(.keep-motion)::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; } }
/* photographs: natural vib=12 exp=4 */
[data-slot] > img { filter: saturate(1.06) brightness(1.04); }


html, body { overflow-x: clip; }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: 0; }
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3 { font-family: var(--font-body); line-height: 1.4; }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-lg); }
.row { display: flex; flex-wrap: wrap; gap: var(--space-sm); align-items: center; }
.hint { color: var(--color-muted); font-size: var(--text-sm); }

/* header */
.bar { border-bottom: var(--rule-hair) solid var(--color-rule); background: var(--color-paper); }
.bar__in { display: flex; justify-content: space-between; align-items: center; min-height: 64px; gap: var(--space-md); }
.brand { display: flex; align-items: center; gap: var(--space-sm); text-decoration: none; color: var(--color-accent); min-height: 44px; }
.brand img { width: 27px; height: 40px; }
.brand__name { font-family: var(--font-display); font-weight: 600; font-size: var(--text-lg); white-space: nowrap; }

/* controls: card stock that presses down */
.btn { --edge: 4px; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); min-height: 48px; padding: var(--space-xs) var(--space-lg); border: 0; border-radius: var(--radius-stock); background: var(--color-card); color: var(--color-ink); box-shadow: inset 0 0 0 1px var(--color-edge), 0 var(--edge) 0 0 var(--color-edge); font-weight: 600; font-size: var(--text-md); line-height: 1.4; text-decoration: none; text-align: center; cursor: pointer; margin-bottom: var(--space-2xs); transition: translate var(--dur-micro) var(--ease-snap), box-shadow var(--dur-micro) var(--ease-snap), background-color var(--dur-micro) var(--ease-snap); }
.btn:hover { --edge: 6px; translate: 0 -2px; }
.btn:active { --edge: 1px; translate: 0 3px; }
.btn--primary { background: var(--color-accent); color: var(--color-accent-ink); box-shadow: 0 var(--edge) 0 0 var(--color-accent-deep); }
.btn--quiet { --edge: 0px; background: transparent; box-shadow: none; color: var(--color-accent-2); min-height: 44px; padding-inline: var(--space-sm); text-decoration: underline; margin: 0; }
.btn--quiet:hover { --edge: 0px; translate: none; background: var(--color-paper-2); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; translate: none; --edge: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.chip { min-height: 44px; padding: var(--space-2xs) var(--space-md); border-radius: var(--radius-pill); border: 1px solid var(--color-edge); background: var(--color-card); color: var(--color-ink); font-size: var(--text-sm); cursor: pointer; white-space: nowrap; transition: background-color var(--dur-micro) var(--ease-snap); }
.chip:hover { background: var(--color-paper-3); }
.chip:active { translate: 0 1px; }
.chip--play { border-color: var(--color-accent); color: var(--color-accent); font-weight: 600; }
.btn[aria-busy] { white-space: normal; font-size: var(--text-sm); }
.chip[aria-pressed="true"] { background: var(--color-ink); border-color: var(--color-ink); color: var(--color-card); }

.field { display: grid; gap: var(--space-2xs); margin-bottom: var(--space-md); min-width: 0; }
.field label, legend { font-weight: 600; font-size: var(--text-sm); }
.field small { color: var(--color-muted); font-size: var(--text-xs); }
input:not([type="radio"], [type="checkbox"]), textarea { width: 100%; min-width: 0; min-height: 52px; padding: var(--space-xs) var(--space-md); border: 1px solid var(--color-muted); border-radius: var(--radius-input); background: var(--color-card); color: var(--color-ink); font-size: var(--text-md); }
input:hover, textarea:hover { border-color: var(--color-accent); }
input:disabled, textarea:disabled { background: var(--color-paper-2); color: var(--color-muted); cursor: not-allowed; }
input[type="date"], input[type="time"] { -webkit-appearance: none; appearance: none; text-align: start; }
textarea { resize: vertical; line-height: 1.6; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); column-gap: var(--space-sm); align-items: end; }
.check { display: flex; align-items: center; gap: var(--space-sm); min-height: 44px; margin-bottom: var(--space-sm); font-size: var(--text-sm); }
.check input { width: 22px; height: 22px; accent-color: var(--color-accent); }
.group { border: 0; padding: 0; margin: 0 0 var(--space-lg); min-width: 0; }
legend { padding: 0; margin-bottom: var(--space-sm); font-size: var(--text-md); }
.more { margin-bottom: var(--space-lg); }
.more summary { cursor: pointer; font-weight: 600; font-size: var(--text-sm); color: var(--color-accent-2); min-height: 44px; align-content: center; }
.more[open] summary { margin-bottom: var(--space-sm); }

/* radio groups drawn as pickable pieces; the radio itself stays for keyboards and screen readers */
.pick { position: relative; display: grid; min-width: 0; cursor: pointer; }
.pick input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pick__face { display: grid; align-content: center; justify-items: center; gap: var(--space-2xs); text-align: center; min-height: 48px; padding: var(--space-xs) var(--space-sm); border: 1px solid var(--color-edge); border-radius: var(--radius-stock); background: var(--color-card); pointer-events: none; transition: background-color var(--dur-micro) var(--ease-snap); }
.pick:hover .pick__face { background: var(--color-paper-2); }
.pick:active .pick__face { translate: 0 1px; }
.pick input:checked + .pick__face { border-color: var(--color-accent); box-shadow: inset 0 0 0 2px var(--color-accent); background: var(--color-paper-2); }
.pick input:focus-visible + .pick__face { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); gap: var(--space-xs); margin-bottom: var(--space-sm); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--space-sm); }
.tiles small, .lines small { color: var(--color-muted); font-size: var(--text-xs); line-height: 1.6; }
.tiles .price, .occasions .price { color: var(--color-accent); font-weight: 600; font-size: var(--text-sm); }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: var(--space-xs); }
.thumbs .pick__face { padding: var(--space-xs); }
.thumbs canvas { width: 100%; height: auto; aspect-ratio: 4 / 5; border-radius: var(--space-xs); }
.thumbs b { font-size: var(--text-xs); }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: var(--space-xs); }
.swatches .pick__face { font-size: var(--text-xs); }
.swatch { width: 40px; height: 40px; border-radius: var(--radius-pill); border: 1px solid var(--color-edge); background: conic-gradient(var(--b) 0 33%, var(--c) 0 55%, var(--a) 0); }
.lines { display: grid; gap: var(--space-xs); margin-bottom: var(--space-sm); }
.lines .pick__face { justify-items: start; text-align: start; padding: var(--space-sm) var(--space-md); }
.lines b, .lines small { justify-self: stretch; }
.lines b { font-size: var(--text-sm); }

/* messages */
.note, .alert, .promise { padding: var(--space-sm) var(--space-md); border-radius: var(--radius-input); font-size: var(--text-sm); margin-bottom: var(--space-sm); }
.note { background: var(--color-sage-soft); }
.alert { background: var(--color-error-soft); color: var(--color-error); }
.promise { background: var(--color-sage-soft); font-weight: 600; }
.promise:empty { display: none; }
.toast { position: fixed; inset-inline: var(--space-md); bottom: var(--space-md); margin-inline: auto; width: fit-content; max-width: calc(100% - 32px); padding: var(--space-sm) var(--space-lg); border-radius: var(--radius-pill); background: var(--color-ink); color: var(--color-card); font-size: var(--text-sm); opacity: 0; pointer-events: none; z-index: var(--z-toast); transition: opacity var(--dur-short) var(--ease-snap); }
.toast.is-on { opacity: 1; }
.skeleton { min-height: 360px; border-radius: var(--radius-card); background: var(--color-paper-2); grid-column: 1 / -1; }

/* summaries and boxes */
.summary { margin: 0 0 var(--space-md); }
.summary > div { display: grid; grid-template-columns: minmax(90px, 0.7fr) minmax(0, 1.4fr) auto; gap: var(--space-sm); align-items: center; padding-block: var(--space-xs); border-bottom: var(--rule-hair) solid var(--color-rule); min-height: 48px; }
.summary dt { color: var(--color-muted); font-size: var(--text-sm); }
.summary dd { margin: 0; overflow-wrap: anywhere; text-align: start; }
.total { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-md); margin-bottom: var(--space-md); }
.total strong { font-size: var(--text-2xl); color: var(--color-accent); }
.box { background: var(--color-card); border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: var(--space-lg); margin-bottom: var(--space-lg); }
.box > h2 { font-size: var(--text-lg); margin-bottom: var(--space-sm); }
.box > p, .box h3 { margin-bottom: var(--space-sm); }
.box--joy { background: var(--color-sage-soft); }
.qr { width: 220px; height: auto; margin: 0 auto var(--space-md); border-radius: var(--radius-input); }
.files, .replies, .orders, .mine__list, .gallery, .occasions, .foot ul, .progress, .track { list-style: none; padding: 0; margin: 0; }
.files { margin-top: var(--space-md); }
.files + h3 { margin-top: var(--space-lg); }
.files li { display: flex; justify-content: space-between; align-items: center; gap: var(--space-sm); padding-block: var(--space-xs); border-top: var(--rule-hair) solid var(--color-rule); font-size: var(--text-sm); }
.replies li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-xs); padding-block: var(--space-sm); border-top: var(--rule-hair) solid var(--color-rule); }
.replies p { width: 100%; font-size: var(--text-sm); color: var(--color-muted); }
.tag { display: inline-block; padding: var(--space-3xs) var(--space-sm); border-radius: var(--radius-pill); background: var(--color-paper-3); font-size: var(--text-xs); font-weight: 600; white-space: nowrap; }
.tag--yes, .tag--ready { background: var(--color-success-soft); color: var(--color-success); }
.tag--checking { background: var(--color-accent); color: var(--color-accent-ink); }
.tag--cancelled { color: var(--color-muted); }

/* the card on its stage */
.stage { display: grid; justify-items: center; align-content: start; gap: var(--space-sm); min-width: 0; }
.stage canvas { max-width: 100%; max-height: min(70vh, 700px); width: auto; height: auto; border-radius: var(--space-sm); filter: var(--shadow-paper); }
.stage__sizes { justify-content: center; }

/* studio */
.studio { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-xl); padding-block: var(--space-lg) var(--space-2xl); align-items: start; }
.studio .stage { position: sticky; top: var(--space-md); }
.studio .stage canvas { max-height: calc(100vh - 180px); cursor: zoom-in; }
.panel { min-width: 0; scroll-margin-top: var(--space-md); }
.panel h1 { font-size: var(--text-2xl); margin-bottom: var(--space-md); }
.panel h1:focus { outline: none; }
.progress { display: flex; gap: var(--space-2xs); margin-bottom: var(--space-md); }
.progress li { flex: 1; min-width: 0; }
.progress button { width: 100%; min-height: 44px; display: grid; justify-items: center; gap: var(--space-3xs); padding: var(--space-2xs) 0; background: none; border: 0; border-top: 4px solid var(--color-rule); color: var(--color-muted); font-size: var(--text-xs); cursor: pointer; }
.progress button:hover:not(:disabled) { background: var(--color-paper-2); }
.progress button:active:not(:disabled) { translate: 0 1px; }
.progress button:disabled { cursor: default; }
.progress button.is-done { border-top-color: var(--color-sage); color: var(--color-ink); }
.progress button[aria-current="step"] { border-top-color: var(--color-accent); color: var(--color-accent); font-weight: 600; }
.progress__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.actions { position: sticky; bottom: 0; background: var(--color-paper); padding-block: var(--space-sm); border-top: var(--rule-hair) solid var(--color-rule); z-index: var(--z-sticky); }
.actions__row { display: flex; gap: var(--space-sm); }
.actions .btn--primary { flex: 1; }
.only-en { display: none; }
:root[lang="en"] .only-en { display: inline; }
:root[lang="en"] .only-ar { display: none; }
.zoom { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; cursor: zoom-out; }
.zoom::backdrop { background: color-mix(in oklab, var(--color-ink) 80%, transparent); }
.zoom canvas { max-width: 94vw; max-height: 92vh; width: auto; height: auto; }

/* order and guest pages */
.order, .invite { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-xl); padding-block: var(--space-lg) var(--space-2xl); align-items: start; }
.order > .alert, .invite > .alert { grid-column: 1 / -1; }
.order__head { grid-column: 1 / -1; display: grid; gap: var(--space-sm); }
.order__head h1 { font-size: var(--text-2xl); max-width: 30ch; }
.order__side { min-width: 0; }
.invite .order__side .row { margin-bottom: var(--space-md); }
.track { display: flex; gap: var(--space-2xs); max-width: 640px; }
.track li { flex: 1; border-top: 4px solid var(--color-rule); padding-top: var(--space-2xs); font-size: var(--text-xs); color: var(--color-muted); }
.track li.is-done { border-top-color: var(--color-sage-deep); color: var(--color-ink); font-weight: 600; }

/* desk */
.desk { padding-block: var(--space-lg) var(--space-2xl); }
.desk h1 { font-size: var(--text-2xl); }
.desk__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--space-sm); margin-bottom: var(--space-md); }
.desk > .chips { margin-bottom: var(--space-md); }
.desk > .field { max-width: 460px; }
.gate, .settings { max-width: 560px; }
.gate { margin-inline: auto; }
.gate h1 { margin-bottom: var(--space-md); }
.settings h2 { font-size: var(--text-lg); margin-block: var(--space-md) var(--space-sm); }
.order-row { background: var(--color-card); border-radius: var(--radius-stock); box-shadow: var(--shadow-card); margin-bottom: var(--space-sm); }
.order-row__head { width: 100%; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.2fr) auto auto; gap: var(--space-md); align-items: center; padding: var(--space-md); background: none; border: 0; border-radius: var(--radius-stock); color: var(--color-ink); text-align: start; cursor: pointer; font-size: var(--text-sm); }
.order-row__head:hover { background: var(--color-paper-2); }
.order-row__head:active { translate: 0 1px; }
.order-row__who { display: grid; }
.order-row__who small { color: var(--color-muted); }
.detail { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: var(--space-lg); padding: var(--space-md); border-top: var(--rule-hair) solid var(--color-rule); align-items: start; }
.detail canvas { width: 100%; height: auto; border-radius: var(--space-xs); }
.detail .row { margin-bottom: var(--space-sm); }
.empty { padding: var(--space-xl); text-align: center; color: var(--color-muted); }

/* home */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: var(--space-xl); align-items: center; padding-block: var(--space-xl); min-height: min(760px, calc(100svh - 80px)); }
.page-home h2 { font-size: var(--text-section); }
.end h2, .waiting h2 { max-width: 20ch; }
.hero__words { display: grid; gap: var(--space-lg); justify-items: start; }
.hero h1 { font-size: var(--text-display); max-width: 12ch; }
.fan { position: relative; aspect-ratio: 1.15; min-width: 0; }
.fan canvas { position: absolute; width: 46%; height: auto; aspect-ratio: 4 / 5; border-radius: var(--space-sm); filter: var(--shadow-paper); top: 8%; left: 27%; }
.fan canvas:nth-child(1) { rotate: -9deg; translate: -50% 4%; }
.fan canvas:nth-child(3) { rotate: 9deg; translate: 50% 4%; }
.fan canvas:nth-child(2) { z-index: 1; top: 1%; }
.mine { padding-bottom: var(--space-2xl); }
.mine__list { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-md); }
.band { background: var(--color-paper-2); padding-block: var(--space-3xl); }
.occasions { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--space-md); margin-top: var(--space-lg); }
.occasions a { display: grid; gap: var(--space-2xs); align-content: start; height: 100%; min-height: 48px; padding: var(--space-lg); background: var(--color-card); border-radius: var(--radius-card); box-shadow: 0 4px 0 var(--color-edge); text-decoration: none; transition: translate var(--dur-micro) var(--ease-snap); }
.occasions a:hover { translate: 0 -3px; }
.occasions a:active { translate: 0 2px; }
.occasions small { color: var(--color-muted); }
.designs, .waiting { padding-block: var(--space-3xl); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 44%), 1fr)); gap: var(--space-lg); margin-top: var(--space-lg); }
.gallery a:not(.btn) { display: grid; gap: var(--space-sm); text-align: center; text-decoration: none; font-weight: 600; }
.gallery canvas { width: 100%; height: auto; aspect-ratio: 4 / 5; border-radius: var(--space-sm); filter: var(--shadow-paper); transition: translate var(--dur-short) var(--ease-snap); }
.gallery a:hover canvas { translate: 0 -4px; }
.gallery a:active canvas { translate: 0 0; }
.waiting { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: var(--space-xl); align-items: center; }
.waiting__words { display: grid; gap: var(--space-md); }
.waiting > canvas { width: 100%; max-width: 380px; height: auto; aspect-ratio: 4 / 5; justify-self: center; border-radius: var(--space-sm); filter: var(--shadow-paper); rotate: 3deg; }
.flow { margin: 0; padding-inline-start: var(--space-lg); display: grid; gap: var(--space-sm); font-size: var(--text-lg); }
.band--ink { background: var(--color-ink); color: var(--color-card); }
.end { display: grid; gap: var(--space-md); justify-items: start; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-lg); padding-block: var(--space-xl); }
.foot img { width: 200px; height: auto; border-radius: var(--radius-card); }
.foot a { display: inline-flex; align-items: center; min-height: 44px; }

@media (max-width: 60rem) {
  .hero, .waiting, .order, .invite { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-block: var(--space-md) var(--space-xl); gap: var(--space-md); min-height: 0; }
  .hero h1 { font-size: var(--text-display-s); }
  .hero__words { gap: var(--space-md); }
  .fan { max-width: 440px; width: 100%; margin-inline: auto; }
  .band, .designs, .waiting { padding-block: var(--space-2xl); }
  .order .stage canvas, .invite .stage canvas { max-height: 62vh; }
  /* when payment is the next step, it comes before the card */
  .order.is-paying .order__side { order: 1; }
  .order.is-paying .stage { order: 2; }
  /* on a phone the card stays pinned above the questions */
  .studio { grid-template-columns: minmax(0, 1fr); gap: var(--space-md); padding-top: 0; }
  .studio .stage { top: 0; z-index: var(--z-sticky-nav); background: var(--color-paper); margin-inline: calc(-1 * var(--gutter)); padding: var(--space-xs) var(--gutter); border-bottom: var(--rule-hair) solid var(--color-rule); gap: var(--space-2xs); }
  .studio .stage canvas { max-height: 28vh; }
  .studio .stage__sizes { flex-wrap: nowrap; gap: var(--space-2xs); }
  .studio .stage .chip { min-height: 36px; position: relative; padding-inline: var(--space-sm); }
  .studio .stage .chip::after { content: ""; position: absolute; inset: -4px 0; }
  .progress button:not([aria-current="step"]) .progress__label { display: none; }
  .progress li:has([aria-current="step"]) { flex: 3; }
  .detail { grid-template-columns: minmax(0, 1fr); }
  .detail canvas { max-width: 280px; justify-self: center; }
  .order-row__head { grid-template-columns: minmax(0, 1fr) auto; }
}
/* very short screens give the form its room back */
@media (max-height: 560px) { .studio .stage { position: static; } }
