/* ==========================================================================
   Inner pages: shop, collections, product, not found
   ========================================================================== */

.page { padding: calc(var(--header-h) + clamp(2.5rem, 6vw, 5rem)) var(--gutter) clamp(4rem, 9vw, 8rem); min-height: 70vh; }
.page__title { font-size: var(--t-2xl); }
.page__lede { max-width: 40ch; margin-top: 1rem; color: var(--bark-soft); }
.lost { display: grid; gap: 1.5rem; align-content: center; justify-items: start; }

/* ---------- shop ---------- */

.shop-head { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(1rem, 2.4vw, 2.5rem); align-items: end; margin-bottom: clamp(1.25rem, 2.5vw, 2rem); }
/* the collection's name, bold (her wish, 2026-11-17); a medium weight at a sturdier optical size, since Bodoni's 600 at
   this size turns into heavy stems against hairlines (she didn't like that) */
.shop-head .page__title { grid-column: 1 / span 8; font-weight: 500; font-variation-settings: 'opsz' 30; letter-spacing: -0.005em; }
.shop-head__count { grid-column: 9 / -1; justify-self: end; font-family: var(--display); font-style: italic; color: var(--bark-soft); }
/* a collection's cover (shop.js showCover, ui/color-wall.js): "The Flowing Color Wall". Each color hangs as its own
   length of draped fabric, made from its product photo, straight on the page (the dark cherry wall behind it was
   taken away at her wish, 2026-11-06), the names in the page's own dark ink. Full width of the screen. */
.shop-cover { margin: 0 0 clamp(1.5rem, 3vw, 2.5rem); }
body:has(.color-wall) { overflow-x: clip; }
.color-wall { position: relative; width: 100vw; margin-left: calc(50% - 50vw); padding: 0 clamp(1rem, 4vw, 4rem) clamp(1.8rem, 3vw, 2.8rem); overflow: hidden; }
.color-wall__light { display: none; }
.color-wall__row { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); max-width: 80rem; margin: 0 auto; }
.color-wall__item { position: relative; min-width: 0; }
.color-wall__item:nth-child(even) { z-index: 1; }
/* neighbouring lengths overlap a little, the way fabric hangs on a crowded wall */
/* each length's shadow is drawn inside its own SVG, following the hem (ui/color-wall.js) */
.wall-fabric { position: relative; display: block; margin-inline: -5%; color: inherit; text-decoration: none;
  outline-offset: 4px; isolation: isolate; }
.wall-fabric__svg { display: block; width: 100%; height: auto; aspect-ratio: 120 / 440; overflow: visible; }
.wall-fabric__name { display: block; margin-top: 0.75rem; text-align: center; font-family: var(--display); font-style: italic; font-size: clamp(0.82rem, 1.2vw, 1.02rem);
  letter-spacing: 0.02em; color: var(--bark); transition: color 0.3s; }
.wall-fabric:hover .wall-fabric__name, .wall-fabric:focus-visible .wall-fabric__name { color: var(--cherry); }
/* hidden until the photos are in (color-wall.js), then the lengths settle in together, a touch apart */
.color-wall.is-loading .color-wall__item { opacity: 0; }
.motion-ok .color-wall:not(.is-loading) .color-wall__item { animation: wall-hang 0.9s calc(60ms * var(--k, 0)) var(--ease-out) both; }
.motion-ok .color-wall__item:nth-child(1) { --k: 0; } .motion-ok .color-wall__item:nth-child(2) { --k: 1; } .motion-ok .color-wall__item:nth-child(3) { --k: 2; }
.motion-ok .color-wall__item:nth-child(4) { --k: 3; } .motion-ok .color-wall__item:nth-child(5) { --k: 4; } .motion-ok .color-wall__item:nth-child(6) { --k: 5; }
.motion-ok .color-wall__item:nth-child(7) { --k: 6; } .motion-ok .color-wall__item:nth-child(8) { --k: 7; }
@keyframes wall-hang { from { opacity: 0; transform: translateY(-14px); } }
.color-wall__item { transition: opacity 0.5s ease; }
@media (max-width: 700px) {
/* on a phone all eight fit across in one row: slimmer, a little taller, the names running up beneath each */  .color-wall { padding: 0 0.6rem 1.4rem; }  .wall-fabric { margin-inline: -3%; }  .wall-fabric__svg { aspect-ratio: 120 / 520; }  .wall-fabric__name { margin: 0.55rem auto 0; writing-mode: vertical-rl; rotate: 180deg; font-size: 0.74rem; line-height: 1; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) { .color-wall__item { animation: none; } }
/* a collection's "cinema banner" (shop.js filmHtml; Crinkle Organza, her pick 2026-11-06): her film across the full
   width at the very top of the page, right under the header, looping silently, with the collection's name in bold
   (her wish) and a short line over a soft dark fade at the bottom. On a phone it fills most of the screen. */
body:has(.cinema) { overflow-x: clip; }
.shop-cover--film { margin-top: calc(-1 * clamp(2.5rem, 6vw, 5rem)); margin-bottom: clamp(1.2rem, 2.6vw, 2rem); }
.cinema { position: relative; width: 100vw; margin-left: calc(50% - 50vw); height: min(72vh, 44rem); overflow: hidden; background: #2A161D; }
.cinema__video { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 50%; }
/* the collection's name and line sit just under the photo, clear of the hijabs (her wish, 2026-11-17: on the photo
   they covered them), in the same calm bold as the other collection headings */
.cinema__text { padding: clamp(0.4rem, 1vw, 0.8rem) 0 0; color: var(--bark); }
.cinema__title { margin: 0; font-family: var(--display); font-weight: 500; font-variation-settings: 'opsz' 30; font-size: clamp(2.4rem, 5.6vw, 4.6rem); line-height: 1; letter-spacing: -0.005em; }
.cinema__caption { margin: 0.45rem 0 0; font-family: var(--display); font-style: italic; font-size: clamp(1rem, 1.6vw, 1.25rem); color: var(--bark-soft); }

/* each hijab's own name pops up just under it while the pointer is over it (her wish, 2026-11-07: "the hijabs alone
   under itself"). In the group photo of a banner, every hijab is an invisible link laid over its own length (placed by
   shop.js to match the photo), and its name rises up in the strip just beneath the banner. On the Textured Linen wall
   the names under the lengths wait hidden until their length is pointed at. Phones have no hover, so there the wall's
   names stay shown, and tapping a hijab in the photo opens it. */
.cinema__zone { position: absolute; top: 0; bottom: 0; z-index: 2; display: block; outline-offset: -3px; transition: background-color 0.3s ease; }
.cinema__zone:hover, .cinema__zone:focus-visible { background-color: rgba(255, 244, 232, 0.12); }
.cinema__names { position: relative; width: 100vw; margin-left: calc(50% - 50vw); height: 2.6rem; overflow: hidden; pointer-events: none; }
.cinema__name, .wall-fabric__name { transition: opacity 0.3s ease, transform 0.55s cubic-bezier(0.22, 1.5, 0.36, 1), color 0.3s ease; }
.cinema__name { position: absolute; top: 0.55rem; white-space: nowrap; font-family: var(--display); font-style: italic; font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: var(--cherry); opacity: 0; transform: translate(-50%, 0.5em) scale(0.85); }
.cinema__name.is-on { opacity: 1; transform: translate(-50%, 0); }
@media (hover: hover) {
  .wall-fabric__name { opacity: 0; transform: translateY(0.6em) scale(0.85); }
  .wall-fabric:hover .wall-fabric__name, .wall-fabric:focus-visible .wall-fabric__name { opacity: 1; transform: none; }
}
@media (hover: none) { .cinema__names:not(.cinema__names--bloom) { display: none; } }
/* Crinkle Tie-Dye (2026-11-10): each girl's flower draws itself in gold over her, line by line, with a soft wash of
   her dye colour glowing behind it; they bloom in turn by themselves, and the one you point at blooms at once
   (shop.js wireZones places them over each girl in the photo). Less motion: no drawing, only a gentle fade. */
.cinema__bloom, .cinema__wash { position: absolute; z-index: 2; pointer-events: none; transform: translate(-50%, -50%); }
.cinema__wash { aspect-ratio: 1; border-radius: 50%; opacity: 0; mix-blend-mode: soft-light;
  background: radial-gradient(circle, var(--dye) 0%, color-mix(in srgb, var(--dye) 45%, transparent) 38%, transparent 70%);
  transition: opacity 1.2s ease, transform 1.6s cubic-bezier(0.22, 1, 0.36, 1); transform: translate(-50%, -50%) scale(0.6); }
.cinema__wash.is-on { opacity: 0.9; transform: translate(-50%, -50%) scale(1); }
.cinema__bloom { color: #F4D58A; opacity: 0; transition: opacity 0.6s ease;
  filter: drop-shadow(0 0 6px rgba(255, 216, 130, 0.85)) drop-shadow(0 0 18px rgba(255, 196, 92, 0.45)); }
.cinema__bloom svg { display: block; width: 100%; height: auto; max-width: none; stroke-width: 1.4; }
.cinema__bloom path, .cinema__bloom circle, .cinema__bloom ellipse { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s cubic-bezier(0.45, 0, 0.2, 1); }
.cinema__bloom .vein { stroke-width: 0.8; opacity: 0.7; }
.cinema__bloom.is-on { opacity: 1; }
.cinema__bloom.is-on path, .cinema__bloom.is-on circle, .cinema__bloom.is-on ellipse { stroke-dashoffset: 0; }
@media (prefers-reduced-motion: reduce) {
  .cinema__bloom path, .cinema__bloom circle, .cinema__bloom ellipse { stroke-dashoffset: 0; transition: none; }
}
/* Dip-Dye Modal's banner effects (2026-11-21, shop.js FX): one girl at a time, her name written in the air above her.
   Sizes are in the photo's own pixels (6000 wide). Less motion: nothing rises or moves, only a gentle fade. */
.cinema__fx { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
/* (the effect itself shows which girl is pointed at, so the pale band over her length would only get in the way) */
.cinema:has(.cinema__fx) .cinema__zone:hover, .cinema:has(.cinema__fx) .cinema__zone:focus-visible { background-color: transparent; }
.fx { opacity: 0; transition: opacity 1.1s ease; }
.fx.is-on { opacity: 1; }
/* her name, centred right above her hijab, written in from left to right as the mask slides over (Pinyon Script was
   tried for it and rejected, 2026-11-21: "no ew") */
.fx__name { font-family: var(--display); font-style: italic; font-weight: 500; font-size: 210px; text-anchor: middle;
  fill: #FFF6EA; filter: drop-shadow(0 0 22px rgba(18, 10, 6, 0.65)); opacity: 0; transition: opacity 0.6s ease; }
.fx.is-on .fx__name { opacity: 1; transition: none; }
.fx__wipe { transform: translateX(-1750px); transition: transform 0s 0.6s; }
.fx.is-on .fx__wipe { transform: none; transition: transform 1.9s cubic-bezier(0.45, 0.05, 0.25, 1) 0.35s; }
/* scent: a wisp in her dye colour rises out of her hijab, three soft strands drawn upward through a haze */
.scent__rise { transition: transform 0s 1.1s; }
.fx.is-on .scent__rise { transform: translateY(-50px); transition: transform 6s cubic-bezier(0.2, 0.6, 0.3, 1); }
.scent__wisp { fill: none; stroke-linecap: round; filter: url(#scent-haze);
  stroke-dasharray: 1; stroke-dashoffset: 1; mix-blend-mode: screen; transition: stroke-dashoffset 0s 1.1s; }
.fx.is-on .scent__wisp { stroke-dashoffset: 0; transition: stroke-dashoffset 2.6s cubic-bezier(0.35, 0, 0.2, 1); }
.scent__wisp--0 { stroke-width: 30px; opacity: 0.8; }
.scent__wisp--1 { stroke-width: 44px; }
.scent__wisp--2 { stroke-width: 22px; opacity: 0.7; }
.scent__wisp--3 { stroke-width: 150px; opacity: 0.4; filter: url(#scent-haze-wide); }
.fx.is-on .scent__wisp--0 { transition-delay: 0.25s; }
.fx.is-on .scent__wisp--2 { transition-delay: 0.5s; }
.fx--scent.is-on .fx__wipe { transition-delay: 1.5s; }
/* spotlight: the meadow sinks into dusk around her while she stays in the sun */
.fx__dusk { fill: #0f0a06; opacity: 0.62; }
.fx--spotlight { transition: opacity 1.3s ease; }
/* colour pop and soft focus: a black-and-white or soft copy of the photo over everything but her. Hidden copies are
   not drawn at all (visibility), so only one is ever filtered at a time */
.fx--colour, .fx--focus { visibility: hidden; transition: opacity 1.2s ease, visibility 0s 1.2s; }
.fx--colour.is-on, .fx--focus.is-on { visibility: visible; transition: opacity 1.2s ease; }
/* swatch card: her own product photo and name on a little card, rising into place over her head */
.swatch { translate: 0 50px; transition: translate 0s 1.1s; }
.fx.is-on .swatch { translate: 0 0; transition: translate 1.2s cubic-bezier(0.22, 1, 0.36, 1); }
.swatch__card { fill: #FBF6EE; filter: drop-shadow(0 22px 30px rgba(0, 0, 0, 0.4)); }
.swatch__name { font-family: var(--display); font-style: italic; font-weight: 500; font-size: 92px; text-anchor: middle; fill: #2b1a14; }
.swatch__price { font-family: var(--sans); font-size: 52px; letter-spacing: 0.08em; text-anchor: middle; fill: #6b4e44; }
/* fireflies in her colour, drifting and glowing around her */
.fx__fly { fill: color-mix(in srgb, var(--dye) 30%, #FFF3C0); transform-box: fill-box; }
.fx.is-on .fx__fly { animation: fx-fly var(--d) ease-in-out var(--t) infinite alternate, fx-blink calc(var(--d) * 0.7) ease-in-out var(--t) infinite alternate; }
@keyframes fx-fly { to { transform: translate(var(--dx), var(--dy)); } }
@keyframes fx-blink { 0%, 30% { opacity: 1; } 100% { opacity: 0.25; } }
/* blotter: a perfume tester strip over her, her dye wicking up it from the tip */
.blotter__paper { fill: #FBF6EE; filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.35)); }
.blotter__dye { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0.2); transition: transform 0s 1.1s; }
.fx.is-on .blotter__dye { transform: none; transition: transform 2.8s cubic-bezier(0.3, 0, 0.2, 1) 0.4s; }
.fx--blotter .blotter { translate: 0 60px; transition: translate 0s 1.1s; }
.fx--blotter.is-on .blotter { translate: 0 0; transition: translate 1.4s cubic-bezier(0.22, 1, 0.36, 1); }
@media (prefers-reduced-motion: reduce) {
  .scent__wisp, .fx.is-on .scent__wisp { stroke-dashoffset: 0; transition: none; }
  .fx.is-on .scent__rise { transform: none; }
  .fx.is-on .fx__fly { animation: none; }
  .fx__wipe, .fx.is-on .fx__wipe { transform: none; transition: none; }
  .blotter__dye, .fx.is-on .blotter__dye { transform: none; transition: none; }
  .fx--blotter .blotter { translate: none; }
}
/* a photograph in the banner stays still (her choice, 2026-11-06), centred. On a phone the banner is a wide band
   rather than most of the screen, so every color in the photograph still shows across it. */
.cinema__photo { object-position: 50% 50%; }
@media (max-width: 700px) { .cinema { height: 74svh; } .cinema:has(.cinema__photo) { height: 84vw; } }
.filters {
  position: sticky; top: var(--header-h); z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem;
  margin: 0 calc(var(--gutter) * -1) clamp(1.5rem, 3vw, 2.25rem); padding: 0.75rem var(--gutter);
  background: color-mix(in srgb, var(--lichen) 94%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-block: 1px solid var(--rule);
}
.filters__search { display: flex; align-items: center; gap: 0.5rem; flex: 1 1 14rem; max-width: 22rem; }
.filters__search input {
  width: 100%; min-height: 44px; padding: 0 0.25rem; border: 0; border-bottom: 1px solid var(--bark); background: none;
  font-family: var(--display); font-size: var(--t-md);
}
.filters__search input::placeholder { color: var(--bark-soft); font-style: italic; }
.filters__search input:focus-visible { outline: none; border-bottom-width: 2px; }
.filters__chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 0.9rem; border: 1px solid var(--rule);
  background: none; font-size: var(--t-sm); white-space: nowrap;
  font-weight: 500; letter-spacing: 0.02em; /* collection names in bold (her wish, 2026-11-17), at medium: semibold looked cramped */
}
.chip[aria-pressed="true"] { background: var(--cherry); color: var(--ivory); border-color: var(--cherry); }
.chip:hover:not([aria-pressed="true"]) { border-color: var(--cherry); color: var(--cherry); }
.filters__end { display: flex; align-items: center; gap: 1.25rem; margin-left: auto; }
.toggle { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; font-size: var(--t-sm); cursor: pointer; }
.toggle input { width: 1.1rem; height: 1.1rem; accent-color: var(--cherry); }
.select { display: inline-flex; align-items: center; gap: 0.5rem; font-size: var(--t-sm); }
.select select { min-height: 44px; padding: 0 0.5rem; border: 1px solid var(--rule); background: transparent; }

.index-grid { --tile-gap: clamp(1rem, 2.6vw, 2.75rem); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--tile-gap); row-gap: clamp(1.75rem, 3vw, 2.5rem); align-items: start; }
.index-grid .state { grid-column: 1 / -1; }

/* every two rows, one of the hijabs as it was worn in the forest, across the whole grid */
.worn {
  grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); align-items: center;
  gap: clamp(1.25rem, 3vw, 2.75rem); margin-block: 0;
  padding: clamp(1rem, 2.4vw, 2rem); background: var(--paper);
}
.worn:nth-of-type(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
.worn:nth-of-type(even) .worn__media { order: 2; }
.worn__media { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--lichen); }
.worn__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.worn__media:hover img { transform: scale(1.03); }
.worn__text { max-width: 30rem; }
.worn__kicker { font-size: var(--t-xs); letter-spacing: 0.32em; text-transform: uppercase; color: var(--cherry); }
.worn__name { font-family: var(--display); font-weight: 400; font-size: var(--t-xl); line-height: 1.05; margin: 0.6rem 0 1rem; }
.worn__note { font-family: var(--display); font-style: italic; font-size: var(--t-md); line-height: 1.45; color: var(--bark-soft); margin-bottom: 1.6rem; }

@media (max-width: 900px) {
  .shop-head .page__title, .shop-head__count { grid-column: 1 / -1; justify-self: start; }
  .index-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .filters { position: static; }
  .filters__end { margin-left: 0; width: 100%; justify-content: space-between; }
}
@media (max-width: 700px) {
  .worn, .worn:nth-of-type(even) { grid-template-columns: minmax(0, 1fr); }
  .worn:nth-of-type(even) .worn__media { order: 0; }
}
@media (max-width: 560px) {
  .filters__chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; width: calc(100% + var(--gutter) * 2); }
}

/* ---------- collections ---------- */

/* "You've found us": the mirror photograph from the forest, exactly one screen tall, with fireflies
   drifting through the trees. On wide screens the whole photograph fills the height at the right and
   melts into the dark on its left, where the words sit; on phones the words sit above it. The heads
   are never cropped. Runs under the header to the page edges. */
.col-hero {
  position: relative; isolation: isolate; overflow: hidden; color: var(--ivory); background: var(--understory);
  display: grid; justify-items: start; align-items: center; text-align: left;
  height: 100vh; height: 100svh; min-height: 30rem;
  margin: calc(-1 * (var(--header-h) + clamp(2.5rem, 6vw, 5rem))) calc(var(--gutter) * -1) 0;
  padding: var(--header-h) var(--gutter) clamp(2.5rem, 6vw, 5rem);
}
.col-hero__photo { position: absolute; inset: var(--header-h) 0 0; z-index: 0; margin: 0; }
.col-hero__photo picture { display: contents; }
.col-hero__photo img {
  position: absolute; top: 0; height: 100%; width: auto; max-width: none;
  /* at the right, but never reaching under the words */
  left: max(calc(100% - (100svh - var(--header-h)) * 1.5), 12vw);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 14%); mask-image: linear-gradient(to right, transparent, #000 14%);
}
.col-hero__photo::after { content: ""; position: absolute; inset: 0; pointer-events: none; background:
    linear-gradient(90deg, #0d100b 0%, #0d100b 14%, rgba(13, 16, 11, 0.82) 24%, rgba(13, 16, 11, 0.35) 42%, transparent 58%),
    radial-gradient(ellipse at 62% 50%, transparent 50%, rgba(8, 10, 6, 0.6) 100%); }
.col-hero__fireflies { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.col-hero__text { position: relative; z-index: 3; max-width: 30rem; }
.col-hero__title { font-size: clamp(3rem, 6.4vw, 5.8rem); line-height: 1.02; font-weight: 400; font-style: italic; letter-spacing: 0.01em; margin: 0 0 0.9rem;
  color: var(--ivory); text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45); }
.col-hero__lede { font-family: var(--display); font-size: clamp(1.05rem, 1.6vw, 1.35rem); letter-spacing: 0.02em;
  color: rgba(240, 236, 225, 0.88); text-shadow: 0 1px 14px rgba(0, 0, 0, 0.5); }
.col-hero__cta { display: inline-flex; align-items: center; gap: 0.6rem; margin-top: clamp(1.8rem, 3.5vw, 2.6rem); padding: 0.85rem 1.6rem;
  border: 1px solid rgba(240, 236, 225, 0.55); color: var(--ivory); text-decoration: none; font-size: var(--t-xs); letter-spacing: 0.32em; text-transform: uppercase;
  background: rgba(10, 12, 8, 0.12); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); transition: background 0.4s ease, border-color 0.4s ease; }
.col-hero__cta:hover { background: rgba(240, 236, 225, 0.12); border-color: var(--ivory); }
/* phones held upright: the words on dark forest above, the photograph below */
@media (max-width: 760px) and (max-aspect-ratio: 4/5) {
  .col-hero { justify-items: center; align-items: start; text-align: center; padding-top: calc(var(--header-h) + 1.75rem); }
  .col-hero__br { display: none; }
  .col-hero__photo { inset: 31% 0 0; }
  .col-hero__photo img { position: static; width: 100%; height: 100%; object-fit: cover; object-position: 50% 8%; -webkit-mask-image: none; mask-image: none; }
  .col-hero__photo::after { background:
      linear-gradient(to bottom, var(--understory), rgba(26, 33, 23, 0.55) 14%, transparent 34%),
      radial-gradient(ellipse at 50% 60%, transparent 55%, rgba(8, 10, 6, 0.6) 100%); }
  .col-hero__text { max-width: none; }
  .col-hero__title { font-size: clamp(2.5rem, 11vw, 3.4rem); }
  .col-hero__cta { margin-top: 1.25rem; }
}



.col-list { border-top: 1px solid var(--rule); margin-top: clamp(2.5rem, 5vw, 4rem); }
.col-row { border-bottom: 1px solid var(--rule); }
.col-row a, .col-row__inner {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1rem 2rem;
  padding: clamp(1.25rem, 3vw, 2.25rem) 0; text-decoration: none;
}
.col-row__name { font-family: var(--display); font-weight: 500; font-variation-settings: 'opsz' 30; font-size: var(--t-2xl); line-height: 1; transition: letter-spacing 0.6s var(--ease-out); }
.col-row a:hover .col-row__name, .col-row a:focus-visible .col-row__name { font-style: italic; }
.col-row__meta { display: flex; align-items: center; gap: 1.5rem; }
.col-row__count { font-size: var(--t-sm); color: var(--bark-soft); white-space: nowrap; }
.col-row--soon .col-row__name { color: var(--bark-soft); font-style: italic; }
.col-row--soon .col-row__count { font-family: var(--display); font-style: italic; letter-spacing: 0.04em; }
.col-row__thumbs { display: flex; }
.col-row__thumbs > * { position: relative; width: clamp(2.75rem, 5vw, 4.5rem); aspect-ratio: 4 / 5; margin-left: -0.75rem; background: var(--paper); border: 2px solid var(--lichen); overflow: hidden; }
.col-row__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.col-row__thumbs .photo-slot { outline: 0; }
.col-row__thumbs .photo-slot__label { display: none; }
.col-row__thumbs .photo-slot__drawing { width: 70%; }
@media (max-width: 600px) {
  .col-row a, .col-row__inner { grid-template-columns: 1fr; }
  .col-row__thumbs { display: none; }
}

/* ---------- product ---------- */

.pdp { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 6rem); align-items: start; }
/* the photographs stay in place while the details beside them scroll; the photo is sized to fit the screen */
.pdp__gallery { position: sticky; top: calc(var(--header-h) + 1.5rem); display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 1rem; align-items: start; }
.pdp__gallery--single { grid-template-columns: minmax(0, 1fr); }
.pdp__thumbs { display: grid; gap: 0.6rem; position: sticky; top: calc(var(--header-h) + 1.5rem); }
.pdp__thumb { position: relative; display: block; width: 100%; aspect-ratio: 3 / 4; padding: 0; border: 1px solid transparent; background: var(--paper); overflow: hidden; }
.pdp__thumb img { width: 100%; height: 100%; object-fit: cover; }
.pdp__thumb[aria-current="true"] { border-color: var(--cherry); }
.pdp__thumb[aria-current="true"]::after { content: ""; position: absolute; inset: 3px; outline: 1px solid var(--lichen); }

.pdp__stage { position: relative; max-width: calc((100svh - var(--header-h) - 5rem) * 0.75); }
.pdp__strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: var(--paper); }
.pdp__strip::-webkit-scrollbar { display: none; }
.pdp__frame { position: relative; flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 3 / 4; margin: 0; padding: 0; border: 0; background: var(--paper); cursor: zoom-in; }
.pdp__frame img { width: 100%; height: 100%; object-fit: contain; }
.pdp__frame .photo-slot { cursor: default; }
.pdp__counter { position: absolute; right: 0.75rem; bottom: 0.75rem; padding: 0.15rem 0.6rem; background: var(--paper); font-size: var(--t-xs); }
.pdp__hint { margin-top: 0.6rem; font-size: var(--t-xs); color: var(--bark-soft); }
.pdp__gallery:not(.pdp__gallery--single) .pdp__hint { grid-column: 2; }

.pdp__info { display: flex; flex-direction: column; gap: 1.1rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; font-size: var(--t-xs); color: var(--bark-soft); }
.crumbs a { color: var(--bark-soft); }
.crumbs li + li::before { content: "/"; margin-right: 0.5rem; }
.pdp__name { font-family: var(--display); font-weight: 400; font-size: clamp(2.8rem, 5.6vw, 5.5rem); line-height: 0.96; letter-spacing: -0.015em; }
.pdp__kind { font-size: var(--t-sm); color: var(--bark-soft); }
.pdp__priceline { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-block: 0.9rem; border-block: 1px solid var(--rule); }
.pdp__price { font-family: var(--display); font-size: var(--t-lg); color: var(--cherry); }
.pdp__price .price-was { font-size: var(--t-md); margin-left: 0.4rem; }
.pdp__colour { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; font-size: var(--t-sm); }
.pdp__swatches { display: flex; gap: 0.35rem; }
.pdp__swatches li { width: 1.5rem; height: 1.5rem; border: 1px solid var(--rule); }
/* the other colors of a Textured hijab (product.js showColors): round fabric swatches under the price, each
   cropped from that hijab's own photo, the current one ringed in cherry */
.pdp-colors[hidden] { display: none; }
.pdp-colors__head { margin: 0 0 0.7rem; font-size: 0.7rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--bark-soft); }
.pdp-colors__head span { margin-left: 0.6rem; font-family: var(--display); font-style: italic; font-size: 1.05rem; letter-spacing: 0.01em; text-transform: none; color: var(--cherry); }
.pdp-colors__row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.pdp-colors__item { display: block; color: inherit; text-decoration: none; }
.pdp-colors__chip { position: relative; display: block; width: 2.9rem; height: 2.9rem; overflow: hidden; border-radius: 50%; background: var(--paper);
  box-shadow: 0 0 0 1px var(--rule); transition: box-shadow 0.25s; }
.pdp-colors__item.is-current .pdp-colors__chip { box-shadow: 0 0 0 2px var(--paper), 0 0 0 3.5px var(--cherry); }
.pdp-colors__item:not(.is-current):hover .pdp-colors__chip { box-shadow: 0 0 0 2px var(--paper), 0 0 0 3.5px var(--rule); }
/* the photos are split: plain backdrop on the left, fabric on the right; the picture is enlarged and pinned to the
   right so only fabric shows */
.pdp-colors__chip img { position: absolute; top: 50%; right: 0; display: block; width: auto; max-width: none; height: 250%; translate: 0 -50%; transition: transform 0.5s var(--ease-out); }
.pdp-colors__item:hover .pdp-colors__chip img, .pdp-colors__item:focus-visible .pdp-colors__chip img { transform: scale(1.08); }
.pdp__form { display: grid; gap: 1.1rem; }
.pdp__buy { display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; align-items: stretch; }
.pdp__buy .qty { margin: 0; }
.pdp__note { font-size: var(--t-xs); color: var(--bark-soft); }
.pdp__desc { max-width: 38rem; font-family: var(--ui); font-size: var(--t-base); line-height: 1.75; color: var(--bark); }
.pdp__desc strong { font-weight: 600; }
.pdp__desc p + p { margin-top: 0.9em; }
.pdp__dev { padding: 0.9rem 1rem; border: 1px dashed var(--rule); font-size: var(--t-sm); color: var(--bark-soft); }
/* Details / Fit & styling / Fabric / Care: four little cards that lift towards you under the pointer */
.tabs { margin-top: 0.25rem; container-type: inline-size; }
.tabs__strip { display: flex; gap: 0.4rem; padding: 0.5rem 0 0; }
.tabs__tab {
  position: relative; flex: 1 1 auto; padding: 0.7rem 0.4rem; border: 1px solid var(--rule); white-space: nowrap;
  background: var(--paper); color: var(--bark); font-family: var(--ui); font-size: var(--t-xs); letter-spacing: 0.02em;
  cursor: pointer; transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), background-color 0.25s, color 0.25s;
}
.tabs__tab[aria-selected="true"] { background: var(--cherry); border-color: var(--cherry); color: var(--ivory); }
@media (hover: hover) {
  .tabs__tab:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 10px 18px -10px rgba(42, 22, 29, 0.55); z-index: 1; }
}
.tabs__tab:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.tabs__panel { max-width: 38rem; margin-top: 1rem; padding: 1.25rem 1.35rem 1.4rem; border: 1px solid var(--rule); background: var(--paper); line-height: 1.65; animation: tab-in 0.4s var(--ease-out); }
.tabs__panel:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.tabs__panel > * + * { margin-top: 0.8em; }
.tabs__panel h3 { font-family: var(--display); font-size: 1.1rem; font-weight: 600; color: var(--cherry); }
.tabs__panel h3 + p { margin-top: 0.3em; }
.tabs__panel > p + h3 { margin-top: 1.2em; }
.tabs__facts > div { display: grid; grid-template-columns: minmax(6.5rem, 8.5rem) 1fr; gap: 1rem; padding: 0.55rem 0; border-bottom: 1px solid var(--rule); }
.tabs__facts dt { font-weight: 600; }
.tabs__list, .tabs__steps { padding-left: 1.2rem; }
.tabs__list { list-style: disc; }
.tabs__steps { list-style: decimal; }
.tabs__list li + li, .tabs__steps li + li { margin-top: 0.5em; }
.tabs__list li::marker, .tabs__steps li::marker { color: var(--wine); }
.tabs__links { font-size: var(--t-sm); }
.tabs__panel a { text-decoration: underline; text-underline-offset: 3px; }
@keyframes tab-in { from { opacity: 0; transform: translateY(6px); } }
/* wide columns get roomier tabs; narrow ones (phones) set the six tabs out as two even rows of three */
@container (min-width: 560px) { .tabs__tab { font-size: var(--t-sm); padding-inline: 0.6rem; } }
@container (max-width: 400px) {
  .tabs__strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.3rem; }
  .tabs__tab { padding: 0.7rem 0.3rem; font-size: 0.8rem; }
}
@media (prefers-reduced-motion: reduce) { .tabs__tab, .tabs__panel { transition: none; animation: none; } .tabs__tab:hover { transform: none; } }

.related { margin-top: clamp(5rem, 10vw, 9rem); }
.related__title { font-family: var(--display); font-weight: 400; font-size: var(--t-xl); margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.related__grid { --tile-gap: clamp(1rem, 2.4vw, 2.5rem); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--tile-gap); align-items: start; }
.related__grid > .tile:nth-child(even) { margin-top: 4vw; --ratio: 2 / 3; }

.pdp-skeleton { display: grid; grid-template-columns: 7fr 5fr; gap: 4rem; }
.pdp-skeleton > div { aspect-ratio: 3 / 4; background: var(--paper); }
.pdp-skeleton > div + div { aspect-ratio: auto; height: 20rem; background: linear-gradient(var(--paper) 0 3rem, transparent 3rem 4.5rem, var(--paper) 4.5rem 6rem, transparent 6rem); }

@media (max-width: 900px) {
  .pdp { grid-template-columns: 1fr; }
  .pdp__gallery { grid-template-columns: 1fr; margin-inline: calc(var(--gutter) * -1); }
  .pdp__thumbs { position: static; grid-row: 2; display: flex; gap: 0.5rem; overflow-x: auto; padding-inline: var(--gutter); }
  .pdp__thumb { flex: 0 0 3.75rem; }
  .pdp__hint, .pdp__gallery:not(.pdp__gallery--single) .pdp__hint { grid-column: auto; padding-inline: var(--gutter); }
  .pdp__gallery { position: static; }
  .pdp__stage { max-width: none; }
  .related__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pdp-skeleton { grid-template-columns: 1fr; }
}

/* lightbox */
.lightbox { position: fixed; inset: 0; width: 100%; height: 100%; margin: 0; background: #12160F; color: var(--ivory); animation: fade-in 0.35s ease both; }
.lightbox.is-closing { animation: fade-out 0.25s ease both; }
.lightbox__inner { display: grid; grid-template-rows: auto 1fr; height: 100%; }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.5rem var(--gutter); }
.lightbox__bar button { min-height: 44px; padding: 0 0.75rem; border: 1px solid var(--rule-light); background: none; color: var(--ivory); font-size: var(--t-sm); }
.lightbox__bar .group { display: flex; gap: 0.5rem; align-items: center; }
.lightbox__count { font-family: var(--display); font-style: italic; color: var(--ivory-soft); }
.lightbox__view { overflow: auto; display: grid; place-items: center; touch-action: pan-x pan-y pinch-zoom; }
.lightbox__view img { max-width: 100%; max-height: calc(100dvh - 4rem); width: auto; height: auto; object-fit: contain; cursor: zoom-in; }
.lightbox.is-zoomed .lightbox__view { place-items: start; }
.lightbox.is-zoomed .lightbox__view img { max-width: none; max-height: none; width: 220%; cursor: zoom-out; }
@media (min-width: 900px) { .lightbox.is-zoomed .lightbox__view img { width: 160%; } }

/* ---------- launch sale ---------- */

.promo-strip { margin: 0 0 1.25rem; padding: 0.8rem 1rem; border-left: 3px solid var(--cherry); background: rgba(78, 38, 51, 0.06); color: var(--cherry); font-size: var(--t-sm); }
.promo-strip s { color: var(--bark-soft); }
.pdp__bundle { padding: 0.9rem 1rem; border: 1px solid var(--cherry); }
.pdp__bundle-title { font-family: var(--display); font-style: italic; color: var(--cherry); }
.pdp__bundle ul { display: flex; flex-wrap: wrap; gap: 0.3rem 1.5rem; margin-top: 0.3rem; }
.pdp__bundle strong { font-family: var(--display); font-weight: 400; font-size: var(--t-md); color: var(--cherry); }
.pdp__bundle-note { margin-top: 0.4rem; font-size: var(--t-xs); color: var(--bark-soft); }

/* ---------- the name written into the product photo (assets/js/ui/photo-label.js) ----------
   Placed in the empty backdrop beside the fabric, found per photo. Hover writes it in letter by
   letter; leaving takes it back from the last letter. On touch screens it writes itself when the
   photo is the one in view. */
.photo-label {
  position: absolute; display: grid; justify-items: start; gap: 0.25em;
  transform: translateY(-50%); pointer-events: none; color: var(--bark); white-space: nowrap;
}
.photo-label[data-align="end"] { justify-items: end; transform: translate(-100%, -50%); }
.photo-label[hidden] { display: none; }
.photo-label[data-lines="2"] .photo-label__gap { display: block; height: 0; overflow: hidden; }
.photo-label[data-lines="2"] .photo-label__name { line-height: 1.05; }
.photo-label[data-align="end"] .photo-label__name { text-align: right; }
.photo-label__name { font-family: var(--display); font-style: italic; font-weight: 400; line-height: 1; letter-spacing: 0.02em; }
.photo-label__name > span {
  display: inline-block; opacity: 0; transform: translateX(-0.25em); filter: blur(3px);
  transition: opacity 0.3s ease, transform 0.4s var(--ease-out), filter 0.3s ease;
  transition-delay: calc((var(--n) - var(--i)) * 16ms);
}
.photo-label__sub {
  font-family: var(--ui); font-size: 0.36em; letter-spacing: 0.14em; color: var(--bark-soft);
  opacity: 0; transition: opacity 0.25s ease;
}
.pdp__frame.is-named .photo-label__name > span,
.pdp__frame:focus-visible .photo-label__name > span {
  opacity: 1; transform: none; filter: none;
  transition-duration: 0.6s, 0.8s, 0.6s; transition-delay: calc(var(--i) * 60ms + 80ms);
}
.pdp__frame.is-named .photo-label__sub,
.pdp__frame:focus-visible .photo-label__sub { opacity: 1; transition: opacity 0.6s ease calc(var(--n) * 60ms + 200ms); }
@media (hover: hover) {
  .pdp__frame:hover .photo-label__name > span {
    opacity: 1; transform: none; filter: none;
    transition-duration: 0.6s, 0.8s, 0.6s; transition-delay: calc(var(--i) * 60ms + 80ms);
  }
  .pdp__frame:hover .photo-label__sub { opacity: 1; transition: opacity 0.6s ease calc(var(--n) * 60ms + 200ms); }
}
@media (prefers-reduced-motion: reduce) {
  .photo-label__name > span { transform: none; filter: none; transition-delay: 0s !important; }
  .photo-label__sub { transition-delay: 0s !important; }
}

/* ---------- store policies (policy.html, read live from Shopify) ---------- */
.policy { max-width: 44rem; margin: 0 auto; }
.policy__kicker { font-size: var(--t-xs); letter-spacing: 0.3em; text-transform: uppercase; color: var(--bark-soft); }
.policy__title { margin: 0.6rem 0 2rem; font-size: var(--t-2xl); line-height: 1; }
.policy__body { font-size: var(--t-base); line-height: 1.75; }
.policy__body :is(h2, h3, h4) { font-family: var(--display); font-weight: 400; font-size: var(--t-lg); line-height: 1.2; margin: 2.2rem 0 0.7rem; }
.policy__body :is(p, ul, ol) { margin: 0 0 1rem; }
.policy__body :is(ul, ol) { padding-left: 1.3rem; }
.policy__body a { color: var(--cherry); }
.policy__note { font-family: var(--display); font-style: italic; font-size: var(--t-md); color: var(--bark-soft); }
.policy__note a { color: var(--cherry); }
.policy__more { display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--rule);
  font-size: var(--t-sm); letter-spacing: 0.04em; }
.policy__more a { color: var(--bark); }

/* The shipping policy as a page of an old fashion magazine (policy.js renderShipping): warm antique ivory paper,
   burgundy ink, fine framed cards for the key facts and the policy in numbered sections under thin rules.
   No white, no shadows, no rounded corners. */
body.paper { --ink-red: #6B1F2C; --ink-deep: #4A1019; --ink-rule: rgba(107, 31, 44, 0.32); --ink-text: #3A2925;
  background: var(--grain), var(--grain), #F2E9D8; color: var(--ink-text); }
body.paper .masthead { background: color-mix(in srgb, #F2E9D8 96%, transparent); border-bottom-color: var(--ink-rule); }
.ed { max-width: 58rem; }
.ed__head { text-align: center; }
.ed__rose { display: block; width: clamp(3rem, 6vw, 4rem); height: auto; margin: 0 auto 1rem; }
.ed__kicker { margin: 0; font-size: 0.72rem; letter-spacing: 0.34em; text-transform: uppercase; color: var(--ink-red); }
.ed__title { margin: 0.7rem 0 0; font-family: var(--display); font-weight: 600; font-size: clamp(2.6rem, 6.4vw, 5rem); line-height: 1; letter-spacing: 0.01em; color: var(--ink-deep); }
/* a fine rule with a small diamond at its centre */
.ed__ornament { position: relative; display: block; width: min(16rem, 60%); height: 1px; margin: 1.6rem auto 0; background: var(--ink-rule); }
.ed__ornament::after { content: ""; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; border: 1px solid var(--ink-red); background: #F2E9D8; transform: translate(-50%, -50%) rotate(45deg); }

/* the three facts: framed like plates in a magazine, a thin burgundy line with a finer one inside it */
.ed__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(0.9rem, 2.4vw, 1.8rem); margin: clamp(2.6rem, 6vw, 4rem) 0 0; padding: 0; list-style: none; }
.ed__card {
  display: flex; flex-direction: column; align-items: center; gap: 0.55rem; padding: clamp(1.7rem, 3.4vw, 2.6rem) 1rem clamp(1.4rem, 3vw, 2.1rem);
  border: 1px solid rgba(107, 31, 44, 0.5); outline: 1px solid var(--ink-rule); outline-offset: -7px; text-align: center;
  background: rgba(250, 244, 232, 0.45);
}
.ed__big { font-family: var(--display); font-weight: 400; font-size: clamp(2.3rem, 4.8vw, 3.5rem); line-height: 1; color: var(--ink-deep); white-space: nowrap; }
.ed__label { padding-top: 0.75rem; border-top: 1px solid var(--ink-rule); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.26em; text-transform: uppercase; color: var(--ink-red); }
.ed__note { font-family: var(--display); font-style: italic; font-size: 0.9rem; color: rgba(58, 41, 37, 0.7); }

/* the policy itself: numbered sections under fine rules, the heading beside the words on wide screens */
.ed__body { margin-top: clamp(3rem, 7vw, 5rem); font-size: var(--t-base); line-height: 1.8; }
.ed__sec { display: grid; grid-template-columns: minmax(11rem, 15rem) 1fr; gap: 0.6rem clamp(1.5rem, 4vw, 3.5rem); padding: clamp(1.6rem, 3.4vw, 2.4rem) 0; border-top: 1px solid var(--ink-rule); }
.ed__sec:last-child { border-bottom: 1px solid var(--ink-rule); }
.ed__sec > :only-child { grid-column: 1 / -1; }
.ed__body .ed__h { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(1.35rem, 2.2vw, 1.65rem); line-height: 1.2; color: var(--ink-deep); }
.ed__num { display: block; margin-bottom: 0.35rem; font-style: italic; font-size: 0.85rem; letter-spacing: 0.06em; color: var(--ink-red); }
.ed__text :is(p, ul, ol) { margin: 0 0 0.9rem; }
.ed__text > :last-child { margin-bottom: 0; }
.ed__text strong { font-weight: 500; color: var(--ink-red); }
.ed__text a, .ed__more a { color: var(--ink-red); text-underline-offset: 3px; }
.ed__end { margin: clamp(2.4rem, 5vw, 3.4rem) 0 0; text-align: center; }
.ed__end-rose { display: block; width: 2.6rem; height: auto; margin: 0 auto; opacity: 0.85; }
.ed__more { justify-content: center; border-top-color: var(--ink-rule); }

@media (max-width: 700px) {
  .ed__cards { grid-template-columns: 1fr; }
  .ed__card { padding-block: 1.5rem 1.3rem; }
  .ed__sec { grid-template-columns: 1fr; }
}

/* ---------- "The Safira Post": the shipping policy as a letter from a fashion house (ui/safira-post.js) ----------
   Aged parchment under a deckle-edged sheet, burgundy ink, fine rules, a few postal keepsakes in the margins. */
body.post-page {
  --post-ink: #6B1F2C; --post-deep: #4A0F1A; --post-rule: rgba(107, 31, 44, 0.3); --post-text: #3A2622;
  --post-paper: #F5ECD9; --post-hand: "Pinyon Script", "Snell Roundhand", cursive;
  background: var(--grain), var(--grain), #E7D8BC; color: var(--post-text);
}
body.post-page .masthead { background: color-mix(in srgb, #EDE1C8 96%, transparent); border-bottom-color: var(--post-rule); }
.post { max-width: 64rem; margin: 0 auto; }
/* the sheet: lighter parchment with a faint warm age at its edges, its torn edges set by safira-post.js */
.post__sheet {
  position: relative; padding: clamp(2rem, 5vw, 4.2rem) clamp(1.3rem, 5.5vw, 4.6rem) clamp(2.6rem, 6vw, 4.6rem);
  background: var(--grain), radial-gradient(ellipse at 50% 40%, transparent 62%, rgba(150, 105, 55, 0.13)), var(--post-paper);
}
.post { filter: drop-shadow(0 14px 22px rgba(70, 35, 20, 0.14)); }
.post-hand { font-family: var(--post-hand); font-weight: 400; color: var(--post-ink); line-height: 1; }

/* the small masthead along the top of the letter, between two fine rules */
.post__masthead {
  display: flex; justify-content: space-between; gap: 1rem; margin: 0 0 clamp(2rem, 5vw, 3.4rem); padding: 0.55rem 0;
  border-block: 1px solid var(--post-rule); box-shadow: 0 3px 0 -2px var(--post-rule);
  font-size: 0.66rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--post-ink);
}

/* the heading, centred, with a rose stamp in its corner and a handwritten note beside it */
.post__head { position: relative; text-align: center; padding: 0 clamp(4.5rem, 12vw, 8rem); }
.post__kicker { margin: 0; font-size: 0.7rem; letter-spacing: 0.34em; text-transform: uppercase; color: var(--post-ink); }
.post__title { margin: 0.9rem 0 0; font-family: var(--display); font-weight: 600; font-size: clamp(2.3rem, 6.2vw, 4.9rem); line-height: 1.02; letter-spacing: 0.08em; text-transform: uppercase; color: var(--post-deep); }
.post__lede { max-width: 32rem; margin: 1.1rem auto 0; font-family: var(--display); font-style: italic; font-size: clamp(1.05rem, 1.7vw, 1.3rem); line-height: 1.5; color: var(--post-text); }
.post__head .post-stamp--sm { position: absolute; right: 0; top: -0.4rem; transform: rotate(5deg); }
.post__hand-head { position: absolute; left: 0; bottom: -0.4rem; font-size: clamp(1.3rem, 2vw, 1.7rem); transform: rotate(-6deg); opacity: 0.85; }

/* postage stamps: perforated edges cut by a mask, a cream face with a fine frame, the rose and a line of type */
.post-stamp { display: inline-block; filter: drop-shadow(0 3px 3px rgba(60, 25, 20, 0.22)); }
.post-stamp__face {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.15rem;
  padding: 14px 12px 12px; background: var(--grain), #F1E3C8; color: var(--post-ink); text-align: center;
  -webkit-mask: radial-gradient(circle at 5px 5px, transparent 2.6px, #000 3px) -5px -5px / 10px 10px, linear-gradient(#000 0 0) 6px 6px / calc(100% - 12px) calc(100% - 12px) no-repeat;
  mask: radial-gradient(circle at 5px 5px, transparent 2.6px, #000 3px) -5px -5px / 10px 10px, linear-gradient(#000 0 0) 6px 6px / calc(100% - 12px) calc(100% - 12px) no-repeat;
}
.post-stamp__face::before { content: ""; position: absolute; inset: 10px; border: 1px solid var(--post-rule); pointer-events: none; }
.post-stamp__face b { font-family: var(--display); font-style: italic; font-weight: 500; font-size: 0.7rem; letter-spacing: 0.04em; white-space: nowrap; }
.post-stamp__face i { font-style: normal; font-size: 0.5rem; letter-spacing: 0.24em; text-transform: uppercase; white-space: nowrap; }
.post-stamp__rose { display: block; height: auto; }
.post-stamp--sm .post-stamp__face { width: 5.4rem; height: 6.6rem; }
.post-stamp--sm .post-stamp__rose { width: 2.3rem; }
.post-stamp--lg .post-stamp__face { width: 9.5rem; height: 11.8rem; gap: 0.35rem; }
.post-stamp--lg .post-stamp__rose { width: 4.4rem; }
.post-stamp--lg .post-stamp__face b { font-size: 1.15rem; }
.post-stamp--lg .post-stamp__face i { font-size: 0.6rem; }

/* the parcel label (the key facts, read from the policy) and a postmark beside it */
.post__intro { display: flex; align-items: center; justify-content: center; gap: clamp(1.5rem, 5vw, 4rem); margin: clamp(2.6rem, 6vw, 4rem) 0 0; }
.post-label {
  position: relative; width: min(100%, 25rem); padding: 1.3rem 1.5rem 1.2rem 3.2rem; transform: rotate(-1.2deg);
  background: var(--grain), #F0E2C4; border: 1px solid rgba(107, 31, 44, 0.5); outline: 1px solid var(--post-rule); outline-offset: -6px;
  clip-path: polygon(1.6rem 0, 100% 0, 100% 100%, 1.6rem 100%, 0 calc(100% - 1.6rem), 0 1.6rem);
}
.post-label__hole { position: absolute; left: 1.05rem; top: 50%; width: 0.75rem; height: 0.75rem; border: 1px solid var(--post-ink); border-radius: 50%; transform: translateY(-50%); background: #E7D8BC; }
.post-label__kicker { margin: 0 0 0.7rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--post-rule); font-size: 0.62rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--post-ink); }
.post-label dl { display: grid; gap: 0.35rem; margin: 0; }
.post-label dl > div { display: grid; grid-template-columns: 5.6rem 1fr; gap: 0.6rem; align-items: baseline; }
.post-label dt { font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--post-ink); }
.post-label dd { margin: 0; font-family: var(--display); font-size: 1rem; line-height: 1.35; color: var(--post-deep); }
.post-label__hand { display: block; margin: 0.6rem 0.2rem 0 auto; width: fit-content; font-size: 1.25rem; transform: rotate(-4deg); opacity: 0.8; }
.post-mark { width: clamp(8rem, 16vw, 10.5rem); height: auto; color: var(--post-ink); opacity: 0.55; transform: rotate(-8deg); }

/* the policy, as a two-column editorial: the first part leads, centred, with a drop capital; the rest pair up
   either side of a fine column rule, the headings set to the outside edges */
.post__body { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(2rem, 5vw, 4rem); margin-top: clamp(2.8rem, 6vw, 4.2rem); font-size: var(--t-base); line-height: 1.8; }
.post__sec { position: relative; padding: clamp(1.5rem, 3vw, 2.1rem) 0; border-top: 1px solid var(--post-rule); }
.post__sec:first-child { grid-column: 1 / -1; text-align: center; padding-inline: clamp(0rem, 10vw, 9rem); }
.post__sec:nth-child(even)::after { content: ""; position: absolute; top: 1.6rem; bottom: 1.2rem; right: calc(clamp(2rem, 5vw, 4rem) / -2); border-right: 1px solid var(--post-rule); }
.post__sec:nth-child(odd):not(:first-child) .post__h { text-align: right; }
.post__sec:last-child:nth-child(even) { grid-column: 1 / -1; text-align: center; }
.post__sec:last-child:nth-child(even)::after { display: none; }
.post__sec:last-child:nth-child(even) .post__h { text-align: center; }
.post__h { margin: 0 0 0.7rem; font-family: var(--display); font-weight: 400; font-size: clamp(1.35rem, 2.2vw, 1.7rem); line-height: 1.2; color: var(--post-deep); }
.post__no { display: block; margin-bottom: 0.3rem; font-family: var(--ui); font-size: 0.66rem; letter-spacing: 0.26em; color: var(--post-ink); }
.post__no span { margin-left: 0.25rem; font-size: 0.6rem; }
.post__text :is(p, ul, ol) { margin: 0 0 0.85rem; }
.post__text > :last-child { margin-bottom: 0; }
.post__text strong { font-weight: 500; color: var(--post-ink); }
.post__text a { color: var(--post-ink); }
.post__sec:first-child .post__text { font-family: var(--display); font-size: 1.3rem; font-style: italic; }

/* the journey: four stops down a dotted line, each with a little drawing in a ring, sprigs along the way */
.post__journey { position: relative; margin-top: clamp(3.4rem, 7vw, 5rem); padding-top: clamp(2.4rem, 5vw, 3.4rem); border-top: 1px solid var(--post-rule); }
.post__journey-head { text-align: center; }
.post__h2 { margin: 0.7rem 0 0; font-family: var(--display); font-weight: 600; font-size: clamp(1.8rem, 3.6vw, 2.8rem); line-height: 1.1; color: var(--post-deep); }
.post-steps { position: relative; display: grid; gap: clamp(2rem, 4vw, 2.8rem); width: min(100%, 30rem); margin: clamp(2.2rem, 5vw, 3rem) auto 0; padding: 0; list-style: none; }
.post-steps::before { content: ""; position: absolute; left: 2.15rem; top: 2.4rem; bottom: 2.4rem; border-left: 1.5px dotted var(--post-ink); opacity: 0.6; }
.post-step { position: relative; display: grid; grid-template-columns: 4.3rem 1fr; gap: 1.4rem; align-items: center; }
.post-step__badge { position: relative; z-index: 1; display: grid; place-items: center; width: 4.3rem; height: 4.3rem; border: 1px solid var(--post-ink); border-radius: 50%; background: var(--post-paper); color: var(--post-ink); box-shadow: 0 0 0 4px var(--post-paper), 0 0 0 5px var(--post-rule); }
.post-step__icon { width: 2.6rem; height: auto; }
.post-step__no { margin: 0; font-size: 0.66rem; letter-spacing: 0.26em; color: var(--post-ink); }
.post-step__name { margin: 0.15rem 0 0.25rem; font-family: var(--display); font-weight: 400; font-size: 1.05rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--post-deep); }
.post-step__line { margin: 0; font-family: var(--display); font-style: italic; font-size: 1.05rem; line-height: 1.45; }
.post-sprig { position: absolute; left: 2.7rem; bottom: calc(clamp(2rem, 4vw, 2.8rem) / -2 - 1.1rem); width: 1rem; height: auto; color: var(--post-ink); opacity: 0.55; transform: rotate(18deg); }
.post-step:nth-child(even) .post-sprig { left: 0.7rem; transform: scaleX(-1) rotate(18deg); }
.post__journey .post-stamp--lg { position: absolute; right: 0; top: 46%; transform: rotate(6deg); }
.post__hand-journey { position: absolute; left: 0; top: 58%; font-size: clamp(1.4rem, 2.2vw, 1.8rem); transform: rotate(-7deg); opacity: 0.85; max-width: 11rem; }

/* the close: a rose in red wax, the farewell, the address and a signature */
.post__close { margin-top: clamp(3.4rem, 7vw, 5rem); padding-top: clamp(2.4rem, 5vw, 3.2rem); border-top: 1px solid var(--post-rule); text-align: center; }
.post-seal { display: block; width: 4.6rem; height: auto; margin: 0 auto 1.4rem; transform: rotate(-10deg); filter: drop-shadow(0 3px 3px rgba(60, 10, 15, 0.3)); }
.post__close-title { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(1.6rem, 3.6vw, 2.6rem); letter-spacing: 0.1em; text-transform: uppercase; color: var(--post-deep); }
.post__close-line { margin: 0.8rem 0 0; font-family: var(--display); font-style: italic; font-size: 1.15rem; }
.post__mail { display: inline-block; margin-top: 1rem; padding: 0.5rem 0.2rem; font-family: var(--display); font-size: 1.15rem; color: var(--post-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.post__mail:hover { color: var(--post-deep); }
.post__sign { display: flex; align-items: center; justify-content: center; gap: 0.6rem; margin: 1.6rem 0 0; font-family: var(--post-hand); font-size: 2rem; color: var(--post-ink); }
.post__sign-rose { width: 1.6rem; height: auto; }
.post__more { justify-content: center; border-top-color: var(--post-rule); }
.post__more a { color: var(--post-ink); }

/* tablets: the journey's keepsakes step back so the line has room */
@media (max-width: 960px) {
  .post__journey .post-stamp--lg { position: static; display: block; width: fit-content; margin: 2.4rem auto 0; transform: rotate(4deg); }
  .post__hand-journey { position: static; display: block; margin: 1rem auto 0; text-align: center; max-width: none; }
}
/* phones: one column; the stamp moves up beside the masthead and the notes sit in the flow */
@media (max-width: 700px) {
  .post__masthead { flex-direction: column; align-items: center; gap: 0.2rem; letter-spacing: 0.22em; }
  .post__masthead span:last-child { display: none; }
  .post__head { padding: 0; }
  .post__head .post-stamp--sm { position: static; display: block; width: fit-content; margin: 0 auto 1.4rem; }
  .post__hand-head { position: static; display: block; margin-top: 1rem; }
  .post__intro { flex-direction: column; }
  .post-label { transform: none; }
  .post__body { grid-template-columns: 1fr; }
  .post__sec:first-child { padding-inline: 0; }
  .post__sec:nth-child(even)::after { display: none; }
  .post__sec:nth-child(odd):not(:first-child) .post__h { text-align: left; }
  .post__sec:last-child:nth-child(even), .post__sec:last-child:nth-child(even) .post__h { text-align: left; }
  .post-step { grid-template-columns: 3.6rem 1fr; gap: 1rem; }
  .post-step__badge { width: 3.6rem; height: 3.6rem; }
  .post-step__icon { width: 2.2rem; }
  .post-steps::before { left: 1.8rem; }
  .post-sprig { display: none; }
}

/* Shipping & Returns (/shipping-returns): one card per topic, each linking to the full policy */
.ship { max-width: 68rem; margin: 0 auto; }
.ship__lede { max-width: 36rem; margin: -1rem 0 2.5rem; font-size: var(--t-base); line-height: 1.7; color: var(--bark-soft); }
.ship__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 1rem; }
.ship__card { display: flex; flex-direction: column; gap: 0.8rem; padding: 1.6rem 1.5rem 1.4rem; border: 1px solid var(--rule); background: var(--paper);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out); }
@media (hover: hover) {
  .ship__card:hover { transform: translateY(-3px); box-shadow: 0 14px 26px -18px rgba(42, 22, 29, 0.55); }
}
.ship__card h2 { font-family: var(--display); font-weight: 500; font-size: var(--t-md); line-height: 1.2; color: var(--cherry); }
.ship__card p { flex: 1; line-height: 1.7; }
.ship__card a { color: var(--cherry); text-decoration: underline; text-underline-offset: 3px; }
.ship__card .ship__more { align-self: flex-start; font-size: var(--t-xs); letter-spacing: 0.18em; text-transform: uppercase; }
.ship__ask { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); color: var(--bark-soft); }
.ship__ask a { color: var(--cherry); }
@media (prefers-reduced-motion: reduce) { .ship__card { transition: none; } .ship__card:hover { transform: none; } }

/* Cherry velvet: the Shipping & Returns page sits on deep cherry, cards in cherry, headings in blush */
body.velvet { --blush: #E8B4BC; background: var(--grain), var(--cherry-deep); color: var(--ivory); }
.velvet .policy__kicker, .velvet .ship__lede, .velvet .ship__ask { color: rgba(246, 233, 236, 0.75); }
.velvet .policy__title { color: #F6E9EC; }
.velvet .ship__card { background: var(--cherry); border-color: rgba(246, 233, 236, 0.18); color: #F6E9EC; }
.velvet .ship__card h2, .velvet .ship__card a, .velvet .ship__ask a { color: var(--blush); }
.velvet .ship__ask { border-color: rgba(246, 233, 236, 0.18); }
@media (hover: hover) { .velvet .ship__card:hover { box-shadow: 0 16px 30px -16px rgba(0, 0, 0, 0.6); } }



/* ---------- "The Safira Postage Collection" (shipping policy, ?look=stamps; ui/postage-collection.js) ----------
   An antique stamp album set like a fashion-house folio, on soft ivory stationery with a whisper of grain: one
   oversized engraved stamp as the hero, the key facts as smaller stamps in album mounts, the policy as catalogue
   entries. Perforations are cut by masks; shadows stay barely there. */
body.stamps-page { --pc-ivory: #F3EBDD; --pc-cream: #F8F4EB; --pc-cherry: #641D2C; --pc-wine: #481522; --pc-ink: #332923; --pc-rule: rgba(100, 29, 44, 0.22);
  background: var(--grain), var(--pc-ivory); color: var(--pc-ink); }
body.stamps-page .masthead { background: color-mix(in srgb, #F3EBDD 96%, transparent); border-bottom-color: var(--pc-rule); }
body.stamps-page .page { padding-top: calc(var(--header-h) + 1.4rem); overflow-x: clip; }
.pc { max-width: 76rem; margin: 0 auto; }
.pc-mast { display: flex; justify-content: space-between; gap: 1rem; margin: 0; padding: 0.7rem 0; border-top: 1px solid rgba(51, 41, 35, 0.5); border-bottom: 1px solid var(--pc-rule);
  font-size: 0.64rem; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase; color: var(--pc-cherry); }
.pc-kicker { margin: 0; font-size: 0.68rem; font-weight: 500; letter-spacing: 0.34em; text-transform: uppercase; color: var(--pc-cherry); }

/* the hero: the words, the stamp, and its catalogue note */
.pc-hero { display: grid; grid-template-columns: 1fr minmax(0, 29rem) 1fr; align-items: center; gap: clamp(1.5rem, 4vw, 3.5rem); padding: clamp(2.8rem, 6vw, 4.8rem) 0 clamp(3rem, 6vw, 4.5rem); }
.pc-title { margin: 0.9rem 0 0; font-family: var(--display); font-weight: 600; font-size: clamp(2.6rem, 4.4vw, 4.1rem); line-height: 1; letter-spacing: 0.04em; text-transform: uppercase; color: var(--pc-wine); }
.pc-lede { max-width: 17rem; margin: 1.3rem 0 0; font-family: var(--display); font-style: italic; font-size: 1.08rem; line-height: 1.5; }
.pc-stamp { position: relative; margin: 0; transform: rotate(-3deg); }
.pc-stamp__art { display: block; width: 100%; height: auto; filter: drop-shadow(0 1px 1px rgba(51, 41, 35, 0.12)) drop-shadow(0 14px 22px rgba(51, 41, 35, 0.1)); }
.pc-stamp__art .pc-stamp__rose g { stroke-width: 0.85; }
.pc-stamp .pc-cancel { position: absolute; width: 64%; right: -16%; top: -2%; color: var(--pc-wine); opacity: 0.46; transform: rotate(-11deg); mix-blend-mode: multiply; }
.pc-cat { padding-left: 1rem; }
.pc-cat__no { margin: 0; font-family: var(--display); font-style: italic; font-size: 1.05rem; color: var(--pc-cherry); }
.pc-cat__name { margin: 0.15rem 0 1rem; font-family: var(--display); font-weight: 600; font-size: 1.55rem; color: var(--pc-wine); }
.pc-cat dl { margin: 0; border-top: 1px solid var(--pc-rule); }
.pc-cat dl div { display: grid; grid-template-columns: 4.6rem 1fr; gap: 0.8rem; padding: 0.6rem 0; border-bottom: 1px solid var(--pc-rule); }
.pc-cat dt { padding-top: 0.25rem; font-size: 0.6rem; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: var(--pc-cherry); }
.pc-cat dd { margin: 0; font-family: var(--display); font-style: italic; font-size: 0.98rem; line-height: 1.4; }

/* each part below opens under a fine rule with a plate number and a title */
.pc-part { margin-top: clamp(1rem, 3vw, 2rem); padding-top: clamp(3rem, 7vw, 5rem); border-top: 1px solid var(--pc-rule); }
.pc-head { margin-bottom: clamp(2rem, 4vw, 3rem); text-align: center; }
.pc-h2 { margin: 0.6rem 0 0; font-family: var(--display); font-weight: 600; font-size: clamp(1.9rem, 3.8vw, 2.9rem); line-height: 1.05; letter-spacing: 0.06em; text-transform: uppercase; color: var(--pc-wine); }
.pc-sub { margin: 0.7rem 0 0; font-family: var(--display); font-style: italic; font-size: 1.05rem; }

/* the collection: an album leaf in a fine double frame, each stamp in a glassine mount, tilted a touch */
.pc-album { max-width: 62rem; margin: 0 auto; padding: clamp(1.8rem, 4vw, 3rem) clamp(1rem, 3vw, 2.5rem); list-style: none;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 2.4rem clamp(1rem, 2.5vw, 2rem);
  border: 1px solid var(--pc-rule); outline: 1px solid var(--pc-rule); outline-offset: 5px; }
.pc-mini { display: flex; flex-direction: column; align-items: center; text-align: center; }
.pc-mini__mount { display: block; padding: 7px; background: rgba(51, 41, 35, 0.04); border: 1px solid rgba(51, 41, 35, 0.08); }
.pc-mini:nth-child(4n + 1) .pc-mini__mount { transform: rotate(-2deg); }
.pc-mini:nth-child(4n + 2) .pc-mini__mount { transform: rotate(1.4deg); }
.pc-mini:nth-child(4n + 3) .pc-mini__mount { transform: rotate(-0.8deg); }
.pc-mini:nth-child(4n + 4) .pc-mini__mount { transform: rotate(2deg); }
.pc-mini__stamp { display: block; filter: drop-shadow(0 1.5px 1.5px rgba(51, 41, 35, 0.16)); }
.pc-mini__face { position: relative; width: 156px; height: 192px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.25rem;
  padding: 18px 14px; background: var(--grain), var(--pc-cream); color: var(--pc-cherry);
  -webkit-mask: radial-gradient(circle at 6px 6px, transparent 3.2px, #000 3.6px) -6px -6px / 12px 12px, linear-gradient(#000 0 0) 7px 7px / calc(100% - 14px) calc(100% - 14px) no-repeat;
  mask: radial-gradient(circle at 6px 6px, transparent 3.2px, #000 3.6px) -6px -6px / 12px 12px, linear-gradient(#000 0 0) 7px 7px / calc(100% - 14px) calc(100% - 14px) no-repeat; }
.pc-mini__face::before { content: ""; position: absolute; inset: 11px; border: 1.5px solid var(--pc-cherry); pointer-events: none; }
.pc-mini__face::after { content: ""; position: absolute; inset: 15px; border: 0.5px solid var(--pc-cherry); pointer-events: none; }
.pc-mini__icon { width: 2.6rem; height: 2.6rem; }
.pc-mini__face b { font-family: var(--display); font-weight: 600; font-size: 1.65rem; line-height: 1.05; color: var(--pc-wine); }
.pc-mini__face i { font-style: normal; font-size: 0.56rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; }
.pc-mini__cap { margin: 1.1rem 0 0; max-width: 12rem; font-family: var(--display); font-style: italic; font-size: 0.95rem; line-height: 1.35; }
.pc-mini__cap span { display: block; margin-bottom: 0.25rem; font-family: Jost, sans-serif; font-style: normal; font-size: 0.6rem; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: var(--pc-cherry); }

/* the particulars: catalogue entries, each numbered on a tiny perforated stamp */
.pc-entries { max-width: 50rem; margin: 0 auto; }
.pc-entry { display: grid; grid-template-columns: 4.6rem 1fr; gap: clamp(1rem, 3vw, 2rem); padding: clamp(1.3rem, 2.6vw, 1.8rem) 0; border-top: 1px solid var(--pc-rule); }
.pc-entry:last-child { border-bottom: 1px solid var(--pc-rule); }
.pc-tile { display: block; width: fit-content; filter: drop-shadow(0 1px 1px rgba(51, 41, 35, 0.16)); transform: rotate(-2deg); }
.pc-entry:nth-child(even) .pc-tile { transform: rotate(1.5deg); }
.pc-tile__face { position: relative; width: 64px; height: 72px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--grain), var(--pc-cream); color: var(--pc-cherry);
  -webkit-mask: radial-gradient(circle at 4px 4px, transparent 2.1px, #000 2.5px) -4px -4px / 8px 8px, linear-gradient(#000 0 0) 5px 5px / calc(100% - 10px) calc(100% - 10px) no-repeat;
  mask: radial-gradient(circle at 4px 4px, transparent 2.1px, #000 2.5px) -4px -4px / 8px 8px, linear-gradient(#000 0 0) 5px 5px / calc(100% - 10px) calc(100% - 10px) no-repeat; }
.pc-tile__face::before { content: ""; position: absolute; inset: 8px; border: 1px solid var(--pc-cherry); }
.pc-tile__face span { font-size: 0.55rem; letter-spacing: 0.2em; }
.pc-tile__face b { font-family: var(--display); font-weight: 600; font-size: 1.35rem; line-height: 1; color: var(--pc-wine); }
.pc-entry__h { margin: 0.15rem 0 0.5rem; font-family: var(--display); font-weight: 600; font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.2; color: var(--pc-wine); }
.pc-entry__text { font-size: 1.02rem; line-height: 1.7; }
.pc-entry__text p { margin: 0 0 0.6rem; } .pc-entry__text p:last-child { margin-bottom: 0; }
.pc-entry__text strong, .pc-entry__text b { font-weight: 600; color: var(--pc-wine); }
.pc-entry__text a, .pc-close a { color: var(--pc-cherry); text-underline-offset: 3px; }

.pc-close { margin-top: clamp(3.5rem, 8vw, 5.5rem); text-align: center; }
.pc-close .pc-cancel { width: 10rem; color: var(--pc-wine); opacity: 0.5; transform: rotate(-6deg); }
.pc-close__title { margin: 1rem 0 0; font-family: var(--display); font-weight: 600; font-size: clamp(1.5rem, 3.2vw, 2.3rem); letter-spacing: 0.1em; text-transform: uppercase; color: var(--pc-wine); }
.pc-close p:not(.pc-close__title) { margin: 0.6rem 0; font-size: 1.05rem; }
.pc-more { justify-content: center; border-top-color: var(--pc-rule); }
.pc-more a { color: var(--pc-ink); }

@media (max-width: 1000px) {
  .pc-hero { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .pc-stamp { width: min(27rem, 82%); }
  .pc-lede { margin-inline: auto; }
  .pc-cat { width: min(24rem, 100%); padding: 0; text-align: left; }
}
@media (max-width: 600px) {
  .pc-mast span:nth-child(2) { display: none; }
  .pc-album { grid-template-columns: repeat(2, 1fr); gap: 2rem 0.8rem; padding: 1.6rem 0.6rem; }
  .pc-mini__mount { padding: 5px; }
  .pc-mini__face { width: 132px; height: 168px; padding: 16px 10px; }
  .pc-mini__icon { width: 2.2rem; height: 2.2rem; }
  .pc-mini__face b { font-size: 1.4rem; }
  .pc-mini__face i { font-size: 0.5rem; letter-spacing: 0.16em; }
  .pc-entry { grid-template-columns: 4rem 1fr; }
}

/* ---------- "The Safira Postal Archive" (shipping policy, ?look=archive; ui/postal-archive.js) ----------
   Dark cherry and antique ivory: warm paper sections in a fine grain alternate with deep cherry ones in a restrained
   woven texture. The interactive map opens the page, then the stamp collection, the policy as editorial sections, and
   a closing note. Shadows stay soft; nothing is bright. */
body.archive-page { --pa-cherry: #4A0E1E; --pa-wine: #330A15; --pa-burgundy: #5A1426; --pa-rose: #8C3544; --pa-ivory: #EDE2D0; --pa-parchment: #F3EBDD;
  --pa-ink: #342522; --pa-faded: #B68B86; --pa-rule: rgba(100, 29, 44, 0.26); --pa-rule-dark: rgba(237, 226, 208, 0.2);
  --pa-weave: repeating-linear-gradient(45deg, rgba(10, 0, 4, 0.08) 0 1px, transparent 1px 4px), repeating-linear-gradient(-45deg, rgba(255, 230, 220, 0.025) 0 1px, transparent 1px 4px);
  background: var(--grain), var(--pa-parchment); color: var(--pa-ink); }
body.archive-page .masthead { background: color-mix(in srgb, #F3EBDD 96%, transparent); border-bottom-color: var(--pa-rule); }
body.archive-page .page { padding: 0; overflow-x: clip; }
.pa-defs { position: absolute; width: 0; height: 0; }
.pa-wrap { max-width: 76rem; margin: 0 auto; padding: 0 var(--gutter); }
.pa-dark { background: var(--grain), var(--pa-weave), var(--pa-cherry); color: var(--pa-ivory); }
.pa-dark--wine { background: var(--grain), var(--pa-weave), var(--pa-wine); }
.pa-paper { background: var(--grain), var(--pa-parchment); }
.pa-paper--ivory { background: var(--grain), var(--grain), var(--pa-ivory); }
.pa-section { position: relative; padding: clamp(4rem, 9vw, 7rem) 0; }
.pa-section--first { padding-top: calc(var(--header-h) + 1.2rem); }
.pa-strip { display: flex; justify-content: space-between; gap: 1rem; margin: 0 0 clamp(2.6rem, 6vw, 4rem); padding: 0.7rem 0; border-top: 1px solid rgba(52, 37, 34, 0.5); border-bottom: 1px solid var(--pa-rule);
  font-size: 0.64rem; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase; color: var(--pa-rose); }
.pa-label { margin: 0; font-size: 0.68rem; font-weight: 500; letter-spacing: 0.34em; text-transform: uppercase; color: var(--pa-rose); }
.pa-dark .pa-label { color: var(--pa-faded); }
.pa-head { position: relative; max-width: 44rem; margin: 0 auto clamp(2.4rem, 5vw, 3.6rem); text-align: center; }
.pa-h2 { margin: 0.75rem 0 0; font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 4.2vw, 3.3rem); line-height: 1.04; letter-spacing: 0.07em; text-transform: uppercase; color: var(--pa-cherry); }
.pa-dark .pa-h2 { color: var(--pa-ivory); }
.pa-sub { margin: 0.9rem 0 0; font-family: var(--display); font-style: italic; font-size: 1.12rem; line-height: 1.5; }
.pa-dark .pa-sub { color: rgba(237, 226, 208, 0.85); }
.pa-head__stamp { position: absolute; width: 5.4rem; right: -4.5rem; top: -1.6rem; transform: rotate(7deg); }
.pa-head__stamp--left { right: auto; left: -3.5rem; transform: rotate(-6deg); }
.pa-head__stamp svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 1px 1px rgba(30, 8, 12, 0.25)) drop-shadow(0 6px 10px rgba(30, 8, 12, 0.14)); }

/* the map: an antique atlas plate in a fine double frame, the postal record beside a chosen mark */
.pa-atlas { position: relative; max-width: 70rem; margin: 0 auto; }
.pa-map { position: relative; aspect-ratio: 1000 / 540; overflow: hidden; background: #EFE5D3; border: 1px solid rgba(52, 37, 34, 0.55); outline: 1px solid var(--pa-rule); outline-offset: 5px; }
.pa-map__svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.pa-map.is-zoomed .pa-map__svg { touch-action: none; }
.pa-map.is-dragging .pa-map__svg { cursor: grabbing; }
.pa-map__wait { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; padding: 1rem; text-align: center; font-family: var(--display); font-style: italic; color: var(--pa-rose); }
.pa-world path { vector-effect: non-scaling-stroke; }
.pa-sphere { fill: #F6EFE3; }
.pa-grat { fill: none; stroke: rgba(84, 20, 33, 0.15); stroke-width: 0.5; }
.pa-par { fill: none; stroke: rgba(84, 20, 33, 0.38); stroke-width: 0.6; stroke-dasharray: 4 3; }
.pa-par--eq { stroke: rgba(84, 20, 33, 0.5); stroke-dasharray: 6 2 1 2; }
.pa-ripple { fill: none; stroke: rgba(84, 20, 33, 0.07); stroke-linejoin: round; }
.pa-land { fill: url(#pa-hatch); }
.pa-countries path { fill: transparent; transition: fill 0.25s; }
.pa-countries path:hover { fill: rgba(140, 53, 68, 0.15); }
.pa-border { fill: none; stroke: rgba(84, 20, 33, 0.32); stroke-width: 0.45; stroke-dasharray: 1.2 2; }
.pa-coast { fill: none; stroke: rgba(52, 37, 34, 0.82); stroke-width: 0.7; stroke-linejoin: round; }
.pa-edge { fill: none; stroke: rgba(52, 37, 34, 0.6); stroke-width: 0.9; }
.pa-sea { fill: rgba(52, 37, 34, 0.5); font-family: "Bodoni Moda", serif; font-style: italic; letter-spacing: 0.3em; text-anchor: middle; pointer-events: none; }
.pa-route { pointer-events: none; }
.pa-route__base { fill: none; stroke: rgba(100, 29, 44, 0.6); stroke-width: 1; stroke-dasharray: 1 4; stroke-linecap: round; }
.pa-route__trace { fill: none; stroke: var(--pa-burgundy); stroke-width: 1.2; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; }
.motion-ok .pa-map.is-drawn .pa-route__trace { animation: pa-trace 2.8s cubic-bezier(0.6, 0.1, 0.3, 1) both; animation-delay: calc(var(--i) * 0.35s); }
.motion-ok .pa-map.is-drawn .pa-route.is-active .pa-route__trace { animation: pa-trace 3.2s cubic-bezier(0.6, 0.1, 0.3, 1) infinite; }
@keyframes pa-trace { 0% { stroke-dashoffset: 1; opacity: 0.9; } 70% { stroke-dashoffset: 0; opacity: 0.9; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.pa-route.is-active .pa-route__base { stroke: var(--pa-burgundy); stroke-dasharray: none; stroke-width: 1.1; }
.pa-route__post rect { fill: #F6EFE3; stroke: var(--pa-cherry); stroke-width: 0.8; }
.pa-route__post path { fill: none; stroke: var(--pa-cherry); stroke-width: 0.8; }
.pa-traveller { opacity: 0; pointer-events: none; } .pa-traveller circle { fill: var(--pa-cherry); stroke: #F6EFE3; stroke-width: 1.2; }
.pa-traveller:not(.is-on) { display: none; }
.pa-mk { cursor: pointer; outline: none; }
.pa-mk__hit { fill: transparent; }
.pa-mk__ring { fill: #F6EFE3; stroke: var(--pa-cherry); stroke-width: 1.1; transition: r 0.2s ease; }
.pa-mk__dot { fill: var(--pa-cherry); }
.pa-mk--home .pa-mk__ring { stroke-width: 1.6; }
.pa-mk:hover .pa-mk__ring, .pa-mk.is-active .pa-mk__ring { r: 8.5px; }
.pa-mk:focus-visible .pa-mk__ring { r: 8.5px; stroke: var(--pa-rose); stroke-width: 2.2; }
.pa-mk__pulse { fill: none; stroke: var(--pa-cherry); stroke-width: 1; opacity: 0; transform-box: fill-box; transform-origin: center; }
.motion-ok .pa-mk.is-active .pa-mk__pulse, .motion-ok .pa-map:not(.has-active) .pa-mk--home .pa-mk__pulse { animation: pa-pulse 2.4s ease-out infinite; }
@keyframes pa-pulse { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(3.2); opacity: 0; } }
.pa-mk__name { font-family: "Bodoni Moda", serif; font-style: italic; font-size: 12.5px; fill: var(--pa-ink); paint-order: stroke; stroke: #F6EFE3; stroke-width: 3px; stroke-linejoin: round; }
.pa-mk--home .pa-mk__name { font-weight: 600; fill: var(--pa-cherry); }
.pa-map__ctrl { position: absolute; z-index: 2; top: 0.8rem; right: 0.8rem; display: flex; flex-direction: column; gap: 0.35rem; }
.pa-map__ctrl button { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; padding: 0; border: 1px solid rgba(84, 20, 33, 0.45); background: rgba(243, 235, 221, 0.92);
  color: var(--pa-cherry); font-family: var(--display); font-size: 1.2rem; line-height: 1; cursor: pointer; transition: background 0.2s, color 0.2s; }
.pa-map__ctrl button:hover, .pa-map__ctrl button:focus-visible { background: var(--pa-cherry); color: var(--pa-ivory); }
.pa-map__ctrl svg { width: 1.05rem; height: 1.05rem; }
.pa-map__compass { position: absolute; z-index: 1; left: 1rem; bottom: 0.9rem; width: clamp(3.2rem, 6.5vw, 5.4rem); color: var(--pa-cherry); opacity: 0.75; pointer-events: none; }
.pa-map__mark { position: absolute; z-index: 1; right: 5rem; top: 0.7rem; width: clamp(5rem, 10vw, 7.6rem); color: var(--pa-rose); opacity: 0.4; transform: rotate(-8deg); pointer-events: none; }
.pa-map__hint { position: absolute; z-index: 2; left: 50%; bottom: 0.9rem; margin: 0; padding: 0.4rem 0.9rem; transform: translateX(-50%); background: rgba(59, 16, 28, 0.9); color: var(--pa-ivory);
  font-size: 0.74rem; letter-spacing: 0.05em; white-space: nowrap; opacity: 0; transition: opacity 0.3s; pointer-events: none; }
.pa-map__hint.is-on { opacity: 1; }
.pa-atlas__cap { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-top: 1.2rem; font-size: 0.64rem; font-weight: 500; letter-spacing: 0.28em; text-transform: uppercase; color: var(--pa-cherry); }
.pa-atlas__cap [data-pa-coords] { font-family: var(--display); font-style: italic; font-size: 0.92rem; letter-spacing: 0.03em; text-transform: none; color: var(--pa-ink); }
.pa-atlas__note { max-width: 46rem; margin: 1rem auto 0; text-align: center; font-size: 0.9rem; line-height: 1.6; color: rgba(52, 37, 34, 0.78); }
.pa-record { position: absolute; z-index: 3; width: 18rem; padding: 1.1rem 1.25rem; background: var(--grain), var(--pa-parchment); color: var(--pa-ink);
  border: 1px solid var(--pa-cherry); outline: 1px solid rgba(84, 20, 33, 0.28); outline-offset: -5px; box-shadow: 0 12px 26px -14px rgba(30, 8, 12, 0.5); }
.pa-record__close { position: absolute; top: 0.3rem; right: 0.4rem; padding: 0.2rem 0.45rem; border: 0; background: none; color: var(--pa-cherry); font-size: 1.25rem; line-height: 1; cursor: pointer; }
.pa-record__kicker { margin: 0; font-size: 0.56rem; font-weight: 500; letter-spacing: 0.26em; text-transform: uppercase; color: var(--pa-rose); }
.pa-record__title { margin: 0.35rem 0 0.7rem; font-family: var(--display); font-weight: 800; font-size: 1.3rem; line-height: 1.2; color: var(--pa-cherry); }
.pa-record dl { margin: 0; border-top: 1px solid var(--pa-rule); }
.pa-record dl div { display: grid; grid-template-columns: 4.8rem 1fr; gap: 0.6rem; padding: 0.42rem 0; border-bottom: 1px dotted var(--pa-rule); }
.pa-record dt { padding-top: 0.15rem; font-size: 0.55rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--pa-rose); }
.pa-record dd { margin: 0; font-size: 0.86rem; line-height: 1.4; }
.pa-record__note { margin: 0.75rem 0 0; font-family: var(--display); font-style: italic; font-size: 0.88rem; line-height: 1.45; }
.pa-record__note a { color: var(--pa-cherry); word-break: break-word; }
.pa-record.is-docked { position: relative; width: auto; margin-top: 1rem; }

/* the postage collection: the stamps side by side in one row, each its own size and tilt */
.pa-st .pa-st__art g { stroke-width: 1.5; }
.pa-st .botanical path, .pa-st .botanical circle { stroke-width: 1.3; }
.pa-st .botanical .vein { stroke-width: 0.7; }
.pa-coll { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); align-items: end; justify-items: center; gap: clamp(0.7rem, 3vw, 3rem);
  max-width: 60rem; margin: 0 auto; padding: 0; list-style: none; }
.pa-coll__item { display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 12rem; text-align: center; }
.pa-coll__item svg { display: block; width: min(var(--w, 9.5rem), 100%); height: auto; transform: rotate(var(--r, 0deg)); filter: drop-shadow(0 1px 1px rgba(10, 2, 4, 0.4)) drop-shadow(0 10px 16px rgba(10, 2, 4, 0.3)); }
.pa-coll__cap { margin: 1.3rem 0 0; font-family: var(--display); font-style: italic; font-size: 0.98rem; line-height: 1.4; color: rgba(237, 226, 208, 0.9); }
.pa-coll__cap span { display: block; margin-bottom: 0.3rem; font-family: Jost, sans-serif; font-style: normal; font-size: 0.58rem; font-weight: 500; letter-spacing: 0.26em; text-transform: uppercase; color: var(--pa-faded); }

/* the particulars: editorial sections between thin burgundy rules */
.pa-entries { max-width: 58rem; margin: 0 auto; }
.pa-entry { display: grid; grid-template-columns: 13rem 1fr; gap: clamp(1rem, 4vw, 3.5rem); padding: clamp(1.7rem, 3.2vw, 2.4rem) 0; border-top: 1px solid var(--pa-rule); }
.pa-entry:last-child { border-bottom: 1px solid var(--pa-rule); }
.pa-entry__num { display: block; font-family: var(--display); font-style: italic; font-weight: 500; font-size: 2rem; line-height: 1; color: var(--pa-rose); }
.pa-entry__label { display: block; margin-top: 0.6rem; font-size: 0.66rem; font-weight: 500; line-height: 1.6; letter-spacing: 0.26em; text-transform: uppercase; color: var(--pa-cherry); }
.pa-entry__h { margin: 0 0 0.65rem; font-family: var(--display); font-weight: 800; font-size: clamp(1.35rem, 2.3vw, 1.75rem); line-height: 1.2; color: var(--pa-cherry); }
.pa-entry__text { font-size: 1.04rem; line-height: 1.75; }
.pa-entry__text p { margin: 0 0 0.7rem; } .pa-entry__text p:last-child { margin-bottom: 0; }
.pa-entry__text b { font-weight: 600; color: var(--pa-cherry); }
.pa-entry__text a { color: var(--pa-cherry); text-underline-offset: 3px; word-break: break-word; }
.pa-tag { display: inline-block; margin-right: 0.55rem; padding: 0.05rem 0.45rem; border: 1px solid var(--pa-rule); font-size: 0.6rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--pa-rose); vertical-align: 0.12rem; }
.pa-divider { display: flex; align-items: center; gap: 1.2rem; padding: 1.2rem 0; }
.pa-divider::before, .pa-divider::after { content: ""; flex: 1; height: 1px; background: var(--pa-rule); }
.pa-divider svg { width: 2.2rem; height: auto; }
.pa-divider + .pa-entry { border-top: 0; }

/* the closing note, a botanical drawing faint behind it */
.pa-note { overflow: hidden; text-align: center; }
.pa-note__botanical { position: absolute; inset: 0; color: var(--pa-faded); opacity: 0.13; pointer-events: none; }
.pa-note__botanical svg { position: absolute; height: auto; }
.pa-note__botanical svg:first-child { width: 24rem; left: -4rem; bottom: -7rem; transform: rotate(-14deg); }
.pa-note__botanical svg:first-child g { stroke-width: 0.5; }
.pa-note__botanical svg:last-child { width: 14rem; right: -1rem; top: -1.5rem; transform: rotate(196deg); }
.pa-note__inner { position: relative; max-width: 38rem; margin: 0 auto; }
.pa-note__num { margin-right: 0.8rem; font-family: var(--display); font-style: italic; font-size: 1rem; letter-spacing: 0.05em; text-transform: none; }
.pa-note__text { margin: 1.3rem 0 0; font-family: var(--display); font-style: italic; font-size: 1.2rem; line-height: 1.6; color: rgba(237, 226, 208, 0.9); }
.pa-note__mail { display: inline-block; margin-top: 1.3rem; color: var(--pa-ivory); letter-spacing: 0.03em; text-underline-offset: 4px; }
.pa-note__sign { display: flex; align-items: center; justify-content: center; gap: 0.9rem; margin: 2.2rem 0 0; }
.pa-note__sign .post-seal { width: 3.4rem; margin: 0; }
.pa-note__sign span { font-family: "Pinyon Script", cursive; font-size: 2.3rem; color: var(--pa-ivory); }
.pa-more { position: relative; justify-content: center; margin-top: 3.5rem; border-top-color: var(--pa-rule-dark); }
.pa-more a { color: var(--pa-ivory); }

.motion-ok .pa [data-pa-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 0.9s ease, transform 0.9s ease; }
.motion-ok .pa [data-pa-reveal].is-in { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .pa-head__stamp, .pa-head__stamp--left { position: static; display: block; width: 4.4rem; margin: 0 auto 1.2rem; }
}
@media (max-width: 700px) {
  .pa-strip span:nth-child(2) { display: none; }
  /* the whole world fits the width; the names of the regions and oceans wait until the map is zoomed in, and the
     zoom buttons and compass shrink into the corners */
  .pa-map__mark { display: none; }
  .pa-map:not(.is-zoomed) :is(.pa-sea, .pa-mk:not(.pa-mk--home) .pa-mk__name) { display: none; }
  .pa-map__ctrl { top: 0.35rem; right: 0.35rem; flex-direction: row; gap: 0.25rem; }
  .pa-map__ctrl button { width: 1.75rem; height: 1.75rem; font-size: 1rem; }
  .pa-map__ctrl svg { width: 0.9rem; height: 0.9rem; }
  .pa-map__compass { left: 0.4rem; bottom: 0.3rem; width: 2.2rem; }
  .pa-atlas__cap { flex-direction: column; gap: 0.4rem; }
  .pa-entry { grid-template-columns: 1fr; gap: 0.7rem; }
  .pa-entry__side { display: flex; align-items: baseline; gap: 0.9rem; }
  .pa-entry__num { font-size: 1.6rem; }
  .pa-entry__label { margin: 0; }
  .pa-coll__cap { margin-top: 0.9rem; font-size: 0.74rem; line-height: 1.35; }
  .pa-coll__cap span { font-size: 0.48rem; letter-spacing: 0.14em; }
}

/* ---------- "Sent With Love" (shipping policy, ?look=postcards; ui/postcard-shipping.js) ----------
   The archive's colours, map and paper, arranged as a postcard collection: layered antique postcards on deep wine,
   the map on parchment, the policy on four postcards, and a dark cherry close. */
.pa-route--pick:not(.is-active) { display: none; }
.pa-countries path.is-picked { fill: rgba(140, 53, 68, 0.26); }
body.postcards-page .pa-countries path { cursor: pointer; }

.pk-hero { position: relative; overflow: hidden; padding: calc(var(--header-h) + clamp(2.6rem, 6vw, 4.6rem)) 0 clamp(4rem, 8vw, 6.5rem); }
.pk-hero__roses, .pk-close__roses { position: absolute; inset: 0; color: var(--pa-faded); opacity: 0.11; pointer-events: none; }
.pk-hero__roses svg, .pk-close__roses svg { position: absolute; height: auto; }
.pk-hero__roses svg:first-child { width: 22rem; left: -5rem; bottom: -7rem; transform: rotate(-16deg); }
.pk-hero__roses svg:last-child { width: 14rem; left: 38%; top: -4rem; transform: rotate(168deg); }
.pk-hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); align-items: center; gap: clamp(2rem, 5vw, 5rem); }
.pk-hero__title { margin: 1rem 0 0; font-family: var(--display); font-weight: 800; font-size: clamp(2.3rem, 4.6vw, 4.1rem); line-height: 1.04; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--pa-ivory); text-wrap: balance; }
.pk-hero .pa-sub { max-width: 27rem; }
.pk-hero__more { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 44px; margin-top: 1.8rem; padding: 0 1.4rem; border: 1px solid rgba(237, 226, 208, 0.45);
  color: var(--pa-ivory); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; text-decoration: none; transition: background 0.25s, border-color 0.25s; }
.pk-hero__more:hover, .pk-hero__more:focus-visible { border-color: var(--pa-ivory); background: rgba(237, 226, 208, 0.1); }

/* the postcards fan out from one another so each shows its face: the cherry picture card at the top left, the message
   card at the bottom right, the old card peeking out behind. The stack is sized by its width and each card by its own
   (cqw), so they keep their proportions on any screen */
.pk-stack { position: relative; width: 100%; max-width: 44rem; aspect-ratio: 1 / 0.8; margin-inline: auto; container-type: inline-size; }
.pk-card { position: absolute; width: 62%; aspect-ratio: 1.5; overflow: hidden; border-radius: 0.8cqw; transform: rotate(var(--r)); container-type: inline-size;
  box-shadow: 0 1px 1px rgba(10, 2, 4, 0.4), 0 1.6cqw 3cqw -0.6cqw rgba(10, 2, 4, 0.55), 0 5cqw 8cqw -3cqw rgba(10, 2, 4, 0.65);
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
/* aged card stock: a few foxing spots, edges browned by time, and a faint sheen where the card has bent */
.pk-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(circle at 14% 80%, rgba(120, 72, 36, 0.16) 0 0.45cqw, transparent 0.8cqw), radial-gradient(circle at 83% 18%, rgba(120, 72, 36, 0.13) 0 0.3cqw, transparent 0.6cqw),
    radial-gradient(circle at 62% 90%, rgba(120, 72, 36, 0.1) 0 0.55cqw, transparent 1cqw), linear-gradient(115deg, rgba(255, 255, 255, 0.16), transparent 36%, transparent 72%, rgba(0, 0, 0, 0.07));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2), inset 0 0 4.4cqw rgba(110, 70, 30, 0.24); }
.pk-card--old { --r: 8deg; left: 31%; top: 1%; background: var(--grain), #E0CFB2; }
.pk-card--picture { --r: -5deg; left: 1%; top: 5%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding-bottom: 12cqw;
  background: var(--grain), radial-gradient(120% 90% at 50% 38%, #5E1628, #330A15); color: var(--pa-ivory); }
.pk-card--message { --r: 3deg; left: 37%; top: 44%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); grid-template-rows: auto 1fr; column-gap: 4cqw;
  padding: 3.8cqw 4.3cqw 4cqw; background: var(--grain), #F4ECDE; color: var(--pa-ink); }

.pk-old__box { position: absolute; right: 4cqw; top: 4cqw; display: grid; place-items: center; width: 12cqw; aspect-ratio: 0.84; border: 1px dashed rgba(52, 37, 34, 0.45);
  font-size: 1.4cqw; line-height: 1.5; letter-spacing: 0.2em; text-transform: uppercase; text-align: center; color: rgba(52, 37, 34, 0.55); }
.pk-old__lines { position: absolute; right: 4.6cqw; bottom: 9.5cqw; display: grid; gap: 4.6cqw; width: 40cqw; }
.pk-old__lines i { height: 1px; background: rgba(52, 37, 34, 0.3); }
.pk-old__branch { position: absolute; left: 4cqw; top: 4cqw; width: 16cqw; color: rgba(74, 14, 30, 0.38); }
.pk-old__branch svg, .pk-pic__rose svg { display: block; width: 100%; height: auto; }

.pk-pic__frame { position: absolute; inset: 4cqw; border: 1px solid rgba(237, 226, 208, 0.55); outline: 1px solid rgba(237, 226, 208, 0.22); outline-offset: 1cqw; }
.pk-pic__rose { width: 19cqw; }
.pk-pic__from { margin-top: 1.6cqw; font-family: var(--display); font-style: italic; font-size: 3.2cqw; color: rgba(237, 226, 208, 0.85); }
.pk-pic__name { margin: 0.6cqw -0.34em 0 0; font-family: var(--display); font-weight: 700; font-size: 9cqw; line-height: 1; letter-spacing: 0.34em; }

.pk-msg__head { grid-column: 1 / -1; margin-bottom: 3cqw; padding-bottom: 1.9cqw; border-bottom: 1px solid var(--pa-rule); text-align: center;
  font-family: var(--display); font-weight: 600; font-size: 2.6cqw; letter-spacing: 0.55em; text-transform: uppercase; color: var(--pa-cherry); }
.pk-msg__note { padding-right: 3.5cqw; border-right: 1px solid rgba(100, 29, 44, 0.32); font-family: "Pinyon Script", cursive; font-size: 4.3cqw; line-height: 1.32; color: var(--pa-cherry); }
.pk-msg__note span { display: block; margin-top: 1.6cqw; text-align: right; }
.pk-msg__side { position: relative; }
.pk-msg__stamp { position: absolute; right: 0; top: 0; width: 12cqw; transform: rotate(4deg); }
.pk-msg__stamp svg, .pk-loose svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 1px 1px rgba(30, 8, 12, 0.3)); }
.pk-msg__mark { position: absolute; right: 7.4cqw; top: 4.6cqw; width: 20cqw; color: rgba(74, 14, 30, 0.5); transform: rotate(-10deg); }
.pk-msg__to { position: absolute; left: 0; right: 0; bottom: 0.5cqw; display: grid; gap: 0.7cqw; }
.pk-msg__to i { display: block; min-height: 5.4cqw; padding-left: 1.1cqw; border-bottom: 1px solid rgba(52, 37, 34, 0.4); font-family: "Pinyon Script", cursive; font-style: normal;
  font-size: 3.9cqw; line-height: 1.3; color: var(--pa-cherry); }
.pk-loose { position: absolute; left: 9%; bottom: 7%; width: 14%; transform: rotate(-11deg); filter: drop-shadow(0 6px 10px rgba(10, 2, 4, 0.45)); }
.pk-loose .pa-cancel { position: absolute; left: 45%; top: 30%; width: 150%; color: rgba(237, 226, 208, 0.55); transform: rotate(8deg); filter: none; }

/* the cards are laid down one after another, and fan out a little under the cursor */
@keyframes pk-lay { from { opacity: 0; transform: translateY(-5cqw) rotate(calc(var(--r) * 2.2)) scale(1.04); } }
.motion-ok .pk-card { animation: pk-lay 1s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.motion-ok .pk-card--picture { animation-delay: 0.18s; }
.motion-ok .pk-card--message { animation-delay: 0.36s; }
.motion-ok .pk-loose { animation: fade-in 0.8s 0.8s ease both; }
@media (hover: hover) {
  .pk-stack:hover .pk-card--old { transform: rotate(9deg) translate(1.5cqw, -1.5cqw); }
  .pk-stack:hover .pk-card--picture { transform: rotate(-8deg) translate(-1.5cqw, -0.5cqw); }
  .pk-stack:hover .pk-card--message { transform: rotate(1.5deg) translate(1cqw, 1cqw); }
}

/* the policy, written on four postcards */
.pk-notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.6rem, 3vw, 2.6rem); max-width: 64rem; margin: 0 auto; }
.pk-note { position: relative; padding: clamp(1.6rem, 3vw, 2.3rem) clamp(1.4rem, 3vw, 2.4rem) clamp(1.5rem, 3vw, 2.2rem); border: 1px solid rgba(100, 29, 44, 0.3); border-radius: 4px;
  outline: 1px solid rgba(100, 29, 44, 0.14); outline-offset: -8px; background: var(--grain), #F8F2E7; box-shadow: 0 1px 1px rgba(52, 37, 34, 0.12), 0 16px 30px -20px rgba(52, 37, 34, 0.5); }
.pk-note__stamp { position: absolute; top: -1.2rem; right: 1.3rem; width: 4.4rem; transform: rotate(5deg); }
.pk-note:nth-child(even) .pk-note__stamp { transform: rotate(-4deg); }
.pk-note__stamp svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 1px 1px rgba(30, 8, 12, 0.25)) drop-shadow(0 5px 8px rgba(30, 8, 12, 0.16)); }
.pk-note__no { margin: 0; font-family: var(--display); font-style: italic; font-size: 1.05rem; color: var(--pa-rose); }
.pk-note__h { margin: 0.35rem 5rem 1.1rem 0; padding-bottom: 0.9rem; border-bottom: 1px solid var(--pa-rule); font-family: var(--display); font-weight: 800;
  font-size: clamp(1.35rem, 2.2vw, 1.7rem); line-height: 1.15; color: var(--pa-cherry); }
.pk-note__text { font-size: 1rem; line-height: 1.7; }
.pk-note__text p { margin: 0 0 0.9rem; } .pk-note__text p:last-child { margin-bottom: 0; }
.pk-note__text b { font-weight: 600; color: var(--pa-cherry); }
.pk-note__text a { color: var(--pa-cherry); text-underline-offset: 3px; word-break: break-word; }
.pk-note .pa-tag { margin-right: 0.5rem; }
.pk-note__text .pk-note__link { display: inline-flex; align-items: center; min-height: 44px; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; }

/* the close */
.pk-close { overflow: hidden; text-align: center; }
.pk-close__roses { opacity: 0.14; }
.pk-close__roses svg:first-child { width: 20rem; left: -3rem; bottom: -6rem; transform: rotate(-12deg); }
.pk-close__roses svg:last-child { width: 13rem; right: -1rem; top: -2rem; transform: rotate(196deg); }
.pk-close__inner { position: relative; max-width: 40rem; margin: 0 auto; }
.pk-close .pa-h2 { text-wrap: balance; }
.pk-close__inner .post-seal { display: block; width: 3.6rem; margin: 0 auto 1.5rem; }
.pk-close__thanks { margin: 1.1rem 0 0; font-family: "Pinyon Script", cursive; font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1.2; color: var(--pa-ivory); }

@media (max-width: 960px) {
  .pk-hero__grid { grid-template-columns: 1fr; text-align: center; }
  .pk-hero .pa-sub { margin-inline: auto; }
  .pk-stack { max-width: 34rem; }
}
@media (max-width: 700px) {
  .pk-hero__title { font-size: clamp(1.9rem, 8.4vw, 2.6rem); }
  .pk-notes { grid-template-columns: 1fr; }
  .pk-note__stamp { width: 3.6rem; right: 1rem; }
  .pk-note__h { margin-right: 4rem; }
  .pk-note { padding: 1.4rem 1.25rem 1.3rem; }
  .pk-note__text { font-size: 0.95rem; line-height: 1.62; }
  .pk-note__text p { margin-bottom: 0.7rem; }
}

/* ---------- "The Safira Parcel Journal" (track my order, /orders; pages/orders.js) ----------
   The shipping policy's dark cherry-wine and antique ivory: a deep wine hero with a grand stamp and a sealed
   envelope, the lookup as a parcel registration card on parchment, each parcel's journey as a vertical postal
   record with its particulars, and a closing note. Motion stays gentle, and only where motion is welcome. */
body.journal-page { --pj-cherry: #541421; --pj-wine: #3B101C; --pj-burgundy: #641D2C; --pj-rose: #8C3544; --pj-ivory: #EDE2D0; --pj-parchment: #F3EBDD;
  --pj-ink: #342522; --pj-faded: #B68B86; --pj-rule: rgba(90, 20, 38, 0.26);
  --pj-weave: repeating-linear-gradient(45deg, rgba(10, 0, 4, 0.08) 0 1px, transparent 1px 4px), repeating-linear-gradient(-45deg, rgba(255, 230, 220, 0.025) 0 1px, transparent 1px 4px);
  background: var(--grain), var(--pj-parchment); color: var(--pj-ink); }
body.journal-page .masthead { background: color-mix(in srgb, #F3EBDD 96%, transparent); border-bottom-color: var(--pj-rule); }
body.journal-page .page { padding: 0; overflow-x: clip; }
.pj-wrap { max-width: 72rem; margin: 0 auto; padding: 0 var(--gutter); }
.pj-dark { background: var(--grain), var(--pj-weave), var(--pj-wine); color: var(--pj-ivory); }
.pj-paper { background: var(--grain), var(--pj-parchment); }
.pj-label { margin: 0; font-size: 0.68rem; font-weight: 500; letter-spacing: 0.34em; text-transform: uppercase; color: var(--pj-rose); }
.pj-dark .pj-label { color: var(--pj-faded); }
.pj-h2 { margin: 0.7rem 0 0; font-family: var(--display); font-weight: 600; font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.05; letter-spacing: 0.07em; text-transform: uppercase; color: var(--pj-cherry); }
.pj-dark .pj-h2 { color: var(--pj-ivory); }
.pj-link { padding: 0; border: 0; background: none; color: var(--pj-cherry); font: inherit; font-family: var(--display); font-style: italic; font-size: 1rem; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.pj-fade { animation: pj-fade 0.6s ease both; }
@keyframes pj-fade { from { opacity: 0; transform: translateY(6px); } }

/* the hero: the stamp, the words, the envelope */
.pj-hero { position: relative; overflow: hidden; padding: calc(var(--header-h) + clamp(2.5rem, 6vw, 4.5rem)) 0 clamp(3.5rem, 7vw, 5.5rem); }
.pj-hero__grid { display: grid; grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.45fr) minmax(0, 0.95fr); align-items: center; gap: clamp(1.5rem, 3.5vw, 3rem); }
.pj-hero__words { text-align: center; }
.pj-title { margin: 1rem 0 0; font-family: var(--display); font-weight: 600; font-size: clamp(2.1rem, 3.4vw, 3.3rem); line-height: 1.05; letter-spacing: 0.04em; text-transform: uppercase; color: var(--pj-ivory); }
.pj-lede { max-width: 27rem; margin: 1.3rem auto 0; font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-weight: 500; font-size: clamp(1.3rem, 1.8vw, 1.55rem); line-height: 1.5; letter-spacing: 0.01em; color: rgba(237, 226, 208, 0.92); }
.pj-stamp { position: relative; margin: 0; transform: rotate(-4deg); transition: transform 0.6s ease; }
.pj-stamp > svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 1px 1px rgba(10, 2, 4, 0.4)) drop-shadow(0 14px 22px rgba(10, 2, 4, 0.35)); transition: filter 0.6s ease; }
.pj-stamp:hover { transform: rotate(-4deg) translateY(-8px); }
.pj-stamp:hover > svg { filter: drop-shadow(0 2px 2px rgba(10, 2, 4, 0.35)) drop-shadow(0 26px 32px rgba(10, 2, 4, 0.4)); }
.pj-stamp__cancel { position: absolute; width: 74%; right: -18%; top: 4%; color: #1A070B; opacity: 0.5; transform: rotate(-10deg); pointer-events: none; }
.pj-env { margin: 0; transform: rotate(3deg); }
.pj-envelope { display: block; width: 100%; height: auto; }
.pj-env .pj-envelope { filter: drop-shadow(0 2px 2px rgba(10, 2, 4, 0.3)) drop-shadow(0 18px 28px rgba(10, 2, 4, 0.35)); }
.motion-ok .pj-stamp { animation: pj-lift 1.4s 0.15s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }
.motion-ok .pj-env { animation: pj-arrive 1.8s 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }
@keyframes pj-lift { from { opacity: 0; transform: rotate(-7deg) translateY(22px); } to { transform: rotate(-4deg); } }
@keyframes pj-arrive { from { opacity: 0; transform: rotate(6deg) translateY(30px); } to { transform: rotate(3deg); } }

/* the lookup: a parcel registration card, a rose beside it */
.pj-find { padding: clamp(4rem, 8vw, 6rem) 0; }
.pj-find__grid { display: grid; grid-template-columns: minmax(0, 12rem) minmax(0, 40rem); justify-content: center; align-items: center; gap: clamp(1.5rem, 4vw, 3.5rem); }
.pj-find__rose { display: block; transform: rotate(-8deg); opacity: 0.9; }
.pj-find__rose svg { display: block; width: 100%; height: auto; }
.pj-find__rose g { stroke-width: 0.7; }
.pj-card { position: relative; padding: clamp(2.2rem, 4.5vw, 3rem) clamp(1.5rem, 4.5vw, 3.2rem) clamp(2.6rem, 5vw, 3.4rem); background: var(--grain), var(--pj-ivory); text-align: center;
  border: 1px solid var(--pj-burgundy); outline: 1px solid var(--pj-rule); outline-offset: -8px; box-shadow: 0 18px 40px -26px rgba(51, 10, 21, 0.55); }
.pj-card__mark { position: absolute; top: 0.9rem; right: 0.9rem; width: 6rem; color: var(--pj-rose); opacity: 0.32; transform: rotate(-9deg); pointer-events: none; }
.pj-card__reg { position: absolute; left: 1.1rem; bottom: 1rem; display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.15rem 0.55rem 0.15rem 0.15rem; border: 1px solid rgba(90, 20, 38, 0.4);
  font-size: 0.55rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--pj-rose); opacity: 0.8; transform: rotate(-2deg); }
.pj-card__reg b { display: grid; place-items: center; width: 1.2rem; height: 1.2rem; background: var(--pj-burgundy); color: var(--pj-ivory); font-family: var(--display); font-size: 0.8rem; letter-spacing: 0; }
.pj-card__lede { max-width: 28rem; margin: 0.9rem auto 0; font-family: var(--display); font-style: italic; font-size: 1.12rem; line-height: 1.5; }
.pj-card__body { margin-top: 1.4rem; }
.pj-card__how { max-width: 28rem; margin: 0 auto; font-size: 0.9rem; line-height: 1.6; color: rgba(52, 37, 34, 0.8); }
/* the email field: an entry line on the registration card, its label in small spaced capitals */
.pj-form { display: grid; justify-items: center; max-width: 26rem; margin: 0 auto; }
.pj-form .pj-card__how { margin-top: 1.1rem; font-size: 0.82rem; }
.pj-field { justify-self: start; font-size: 0.6rem; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: var(--pj-rose); }
.pj-field__input { width: 100%; min-height: 48px; margin-top: 0.4rem; padding: 0.35rem 0.1rem; border: 0; border-bottom: 1px solid rgba(84, 20, 33, 0.55); border-radius: 0; background: transparent;
  color: var(--pj-ink); font-family: var(--display); font-size: 1.2rem; transition: border-color 0.25s, box-shadow 0.25s; }
.pj-field__input::placeholder { color: rgba(52, 37, 34, 0.38); font-style: italic; }
.pj-field__input:focus { outline: none; border-bottom-color: var(--pj-cherry); box-shadow: 0 1px 0 0 var(--pj-cherry); }
.pj-field__input[aria-invalid="true"] { border-bottom-color: #9B2335; box-shadow: 0 1px 0 0 #9B2335; }
.pj-field__error { justify-self: start; min-height: 1.2rem; margin: 0.45rem 0 0; font-size: 0.82rem; color: #8E1F30; text-align: left; }
.pj-form .pj-btn { margin-top: 0.6rem; }
.pj-card__hello { max-width: 28rem; margin: 0 auto; font-family: var(--display); font-style: italic; font-size: 1.12rem; }
.pj-card__msg { max-width: 28rem; margin: 0 auto 0.8rem; color: var(--pj-cherry); font-weight: 500; }
.pj-card__preview { max-width: 28rem; margin: 1.2rem auto 0; padding: 0.5rem 0.8rem; border: 1px dashed var(--pj-rule); font-size: 0.78rem; line-height: 1.5; color: var(--pj-rose); }
.pj-card .pj-link { display: inline-block; margin-top: 1.2rem; }
.pj-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 52px; margin-top: 1.3rem; padding: 0 2.4rem; overflow: hidden;
  border: 1px solid var(--pj-cherry); background: var(--pj-cherry); color: var(--pj-ivory); font-size: 0.74rem; font-weight: 500; letter-spacing: 0.26em; text-transform: uppercase; text-decoration: none; cursor: pointer;
  box-shadow: inset 0 0 0 3px var(--pj-cherry), inset 0 0 0 4px rgba(237, 226, 208, 0.35); transition: background 0.3s; }
.pj-btn:hover { background: var(--pj-burgundy); box-shadow: inset 0 0 0 3px var(--pj-burgundy), inset 0 0 0 4px rgba(237, 226, 208, 0.35); }
.pj-btn span { position: relative; z-index: 1; }
/* the press of ink when the lookup is sent */
.pj-btn::after { content: ""; position: absolute; left: 50%; top: 50%; width: 140%; aspect-ratio: 1; border-radius: 50%; translate: -50% -50%; scale: 0; opacity: 0; pointer-events: none;
  background: radial-gradient(circle, rgba(20, 3, 8, 0.6) 0 38%, rgba(20, 3, 8, 0) 70%); }
.pj-btn.is-stamping { animation: pj-press 0.35s ease-out; }
.pj-btn.is-stamping::after { animation: pj-ink 0.7s ease-out; }
@keyframes pj-press { 40% { transform: scale(0.96); } }
@keyframes pj-ink { 0% { scale: 0.1; opacity: 0.9; } 100% { scale: 1; opacity: 0; } }
.pj-parcels { display: grid; gap: 0.55rem; max-width: 27rem; margin: 1.2rem auto 0; padding: 0; list-style: none; }
.pj-parcel-pick { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.2rem 1rem; width: 100%; padding: 0.75rem 1rem;
  border: 1px solid var(--pj-rule); background: rgba(243, 235, 221, 0.6); color: var(--pj-ink); text-align: left; cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.pj-parcel-pick b { font-family: var(--display); font-weight: 600; font-size: 1.02rem; color: var(--pj-cherry); }
.pj-parcel-pick span { font-size: 0.8rem; color: rgba(52, 37, 34, 0.75); }
.pj-parcel-pick:hover, .pj-parcel-pick[aria-pressed="true"] { border-color: var(--pj-cherry); background: var(--pj-parchment); }
.pj-parcel-pick[aria-pressed="true"] { box-shadow: inset 3px 0 0 var(--pj-cherry); }

/* the results: before a lookup, while it loads, when it can't, and the parcel itself */
.pj-results { padding: 0 0 clamp(4rem, 8vw, 6rem); scroll-margin-top: calc(var(--header-h) + 1rem); }
.pj-empty, .pj-loading, .pj-problem { max-width: 40rem; text-align: center; }
.pj-empty__art { position: relative; width: min(16rem, 70%); margin: 0 auto 1.6rem; }
.pj-empty__art .pj-envelope { transform: rotate(-3deg); filter: drop-shadow(0 10px 16px rgba(51, 10, 21, 0.2)); }
.pj-empty__stamp { position: absolute; width: 30%; right: -8%; top: -16%; transform: rotate(9deg); }
.pj-empty__stamp svg, .pj-record__stamp svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 1px 1px rgba(30, 8, 12, 0.25)) drop-shadow(0 6px 10px rgba(30, 8, 12, 0.14)); }
.pj-empty__title { margin: 0.7rem 0 0; font-family: var(--display); font-weight: 600; font-size: clamp(1.4rem, 2.6vw, 1.9rem); letter-spacing: 0.06em; text-transform: uppercase; color: var(--pj-cherry); }
.pj-empty__text { margin: 0.7rem 0 0; font-family: var(--display); font-style: italic; font-size: 1.08rem; }
.pj-loading { padding-top: 1rem; color: var(--pj-cherry); }
.pj-loading__ink { display: block; width: 9rem; height: auto; margin: 0 auto; }
.pj-loading__ink :is(circle, path) { stroke-dasharray: 1; stroke-dashoffset: 0; }
.motion-ok .pj-loading__ink :is(circle, path) { stroke-dashoffset: 1; animation: pj-ink-draw 1.8s ease-in-out infinite; }
.motion-ok .pj-loading__ink circle:nth-of-type(2) { animation-delay: 0.15s; }
.motion-ok .pj-loading__ink path:nth-of-type(1) { animation-delay: 0.3s; }
.motion-ok .pj-loading__ink path:nth-of-type(2) { animation-delay: 0.4s; }
.motion-ok .pj-loading__ink path:nth-of-type(3) { animation-delay: 0.5s; }
@keyframes pj-ink-draw { 0% { stroke-dashoffset: 1; opacity: 1; } 60% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.pj-loading__text { margin: 1rem 0 0; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase; }
.pj-problem { padding: 1.8rem 1.4rem; border: 1px solid var(--pj-rule); background: var(--grain), var(--pj-ivory); }
.pj-problem__title { margin: 0; font-family: var(--display); font-weight: 600; font-size: 1.5rem; color: var(--pj-cherry); }
.pj-problem p { margin: 0.7rem 0 0; line-height: 1.6; }
.pj-problem a { color: var(--pj-cherry); }
.pj-problem .pj-link { display: inline-block; margin-top: 1rem; }

.pj-parcel { max-width: 62rem; margin: 0 auto; }
.pj-results:empty { display: none; }
.pj-stage { scroll-margin-top: calc(var(--header-h) + 1rem); }
.pj-stage > [hidden] { display: none; }
/* an opened order: a way back to all of them, and out */
.pj-order__bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.6rem 1.5rem; max-width: 62rem; margin: 0 auto 1.3rem; }
.pj-order__bar .pj-link { margin-left: auto; }
.pj-back { display: inline-flex; align-items: center; gap: 0.55rem; min-height: 44px; padding: 0 1.2rem; border: 1px solid var(--pj-rule); background: var(--grain), var(--pj-ivory);
  color: var(--pj-cherry); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.pj-back:hover, .pj-back:focus-visible { border-color: var(--pj-cherry); }
.pj-back span { font-size: 1rem; letter-spacing: 0; }
.pj-parcel.is-example .pj-status { outline: 1px dashed rgba(237, 226, 208, 0.45); outline-offset: -10px; }
.pj-status { position: relative; overflow: hidden; padding: clamp(2.2rem, 5vw, 3.2rem) clamp(1.5rem, 5vw, 3.5rem); text-align: center; }
.pj-status__mark { position: absolute; width: 9rem; right: -1.5rem; top: 0.8rem; color: var(--pj-faded); opacity: 0.25; transform: rotate(-8deg); pointer-events: none; }
.pj-status__title { margin: 0.9rem 0 0; font-family: var(--display); font-weight: 600; font-size: clamp(1.7rem, 3.6vw, 2.7rem); line-height: 1.1; letter-spacing: 0.05em; text-transform: uppercase; color: var(--pj-ivory); }
.pj-status__latest { margin: 1.1rem 0 0; font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-weight: 500; font-size: 1.32rem; line-height: 1.3; color: rgba(237, 226, 208, 0.92); }
.pj-status__latest span { display: block; margin-bottom: 0.3rem; font-family: Jost, sans-serif; font-style: normal; font-size: 0.6rem; font-weight: 500; letter-spacing: 0.28em; text-transform: uppercase; color: var(--pj-faded); }
.pj-status__title { text-wrap: balance; }
.pj-status__expected { display: block; margin-top: 0.25rem; font-size: 1.1rem; color: rgba(237, 226, 208, 0.78); }
.pj-status__wait { max-width: 32rem; margin: 1rem auto 0; font-size: 0.9rem; line-height: 1.6; color: rgba(237, 226, 208, 0.8); }
.pj-status__wait a { color: var(--pj-ivory); }
.pj-record { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(2.6rem, 5vw, 3.6rem); padding: clamp(2.2rem, 5vw, 3.4rem) clamp(1.2rem, 4vw, 3rem);
  background: var(--grain), var(--pj-ivory); border: 1px solid var(--pj-rule); border-top: 0; }
/* "The journey so far", centred over the road with its stamp sitting level beside the words, and the words larger
   (her asks, 2026-11-19) */
.pj-record__head { display: flex; align-items: center; justify-content: center; gap: 0.85rem; margin-bottom: 1.8rem; text-align: center; }
.pj-record__stamp { flex: none; width: 2.5rem; transform: rotate(-4deg); }
.pj-record__head .pj-label { font-size: clamp(0.82rem, 1.3vw, 0.98rem); letter-spacing: 0.3em; padding-left: 0.3em; }

/* the journey so far: one straight road, left to right. Dotted ink runs between the round markers, and a solid line
   runs as far as the parcel has come (--done, 0 to 1). The line starts and ends at the centres of the first and last
   markers: with six columns of width w and gaps g, those sit w/2 in from each side */
.pj-timeline { --gap: 0.9rem; position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0 var(--gap); margin: 0; padding: 0; list-style: none; }
.pj-timeline::before, .pj-timeline::after { content: ""; position: absolute; top: 1.4rem; left: calc((100% - 5 * var(--gap)) / 12); transform-origin: left; }
.pj-timeline::before { right: calc((100% - 5 * var(--gap)) / 12); border-top: 1.5px dotted rgba(90, 20, 38, 0.45); }
.pj-timeline::after { width: calc(5 * (100% + var(--gap)) / 6 * var(--done, 0)); border-top: 1.5px solid var(--pj-ink); }
.motion-ok .pj-timeline::before { animation: pj-line 1.2s 0.2s ease both; }
.motion-ok .pj-timeline::after { animation: pj-line 1.6s 0.5s ease both; }
@keyframes pj-line { from { transform: scaleX(0); } }
.pj-step { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.pj-step__mark { position: relative; z-index: 1; display: grid; place-items: center; width: 2.8rem; height: 2.8rem; border: 1px solid rgba(90, 20, 38, 0.3); border-radius: 50%; background: var(--pj-ivory); color: rgba(52, 37, 34, 0.4); }
.pj-step__mark svg { width: 1.3rem; height: 1.3rem; }
.pj-step.is-done .pj-step__mark { border-color: var(--pj-ink); color: var(--pj-ink); box-shadow: inset 0 0 0 3px var(--pj-ivory), inset 0 0 0 4px rgba(52, 37, 34, 0.35); }
.pj-step__mark .pj-step__check { width: 1.35rem; height: 1.35rem; }
.pj-step.is-current .pj-step__mark { border-color: var(--pj-cherry); background: var(--pj-cherry); color: var(--pj-ivory); box-shadow: 0 0 0 4px var(--pj-ivory), 0 0 0 5px var(--pj-cherry); }
.motion-ok .pj-step.is-current .pj-step__mark::after { content: ""; position: absolute; inset: -6px; border: 1px solid var(--pj-cherry); border-radius: 50%; animation: pj-pulse 2.6s ease-out infinite; }
@keyframes pj-pulse { from { transform: scale(1); opacity: 0.7; } to { transform: scale(1.55); opacity: 0; } }
.pj-step__name { margin: 0.9rem 0 0; font-size: 0.68rem; font-weight: 500; line-height: 1.5; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(52, 37, 34, 0.45); }
.pj-step:is(.is-done, .is-now) .pj-step__name { color: var(--pj-ink); }
.pj-step.is-current .pj-step__name { color: var(--pj-cherry); }
/* the dates: Cormorant Garamond italic, like the notes, instead of Bodoni italic, whose hairlines thinned out at this size */
.pj-step__when { margin: 0.3rem 0 0; font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-weight: 500; font-size: 1.14rem; line-height: 1.25; color: var(--pj-rose); }
.pj-step__note { margin: 0.3rem 0 0; font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-weight: 500; font-size: 1.12rem; line-height: 1.3; }
.pj-step__aside { margin: 0.4rem 0 0; font-size: 0.86rem; line-height: 1.5; color: var(--pj-cherry); }
.pj-step__aside a { color: var(--pj-cherry); }
.motion-ok .pj-step { opacity: 0; transform: translateY(10px); transition: opacity 0.7s ease, transform 0.7s ease; }
.motion-ok .pj-step.is-in { opacity: 1; transform: none; }

/* the Copy button beside a tracking number */
.pj-copy { padding: 0.25rem 0.6rem; border: 1px solid var(--pj-rule); background: none; color: var(--pj-cherry); font-size: 0.6rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.pj-copy:hover { border-color: var(--pj-cherry); }
.pj-copy.is-done { border-color: var(--pj-cherry); background: var(--pj-cherry); color: var(--pj-ivory); }

/* the close: until it reaches you, a rose faint behind */
.pj-close { position: relative; overflow: hidden; padding: clamp(4.5rem, 9vw, 7rem) 0; text-align: center; }
.pj-close__rose { position: absolute; left: 50%; top: 50%; width: 26rem; translate: -50% -50%; color: var(--pj-faded); opacity: 0.1; pointer-events: none; }
.pj-close__rose svg { display: block; width: 100%; height: auto; }
.pj-close__rose g { stroke-width: 0.45; }
.pj-close__inner { position: relative; max-width: 40rem; }
.pj-close .post-seal { width: 4rem; margin: 0 auto 1.3rem; }
.pj-close__text { margin: 1.2rem auto 0; font-family: var(--display); font-style: italic; font-size: 1.2rem; line-height: 1.6; color: rgba(237, 226, 208, 0.9); }
.pj-close__ask { margin: 1.5rem 0 0; font-size: 0.9rem; color: rgba(237, 226, 208, 0.75); }
.pj-close__ask a { color: var(--pj-ivory); text-underline-offset: 4px; }

@media (max-width: 960px) {
  .pj-hero__grid { grid-template-columns: 1fr 1fr; }
  .pj-hero__words { grid-column: 1 / -1; grid-row: 1; }
  .pj-stamp { width: 72%; justify-self: center; }
  .pj-find__grid { grid-template-columns: 1fr; justify-items: center; }
  .pj-find__rose { width: 4.6rem; }
}
/* where the parcel is now, written once under the row: phones only */
.pj-now { display: none; }
/* phones: all six stages fit in one straight row, smaller circles and names; the current stage's time and note move
   beneath the row */
@media (max-width: 760px) {
  .pj-record { padding-inline: 0.9rem; }
  .pj-timeline { --gap: 0.15rem; }
  .pj-timeline::before, .pj-timeline::after { top: 1.05rem; }
  .pj-step__mark { width: 2.1rem; height: 2.1rem; }
  .pj-step__mark svg, .pj-step__mark .pj-step__check { width: 1rem; height: 1rem; }
  .pj-step.is-done .pj-step__mark { box-shadow: inset 0 0 0 2px var(--pj-ivory), inset 0 0 0 3px rgba(52, 37, 34, 0.35); }
  .pj-step.is-current .pj-step__mark { box-shadow: 0 0 0 3px var(--pj-ivory), 0 0 0 4px var(--pj-cherry); }
  .pj-step__name { margin-top: 0.65rem; font-size: 0.5rem; line-height: 1.4; letter-spacing: 0.07em; }
  .pj-step__when { margin-top: 0.2rem; font-size: 0.95rem; }
  .pj-step.is-current :is(.pj-step__when, .pj-step__note, .pj-step__aside) { display: none; }
  .motion-ok .pj-step { transform: none; }
  .pj-now { display: block; margin-top: 1.5rem; padding-top: 1.1rem; border-top: 1px solid var(--pj-rule); text-align: center; }
  .pj-now__when { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 0.2rem 0.6rem; margin: 0; }
  .pj-now__when b { font-size: 0.66rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--pj-cherry); }
  .pj-now__when span { font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-weight: 500; font-size: 1.12rem; color: var(--pj-rose); }
  .pj-now .pj-step__note { margin-top: 0.35rem; font-size: 1.2rem; }
}
@media (max-width: 600px) {
  .pj-card__mark { width: 4.4rem; top: 0.6rem; right: 0.6rem; }
  .pj-card__reg { position: static; margin: 0 0 1rem; }
  .pj-stamp__cancel { right: -10%; }
  .pj-close__rose { width: 18rem; }
}

/* the "Order details" button in a parcel's status, which prints its receipt */
.pj-details-btn { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 44px; margin-top: 1.4rem; padding: 0 1.3rem; border: 1px solid rgba(237, 226, 208, 0.45); background: transparent;
  color: var(--pj-ivory); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; cursor: pointer; transition: background 0.25s, border-color 0.25s; }
.pj-details-btn:hover, .pj-details-btn:focus-visible { border-color: var(--pj-ivory); background: rgba(237, 226, 208, 0.1); }

/* receipt: the order's details printed on a till receipt with torn zigzag edges, which prints out downwards when asked
   for. Typewriter lettering, dashed rules, the total in bold and a thank-you at the foot */
.pj-receipt { width: min(23rem, 92vw); margin: 5vh auto auto; overflow: visible; background: transparent; animation: fade-in 0.3s ease both; }
.pj-receipt::backdrop { background: rgba(20, 4, 8, 0.62); }
.pj-receipt.is-closing { animation: fade-out 0.3s ease both; }
.pj-receipt__close { display: block; min-height: 40px; margin: 0 0 0.4rem auto; padding: 0; border: 0; background: none; color: var(--pj-ivory); font-size: var(--t-sm); font-weight: 500;
  text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.pj-receipt__roll { filter: drop-shadow(0 14px 22px rgba(10, 2, 4, 0.45)); }
.pj-receipt__paper { --zig: 12px; max-height: calc(88vh - 3rem); overflow: auto; padding: 1.9rem 1.6rem 2.1rem; background: var(--grain), #F8F2E6; color: #2A1E1B;
  font-family: "Courier Prime", "Courier New", monospace; font-size: 0.86rem; line-height: 1.55;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / var(--zig) 51% repeat-x, conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / var(--zig) 51% repeat-x;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / var(--zig) 51% repeat-x, conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / var(--zig) 51% repeat-x; }
.motion-ok .pj-receipt__paper { animation: pj-print 1.2s 0.1s cubic-bezier(0.3, 0.6, 0.3, 1) both; }
@keyframes pj-print { from { clip-path: inset(0 0 100% 0); transform: translateY(-14px); } to { clip-path: inset(0 0 0 0); transform: none; } }
.pj-rc__brand { margin: 0; text-align: center; font-family: var(--display); font-weight: 600; font-size: 1.7rem; letter-spacing: 0.32em; text-indent: 0.32em; color: var(--pj-cherry); }
.pj-rc__sub { margin: 0.2rem 0 0; text-align: center; font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; }
.pj-rc__rule { margin: 0.85rem 0; border: 0; border-top: 1.5px dashed rgba(42, 30, 27, 0.45); }
.pj-rc__row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin: 0.1rem 0; }
.pj-rc__row span { text-transform: uppercase; letter-spacing: 0.05em; }
.pj-rc__row b { font-weight: 700; text-align: right; }
.pj-rc__total { font-size: 1.05rem; }
.pj-rc__track { margin: 0.15rem 0 0.2rem; overflow-wrap: anywhere; letter-spacing: 0.04em; }
.pj-rc .pj-copy { font-family: inherit; letter-spacing: 0.12em; }
.pj-rc__thanks { margin: 0.4rem 0 0; text-align: center; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; }
.pj-rc__stars { margin: 0.5rem 0 0; text-align: center; letter-spacing: 0.3em; color: rgba(42, 30, 27, 0.5); }
.pj-rc__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.3rem 1.2rem; margin: 0.8rem 0 0; }
.pj-rc__links .pj-link { font-family: inherit; font-style: normal; font-size: 0.82rem; }
.pj-rc__rose { display: block; width: 1.8rem; margin: 0.9rem auto 0; }
.pj-rc__rose svg { display: block; width: 100%; height: auto; }
.pj-rc__rose g { stroke-width: 1.3; }
