/* Hallmark · shape: Photographic (swapped from Split Studio) · genre: editorial · theme: brand · redesign: full
 * paper: oklch(15.5% 0.006 50) · accent: oklch(79% 0.105 82) · display: El Messiri · body: Cairo · hero: Stage (Poster under 60rem) · nav: floating pill · footer: mast · signature: every photograph mounted as a white matted print on the album's own black card
 * axes: dark/display-serif/gold · posture: Stage · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R5 V4 · weakest: S, a dark-and-gold page could sell any gift; every picture is the album itself, mounted the way its own prints are */
/* Hallmark · dropped the photo carousel ([data-gallery], .mv-dot): its three photos each have their own place now · dropped the hero check list: its three facts are the four points beside the film */
/* Hallmark · reworded "🚚 التوصيل فابور • 💰 الخلاص عند الاستلام" to "التوصيل فابور والخلاص عند الاستلام" · 30a, 63 name the emoji and the dot */
/* Hallmark · reworded "اطلبو دابا – الخلاص عند الاستلام" to "اطلبو دابا", the terms on the line under it · 19 names the dash */
/* Hallmark · reworded "تصاور التيليفون كافيين ✔️" to "تصاور التيليفون كافيين." and "هدية من القلب 💝", "💛" lose their emoji · 30a names emoji standing in for icons */
/* Hallmark · hero-review: fix · 3 findings · 3 resolved (mat kept on phones, pair centred, phone headline at poster size) */
/* Hallmark · finish-review: subagent · 5 findings · 4 resolved 1 partial · gap: the footer mast waits for a vector or 2x wordmark; the raster logo is centred meanwhile */
/* Hallmark · waive 77 · the closing print stops at 56rem (68% of the container) · it is the owner's 896px photograph and wider would upscale it */
/* Hallmark · dropped the "هدية من القلب" pill over the title · 54 names the eyebrow; the line is now the closing print's caption */
@import url("./tokens.css");
@import url("./base.css");

body { font-size: 1.0625rem; line-height: 1.7; }
h1, h2, h3 { line-height: 1.3; }
h1 { max-width: 12ch; }
.lead { color: var(--color-ink-2); }
a:hover { color: var(--color-accent); }

.skip { position: absolute; inset-inline-start: var(--space-md); top: calc(-1 * var(--space-3xl)); z-index: var(--z-toast); padding: var(--space-xs) var(--space-md); background: var(--color-ink); color: var(--color-paper); }
.skip:focus-visible { top: var(--space-md); }

/* Controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); min-height: 52px; padding: 0 var(--space-xl); border: 1px solid var(--color-accent); border-radius: var(--radius-card); background: var(--color-accent); color: var(--color-accent-ink); font: 700 var(--text-md)/1 var(--font-body); white-space: nowrap; text-decoration: none; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn:hover { background: color-mix(in oklch, var(--color-accent) 78%, var(--color-ink)); color: var(--color-accent-ink); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn[aria-busy="true"] { cursor: progress; }
.btn--wide { width: 100%; }
.vx-terms { font-size: var(--text-sm); color: var(--color-muted); }
.vx-cod-line { font-weight: 600; color: var(--color-ink); }

/* The signature: a print in its white mat, the way the album mounts them */
.vx-print { margin: 0; padding: var(--space-sm) var(--space-sm) 0; background: var(--color-mat); border-radius: var(--radius-card); }
.vx-print img, .vx-print video { width: 100%; height: auto; outline: 1px solid color-mix(in oklch, var(--color-mat-ink) 12%, transparent); outline-offset: -1px; }
.vx-print figcaption { display: flex; align-items: center; justify-content: center; min-height: 3.75rem; padding-inline: var(--space-sm); font: 600 var(--text-md)/1.3 var(--font-display); color: var(--color-mat-ink); text-align: center; }

/* Nav: a floating pill */
.vx-nav { position: absolute; inset-inline: 0; top: var(--space-md); z-index: var(--z-sticky-nav); display: flex; justify-content: center; padding-inline: var(--space-md); }
.vx-nav__pill { display: flex; align-items: center; gap: var(--space-xl); min-height: 60px; padding-block: var(--space-2xs); padding-inline: var(--space-lg) var(--space-2xs); border: 1px solid var(--color-rule); border-radius: var(--radius-pill); background: color-mix(in oklch, var(--color-paper) 88%, transparent); }
.vx-nav__logo { display: block; border-radius: var(--radius-card); }
.vx-nav__logo img { width: auto; height: 40px; }
.vx-nav__wa { display: inline-flex; align-items: center; min-height: 48px; padding: 0 var(--space-lg); border: 1px solid var(--color-rule); border-radius: var(--radius-pill); color: var(--color-ink); font-size: var(--text-sm); font-weight: 600; text-decoration: none; transition: border-color var(--dur-short) var(--ease-out); }
.vx-nav__wa:hover { border-color: var(--color-accent); }

/* Hero */
.vx-hero { display: grid; align-items: center; min-height: 100svh; padding-block: var(--space-3xl) var(--space-2xl); }
.vx-hero__grid { display: grid; grid-template-columns: minmax(0, 34rem) auto; justify-content: center; gap: var(--space-2xl); align-items: center; }
.vx-hero__plate h1 { margin-bottom: var(--space-md); }
.vx-hero__plate .lead { margin-bottom: var(--space-lg); }
.vx-hero__act { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm) var(--space-lg); }
.vx-hero__from { font: 600 var(--text-xl)/1.3 var(--font-display); color: var(--color-accent); }
.vx-hero__plate .vx-cod-line { margin-top: var(--space-md); }
.vx-hero__print { justify-self: end; }
.vx-hero__print img { width: auto; height: min(calc(100svh - 15rem), 40rem); aspect-ratio: 3 / 4; object-fit: cover; }

/* Sections */
.vx-sec { padding-block: var(--section-gap-s); }
.vx-sec h2 { margin-bottom: var(--space-xl); }

/* The offer */
.vx-offer { background: var(--color-paper-2); }
.vx-sizes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-sm); margin: 0 0 var(--space-2xl); padding: 0; border: 0; }
.vx-size { position: relative; display: grid; justify-items: center; align-content: center; gap: var(--space-2xs); min-height: 9.5rem; padding: var(--space-lg) var(--space-sm); border: 1px solid var(--color-rule); border-radius: var(--radius-card); background: var(--color-paper); text-align: center; cursor: pointer; transition: border-color var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out); }
.vx-size input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.vx-size:hover { border-color: var(--color-muted); }
.vx-size:has(input:checked) { border-color: var(--color-accent); background: var(--color-paper-3); }
.vx-size:has(input:focus-visible) { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.vx-size__n { font: 700 var(--text-3xl)/1.1 var(--font-display); font-variant-numeric: tabular-nums; }
.vx-size:has(input:checked) .vx-size__n { color: var(--color-accent); }
.vx-size__unit { font-size: var(--text-sm); color: var(--color-ink-2); }
.vx-size__price { margin-top: var(--space-xs); font-weight: 700; }
.vx-size__price s { color: var(--color-muted); font-weight: 400; }
.vx-size__tag { position: absolute; top: -0.85em; inset-inline: 0; width: max-content; margin-inline: auto; padding: 0 var(--space-xs); background: var(--color-paper-2); color: var(--color-accent); font-size: var(--text-xs); font-weight: 600; }

.vx-checkout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-2xl); align-items: start; }
.vx-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md); }
.vx-fields__title, .vx-msg { grid-column: 1 / -1; }
.vx-fields__title { font: 600 var(--text-lg)/1.3 var(--font-display); }
.vx-field { display: grid; gap: var(--space-2xs); }
.vx-field span { font-size: var(--text-sm); color: var(--color-ink-2); }
.vx-field input { min-height: 52px; padding: 0 var(--space-md); border: 1px solid var(--color-muted); border-radius: var(--radius-card); background: var(--color-paper); color: var(--color-ink); outline: 2px solid transparent; outline-offset: 1px; transition: border-color var(--dur-short) var(--ease-out); }
.vx-field input[type="tel"] { direction: ltr; text-align: end; }
.vx-field input::placeholder { color: var(--color-muted); }
.vx-field input:hover { border-color: var(--color-ink-2); }
.vx-field input:focus-visible { outline-color: var(--color-focus); }
.vx-field input:user-invalid { border-color: var(--color-error); }
.vx-hp { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.vx-msg { color: var(--color-error); }
.vx-total { display: grid; gap: var(--space-sm); padding: var(--space-lg); border: 1px solid var(--color-rule); border-radius: var(--radius-card); background: var(--color-paper); }
.vx-gift { display: flex; align-items: center; gap: var(--space-sm); min-height: 44px; padding: 0 var(--space-md); border: 1px solid var(--color-rule); border-radius: var(--radius-card); cursor: pointer; }
.vx-gift:has(input:checked) { border-color: var(--color-accent); background: var(--color-paper-3); }
.vx-gift input { width: 1.25rem; height: 1.25rem; accent-color: var(--color-accent); }
.vx-total__sum { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-sm); margin-bottom: var(--space-xs); }
.vx-total__sum b { font: 700 var(--text-2xl)/1.1 var(--font-display); color: var(--color-accent); }
.vx-total__sum s { color: var(--color-muted); }

.mv-thanks { display: grid; justify-items: start; gap: var(--space-md); max-width: 40rem; padding: var(--space-xl); border: 1px solid var(--color-accent); border-radius: var(--radius-card); background: var(--color-paper); }
.mv-thanks:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.mv-thanks h3 { font-size: var(--text-2xl); }
.mv-thanks p { color: var(--color-ink-2); }

/* The album, in use */
.vx-film__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-3xl); align-items: center; }
.vx-film__print { justify-self: center; width: min(100%, 26rem); }
.vx-film__print video { aspect-ratio: 576 / 704; background: var(--color-paper-3); object-fit: cover; }
.vx-loop-btn { min-height: 44px; padding: 0 var(--space-md); border: 1px solid color-mix(in oklch, var(--color-mat-ink) 35%, transparent); border-radius: var(--radius-card); background: transparent; color: var(--color-mat-ink); font: 600 var(--text-sm)/1 var(--font-body); cursor: pointer; transition: background-color var(--dur-short) var(--ease-out); }
.vx-loop-btn:hover { background: color-mix(in oklch, var(--color-mat-ink) 8%, transparent); }
.vx-loop-btn:focus-visible { outline: 2px solid var(--color-mat-ink); outline-offset: 2px; }
html:not(.js) [data-loop-toggle] { display: none; }
.vx-points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xl) var(--gap-columns); margin: 0; padding: 0; list-style: none; }
.vx-points li { padding-top: var(--space-md); border-top: 1px solid var(--color-rule); }
.vx-points h3 { margin-bottom: var(--space-xs); }
.vx-points p { color: var(--color-ink-2); }

/* Where photos end up */
.vx-where__rows { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--color-rule); }
.vx-where__rows li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap-columns); align-items: baseline; padding-block: var(--space-xl); border-bottom: 1px solid var(--color-rule); }
.vx-where__rows h3 { display: flex; align-items: center; gap: var(--space-sm); font-size: var(--text-2xl); max-width: none; }
.vx-mark { flex: none; color: var(--color-muted); }
.vx-where__rows .is-ours .vx-mark { color: var(--color-accent); }
.vx-where__rows p { font-size: var(--text-lead); color: var(--color-muted); }
.vx-where__rows .is-ours { border-bottom-color: var(--color-accent); }
.vx-where__rows .is-ours p { color: var(--color-ink); }

/* How it is made: the print stays while the steps run */
.vx-steps__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-3xl); align-items: start; }
.vx-steps__print { position: sticky; top: var(--space-2xl); justify-self: center; width: min(100%, 24rem); }
.vx-steps__list { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.vx-steps__list li { counter-increment: step; display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); column-gap: var(--space-md); padding-block: var(--space-lg); border-top: 1px solid var(--color-rule); }
.vx-steps__list li::before { content: counter(step); grid-row: span 2; font: 700 var(--text-3xl)/1 var(--font-display); color: var(--color-accent); }
.vx-steps__list h3 { margin-bottom: var(--space-2xs); }
.vx-steps__list p { color: var(--color-ink-2); }
.vx-note { margin-top: var(--space-lg); font-size: var(--text-sm); color: var(--color-muted); }

/* Questions */
.vx-faq__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap-columns); align-items: start; }
.vx-qa { border-bottom: 1px solid var(--color-rule); }
.vx-qa:first-child { border-top: 1px solid var(--color-rule); }
.vx-qa summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); min-height: 64px; padding-block: var(--space-sm); font: 600 var(--text-lg)/1.4 var(--font-body); list-style: none; cursor: pointer; transition: color var(--dur-short) var(--ease-out); }
.vx-qa summary::-webkit-details-marker { display: none; }
.vx-qa summary::after { content: "+"; flex: none; font: 400 var(--text-xl)/1 var(--font-body); color: var(--color-accent); transition: transform var(--dur-short) var(--ease-out); }
.vx-qa[open] summary::after { transform: rotate(45deg); }
.vx-qa summary:hover { color: var(--color-accent); }
.vx-qa summary:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.vx-qa p { padding-bottom: var(--space-lg); color: var(--color-ink-2); }

/* Close on the offer */
.vx-close__in { display: grid; justify-items: center; gap: var(--space-lg); text-align: center; }
.vx-close__print { width: min(100%, 56rem); margin-bottom: var(--space-lg); }
.vx-close__print img { aspect-ratio: 4 / 3; object-fit: cover; object-position: 60% 55%; }
.vx-close h2 { max-width: 18ch; margin-inline: auto; margin-bottom: var(--space-md); font-size: var(--text-display-s); }
.vx-close .lead { margin-inline: auto; margin-bottom: var(--space-xl); }

/* Sticky bar, phones only */
.vx-sticky { position: fixed; inset-inline: 0; bottom: 0; z-index: var(--z-sticky); display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); padding: var(--space-sm) var(--gutter); border-top: 1px solid var(--color-rule); background: var(--color-paper-2); }
.js .vx-sticky { visibility: hidden; transform: translateY(110%); transition: transform var(--dur-long) var(--ease-out), visibility 0s linear var(--dur-long); }
.js .vx-sticky.is-visible { visibility: visible; transform: none; transition-delay: 0s; }
.vx-sticky__info { display: grid; font-size: var(--text-sm); line-height: 1.4; }
.vx-sticky__info span { color: var(--color-accent); font-weight: 700; }

/* Footer: the mast */
.vx-foot { padding-block: var(--section-gap-s) var(--space-xl); border-top: 1px solid var(--color-rule); }
.vx-foot__logo { width: min(100%, 31rem); height: auto; margin-inline: auto; }
.vx-foot__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-xs) var(--space-xl); margin-top: var(--space-xl); padding-top: var(--space-md); border-top: 1px solid var(--color-rule); font-size: var(--text-sm); color: var(--color-ink-2); }
.vx-foot__row a { display: inline-flex; align-items: center; min-height: 44px; color: var(--color-ink); font-weight: 600; text-decoration: none; transition: color var(--dur-short) var(--ease-out); }
.vx-foot__row small { color: var(--color-muted); font-size: var(--text-xs); }

@media (min-width: 60.01rem) { .vx-sticky { display: none; } }

@media (max-width: 60rem) {
  body { padding-bottom: 5rem; }
  .vx-hero { min-height: 0; padding: calc(60px + var(--space-xl)) 0 var(--space-2xl); }
  .vx-hero__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .vx-hero__print { order: -1; justify-self: stretch; }
  .vx-hero__print img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; object-position: 50% 60%; }
  .vx-hero__plate h1 { font-size: clamp(3rem, 14vw, 4.5rem); line-height: 1.2; }
  .vx-checkout, .vx-film__grid, .vx-steps__grid, .vx-faq__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .vx-steps__print { position: static; }
  .vx-film__print, .vx-steps__print { width: min(100%, 22rem); }
  .vx-where__rows li { grid-template-columns: minmax(0, 1fr); gap: var(--space-xs); }
}

@media (max-width: 40rem) {
  .vx-nav__pill { gap: var(--space-md); padding-inline-start: var(--space-md); }
  .vx-nav__logo img { height: 34px; }
  .vx-sizes { grid-template-columns: minmax(0, 1fr); gap: var(--space-md); }
  .vx-size { grid-template-columns: auto minmax(0, 1fr) auto; justify-items: start; align-items: baseline; column-gap: var(--space-xs); min-height: 64px; padding: var(--space-sm) var(--space-md); text-align: start; }
  .vx-size__n { font-size: var(--text-xl); }
  .vx-size__price { justify-self: end; margin-top: 0; }
  .vx-size__tag { inset-inline: var(--space-md) auto; margin-inline: 0; }
  .vx-fields, .vx-points { grid-template-columns: minmax(0, 1fr); }
  .vx-where__rows h3 { font-size: var(--text-title); }
}

@media (prefers-reduced-motion: reduce) {
  .btn, .vx-size, .vx-field input, .vx-loop-btn, .vx-nav__wa, .vx-qa summary, .vx-foot__row a { transition: background-color var(--dur-short) linear, border-color var(--dur-short) linear, color var(--dur-short) linear; }
  .js .vx-sticky { transition: visibility 0s; }
  .vx-qa summary::after { transition: none; }
}
