/* Capella Headpieces storefront
   Velvet jewel box: burgundy velvet, pearl, and the true black of the crown photos.
   Buttons and photos share the logo's petal shape: two sharp corners, two round. */

:root {
    --pearl: #faf6f7;
    --shell: #f1e6e9;
    --ink: #2a111b;
    --ink-soft: #75545f;
    --line: #e2d0d6;
    --velvet: #6b1235;
    --velvet-deep: #3d0a20;
    --velvet-night: #22040f;
    --blush: #f6bccb;
    --case: #050404;

    --display: 'Elsie', 'Bodoni 72', Didot, Georgia, serif;
    --text: 'Figtree', 'Avenir Next', 'Segoe UI', sans-serif;

    --gutter: clamp(16px, 4vw, 64px);
    --gap: clamp(72px, 10vw, 150px);
    --header: 80px;
    --ease: cubic-bezier(.2, .8, .2, 1);

    --layer-chat: 20;
    --layer-header: 30;
    --layer-scrim: 40;
    --layer-panel: 50;
    --layer-toast: 60;
}

@view-transition { navigation: auto; }

*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: calc(var(--header) + 16px);
}

body {
    margin: 0;
    background: var(--pearl);
    color: var(--ink);
    font: 400 1.0625rem/1.6 var(--text);
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

body[data-panel] { overflow: hidden; }

h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
address { font-style: normal; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
main:focus { outline: none; }
[hidden] { display: none !important; }

h1, h2 {
    font-family: var(--display);
    font-weight: 400;
    line-height: 1.04;
    letter-spacing: -.015em;
    text-wrap: balance;
}

h2 { font-size: clamp(2.25rem, 5vw, 4.5rem); }
h3 { font-size: 1.0625rem; font-weight: 500; line-height: 1.35; }

:focus-visible { outline: 2px solid var(--velvet); outline-offset: 4px; }
.hero :focus-visible, .case :focus-visible, .footer :focus-visible, .menu :focus-visible,
.contact__details :focus-visible, .oops :focus-visible, .toast :focus-visible { outline-color: var(--blush); }
::selection { background: var(--velvet); color: #fff; }

.wrap {
    width: 100%;
    max-width: 1560px;
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.skip {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: var(--layer-toast);
    padding: 10px 18px;
    background: var(--velvet);
    color: #fff;
    transform: translateY(-200%);
}
.skip:focus { transform: none; }

.icon {
    width: 1.375rem;
    height: 1.375rem;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    vertical-align: middle;
}
/* The WhatsApp mark is solid. */
.icon[fill="currentColor"] { fill: currentColor; stroke: none; }

.petal-cut { border-radius: 0 clamp(28px, 3.4vw, 56px) 0 clamp(28px, 3.4vw, 56px); overflow: hidden; }

.petals { display: block; width: 96px; fill: none; stroke: currentColor; stroke-width: 5; overflow: visible; }

/* ------------------------------------------------------- Buttons & links */

.button {
    --fill: var(--velvet);
    --label: #fff;
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 12px 30px;
    border-radius: 0 22px 0 22px;
    background: var(--fill);
    color: var(--label);
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
    transition: border-radius .5s var(--ease), background-color .3s, color .3s, box-shadow .3s;
}
.button:hover { border-radius: 22px 0 22px 0; background: var(--velvet-deep); }
.button:active { transform: translateY(1px); }
.button--light { --fill: #fff; --label: var(--velvet-deep); }
.button--light:hover { background: var(--blush); }
.button--ghost, .button--line { --fill: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }
.button--ghost { --label: #fff; }
.button--line { --label: var(--velvet); }
.button--ghost:hover { background: #fff; color: var(--velvet-deep); }
.button--line:hover { background: var(--velvet); color: #fff; box-shadow: inset 0 0 0 1.5px var(--velvet); }
.button--wide { width: 100%; }
.button[aria-busy="true"], .button:disabled { opacity: .6; cursor: progress; }

.link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    font-weight: 500;
    white-space: nowrap;
}
.link .icon { transition: transform .5s var(--ease); }
.link:hover .icon { transform: translateX(8px); }

.tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 0 10px 0 10px;
    background: var(--velvet);
    color: #fff;
    font-size: .875rem;
    font-weight: 500;
    line-height: 1.4;
}
.tag--quiet { background: #fff; color: var(--ink); }

.price { display: flex; gap: 10px; font-variant-numeric: tabular-nums; }
.price del { opacity: .62; }

/* ---------------------------------------------------------------- Header */

.header {
    position: sticky;
    top: 0;
    z-index: var(--layer-header);
    height: var(--header);
    background: var(--pearl);
    color: var(--ink);
    transition: transform .55s var(--ease), background-color .35s, color .35s;
}
.header.is-hidden { transform: translateY(-101%); }
.header.is-scrolled { box-shadow: 0 1px 0 var(--line); }

.is-home .header { margin-bottom: calc(var(--header) * -1); }
.is-home .header:not(.is-scrolled, .has-mega) { background: transparent; color: #fff; }
.is-home .header:not(.is-scrolled, .has-mega) .header__logo img { filter: brightness(0) invert(1); }
.is-home .header:not(.is-scrolled, .has-mega) :focus-visible { outline-color: #fff; }

.header__bar { display: flex; align-items: center; height: 100%; gap: 24px; }
.header__logo img { width: 128px; transition: filter .35s; }
.header__tools { display: flex; align-items: center; gap: 4px; margin-left: auto; margin-right: -11px; }
.header__icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
}
.header__icon .icon { transition: transform .4s var(--ease); }
.header__icon:hover .icon { transform: translateY(-2px); }
[data-cart-icon] { display: grid; }
.header__burger { display: none; margin-left: -11px; }
.header__count {
    position: absolute;
    top: 3px;
    right: 1px;
    display: grid;
    place-items: center;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 9px;
    background: var(--velvet);
    color: #fff;
    font-size: .75rem;
    font-weight: 600;
    line-height: 1;
}
.is-home .header:not(.is-scrolled, .has-mega) .header__count { background: var(--blush); color: var(--velvet-deep); }

.nav { margin-left: clamp(8px, 2vw, 40px); }
.nav ul { display: flex; gap: clamp(16px, 2.2vw, 36px); }
.nav__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    font-weight: 500;
    font-size: 1rem;
    white-space: nowrap;
}
.nav__link .icon { width: 1rem; height: 1rem; transition: transform .4s var(--ease); }
.nav__link[aria-expanded="true"] .icon { transform: rotate(180deg); }
.nav__link::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 7px;
    height: 1.5px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .5s var(--ease);
}
.nav__link:hover::after, .nav__link[aria-current]::after, .nav__link[aria-expanded="true"]::after {
    transform: scaleX(1);
    transform-origin: left;
}

.mega {
    position: absolute;
    inset: 100% 0 auto;
    max-height: calc(100dvh - var(--header));
    overflow-y: auto;
    background: var(--pearl);
    color: var(--ink);
    border-radius: 0 0 0 56px;
    box-shadow: 0 30px 50px -30px rgb(61 10 32 / .35);
    visibility: hidden;
    clip-path: inset(0 0 100% 0);
    transition: clip-path .55s var(--ease), visibility 0s .55s;
}
.mega.is-open { visibility: visible; clip-path: inset(0 0 -60px 0); transition-delay: 0s; }
.mega__inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 32px 24px;
    padding-block: 28px 52px;
}
.mega__title { display: inline-block; margin-bottom: 10px; font: 400 1.375rem/1.2 var(--display); }
.mega li a { display: block; padding: 5px 0; color: var(--ink-soft); transition: color .2s, transform .4s var(--ease); }
.mega li a:hover { color: var(--velvet); transform: translateX(5px); }
.mega__title:hover { color: var(--velvet); }

/* ------------------------------------------------- Menu, search and cart */

.scrim {
    position: fixed;
    inset: 0;
    z-index: var(--layer-scrim);
    background: rgb(34 4 15 / .6);
    opacity: 0;
    visibility: hidden;
    transition: opacity .4s, visibility 0s .4s;
}
[data-panel] .scrim { opacity: 1; visibility: visible; transition-delay: 0s; }

.menu, .search, .drawer {
    position: fixed;
    z-index: var(--layer-panel);
    visibility: hidden;
    overscroll-behavior: contain;
    transition: transform .6s var(--ease), clip-path .6s var(--ease), visibility 0s .6s;
}
[data-panel="menu"] .menu, [data-panel="search"] .search, [data-panel="cart"] .drawer {
    visibility: visible;
    transform: none;
    transition-delay: 0s;
}

.panel-close {
    position: absolute;
    top: 18px;
    right: 14px;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
}
.panel-close .icon { transition: transform .5s var(--ease); }
.panel-close:hover .icon { transform: rotate(90deg); }

.menu {
    inset: 0 auto 0 0;
    width: min(460px, 100%);
    overflow-y: auto;
    padding: 84px 24px 40px;
    background: var(--velvet-deep);
    color: #fff;
    transform: translateX(-101%);
}
.menu__link { display: block; padding: 8px 0; font: 400 2rem/1.2 var(--display); }
.menu__group summary, .menu__sub {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    font-weight: 500;
    cursor: pointer;
    list-style: none;
}
.menu__group summary::-webkit-details-marker { display: none; }
.menu__group summary .icon { transition: transform .4s var(--ease); }
.menu__group[open] summary .icon { transform: rotate(180deg); }
.menu__group a { display: block; padding: 9px 0 9px 18px; color: var(--blush); }
.menu__main { margin-top: 20px; padding-top: 20px; border-top: 1px solid rgb(255 255 255 / .18); }

.search {
    inset: 0 0 auto;
    padding-block: 92px 64px;
    background: var(--pearl);
    transform: translateY(-101%);
}
.search__form { display: flex; align-items: end; gap: 20px; }
.search input {
    flex: 1;
    min-width: 0;
    padding: 8px 0 12px;
    border: 0;
    border-bottom: 2px solid var(--velvet);
    border-radius: 0;
    background: none;
    color: var(--ink);
    font: 400 clamp(1.375rem, 4vw, 3rem)/1.2 var(--display);
    appearance: none;
}
.search input:focus { outline: none; border-bottom-width: 4px; padding-bottom: 10px; }
.search input::placeholder { color: var(--ink-soft); opacity: .75; }

.drawer {
    inset: 0 0 0 auto;
    width: min(460px, 100%);
    background: var(--pearl);
    border-radius: 0 0 0 56px;
    overflow: hidden;
    transform: translateX(101%);
}
.drawer__inner { display: flex; flex-direction: column; height: 100%; padding: 22px 24px 28px; }
.drawer__title { padding-bottom: 18px; font-size: 2rem; }
.drawer .lines { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.drawer__foot { display: grid; gap: 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.drawer__total { display: flex; justify-content: space-between; font-weight: 600; padding-bottom: 6px; }

.line { display: grid; grid-template-columns: 80px 1fr auto; gap: 16px; padding-block: 16px; border-top: 1px solid var(--line); }
.line:first-child { border-top: 0; padding-top: 4px; }
.line__photo { aspect-ratio: 4 / 5; border-radius: 0 18px 0 18px; overflow: hidden; background: var(--shell); }
.line__photo img { width: 100%; height: 100%; object-fit: cover; }
.line__text { min-width: 0; overflow-wrap: anywhere; }
.line__name { font-weight: 500; line-height: 1.35; }
.line__name:hover { color: var(--velvet); }
.line__meta { color: var(--ink-soft); font-size: .9375rem; }
.line__meta span { display: block; }
.line__price { font-variant-numeric: tabular-nums; font-weight: 500; }
.line__remove {
    min-height: 32px;
    color: var(--ink-soft);
    font-size: .9375rem;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.line__remove:hover { color: var(--velvet); }
.line__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 14px; }
.lines--large .line { grid-template-columns: clamp(84px, 12vw, 128px) 1fr auto; padding-block: 24px; }

.stepper { display: inline-flex; align-items: center; box-shadow: inset 0 0 0 1px var(--line); border-radius: 0 16px 0 16px; }
.stepper button { display: grid; place-items: center; width: 44px; height: 44px; }
.stepper button:hover { color: var(--velvet); }
.stepper .icon { width: 1rem; height: 1rem; }
.stepper span { min-width: 24px; text-align: center; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ Hero */

.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: max(600px, 100svh);
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(56% 46% at 50% 38%, rgb(196 44 100 / .5), transparent 72%),
        radial-gradient(90% 60% at 50% 108%, rgb(128 22 64 / .75), transparent 70%),
        repeating-linear-gradient(100deg, rgb(255 255 255 / .014) 0 2px, transparent 2px 5px),
        linear-gradient(180deg, var(--velvet-night), #4d0d29 70%, var(--velvet-deep));
}
.hero__jewels {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity .9s;
    pointer-events: none;
}
.hero__jewels.is-ready { opacity: 1; }
.hero__copy {
    position: relative;
    z-index: 2; /* stones fly behind the words */
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: clamp(14px, 2.4vh, 26px) 24px;
    padding-bottom: clamp(24px, 4vh, 40px);
}
.hero__title { display: contents; }
.hero__big {
    grid-column: 1 / -1;
    justify-self: center;
    font-size: min(13.4vw, 25svh, 15rem);
    line-height: .95;
    letter-spacing: -.035em;
    white-space: nowrap;
}
.hero__big > span { display: inline-block; animation: rise 1.2s var(--ease) both; }
.hero__big > span + span { animation-delay: .1s; }
/* Clips the word as it changes, with room for tall letters and tails. */
.hero__word {
    display: inline-block;
    margin: -.2em -.1em -.26em;
    padding: .2em .1em .26em;
    overflow: hidden;
    vertical-align: top;
}
.hero__word > span { display: inline-block; }
.hero__small {
    max-width: 25ch;
    font: 400 clamp(1rem, 1.2vw, 1.1875rem)/1.45 var(--text);
    letter-spacing: 0;
    color: #ffe9ef;
}
.hero__actions { position: relative; z-index: 2; justify-self: end; padding-right: 72px; }
.hero__actions .button { min-width: 190px; }

.picker { position: relative; z-index: 2; display: flex; align-items: center; gap: 8px; min-width: 0; }
.picker__rail { position: relative; display: flex; gap: clamp(4px, .8vw, 14px); min-width: 0; }
.picker__item {
    --progress: 0;
    display: grid;
    justify-items: center;
    gap: 8px;
    flex: none;
    width: 88px;
    padding: 6px 0;
    color: #f4dce3;
    font-size: .9375rem;
    line-height: 1.2;
    transition: color .3s;
}
.picker__photo {
    width: 56px;
    height: 56px;
    overflow: hidden;
    border-radius: 0 20px 0 20px;
    background: var(--velvet);
    box-shadow: 0 0 0 1.5px rgb(255 255 255 / .28);
    transition: border-radius .6s var(--ease), box-shadow .3s, transform .6s var(--ease);
}
.picker__photo img { width: 100%; height: 100%; object-fit: cover; }
.picker__label { position: relative; padding-bottom: 6px; white-space: nowrap; }
.picker__label::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 2px;
    background: var(--blush);
    transform: scaleX(var(--progress));
    transform-origin: left;
}
.picker__item:hover, .picker__item[aria-pressed="true"] { color: #fff; }
.picker__item:hover .picker__photo { box-shadow: 0 0 0 1.5px #fff; }
.picker__item[aria-pressed="true"] .picker__photo {
    border-radius: 20px 0 20px 0;
    box-shadow: 0 0 0 2px var(--velvet-deep), 0 0 0 4px var(--blush);
    transform: translateY(-4px);
}
.picker.is-paused [aria-pressed="true"] .picker__label::after { transform: none; }
.picker__pause { display: grid; place-items: center; flex: none; width: 44px; height: 44px; color: #f4dce3; }
.picker__pause:hover { color: #fff; }
.picker__pause .icon--play, .picker.is-paused .icon--pause { display: none; }
.picker.is-paused .icon--play { display: block; }

/* Without WebGL the headline and the photos take the stage. */
.hero.is-flat { justify-content: center; }
.hero.is-flat .hero__copy { padding-top: calc(var(--header) + 24px); }

/* The seasonal swing tag hangs on a thread from the header. */
.season {
    --thread: clamp(28px, 6svh, 64px);
    position: absolute;
    top: 0;
    right: max(var(--gutter), calc((100vw - 1560px) / 2 + var(--gutter)));
    z-index: 3;
    width: clamp(168px, 15vw, 226px);
    padding-top: calc(var(--header) + var(--thread));
    transform-origin: 50% 0;
    pointer-events: none;
}
.season::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 1px;
    height: calc(var(--header) + var(--thread) + 13px);
    background: linear-gradient(transparent var(--header), var(--blush) calc(var(--header) + 12px));
}
.season__tag {
    position: relative;
    display: grid;
    gap: 3px;
    width: 100%;
    padding: 28px 10px 12px;
    border-radius: 0 28px 0 28px;
    background: var(--pearl);
    color: var(--ink);
    text-align: left;
    box-shadow: 0 26px 46px -18px rgb(0 0 0 / .65);
    pointer-events: auto;
    transition: border-radius .6s var(--ease);
}
/* The eyelet the thread passes through. */
.season__tag::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    width: 11px;
    height: 11px;
    margin-left: -5.5px;
    border-radius: 50%;
    background: var(--velvet-deep);
    box-shadow: 0 0 0 2px #cfa9b6;
}
.season__tag:hover { border-radius: 28px 0 28px 0; }
.season__photo { overflow: hidden; border-radius: 0 16px 0 16px; background: var(--shell); }
.season__photo img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; transition: transform 1s var(--ease); }
.season__tag:hover img { transform: scale(1.06); }
.season__name { padding: 8px 4px 0; font: 400 clamp(1.125rem, 1.4vw, 1.375rem)/1.15 var(--display); overflow-wrap: anywhere; }
.season__more { display: flex; align-items: center; gap: 8px; padding-inline: 4px; color: var(--velvet); font-size: .9375rem; font-weight: 500; }
.season__more .icon { width: 1.125rem; height: 1.125rem; transition: transform .5s var(--ease); }
.season__tag:hover .icon { transform: translateX(5px); }

.campaign {
    width: min(1120px, 100vw - 32px);
    max-width: none;
    max-height: calc(100dvh - 32px);
    margin: auto;
    padding: 0;
    border: 0;
    border-radius: 0 56px 0 56px;
    background: var(--pearl);
    color: var(--ink);
    overflow: hidden auto;
}
.campaign::backdrop { background: rgb(34 4 15 / .8); }
/* It opens outward from a petal. */
.campaign[open] { animation: unfold .9s var(--ease) both; }
.campaign[open]::backdrop { animation: appear .5s both; }
@keyframes unfold { from { clip-path: inset(32% 38% 32% 38% round 0 120px 0 120px); } to { clip-path: inset(0 round 0 56px 0 56px); } }
@keyframes appear { from { opacity: 0; } }
.campaign__rail { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
.campaign__rail:focus-visible { outline-offset: -4px; }
.campaign__slide { flex: 0 0 100%; scroll-snap-align: start; }
.campaign__photo { display: block; }
.campaign__photo img { width: 100%; }
.campaign__text {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 32px;
    padding: clamp(20px, 2.4vw, 32px) clamp(20px, 3vw, 48px) clamp(24px, 2.6vw, 36px) clamp(32px, 4vw, 56px);
}
.campaign__text > div { flex: 1 1 260px; }
.campaign__title { font: 400 clamp(1.75rem, 3vw, 2.5rem)/1.1 var(--display); }
.campaign__close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 0 18px 0 18px;
    background: var(--velvet-deep);
    color: #fff;
}
.campaign__close .icon { transition: transform .5s var(--ease); }
.campaign__close:hover .icon { transform: rotate(90deg); }

@keyframes rise { from { transform: translateY(12%); } }

/* ------------------------------------------------------------------ Home */

.section { padding-block: var(--gap) 0; }
.section__head {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 12px 32px;
    margin-bottom: clamp(28px, 4vw, 56px);
}

.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(32px, 4vw, 60px) clamp(12px, 1.8vw, 28px); }

.card__photo { position: relative; display: block; aspect-ratio: 4 / 5; background: var(--shell); }
.card__photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--ease), opacity .5s;
}
.card__photo, .bridal__photo { transition: border-radius .8s var(--ease); }
.card__second { opacity: 0; }
.card__photo .tag { position: absolute; left: 12px; top: 12px; }
.card__mark { position: absolute; inset: 0; margin: auto; width: 34%; color: #cfa9b6; }
.is-missing > img { display: none; }
[data-photo]:not(.is-missing) > .card__mark { visibility: hidden; }
.card__text { display: grid; grid-template-columns: 1fr auto; gap: 2px 14px; padding-top: 14px; }
.card__name { min-width: 0; font: 500 1.0625rem/1.35 var(--text); letter-spacing: 0; overflow-wrap: anywhere; }
.card__name a { transition: color .2s; }
.card__category { grid-column: 1 / -1; justify-self: start; color: var(--ink-soft); font-size: .9375rem; }
.card__category:hover, .card:hover .card__name a { color: var(--velvet); }

@media (hover: hover) {
    .card:hover .card__photo, .bridal__piece:hover .bridal__photo {
        border-radius: clamp(28px, 3.4vw, 56px) 0 clamp(28px, 3.4vw, 56px) 0;
    }
    .card:hover .card__photo img { transform: scale(1.05); }
    .card:hover .card__second { opacity: 1; }
}
@media (hover: none) { .card__second { display: none; } }

/* The case is true black so the crown photos have no visible edges. */
.case { margin-top: var(--gap); background: var(--case); color: #fff; overflow: hidden; }
.case__track {
    display: flex;
    align-items: center;
    gap: clamp(20px, 3vw, 56px);
    padding: clamp(56px, 8vw, 96px) var(--gutter);
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
}
.case__track::-webkit-scrollbar { display: none; }
.case__intro { flex: 0 0 min(76vw, 440px); scroll-snap-align: start; }
.case__intro h2 { font-size: clamp(2.75rem, 6vw, 6rem); }
.case__intro p { max-width: 34ch; margin: 22px 0 14px; color: #dccdd2; }
.case__intro .link { color: var(--blush); }
.case__item { flex: 0 0 min(74vw, 400px); scroll-snap-align: center; text-align: center; }
.case__item a { display: block; }
.case__photo { aspect-ratio: 4 / 5; }
/* The fade is on the photo itself, so no edge shows while it tilts. */
.case__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: contrast(1.3) brightness(.9);
    -webkit-mask-image: radial-gradient(closest-side, #000 58%, transparent 98%);
    mask-image: radial-gradient(closest-side, #000 58%, transparent 98%);
}
.case__item h3 { font: 400 clamp(1.375rem, 2vw, 1.875rem)/1.2 var(--display); transition: color .3s; }
.case__item:hover h3 { color: var(--blush); }
.case__item .price { justify-content: center; margin-top: 6px; color: #dccdd2; }

.case.is-pinned .case__track {
    width: max-content;
    height: 100vh;
    padding-block: var(--header) 24px;
    overflow: visible;
    scroll-snap-type: none;
}
.case.is-pinned .case__item { flex-basis: min(34vw, calc((100vh - 230px) * .8), 620px); }
.case.is-pinned .case__intro { flex-basis: min(38vw, 620px); }

/* Categories open like the petals of a fan. */
.fan { display: flex; gap: clamp(8px, .9vw, 14px); height: clamp(420px, 46vw, 680px); }
.fan__item {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
    border-radius: 0 40px 0 40px;
    background: var(--velvet-deep);
    transition: flex-grow .9s var(--ease);
}
.fan__item:first-child { flex-grow: 2.6; }
.fan:is(:hover, :focus-within) .fan__item { flex-grow: 1; }
.fan .fan__item:is(:hover, :focus-within) { flex-grow: 2.6; }
.fan__item a { display: block; height: 100%; }
.fan__item a:focus-visible { outline: 3px solid var(--blush); outline-offset: -8px; border-radius: inherit; }
.fan__item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.fan__item:hover img { transform: scale(1.04); }
.fan__item a::after { content: ''; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgb(20 2 9 / .82)); }
.fan__item span {
    position: absolute;
    left: 24px;
    right: 16px;
    bottom: 20px;
    z-index: 1;
    color: #fff;
    font: 400 clamp(1.25rem, 1.9vw, 2rem)/1.1 var(--display);
}

.bridal { margin-top: var(--gap); background: var(--shell); overflow: clip; }
.bridal__inner {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: clamp(16px, 2vw, 32px);
    align-items: center;
    padding-block: clamp(88px, 11vw, 180px);
}
.bridal__copy { grid-column: 1 / span 5; grid-row: 1; }
.bridal__copy h2 { font-size: clamp(2.5rem, 5.6vw, 5.5rem); }
.bridal__copy p { max-width: 40ch; margin: 24px 0 32px; }
.bridal__photo { aspect-ratio: 4 / 5; background: #fff; margin-bottom: 14px; }
.bridal__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.bridal__piece:hover img { transform: scale(1.04); }
.bridal__piece--1 { grid-column: 7 / span 6; grid-row: 1; }
.bridal__piece--2 { grid-column: 2 / span 4; grid-row: 2; margin-top: 48px; }
.bridal__piece--3 { grid-column: 8 / span 4; grid-row: 2; margin-top: 120px; }

.story {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: clamp(32px, 7vw, 120px);
    align-items: center;
    padding-block: var(--gap);
}
.story__photo { position: relative; aspect-ratio: 3 / 4; background: var(--velvet-night); }
.story__photo img { position: absolute; inset: -8% 0 auto; width: 100%; height: 116%; object-fit: cover; }
.story__text {
    margin: clamp(20px, 2.4vw, 36px) 0 clamp(28px, 3vw, 44px);
    font-size: clamp(1.25rem, 2.1vw, 1.9375rem);
    line-height: 1.45;
    text-wrap: pretty;
}

/* -------------------------------------------------- Listings and products */

.page-head { padding-block: clamp(20px, 2.6vw, 40px) clamp(28px, 3.6vw, 56px); }
.page-head--slim { padding-block: 14px 18px; }
.page-head__title { margin-top: 12px; font-size: clamp(2.75rem, 7.4vw, 7rem); overflow-wrap: anywhere; }
.page-head__intro { max-width: 58ch; margin-top: 16px; font-size: 1.1875rem; color: var(--ink-soft); }

.crumbs ol { display: flex; flex-wrap: wrap; column-gap: 10px; font-size: .9375rem; color: var(--ink-soft); }
.crumbs li + li::before { content: '/'; margin-right: 10px; opacity: .6; }
.crumbs li { display: flex; align-items: center; }
.crumbs a, .crumbs span { display: inline-block; padding-block: 8px; }
.crumbs a:hover { color: var(--velvet); text-decoration: underline; text-underline-offset: 4px; }

.listing__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    color: var(--ink-soft);
}
.listing__more { display: flex; justify-content: center; padding-top: clamp(40px, 5vw, 72px); }

.sort__menu { position: relative; color: var(--ink); }
.sort__menu summary {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    font-weight: 500;
    cursor: pointer;
    list-style: none;
}
.sort__menu summary::-webkit-details-marker { display: none; }
.sort__menu summary .icon { width: 1rem; height: 1rem; transition: transform .4s var(--ease); }
.sort__menu[open] summary .icon { transform: rotate(180deg); }
.sort__menu ul {
    position: absolute;
    right: 0;
    z-index: 5;
    min-width: 220px;
    padding: 8px;
    background: #fff;
    border-radius: 0 24px 0 24px;
    box-shadow: 0 24px 50px -20px rgb(61 10 32 / .4);
}
.sort__menu li a { display: block; padding: 10px 14px; border-radius: 0 12px 0 12px; }
.sort__menu li a:hover { background: var(--shell); }
.sort__menu li a[aria-current] { color: var(--velvet); font-weight: 600; }

.empty { display: grid; justify-items: center; align-content: center; gap: 20px; padding: 56px 16px; text-align: center; color: var(--ink-soft); }
.empty .petals { color: var(--velvet); }
.empty .button { margin-top: 4px; }
.drawer .empty { flex: 1; }

.product {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(28px, 5vw, 88px);
    align-items: start;
}
.gallery { position: sticky; top: 24px; display: grid; gap: 12px; }
.gallery__stage {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    background: var(--shell);
    view-transition-name: piece;
}
.gallery__stage::-webkit-scrollbar { display: none; }
.gallery__slide {
    position: relative;
    flex: 0 0 100%;
    aspect-ratio: 4 / 5;
    max-height: min(86vh, 900px);
    overflow: hidden;
    border-radius: inherit;
    scroll-snap-align: start;
}
.gallery__slide img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery__slide.is-zoomed img { transform: scale(1.9); }
.gallery__slide .card__mark { width: 22%; }
.gallery__thumbs { display: flex; flex-wrap: wrap; gap: 10px; }
.gallery__thumbs button {
    width: 72px;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 0 16px 0 16px;
    opacity: .6;
    transition: opacity .3s, box-shadow .3s;
}
.gallery__thumbs button:hover, .gallery__thumbs [aria-current="true"] { opacity: 1; }
.gallery__thumbs [aria-current="true"] { box-shadow: 0 0 0 2px var(--pearl), 0 0 0 4px var(--velvet); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }

.product__info { display: grid; gap: 22px; padding-top: clamp(0px, 3vw, 48px); }
.product__info h1 { font-size: clamp(2.5rem, 4.6vw, 4.5rem); overflow-wrap: anywhere; }
.product__price { display: flex; align-items: center; gap: 16px; font-size: 1.5rem; }
.product__price .tag--quiet { background: var(--shell); }
.product__summary { max-width: 52ch; }
.product__facts { border-top: 1px solid var(--line); }
.product__facts > div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: center; min-height: 50px; padding-block: 8px; border-bottom: 1px solid var(--line); }
.product__facts dt { color: var(--ink-soft); }
.product__facts dd { min-width: 0; overflow-wrap: anywhere; }
.product__facts a:hover { color: var(--velvet); }
.product__share { display: flex; gap: 4px; margin-left: -11px; }
.product__share a { display: grid; place-items: center; width: 44px; height: 34px; }
.product__details h2 { font-size: 1.75rem; margin-top: 8px; }

.buy { display: grid; gap: 18px; }
.buy__row { display: flex; align-items: end; gap: 12px; }
.buy__add { flex: 1; }
.buy__done { color: var(--velvet); font-weight: 500; }
.buy__done:empty { display: none; }
.buy__sold { padding: 16px 20px; background: var(--shell); border-radius: 0 20px 0 20px; }
.options { display: flex; flex-wrap: wrap; gap: 8px; }
.options legend { padding: 0 0 8px; font-weight: 500; }
.option { position: relative; }
.option input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.option label {
    display: grid;
    place-items: center;
    min-width: 48px;
    min-height: 44px;
    padding: 6px 16px;
    border-radius: 0 16px 0 16px;
    box-shadow: inset 0 0 0 1px #b898a4;
    transition: background-color .25s, color .25s;
}
.option input:hover + label { box-shadow: inset 0 0 0 1.5px var(--velvet); }
.option input:checked + label { background: var(--velvet); color: #fff; box-shadow: none; }
.option input:focus-visible + label { outline: 2px solid var(--velvet); outline-offset: 3px; }

/* ----------------------------------------------------- Forms and content */

.form { display: grid; gap: 20px; align-content: start; }
.form h2, .summary h2 { font-size: 2rem; }
.form--tinted, .summary { padding: clamp(24px, 3vw, 44px); background: var(--shell); border-radius: 0 48px 0 48px; }
.form .button { justify-self: start; }
.form a:not(.button) { text-decoration: underline; text-underline-offset: 4px; }
.form__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; }
.check { display: inline-flex; align-items: center; gap: 10px; }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--velvet); }

.field { display: grid; gap: 6px; }
.field label { font-weight: 500; }
.field input, .field select, .field textarea {
    width: 100%;
    min-height: 52px;
    padding: 12px 16px;
    border: 1px solid #b898a4;
    border-radius: 0 18px 0 18px;
    background: #fff;
    color: var(--ink);
    font: inherit;
}
.field select {
    appearance: none;
    padding-right: 44px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232a111b' stroke-width='1.5'%3E%3Cpath d='m6 9.500 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 18px;
}
.field textarea { resize: vertical; }
.field :is(input, select, textarea):focus { outline: 2px solid var(--velvet); outline-offset: 0; border-color: transparent; }
.field input:disabled { background: var(--shell); color: var(--ink-soft); }
.field__error { color: #a5123c; font-size: .9375rem; }
.field--inline select { width: 92px; }

.checkout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 88px); align-items: start; }
.summary { position: sticky; top: calc(var(--header) + 16px); display: grid; gap: 20px; }
.summary dl > div { display: flex; justify-content: space-between; gap: 20px; padding-block: 10px; border-bottom: 1px solid #dcc3cb; }
.summary dd { font-variant-numeric: tabular-nums; white-space: nowrap; }
.summary__total { font-size: 1.25rem; font-weight: 600; }
.summary__note { color: var(--ink-soft); }

.entry { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: clamp(32px, 5vw, 88px); }
.entry .form:only-child { max-width: 560px; }

.account { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(32px, 5vw, 88px); align-items: start; }
.account__menu, .account__menu [role="tablist"] { display: grid; justify-items: start; gap: 4px; }
.account__menu a, .account__menu button { min-height: 44px; display: inline-flex; align-items: center; color: var(--ink-soft); }
.account__menu :is(a, button):hover { color: var(--velvet); }
.account__menu [aria-selected="true"] { color: var(--velvet); font-weight: 600; }
.account__panel .form { max-width: 560px; }
.account__pages { display: flex; gap: 24px; padding-top: 24px; text-decoration: underline; text-underline-offset: 4px; }
.table-scroll { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; text-align: left; font-variant-numeric: tabular-nums; }
.table th, .table td { padding: 16px 20px 16px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table th { color: var(--ink-soft); font-weight: 500; }

.contact { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 88px); align-items: start; }
.contact__details {
    display: grid;
    justify-items: start;
    gap: 12px;
    padding: clamp(28px, 4vw, 60px);
    border-radius: 0 56px 0 56px;
    background: radial-gradient(90% 70% at 80% 0, #8a1c49, transparent 70%), var(--velvet-deep);
    color: #fff;
}
.contact__details h2 { font-size: 2rem; }
.contact__details address + h2 { margin-top: 20px; }
.contact__details address { max-width: 100%; overflow-wrap: anywhere; }
.contact__details address a { display: inline-block; padding-block: 6px; }
.contact__details address a:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact__details .button { margin-top: 16px; }

.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 110px); align-items: center; }
.about__photo { aspect-ratio: 3 / 4; background: var(--velvet-night); }
.about__photo img { width: 100%; height: 100%; object-fit: cover; }

.prose { overflow-wrap: anywhere; }
.prose > * { max-width: 68ch; }
.prose > * + * { margin-top: 1.1em; }
.prose--large { font-size: 1.1875rem; }
.prose :is(h2, h3, h4) { font: 400 1.75rem/1.2 var(--display); margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; list-style: disc; }
.prose ol { padding-left: 1.4em; list-style: decimal; }
.prose a:not(.button) { color: var(--velvet); text-decoration: underline; text-underline-offset: 4px; }
.prose table { display: block; overflow-x: auto; }
/* Text from the editor has hard line breaks that look ragged on phones. */
.prose--large br { display: none; }

/* ---------------------------------------------------------------- Footer */

.footer {
    position: relative;
    margin-top: var(--gap);
    padding-top: clamp(64px, 8vw, 120px);
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(60% 70% at 50% 110%, rgb(170 34 84 / .7), transparent 70%),
        linear-gradient(180deg, var(--velvet-deep), var(--velvet-night));
}
.is-home .footer { margin-top: 0; }
.footer__top {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) repeat(2, minmax(0, 1fr)) minmax(0, 1.3fr);
    gap: 48px clamp(24px, 4vw, 72px);
}
.footer__petals { width: 112px; color: var(--blush); }
.footer__line { max-width: 18ch; margin: 24px 0 20px; font: 400 clamp(1.5rem, 2.2vw, 2rem)/1.2 var(--display); }
.footer__col h2 { margin-bottom: 12px; font-size: 1.375rem; }
.footer__col li a, .footer__col address a { display: inline-block; padding-block: 5px; }
.footer__col a { color: #f4dce3; overflow-wrap: anywhere; }
.footer__col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.footer__col address { display: grid; gap: 4px; color: #f4dce3; }
.footer__social { display: flex; gap: 4px; margin: 14px 0 0 -11px; }
.footer__social a { display: grid !important; place-items: center; width: 44px; height: 44px; padding: 0 !important; }
.footer__social .icon { transition: transform .4s var(--ease); }
.footer__social a:hover .icon { transform: translateY(-3px); }

.subscribe { display: flex; max-width: 440px; border-bottom: 1.5px solid rgb(255 255 255 / .6); }
.subscribe:focus-within { border-color: #fff; }
.subscribe input {
    flex: 1;
    min-width: 0;
    min-height: 48px;
    padding: 8px 0;
    border: 0;
    border-radius: 0;
    background: none;
    color: #fff;
    font: inherit;
}
.subscribe input:focus { outline: none; }
.subscribe input::placeholder { color: #f4dce3; opacity: 1; }
.subscribe__button { padding-left: 16px; font-weight: 500; }
.subscribe__button:hover { color: var(--blush); }

.footer__wordmark {
    margin-top: clamp(24px, 4vw, 56px);
    font: 400 27.5vw/1 var(--display);
    letter-spacing: -.045em;
    text-align: center;
    white-space: nowrap;
    color: transparent;
    background: linear-gradient(180deg, rgb(246 188 203 / .3), rgb(246 188 203 / .04) 85%);
    -webkit-background-clip: text;
    background-clip: text;
    user-select: none;
}
.footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 4px 32px;
    padding-block: 10px 22px;
    padding-right: calc(var(--gutter) + 76px);
    color: #f4dce3;
    font-size: .9375rem;
}
.credit { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.credit .icon { width: 1.125rem; height: 1.125rem; transition: transform .5s var(--ease); }
.credit:hover { color: var(--blush); }
.credit:hover .icon { transform: rotate(-12deg) scale(1.2); }

.chat {
    position: fixed;
    right: clamp(14px, 2vw, 28px);
    bottom: clamp(14px, 2vw, 28px);
    z-index: var(--layer-chat);
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 0 24px 0 24px;
    background: #fff;
    color: var(--velvet);
    box-shadow: 0 12px 30px -8px rgb(34 4 15 / .5);
    transition: border-radius .5s var(--ease), background-color .3s, color .3s;
}
.chat:hover { border-radius: 24px 0 24px 0; background: var(--velvet); color: #fff; }
.chat .icon { width: 1.75rem; height: 1.75rem; }

.toasts { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: var(--layer-toast); display: grid; gap: 10px; max-width: 520px; }
.toast {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 8px 14px 22px;
    border-radius: 0 24px 0 24px;
    background: var(--velvet-night);
    color: #fff;
    box-shadow: 0 20px 50px -15px rgb(34 4 15 / .6);
    animation: toast .7s var(--ease) both;
}
.toast > :first-child { padding-block: 8px; overflow-wrap: anywhere; }
.toast a { text-decoration: underline; text-underline-offset: 4px; }
.toast button { display: grid; place-items: center; width: 44px; height: 44px; flex: none; }
@keyframes toast { from { transform: translateY(140%); } }

.oops {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 22px;
    min-height: 100vh;
    padding: 40px var(--gutter);
    text-align: center;
    color: #fff;
    background: radial-gradient(60% 50% at 50% 45%, #8a1c49, transparent 75%), var(--velvet-night);
}
.oops__logo { width: 150px; filter: brightness(0) invert(1); }
.oops .petals { color: var(--blush); }
.oops h1 { font-size: clamp(2.5rem, 7vw, 6rem); }
.oops__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* --------------------------------------------------------------- Screens */

@media (max-width: 1099px) {
    .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .footer__top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 1180px) {
    .hero__copy { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
    .hero__small { order: 1; max-width: none; text-wrap: balance; }
    .picker { order: 2; max-width: 100%; }
    .hero__actions { order: 3; justify-self: center; padding-right: 0; }
    .hero__big { font-size: min(13.4vw, 21svh); }
}

@media (max-width: 899px) {
    :root { --header: 68px; }
    .nav, .mega { display: none; }
    .header__burger { display: grid; }
    .header__bar { gap: 8px; }
    .header__logo img { width: 112px; }
    .product, .checkout, .contact, .about, .story { grid-template-columns: minmax(0, 1fr); }
    .gallery, .summary { position: static; }
    .product__info { padding-top: 0; }
    .account { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .account__menu, .account__menu [role="tablist"] { display: flex; flex-wrap: wrap; gap: 4px 24px; }
    .story__photo, .about__photo { max-width: 460px; }

    /* Phones and tablets swipe through the categories. */
    .fan {
        height: auto;
        margin-inline: calc(var(--gutter) * -1);
        padding-inline: var(--gutter);
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: var(--gutter);
        scrollbar-width: none;
    }
    .fan::-webkit-scrollbar { display: none; }
    .fan .fan__item, .fan .fan__item:is(:hover, :focus-within, :first-child) {
        flex: 0 0 min(64vw, 320px);
        aspect-ratio: 4 / 5;
        scroll-snap-align: start;
    }
    .fan__item span { font-size: 1.625rem; }

    .bridal__copy { grid-column: 1 / -1; }
    .bridal__piece--1 { grid-column: 1 / -1; grid-row: 2; margin-top: 56px; }
    .bridal__piece--2 { grid-column: 1 / span 6; grid-row: 3; }
    .bridal__piece--3 { grid-column: 7 / span 6; grid-row: 3; margin-top: 72px; }
}

@media (max-width: 699px) {
    .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .card__text { grid-template-columns: 1fr; padding-top: 10px; }
    .card__name { font-size: 1rem; }
    .header__account { display: none; }
    .search__form { flex-direction: column; align-items: stretch; }
    .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer__top > :last-child { grid-column: 1 / -1; }
    .line { grid-template-columns: 80px 1fr; }
    .lines--large .line { grid-template-columns: 84px 1fr; }
    .line__price { grid-column: 2; }
    .product__facts > div { grid-template-columns: 92px 1fr; }
}

@media (max-width: 699px) and (orientation: portrait) {
    .hero__big { display: grid; font-size: min(20.4vw, 13svh); line-height: .88; }
    .hero__small { max-width: 30ch; }
    .hero__copy { row-gap: 14px; padding-bottom: 20px; }
    /* Swipe the pieces edge to edge. */
    .picker { width: calc(100% + var(--gutter) * 2); max-width: none; margin-inline: calc(var(--gutter) * -1); }
    .picker__rail { flex: 1; gap: 0; padding-inline: var(--gutter) 0; overflow-x: auto; scrollbar-width: none; }
    .picker__rail::-webkit-scrollbar { display: none; }
    .picker__item { width: 80px; padding-top: 10px; }
    .picker__photo { width: 48px; height: 48px; }
    .season { --thread: 14px; right: 16px; width: 136px; }
    .season__tag { padding: 24px 8px 10px; border-radius: 0 22px 0 22px; }
    .campaign { border-radius: 0 36px 0 36px; }
}

/* Short phones: the tag shrinks to its name, so it doesn't cover the jewels. */
@media (max-width: 699px) and (max-height: 740px) and (orientation: portrait) {
    .season { width: 124px; }
    .season__photo, .season__more { display: none; }
    .season__tag { padding: 22px 8px 8px; text-align: center; }
    .season__name { padding-top: 0; font-size: 1rem; }
}

@media (max-width: 359px) {
    .header__logo img { width: 96px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-delay: 0s !important;
        transition-duration: .01ms !important;
        transition-delay: 0s !important;
    }
    @view-transition { navigation: none; }
}
