/* Visit to St. Nicholas — a Christmas poster that turns into a letter */

@font-face { font-family: "Unbounded"; font-weight: 200 900; font-display: swap; src: url(assets/fonts/unbounded.woff2) format("woff2"); }
@font-face { font-family: "Telma"; font-weight: 300 900; font-display: swap; src: url(assets/fonts/telma-variable.woff2) format("woff2"); }
@font-face { font-family: "Comfortaa"; font-weight: 400; font-display: swap; src: url(assets/fonts/comfortaa-regular.woff2) format("woff2"); }
@font-face { font-family: "Comfortaa"; font-weight: 500; font-display: swap; src: url(assets/fonts/comfortaa-medium.woff2) format("woff2"); }
@font-face { font-family: "Comfortaa"; font-weight: 700; font-display: swap; src: url(assets/fonts/comfortaa-bold.woff2) format("woff2"); }

:root {
  --g: #0B663A;
  --g-deep: #084D2C;
  --g-night: #073F24;
  --g-soft: #2E5E45;
  --r: #E32527;
  --r-deep: #B8191B;
  --r-ink: #C81D1F;
  --paper: #EAEBE6;
  --white: #FCFCFA;
  --pink: #F5B3C8;
  --gold: #D6A13F;
  --on-g: #DCE9E1;          /* secondary text on green */
  --on-r: #FBE3E1;          /* secondary text on red */

  --display: "Unbounded", "Comfortaa", system-ui, sans-serif;
  --script: "Telma", cursive;
  --body: "Comfortaa", system-ui, sans-serif;

  --stripe: 10px;
  --gutter: calc(var(--stripe) + 16px);
  --wrap: 1240px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --shadow-card: 0 1px 2px rgba(8, 45, 26, .12), 0 18px 36px -18px rgba(8, 45, 26, .5);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--g) var(--paper); }
body {
  margin: 0; background: var(--paper); color: var(--g);
  font: 500 1.0625rem/1.6 var(--body);
  overflow-x: clip; -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, figure, address { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1.5px; }
::selection { background: var(--r-ink); color: var(--white); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ── airmail stripes on the screen edges ─────────────────────────────────── */
.airmail {
  position: fixed; top: 0; bottom: 0; z-index: 60; width: var(--stripe); pointer-events: none;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 44'%3E%3Cpath d='M0 5 10 0v15L0 20Z' fill='%23E32527'/%3E%3Cpath d='M0 27 10 22v15L0 42Z' fill='%230B663A'/%3E%3C/svg%3E") 0 0 / 100% auto repeat-y;
}
.airmail--l { left: 0; }
.airmail--r { right: 0; transform: scaleX(-1); background-position: 0 50%; }
.snow { position: fixed; inset: 0; z-index: 50; pointer-events: none; width: 100%; height: 100%; }

/* ── buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 56px; padding: 0 1.5em; border-radius: 999px; border: 2px solid currentColor;
  font: 700 1rem/1.1 var(--body); text-decoration: none; white-space: nowrap;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background-color .2s, color .2s;
}
.btn__i { width: 22px; height: 22px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px); transition-duration: .08s; }
.btn--solid { background: var(--g); border-color: var(--g); color: var(--white); box-shadow: 0 12px 24px -14px rgba(8, 77, 44, .9); }
.btn--solid:hover { background-color: var(--g-deep); }
.btn--line { color: var(--g); }
.btn--line:hover { background-color: var(--g); background-image: var(--grain); background-size: 240px; border-color: var(--g); color: var(--white); }
.btn--cream { background: var(--r-ink); border-color: var(--r-ink); color: var(--white); box-shadow: 0 16px 30px -14px rgba(60, 0, 0, .75); }
.btn--cream:hover { background-color: var(--r); border-color: var(--r); }
.btn--ghost { background: var(--paper); border-color: var(--paper); color: var(--g); box-shadow: 0 14px 28px -14px rgba(0, 0, 0, .55); }
.btn--ghost:hover { background-color: var(--white); border-color: var(--white); }

/* ── ornaments ───────────────────────────────────────────────────────────── */
.orn { position: absolute; width: var(--sz, 64px); height: var(--sz, 64px); pointer-events: none; animation: sway var(--dur, 6s) ease-in-out infinite alternate; transform-origin: 50% 10%; }
@keyframes sway { from { transform: rotate(calc(var(--sw, 6deg) * -1)); } to { transform: rotate(var(--sw, 6deg)); } }

/* ── poster → postcard on the letter ─────────────────────────────────────── */
.poster { position: relative; height: calc(100svh + 120svh); background: var(--paper); }
/* letter screen: a sheet of ruled paper with a margin, texture and a fold */
.desk::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, transparent calc(var(--gutter) + 38px), rgba(200, 29, 31, .28) calc(var(--gutter) + 38px) calc(var(--gutter) + 40px), transparent calc(var(--gutter) + 40px)),
    repeating-linear-gradient(180deg, transparent 0 35px, rgba(11, 102, 58, .09) 35px 36px),
    url(assets/grain-fine.png) 0 0 / 200px,
    radial-gradient(120% 90% at 50% 40%, #F7F6F1 0%, #EDEDE7 70%, #E3E3DC 100%);
  opacity: var(--q, 0);
}
.poster__stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }

.desk { position: absolute; inset: 0; }
.letter {
  position: absolute; left: var(--gutter); right: var(--gutter); top: 55%;
  display: grid; gap: 12px; justify-items: start;
  opacity: var(--q, 0); transform: translateY(calc((1 - var(--q, 0)) * 40px));
}
.letter__head { display: grid; justify-items: center; width: min(100%, 320px); rotate: -3deg; font-size: clamp(3rem, 2.2rem + 3vw, 3.8rem); }
.letter__hello { font: 750 1em/1 var(--script); color: var(--r-ink); }
.letter__body { max-width: 42ch; color: var(--g-soft); font-size: 1rem; text-wrap: pretty; }
.letter__cta { display: none; gap: 12px; margin-top: 6px; }
.letter__actions { display: grid; gap: 14px; width: fit-content; max-width: 100%; }
.letter__phones { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 22px; }
@media (max-width: 1039px) {
  .letter__actions { width: 100%; }
  .letter { justify-items: stretch; left: var(--gutter); right: var(--gutter); max-width: 22rem; margin-inline: auto; }
  .letter__head, .letter__sign { justify-self: center; }
  .letter__sign { justify-self: end; }
  .letter__body { text-align: left; }
  .letter__sign { justify-self: end; margin: 10px 0 12px 0; }
}
@media (max-width: 1039px) {
  /* pills always fit their text: size from container width, and when space runs out the e-mail wraps to a new line */
  .letter__phones { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; margin-top: 6px; container-type: inline-size; }
  .letter .letter__phones svg { width: 16px; height: 16px; flex: none; }
  .letter .letter__phones a { flex: 1 1 auto; justify-content: center; font-size: clamp(.72rem, 3.5cqi, .9rem); letter-spacing: -.01em; min-height: 42px; gap: 6px; white-space: nowrap; padding: 0 14px; border-radius: 999px; background: #FFFFFF; box-shadow: 0 6px 14px -8px rgba(8, 45, 26, .35); }
  .letter .letter__phones a span { border: 0; padding: 0; }
}
.letter__phones a { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; text-decoration: none; font: 800 1rem/1 var(--display); letter-spacing: -.01em; color: var(--g); }
.letter__phones a span { border-bottom: 1.5px solid rgba(200, 29, 31, .4); padding-bottom: 2px; }
.letter__phones a:hover span { border-bottom-color: var(--r-ink); }
.letter__phones svg { width: 19px; height: 19px; color: var(--r-ink); }
.letter__sign { font: 700 1.75rem/1 var(--script); color: var(--g); justify-self: end; margin: -34px 2% 8px 0; transform: rotate(-6deg); }
.letter .postmark { position: absolute; right: -4px; top: -58px; display: none; }

.ribbon { position: relative; width: min(100%, 320px); height: 44px; }
.letter__hello { position: relative; z-index: 1; }
.letter .ribbon { z-index: 2; margin-top: -.2em; width: 100%; filter: drop-shadow(0 6px 8px rgba(8, 45, 26, .25)); }
.ribbon__bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ribbon span { position: absolute; inset: 0 26px 5px; display: flex; align-items: center; justify-content: center; color: var(--white); font-weight: 700; font-size: .875rem; white-space: nowrap; }

.card {
  position: absolute; left: 0; top: 0; width: 100vw; height: var(--ch, 100svh);
  transform-origin: 0 0;
  transform: translate(var(--tx, 0px), var(--ty, 0px)) rotate(var(--rot, 0deg)) scale(var(--s, 1));
  will-change: transform;
}
.card__paper {
  position: absolute; inset: calc(var(--frame, 24px) * -1); background: #FFFFFF;
  opacity: var(--fp, 0); box-shadow: 0 30px 60px -30px rgba(8, 45, 26, .6);
  padding: var(--hole, 10px);
  -webkit-mask: linear-gradient(#000 0 0) content-box, radial-gradient(circle, #0000 calc(var(--hole, 10px) * .5), #000 calc(var(--hole, 10px) * .56)) calc(var(--hole, 10px) * -1) calc(var(--hole, 10px) * -1) / calc(var(--hole, 10px) * 2) calc(var(--hole, 10px) * 2) round;
  -webkit-mask-composite: source-over;
  mask: linear-gradient(#000 0 0) content-box, radial-gradient(circle, #0000 calc(var(--hole, 10px) * .5), #000 calc(var(--hole, 10px) * .56)) calc(var(--hole, 10px) * -1) calc(var(--hole, 10px) * -1) / calc(var(--hole, 10px) * 2) calc(var(--hole, 10px) * 2) round;
  mask-composite: add;
}
.card__face {
  position: absolute; inset: 0; overflow: hidden; background: var(--g); color: var(--paper);
  border-radius: var(--rad, 0px);
}
/* red line inside the perforated frame, like on the day stamps */
.card__paper::after {
  --gap: calc(5px / var(--s, 1));                     /* fixed on-screen gap and thickness, regardless of scale */
  content: ""; position: absolute; inset: calc(var(--frame, 24px) - var(--gap) - 2px / var(--s, 1));
  border-radius: calc(var(--rad, 0px) + var(--gap));
  border: calc(2px / var(--s, 1)) solid var(--r-ink);
}
/* shadow under the whole postcard — the frame mask eats a plain box-shadow */
.card { filter: drop-shadow(0 calc(var(--fp, 0) * 28px) calc(var(--fp, 0) * 26px) rgba(8, 45, 26, calc(var(--fp, 0) * .38))); }
.card__title { position: absolute; left: 0; right: 0; top: 17%; display: grid; justify-items: center; text-align: center; font-weight: 400; }
.card__script {
  position: relative; z-index: 2; font: 800 clamp(2rem, 9.4vw, 5.6rem)/1 var(--script); color: #FFFFFF; white-space: nowrap;
  transform: rotate(-4deg) translate(1%, 8%);
  /* title on a red, rounded ribbon */
  background: var(--r-ink); padding: .04em .42em .16em; border-radius: .32em;
  box-shadow: 0 .06em 0 #8E1214, 0 .35em .6em -.25em rgba(0, 0, 0, .45);
}
.card__giant { display: grid; justify-items: center; font: 900 min(23vw, 29svh)/.86 var(--display); letter-spacing: -.02em; color: var(--paper); }
.card__giant > span { display: flex; }
.gl {
  display: inline-block; margin-inline: -.04em;
  /* smooth rounded green outline (SVG filter #rim): letters overlap like paper cut-outs */
  filter: url(#rim-sm);
  transform: translateY(var(--y)) rotate(var(--r));
  animation: letter-sway 7s ease-in-out var(--d) infinite alternate;
}
@keyframes letter-sway {
  from { transform: translateY(var(--y)) rotate(var(--r)); }
  to { transform: translateY(calc(var(--y) * -.4)) rotate(calc(var(--r) * -.5)); }
}


.orn--p1 { --sz: 16vw; --dur: 5.5s; left: 6%; top: 4%; }
.orn--p2 { --sz: 11vw; --dur: 7s; --sw: 12deg; right: 8%; top: 7%; transform-origin: 50% 50%; }
.orn--p3 { --sz: 18vw; --dur: 8s; --sw: 3deg; right: -3%; top: 44%; }
.orn--p4 { --sz: 14vw; --dur: 6.4s; left: -2%; top: 47%; }
.orn--p5 { --sz: 8vw; --dur: 4.6s; --sw: 20deg; left: 38%; top: 5%; transform-origin: 50% 50%; }
.orn--p6 { --sz: 17vw; --dur: 5s; --sw: 4deg; right: 6%; bottom: 23%; }
.orn--p7 { --sz: 9vw; --dur: 9s; --sw: 30deg; left: 30%; bottom: 29%; transform-origin: 50% 50%; }
.orn--p13 { --sz: 12vw; --dur: 7s; --sw: 2deg; left: 20%; bottom: 25%; display: none; }
.orn--p14 { --sz: 9vw; --dur: 8s; --sw: 2deg; right: 22%; top: 40%; display: none; }
.pc .orn--a { transform-origin: 50% 100%; }
.orn--p8 { --sz: 13vw; --dur: 7.4s; left: 8%; top: 49%; }
.orn--p9 { --sz: 11vw; --dur: 6s; --sw: 14deg; left: 44%; top: 50%; transform-origin: 50% 50%; }
.orn--p10 { --sz: 10vw; --dur: 8s; --sw: 25deg; right: 38%; bottom: 22%; transform-origin: 50% 50%; display: none; }
.orn--p11 { --sz: 5vw; --dur: 3.6s; --sw: 30deg; left: 60%; top: 13%; transform-origin: 50% 50%; }
.orn--p12 { --sz: 12vw; --dur: 6.6s; --sw: 3deg; left: 26%; top: 56%; }

@media (max-width: 1039px) {
  /* phone: ornaments in mirrored pairs — chaotic, but balanced */
  .card .orn--p1 { --sz: 15vw; left: 7%; top: 7%; right: auto; bottom: auto; }
  .card .orn--p2 { --sz: 13vw; right: 7%; top: 8%; left: auto; bottom: auto; }
  .card .orn--p5 { --sz: 7vw; left: 30%; top: 10%; right: auto; bottom: auto; }
  .card .orn--p11 { --sz: 6vw; right: 30%; left: auto; top: 12%; bottom: auto; }
  .card .orn--p4 { display: none; }
  .card .orn--p3 { --sz: 12vw; right: 6%; top: auto; bottom: calc(var(--rowB) + 33vw); left: auto; opacity: calc(1 - var(--p, 0) * 2.2); }
  .card .orn--p9 { --sz: 7vw; left: 7%; top: auto; bottom: calc(var(--rowB) + 36vw); right: auto; display: block; }
  .card .orn--p7 { display: none; }
  .card .orn--p6 { --sz: 11vw; right: 8%; bottom: calc((1 - var(--p, 0)) * (var(--rowB) + 20vw) + var(--p, 0) * 5%); top: auto; left: auto; }
  /* in the postcard the empty bottom is filled by trees, a bauble, a gift and a twig — they appear only at p→1 */
  .card .orn--p8, .card .orn--p10, .card .orn--p12, .card .orn--p14 { display: block; top: auto; right: auto; opacity: calc(var(--p, 0) * 2.2 - 1.2); }
  .card .orn--p8 { --sz: 10vw; left: 8%; bottom: 38%; }
  .card .orn--p10 { --sz: 9vw; left: auto; right: 8%; bottom: 40%; }
  .card .orn--p12 { --sz: 11vw; left: 38%; bottom: 8%; }
  .card .orn--p14 { --sz: 14vw; left: auto; right: 22%; bottom: 7%; }
  /* in the 4:5 postcard the title moves up, Santa and the date spread over the bottom half */
  .card .card__title { top: calc(17% - var(--p, 0) * 4% + (1 - var(--p, 0)) * var(--spare) * .55); }
  .card .card__giant { font-size: var(--F); }
  .card .card__script { font-size: max(2rem, .41 * var(--F)); }   /* plate in proportion to MIKO, as on the phone */
  /* phone first screen, bottom to top: buttons → "Santa | date" row → villa → title.
     --rowB: row distance from the bottom (above the two buttons); the postcard (p=1) has no buttons — back to %. */
  .card {
    --rowB: calc(158px + env(safe-area-inset-bottom));
    --F: min(23vw, 15svh);                                                   /* MIKO/ŁAJA font size: never grows past the height */
    --villa: clamp(120px, calc((83svh - 186px - 1.3 * var(--F) - min(10vw, 44px) - 1.72 * var(--F)) / .55), min(76vw, 3.6 * var(--F)));
    /* extra height once the villa is at max (tall narrow window) — split it: half above the title */
    --spare: max(0px, calc(83svh - 186px - 1.3 * var(--F) - min(10vw, 44px) - 1.72 * var(--F) - .55 * var(--villa)));
  }
  .card .card__santa { bottom: calc((1 - var(--p, 0)) * var(--rowB) + var(--p, 0) * 7%); --sw: calc(var(--F) * (1.3 - var(--p, 0) * .15)); }   /* everything from --F: on tablet the proportions match the phone */
  .card .card__house { display: block; right: auto; left: 50%; translate: -50% 0; top: auto; bottom: calc(var(--rowB) + 1.3 * var(--F) + 4px + var(--spare) * .3);
    /* width from the free space between title and row: (83svh − row − title height + 40px overlap) / villa ratio */
    width: var(--villa); opacity: calc(1 - var(--p, 0) * 2.2); }
  @media (max-height: 620px) { .card .card__house { display: none; } }
  /* p=0: right of Santa in the row; p=1 (postcard): centred, slightly covering the bottom of ŁAJA — like the red plate on top */
  .card .sticker--date { bottom: auto; right: auto; left: 50%; width: max-content;
    /* p=0: bottom edge above the button row (translateY −100%); p=1: top under ŁAJA with overlap */
    top: calc((1 - var(--p, 0)) * (100% - var(--rowB) - 6vw) + var(--p, 0) * (13% + 2.3 * var(--F) - 14px));
    translate: calc(-50% + (1 - var(--p, 0)) * (43vw - 50%)) calc((1 - var(--p, 0)) * -100%);
    font-size: clamp(1.2rem, .26 * var(--F), 3rem); }
  .card .orn--p13 { display: block; --sz: 10vw; left: auto; right: 37%; top: auto; bottom: 15%; opacity: calc(var(--p, 0) * 2.2 - 1.2); }
}
@media (max-width: 1039px) {
  /* in the squeezed postcard these ornaments would overlap the title — they disappear on zoom-out */
  .card .orn--p4, .card .orn--p9 { opacity: calc(1 - var(--p, 0) * 2.2); }
}
.card__santa {
  --sw: min(30vw, 180px);
  position: absolute; left: 5%; bottom: 18%; width: var(--sw); height: auto; aspect-ratio: 1;
  background: radial-gradient(circle closest-side, var(--paper) 98%, transparent 100%); padding: calc(var(--sw) * .21); object-fit: contain; object-position: 50% 50%; overflow: visible; transform: rotate(-6deg); z-index: 2;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .35));   /* circle as a background, not a clip — the legs are not cut off */
}
.sticker {
  position: absolute; display: grid; justify-items: center; line-height: 1;
  background: var(--paper); color: var(--r-ink); border-radius: 18px;
  box-shadow: 0 10px 20px -10px rgba(0, 0, 0, .5);
}
.sticker--date {
  right: 6%; top: 60%; padding: 14px 18px 12px; transform: rotate(-5deg);
  background: var(--r-ink); color: var(--paper); box-shadow: 0 0 0 5px var(--g), 0 14px 24px -10px rgba(0, 0, 0, .55);
  font: 800 clamp(1.3rem, 6vw, 2.4rem)/1 var(--display); letter-spacing: -.02em;
}
.sticker--date i { font-style: normal; color: var(--paper); }
.sticker--date b { font-size: max(.5em, .75rem); letter-spacing: .3em; color: var(--paper); margin-top: 6px; padding-left: .3em; }

.poster__cta {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: calc(22px + env(safe-area-inset-bottom));
  display: grid; grid-template-columns: 1fr; gap: 10px; z-index: 3;
  opacity: calc(1 - var(--p, 0) * 3); visibility: var(--cta-vis, visible);
  transform: translateY(calc(var(--p, 0) * 60px));
}
.poster__hint {
  position: absolute; left: 50%; bottom: calc(150px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 0;
  color: var(--on-g); font: 700 .75rem/1 var(--body); letter-spacing: .2em; text-transform: uppercase; white-space: nowrap;
  opacity: calc(.85 - var(--p, 0) * 5); pointer-events: none;
}
/* hint as on Night to Shine: label + mouse with a wheel; on touch — swipe only, no word */
.hint__ico { width: 30px; height: 34px; }
.hint__b { transform-box: view-box; transform-origin: center; }
.hint__ico--mouse .hint__b { animation: hint-wheel 2.3s var(--ease-out) infinite; }
.hint__ico--swipe { display: none; }
.hint__ico--swipe .hint__b { animation: hint-swipe 2.3s var(--ease-out) infinite; }
@keyframes hint-wheel { 0% { transform: translateY(0); opacity: .4; } 25% { opacity: 1; } 68% { transform: translateY(3.2px); opacity: 0; } 69% { transform: translateY(0); opacity: 0; } 100% { opacity: .4; } }
@keyframes hint-swipe { 0% { transform: translateY(0); opacity: .4; } 25% { opacity: 1; } 72% { transform: translateY(-8px); opacity: 0; } 73% { transform: translateY(0); opacity: 0; } 100% { opacity: .4; } }
@media (hover: none), (max-width: 1039px) {
  .poster__hint span, .hint__ico--mouse { display: none; }
  .hint__ico--swipe { display: block; width: 36px; height: 40px; color: var(--paper); }
}
@media (prefers-reduced-motion: reduce) { .hint__b { animation: none !important; } }

.desk .orn--d1 { --sz: 54px; left: 4%; bottom: 6%; --dur: 7s; display: none; }
.desk .orn--d2 { --sz: 34px; right: 8%; top: 8%; --sw: 20deg; transform-origin: 50% 50%; --dur: 5s; }
.desk .orn--d3 { --sz: 70px; right: 6%; bottom: 8%; --dur: 7s; --sw: 2deg; transform-origin: 50% 100%; display: none; }
.desk .orn--d4 { --sz: 46px; right: 12%; bottom: 7%; --dur: 8s; --sw: 2deg; transform-origin: 50% 100%; display: none; }
@media (min-width: 1040px) { .desk .orn--d1, .desk .orn--d3, .desk .orn--d4 { display: block; } .desk .orn--d1 { --sz: 80px; left: 46%; bottom: 8%; } }

/* poster: villa, paper texture, postmark */
.card__house { display: none; position: absolute; right: -6%; bottom: 20%; width: 64%; height: auto; opacity: 1; pointer-events: none; }
.card__face::after {
  content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none; border-radius: inherit;
  background:
    linear-gradient(118deg, rgba(255,255,255,.07) 0%, transparent 38%, transparent 62%, rgba(0,0,0,.08) 100%);
  opacity: 1;
}
.card__orgs { position: absolute; left: 50%; bottom: 3%; translate: -50% 0; display: flex; align-items: center; gap: 18px; margin: 0; color: var(--g-night); --la: var(--g-night); pointer-events: none; }
.card__orgs .logo { height: 18px; width: auto; }
.card__orgs .logo--zako { height: 24px; }
.card__orgs .logo--rancho { height: 20px; }
@media (max-width: 1039px) { .card__orgs { left: 50%; right: auto; top: 3.5%; bottom: auto; translate: -50% 0; gap: 12px; } .card__orgs .logo { height: 20px; } .card__orgs .logo--zako { height: 40px; } .card__orgs .logo--rancho { height: 22px; } .card .pm--poster { display: none; } }
.card .pm--poster { position: absolute; right: 3%; top: 3%; width: 30vw; max-width: 170px; rotate: 12deg; color: var(--paper); opacity: calc(.75 - var(--p, 0) * 1.6); }
.card .pm--poster .pm__waves { color: var(--gold); }
.card .pm--poster .pm__c, .card .pm--poster .pm__s { fill: var(--paper); }
.card .pm--poster { opacity: calc(.92 - var(--p, 0) * 1.6) !important; }

/* ── tile band (like a Christmas pattern of squares) ─────────────────────── */
.tiles { display: flex; overflow: hidden; background: var(--g-deep); }
.tile { flex: none; width: 72px; height: 72px; background: var(--bg); display: grid; place-items: center; }
.tile svg { width: 64%; height: 64%; }

/* ── postcard stack ──────────────────────────────────────────────────────── */
.stack { position: relative; z-index: 2; }
.stack::after { content: ""; display: block; height: 1px; }
.pc { position: sticky; top: 12px; display: grid; place-items: center; padding: 12px calc(var(--stripe) + 10px) 0; }
.pc:last-child { padding-bottom: 24px; }
.pc__card {
  position: relative; width: 100%; height: 100%; max-width: var(--wrap); overflow: hidden;
  border-radius: 26px; box-shadow: 0 30px 60px -30px rgba(8, 45, 26, .55);
  transform: rotate(var(--tilt)) scale(calc(1 - var(--k, 0) * .08));
  display: grid; grid-template-rows: auto 1fr; align-content: start;
  padding: clamp(24px, 5vw, 64px);
  will-change: transform;
}
/* a card buried under the deck on tablets (app.js): no GPU layer, no animations; opacity, not visibility, keeps it in the accessibility tree */
.pc.is-buried .pc__card { opacity: 0; will-change: auto; }
/* a card covered by the next one or below the screen on tablets (app.js): no animations, so no layers; the album stops on its frame */
.pc.is-still .album__bars i.is-run::after, .pc.is-still .pc__santa, .pc.is-still .orn { animation: none !important; }
.pc__card::after { content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none; background: var(--g-night); opacity: calc(var(--k, 0) * .32); }
.pc--green .pc__card { background: var(--g); color: var(--paper); --soft: var(--on-g); }
.pc--red .pc__card { background: var(--r-ink); color: var(--white); --soft: var(--on-r); }
.pc--cream .pc__card::after { opacity: calc(var(--k, 0) * .06); }
.pc--pink .pc__card::after { opacity: calc(var(--k, 0) * .14); }
.pc--cream .pc__card { background: var(--white); color: var(--g); --soft: var(--g-soft); }
.pc--gold .pc__card { background: var(--gold); color: var(--g-night); --soft: #2E2408; }
.pc--gold .pc__card::after { opacity: calc(var(--k, 0) * .16); }
.pc--gold .pc__num { background: var(--r-ink); color: var(--white); }
.pc__text .pc__badge {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 6px; padding: 8px 14px 8px 10px; rotate: -3deg;
  background: var(--r-ink); color: var(--white) !important; border-radius: 10px; box-shadow: 0 0 0 3px var(--white), 0 10px 18px -10px rgba(8, 45, 26, .5);
}
.pc__badge svg { width: 30px; height: 30px; color: var(--white); }
.pc__badge span { display: grid; font: 800 .6875rem/1.1 var(--display); letter-spacing: .14em; text-transform: uppercase; }
.pc__badge b { font-size: 1rem; letter-spacing: .06em; }
.pc--pink .pc__card { background: var(--pink); color: var(--g-night); --soft: #3C2A2F; }

.pc__text { position: relative; z-index: 2; display: grid; justify-items: start; gap: 12px; max-width: 34rem; }
.pc__num {
  display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  background: var(--gold); color: var(--g-night); font: 900 1.9rem/1 var(--display); transform: rotate(-8deg);
  box-shadow: 0 8px 16px -8px rgba(0, 0, 0, .45);
}
.pc--cream .pc__num { background: var(--r-ink); color: var(--white); }
.pc__icon {
  position: absolute; left: 50px; top: -6px; width: 44px; height: 44px; padding: 8px; border-radius: 50%;
  background: var(--white); color: var(--g); box-shadow: 0 6px 12px -6px rgba(0, 0, 0, .45);
}
.pc__text h3 { font: 800 clamp(1.7rem, 1.1rem + 3.4vw, 3.6rem)/1.02 var(--display); letter-spacing: -.03em; text-wrap: balance; margin-top: 6px; }
.pc__text p { color: var(--soft); font-size: 1.0625rem; max-width: 36ch; text-wrap: pretty; }

.pc .postcard { position: relative; z-index: 2; align-self: center; justify-self: end; width: min(76%, 360px); margin-top: 18px; }
.pc__road { position: relative; height: 64px; margin: 10px calc(clamp(24px, 5vw, 64px) * -1) 0; z-index: 3; }
.pc__card { grid-template-rows: auto auto auto; }
.pc__road::before { content: ""; position: absolute; left: 6%; right: 6%; bottom: 10px; border-bottom: 3px dotted currentColor; opacity: .45; }
.pc__santa { position: absolute; bottom: 8px; left: 2%; width: 64px; height: auto; opacity: 0; }
.pc__santa { --walk: 2.8s; --steps: 7; }
.pc.is-active .pc__santa { animation: stroll var(--walk) cubic-bezier(.35, .05, .65, .95) forwards, bob .42s ease-in-out var(--steps) alternate; }
@keyframes stroll { 0% { opacity: 0; left: 2%; } 10% { opacity: 1; } 100% { opacity: 1; left: 80%; } }
@keyframes bob { from { rotate: -3deg; translate: 0 0; } to { rotate: 3deg; translate: 0 -3px; } }

.pc .orn--a { --sz: 70px; right: 8%; top: 6%; --dur: 6s; }
.pc .orn--b { --sz: 58px; left: 6%; bottom: 34%; --dur: 7s; --sw: 10deg; }
.pc .orn--c { display: none; --sz: 40px; left: 46%; bottom: 96px; --dur: 5s; --sw: 18deg; transform-origin: 50% 50%; }

/* photo postcard */
.postcard {
  background: var(--white); padding: 10px 10px 0; border-radius: 6px; color: var(--g);
  box-shadow: var(--shadow-card); transform: rotate(var(--tilt, -2deg));
}
.postcard__media { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 3px; background: var(--paper); }
.postcard__media img { width: 100%; height: 100%; object-fit: cover; }
.postcard--art .postcard__media { display: grid; place-items: center; padding: 8%; background: #F4F3EE; }
.postcard--art .postcard__media img { width: 100%; height: 100%; object-fit: contain; min-height: 0; }
.postcard--tall .postcard__media { aspect-ratio: 4 / 5; padding: 6% 10%; }
.pc .postcard--tall { width: min(62%, 300px); }
.postcard--art .postcard__media:has(.postcard__detail) { padding: 0; }
.postcard--art .postcard__media img.postcard__detail { object-fit: cover; object-position: 44% 28%; transform: scale(1.9); }
.postcard__svg { width: 100%; height: 100%; }
.postcard__slot {
  width: 100%; height: 100%; display: grid; place-items: center; border-radius: 3px;
  background: repeating-linear-gradient(-45deg, #EFEEE8 0 12px, #F6F5F0 12px 24px); outline: 2px dashed rgba(11, 102, 58, .35); outline-offset: -10px;
}
.postcard__slot svg { width: 30%; height: 30%; color: var(--g); opacity: .55; }
.postcard figcaption { padding: 10px 4px 12px; font-weight: 700; font-size: .875rem; }
.postcard__stamp {
  position: absolute; top: -12px; right: 14px; width: 40px; height: 46px; padding: 6px;
  background: var(--white); display: grid; place-items: center; transform: rotate(6deg); z-index: 3;
  box-shadow: inset 0 0 0 6px var(--white), inset 0 0 0 7.5px rgba(200, 29, 31, .6);
  -webkit-mask: linear-gradient(#000 0 0) content-box, radial-gradient(circle, #0000 1.9px, #000 2.3px) -4px -4px / 8px 8px round;
  -webkit-mask-composite: source-over;
  mask: linear-gradient(#000 0 0) content-box, radial-gradient(circle, #0000 1.9px, #000 2.3px) -4px -4px / 8px 8px round;
  mask-composite: add;
}
.postcard__stamp svg { width: 16px; height: 16px; color: var(--r); }

/* ── price and days ──────────────────────────────────────────────────────── */
.plan { position: relative; z-index: 1; background: var(--r-ink); color: var(--white); margin-top: -110px; padding: calc(56px + 110px) var(--gutter) 88px; overflow: hidden; }
.plan__in { position: relative; z-index: 2; max-width: var(--wrap); margin: 0 auto; display: grid; gap: 64px; }
.price { display: grid; justify-items: start; }
.price__h { font: 800 clamp(2rem, 1.4rem + 2.8vw, 3.4rem)/1 var(--script); color: var(--white); transform: rotate(-4deg); transform-origin: 0 50%; text-shadow: .045em .055em 0 var(--pink); }
.price__big { display: flex; align-items: baseline; gap: .15em; line-height: .9; margin-top: 8px; white-space: nowrap; }
.price__big strong { font: 900 clamp(4.2rem, 1.5rem + 15vw, 7rem)/.9 var(--display); letter-spacing: -.05em; color: var(--paper); }
.price__big span { font: 700 clamp(1.2rem, 1rem + 1vw, 1.8rem)/1 var(--display); color: var(--on-r); }
.ticket {
  position: relative; margin-top: 26px; padding: 18px 26px 20px; color: var(--g);
  background: var(--paper); border-radius: 14px; transform: rotate(2deg);
  box-shadow: 0 16px 30px -16px rgba(0, 0, 0, .5);
}
.ticket::before, .ticket::after { content: ""; position: absolute; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%; background: var(--r-ink); }
.ticket::before { left: -13px; }
.ticket::after { right: -13px; }
.ticket__label { font-weight: 700; font-size: .9375rem; color: var(--r-ink); }
.ticket__group { font: 800 2.2rem/1.1 var(--display); letter-spacing: -.03em; }
.ticket__note { color: var(--g-soft); font-size: .9375rem; }

.days__h { font: 800 clamp(1.3rem, 1rem + 1.2vw, 1.7rem)/1.15 var(--display); letter-spacing: -.02em; color: var(--paper); }
.days__lede { margin-top: 6px; max-width: 42ch; color: var(--on-r); font-size: .9375rem; text-wrap: pretty; }
.days__note { margin-top: 22px; font-size: .875rem; color: var(--on-r); }
.days__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 14px; margin-top: 22px; }
.days__list li { position: relative; filter: drop-shadow(0 10px 12px rgba(40, 0, 0, .35)); }
.perf {
  padding: 7px;
  -webkit-mask: linear-gradient(#000 0 0) content-box, radial-gradient(circle, #0000 2.4px, #000 2.9px) -5px -5px / 10px 10px round;
  -webkit-mask-composite: source-over;
  mask: linear-gradient(#000 0 0) content-box, radial-gradient(circle, #0000 2.4px, #000 2.9px) -5px -5px / 10px 10px round;
  mask-composite: add;
}
/* stamp: perforated paper, colour picture, caption on the paper */
.day {
  --tooth: 6px;
  display: grid; grid-template-rows: 1fr auto; gap: 7px;
  aspect-ratio: 4 / 5; padding: var(--tooth);
  background: #FBFAF4; color: var(--g-night); text-decoration: none;
  -webkit-mask: radial-gradient(circle at 50% 50%, #0000 calc(var(--tooth) * .62), #000 calc(var(--tooth) * .66)) calc(var(--tooth) * -1) calc(var(--tooth) * -1) / calc(var(--tooth) * 2) calc(var(--tooth) * 2) round,
                linear-gradient(#000 0 0) content-box;
  -webkit-mask-composite: source-over;
  mask: radial-gradient(circle at 50% 50%, #0000 calc(var(--tooth) * .62), #000 calc(var(--tooth) * .66)) calc(var(--tooth) * -1) calc(var(--tooth) * -1) / calc(var(--tooth) * 2) calc(var(--tooth) * 2) round,
        linear-gradient(#000 0 0) content-box;
  mask-composite: add;
  transition: transform .45s var(--ease-out);
}
.day__art { position: relative; display: grid; place-items: center; overflow: hidden; margin: 6px 6px 0; }
.day__art svg { width: 58%; height: 58%; }
.day__yr { position: absolute; top: 5px; left: 7px; font: 700 .5625rem/1 var(--body); letter-spacing: .14em; color: rgba(255, 255, 255, .8); }
.day__note { position: absolute; left: 0; right: 0; bottom: 5px; font: 700 .625rem/1 var(--body); font-style: normal; text-align: center; color: #FFFFFF; }
.day__cap { display: flex; align-items: baseline; justify-content: space-between; gap: 4px; margin: 0 7px 8px; }
.day__n { font: 800 clamp(.9rem, .7rem + .6vw, 1.05rem)/1 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.day__wd { font: 800 .6875rem/1 var(--display); letter-spacing: .02em; text-transform: uppercase; color: var(--r-ink); }
.day:hover { transform: translateY(-6px) rotate(-3deg); }
.day:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.days__off { grid-column: span 2; display: grid; }
.days__off-in {
  display: grid; align-content: center; gap: 8px; padding: 18px 20px; border-radius: 14px;
  border: 2px dashed rgba(251, 227, 225, .55); color: var(--paper); rotate: -1.5deg;
  font-size: .9375rem; line-height: 1.35; text-wrap: balance;
}
.days__off-in b { font: 800 1.7rem/1 var(--display); letter-spacing: -.03em; text-decoration: line-through; text-decoration-color: var(--gold); text-decoration-thickness: 3px; }
@media (min-width: 700px) { .days__off { grid-column: span 3; } }
/* empty spot left by an unstuck stamp (weekend) */
.slot { display: grid; }
.slot__in {
  aspect-ratio: 4 / 5; display: grid; align-content: center; justify-items: center; gap: 4px; padding: 10px;
  border: 2px dashed rgba(251, 227, 225, .5); border-radius: 4px; color: rgba(251, 227, 225, .85);
  background: rgba(120, 10, 12, .22); box-shadow: inset 0 4px 10px rgba(60, 0, 0, .25);
}
.slot__n { font: 800 1.05rem/1 var(--display); letter-spacing: -.03em; }
.slot__wd { font: 800 .6875rem/1 var(--display); text-transform: uppercase; letter-spacing: .04em; }
.slot__note { margin-top: 6px; font: 400 1.05rem/1 var(--script); color: var(--gold); rotate: -6deg; }
.day__tag {
  position: absolute; top: -8px; right: -6px; z-index: 2; padding: 4px 9px 5px; border-radius: 999px;
  background: var(--white); color: var(--r-ink); font: 700 .75rem/1 var(--body); rotate: 8deg;
  box-shadow: 0 4px 10px -4px rgba(40, 0, 0, .5);
}

.plan .orn--p1 { --sz: 150px; left: auto; right: -40px; top: 140px; --dur: 9s; --sw: 20deg; transform-origin: 50% 50%; opacity: .9; }
.plan .orn--p2 { --sz: 60px; right: auto; left: 55%; top: 24px; --dur: 5s; --sw: 16deg; transform-origin: 50% 50%; }
.plan .orn--p3 { --sz: 120px; left: auto; right: -30px; bottom: -40px; --dur: 7s; top: auto; }

/* ── envelope ────────────────────────────────────────────────────────────── */
.book { background: var(--paper); padding: 96px var(--gutter) 88px; }
.envelope {
  position: relative; max-width: var(--wrap); margin: 0 auto; padding: 12px; border-radius: 22px;
  background: repeating-linear-gradient(-45deg, var(--r) 0 14px, var(--paper) 14px 22px, var(--g) 22px 36px, var(--paper) 36px 44px);
  box-shadow: var(--shadow-card);
}
.envelope__body { position: relative; display: grid; gap: 34px; background: var(--white); border-radius: 14px; padding: 96px 22px 32px; }
.envelope__text h2 { font: 800 clamp(1.7rem, 1.1rem + 3vw, 3.6rem)/1.05 var(--display); letter-spacing: -.035em; max-width: 11ch; }
.envelope__text > p { margin-top: 14px; color: var(--g-soft); max-width: 40ch; }
.contacts { margin-top: 22px; border-top: 2px dashed rgba(11, 102, 58, .28); }
.contacts li { border-bottom: 2px dashed rgba(11, 102, 58, .28); }
.contacts a { display: flex; align-items: center; gap: 16px; min-height: 76px; padding: 12px 0; text-decoration: none; }
.contacts svg { width: 48px; height: 48px; flex: none; padding: 12px; border-radius: 50%; background: var(--paper); color: var(--r); transition: background-color .2s, color .2s; }
.contacts span { display: grid; }
.contacts b { font: 700 1.2rem/1.25 var(--display); letter-spacing: -.02em; }
.contacts small { font-size: .875rem; color: var(--g-soft); }
.contacts a:hover svg { background-color: var(--r); color: var(--white); }
.envelope__addr { display: grid; gap: 2px; justify-items: start; font-style: normal; padding-top: 22px; border-top: 2px dashed rgba(11, 102, 58, .28); }
.envelope__place { display: block; font: inherit; font-weight: 700; }
.envelope__addr a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 4px; font-weight: 700; }
.envelope__addr a:hover { color: var(--r-ink); }
.envelope__addr svg { width: 20px; height: 20px; color: var(--r); }
.stamp--santa { position: absolute; top: -34px; right: 14px; width: 100px; height: 126px; transform: rotate(6deg); filter: drop-shadow(0 8px 12px rgba(8, 45, 26, .28)); }
.stamp--santa .perf {
  --tooth: 6px; display: block; width: 100%; height: 100%; padding: var(--tooth);
  display: grid; grid-template-rows: 1fr auto; gap: 5px;
  background-color: var(--pink);
  -webkit-mask: radial-gradient(circle at 50% 50%, #0000 calc(var(--tooth) * .62), #000 calc(var(--tooth) * .66)) calc(var(--tooth) * -1) calc(var(--tooth) * -1) / calc(var(--tooth) * 2) calc(var(--tooth) * 2) round,
                linear-gradient(#000 0 0) content-box;
  -webkit-mask-composite: source-over;
  mask: radial-gradient(circle at 50% 50%, #0000 calc(var(--tooth) * .62), #000 calc(var(--tooth) * .66)) calc(var(--tooth) * -1) calc(var(--tooth) * -1) / calc(var(--tooth) * 2) calc(var(--tooth) * 2) round,
        linear-gradient(#000 0 0) content-box;
  mask-composite: add;
}
.stamp__art { display: grid; place-items: center; margin: 5px 5px 0; background-color: #FFFFFF; overflow: hidden; border-radius: 6px; }
.stamp__art img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.stamp__cap { display: flex; align-items: baseline; justify-content: center; margin: 0 4px 6px; }
.stamp__cap b { font: 800 .625rem/1 var(--display); white-space: nowrap; letter-spacing: -.02em; color: #FFFFFF; text-shadow: 0 1px 0 rgba(160, 40, 80, .45); }
.stamp__cap i { display: none; }

.postmark {
  display: grid; place-items: center; align-content: center; width: 116px; height: 116px; border-radius: 50%;
  border: 2px solid currentColor; outline: 1.5px solid currentColor; outline-offset: -8px;
  color: var(--g); transform: rotate(-14deg); line-height: 1.15; text-align: center;
  font: 700 .6875rem/1.2 var(--body); letter-spacing: .1em; text-transform: uppercase;
}
.postmark b { font: 800 .8125rem/1.3 var(--display); letter-spacing: -.02em; }
.postmark--env { position: absolute; right: 26%; top: 18px; display: none; }

.envelope__seal { display: block; margin-bottom: 14px; color: var(--g); --la: var(--r); }
.envelope__addr .envelope__seal .logo { width: auto; height: 76px; color: var(--g); }

/* ── post: postmarks, stamps, labels ──────────────────────────────────── */
.pm { display: block; width: 190px; height: auto; color: var(--g); overflow: visible; }
.pm__ring { font: 700 13px/1 var(--body); letter-spacing: .08em; fill: currentColor; }
.pm__c { font: 800 11.5px/1 var(--display); letter-spacing: -.03em; fill: currentColor; }
.pm__s { font: 700 12px/1 var(--body); letter-spacing: .3em; fill: currentColor; }
.pm__waves { color: var(--r); }
.letter .pm { position: absolute; right: -24px; top: -96px; width: 200px; rotate: -10deg; opacity: .9; display: none; }
.pm--env { position: absolute; right: 200px; top: 10px; width: 210px; rotate: -8deg; opacity: .85; display: none; }
.days__wrap { position: relative; }
.pm--days { position: absolute; z-index: 3; left: -18px; top: -30px; width: 120px; rotate: -12deg; color: var(--white); pointer-events: none; opacity: .92; }
.pm--days .pm__waves { color: var(--white); }
.airmail-box {
  position: absolute; right: 36px; bottom: -22px; z-index: 3; display: flex; align-items: center; gap: 10px;
  padding: 9px 14px 9px 11px; background: #FFFFFF; color: var(--r-ink); rotate: -5deg;
  border: 2px solid var(--r-ink); outline: 4px solid #FFFFFF; box-shadow: 0 0 0 6px var(--r-ink), 0 12px 20px -10px rgba(8, 45, 26, .45);
}
.airmail-box svg { width: 26px; height: 26px; flex: none; }
.airmail-box span { display: grid; line-height: 1.05; }
.airmail-box b { font: 800 .8125rem/1.05 var(--display); letter-spacing: .1em; }
.ticket__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin: -4px 0 12px; padding-bottom: 10px; border-bottom: 1.5px solid rgba(11, 102, 58, .35);
  font: 700 .75rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--g-soft); }
.price__note { margin-top: 6px; font-weight: 700; font-size: 1.0625rem; color: var(--on-r); }
.ticket__head b { font: 800 1.1rem/1 var(--display); letter-spacing: .02em; color: var(--r-ink); }
@media (min-width: 1040px) {
  .letter .pm { display: block; }
  .pm--env { display: block; }
  .airmail-box { right: 56px; bottom: -26px; }
}

.to-letter {
  position: fixed; right: calc(var(--stripe) + 14px); bottom: calc(112px + env(safe-area-inset-bottom)); z-index: 65;
  width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: var(--g); color: var(--paper);
  box-shadow: 0 12px 24px -10px rgba(8, 45, 26, .6);
  opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none;
  transition: opacity .3s, transform .45s var(--ease-out), background-color .2s;
}
.to-letter svg { width: 24px; height: 24px; transform: rotate(180deg); }
.to-letter.is-shown { opacity: 1; transform: none; pointer-events: auto; }
.to-letter { transition: opacity .3s, transform .45s var(--ease-out), bottom .45s var(--ease-out), background-color .2s; }
body:not(:has(.callbar.is-shown)) .to-letter { bottom: calc(20px + env(safe-area-inset-bottom)); }
.to-letter:hover { background-color: var(--r-ink); }
@media (min-width: 1040px) { .to-letter { bottom: 32px; right: calc(var(--stripe) + 28px); width: 60px; height: 60px; } }

/* ── footer: green field ──────────────────────────────────────────────── */
.foot { position: relative; overflow: hidden; background: var(--g-night); color: var(--paper); padding: 72px var(--gutter) calc(96px + env(safe-area-inset-bottom)); }
.foot__in { position: relative; z-index: 2; max-width: var(--wrap); margin: 0 auto; display: grid; gap: 44px; }
.foot__bye { display: grid; justify-items: start; line-height: 1; }
.foot__script { position: relative; z-index: 1; font: 800 clamp(2rem, 1.4rem + 3vw, 3.4rem)/1 var(--script); color: var(--gold); rotate: -4deg; margin-left: .1em;
  paint-order: stroke fill; -webkit-text-stroke: .11em var(--g-night); }   /* outline in the background colour "cuts out" the letters below */
.foot__big { position: relative; z-index: 0; font: 900 clamp(2.4rem, 1rem + 7vw, 6.4rem)/.95 var(--display); letter-spacing: -.04em; margin-top: -.05em; }
.orgs { display: grid; grid-template-columns: auto auto auto; justify-content: start; align-items: stretch; gap: 0 clamp(24px, 6vw, 72px); padding-top: 28px; border-top: 1px solid rgba(234, 235, 230, .18); color: var(--paper); --la: var(--gold); }
.orgs__grp { display: grid; grid-template-rows: auto 1fr; gap: 16px; justify-items: start; }
.orgs__grp > :last-child { align-self: end; }
.orgs__sep { align-self: stretch; width: 1px; background: rgba(234, 235, 230, .22); }
.orgs .logo--zako { height: clamp(42px, 6.4vw, 58px); }
.orgs .logo--rancho { height: clamp(40px, 6vw, 56px); }
.orgs__h { font: 700 .75rem/1 var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--on-g); }
.orgs__list { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 0; color: var(--paper); --la: var(--gold); }
.orgs__list li { padding-right: 32px; margin-right: 32px; border-right: 1px solid rgba(234, 235, 230, .18); }
.orgs__list li:last-child { border: 0; margin: 0; padding: 0; }
.orgs__list a { display: block; transition: opacity .2s; }
.orgs__list a:hover { opacity: .8; }
.logo { display: block; height: 52px; width: auto; }
.logo--zako { height: 68px; }
.logo--rancho { height: 60px; }
.foot__base p { text-wrap: balance; }
.foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; font-size: .875rem; color: var(--on-g); padding-top: 22px; border-top: 1px solid rgba(234, 235, 230, .18); }
.foot__link { color: var(--paper); font-weight: 700; display: inline-block; padding: 10px 0; }
@media (max-width: 699px) {
  /* on the phone the stripes are already on the screen edges — the envelope gets only top and bottom stripes */
  .envelope { padding: 8px 0; border-radius: 4px; }
  .envelope__body { border-radius: 0; box-shadow: none; }
  .contacts li:last-child { border-bottom: 0; }
  .envelope__addr { border-top-style: solid; border-top-color: rgba(11, 102, 58, .12); }
}
@media (max-width: 699px) {
  .ticket { width: auto; min-width: min(100%, 290px); justify-self: center; }
  .pc__text h3 { font-size: clamp(1.45rem, 1rem + 2.4vw, 1.7rem); line-height: 1.08; }
  .pc__num { width: 52px; height: 52px; font-size: 1.55rem; }
  .pc__icon { left: 40px; top: -8px; width: 38px; height: 38px; padding: 7px; }
  .pc__text p { font-size: 1rem; }
  .foot__big { font-size: clamp(2rem, 1.2rem + 4vw, 2.5rem); }
  .foot__script { font-size: clamp(1.7rem, 1.2rem + 2.4vw, 2.1rem); }
  .envelope__text h2 { font-size: clamp(1.6rem, 1.1rem + 2.6vw, 2rem); }
  .price__h { font-size: clamp(1.8rem, 1.3rem + 2.4vw, 2.2rem); }
}
@media (max-width: 699px) {
  /* address like on an envelope: logo + address in one block, links in one row, postmark in the corner */
  .envelope__addr { grid-template-columns: auto 1fr; column-gap: 14px; row-gap: 0; align-items: center; position: relative; padding-bottom: 20px; }
  .envelope__addr .envelope__seal { grid-row: 1 / span 3; margin: 0; }
  .envelope__addr .envelope__seal .logo { height: 54px; }
  .envelope__place { grid-column: 2; line-height: 1.35; }
  .envelope__addr > span:not(.envelope__seal) { grid-column: 2; line-height: 1.35; }
  .envelope__addr > a { grid-column: 1 / -1; margin-top: 0; min-height: 40px; }
  .envelope__addr > a:first-of-type { margin-top: 14px; }
  .airmail-box { right: 14px; bottom: -18px; scale: .82; transform-origin: 100% 100%; }
}
.foot .orn--f1 { --sz: 70px; right: 8%; top: 56px; --sw: 16deg; transform-origin: 50% 50%; }
/* footer ornaments: grouped near the centre, below the text, away from the "back to top" button */
.foot .orn--f3 { --sz: 120px; left: calc(50% + 40px); bottom: -8px; --sw: 1.5deg; transform-origin: 50% 100%; }
.foot .orn--f4 { --sz: 80px; left: calc(50% - 60px); bottom: -6px; --sw: 1.5deg; transform-origin: 50% 100%; }
.foot .orn--f2 { --sz: 100px; left: calc(50% + 190px); bottom: -34px; }
@media (max-width: 699px) {
  .foot { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
  .foot .orn--f3 { --sz: 76px; left: calc(50% - 10px); }
  .foot .orn--f4 { --sz: 50px; left: calc(50% - 64px); }
  .foot .orn--f2 { --sz: 64px; left: calc(50% + 72px); bottom: -22px; }
}

/* ── "call" bar ──────────────────────────────────────────────────────────── */
.callbar {
  position: fixed; left: var(--stripe); right: var(--stripe); bottom: 0; z-index: 70;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 12px;
  padding: 24px 16px calc(18px + env(safe-area-inset-bottom));
  background: var(--paper);
  box-shadow: 0 -14px 30px -12px rgba(8, 45, 26, .35);
  transform: translateY(110%); transition: transform .45s var(--ease-out);
}
.callbar::before {   /* airmail stripe on the top edge */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 7px;
  background: repeating-linear-gradient(-45deg, var(--r) 0 14px, var(--paper) 14px 22px, var(--g) 22px 36px, var(--paper) 36px 44px);
}
.callbar.is-shown { transform: none; }
.callbar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; border-radius: 999px; border: 2px solid var(--g); font-weight: 700; text-decoration: none; }
.callbar svg { width: 20px; height: 20px; }
.callbar__call { background: var(--g); color: var(--white); }

/* ── tablet ──────────────────────────────────────────────────────────────── */
@media (min-width: 700px) {
  :root { --stripe: 12px; --gutter: calc(var(--stripe) + 36px); }
  .poster__cta { grid-template-columns: auto auto; justify-content: start; }
  .tile { width: 96px; height: 96px; }
  .days__list { grid-template-columns: repeat(5, 1fr); }
  .envelope__body { padding: 52px 44px 40px; }
  .envelope__text h2 { padding-right: 0; }
}

/* ── desktop ─────────────────────────────────────────────────────────────── */
@media (min-width: 1040px) {
  :root { --stripe: 14px; --gutter: calc(var(--stripe) + 56px); }
  body { font-size: 1.125rem; }

  .letter { z-index: 4; left: auto; right: 5vw; top: 50%; bottom: auto; width: clamp(400px, 36vw, 620px); transform: translateY(calc(-50% + (1 - var(--q, 0)) * 40px)); gap: 18px; }
  .letter__body { font-size: 1.1875rem; }
  .letter__head { font-size: clamp(3.4rem, 4.2vw, 4.6rem); }
  .letter__cta { display: flex; flex-wrap: wrap; }
  .letter .postmark { right: -30px; top: -84px; display: grid; }
  .pc .orn--c { display: block; left: auto; right: 44%; bottom: auto; top: 12%; }

  .card__title { top: 50%; transform: translateY(-54%); }
  .card__script { font-size: min(5.45vw, 9.35svh); transform: rotate(-4deg) translate(-26%, 30%); }
  .card__giant { font-size: min(18vw, 36svh); }
  .gl { filter: url(#rim-lg); }
  .orn--p1 { --sz: min(9vw, 15svh); left: 5%; top: 8%; }
  .orn--p2 { --sz: min(6vw, 10svh); right: 9%; top: 10%; }
  .orn--p3 { --sz: min(9vw, 16svh); right: 4%; top: 38%; }
  .orn--p4 { --sz: min(8vw, 14svh); left: 3%; top: 42%; }
  .orn--p5 { --sz: 4vw; left: 42%; top: 9%; }
  .orn--p6 { --sz: min(9vw, 15svh); right: 12%; bottom: 10%; }
  .orn--p7 { --sz: 5vw; left: 24%; bottom: 12%; }
  .orn--p8, .orn--p9, .orn--p10, .orn--p12 { display: block; }
  .orn--p8 { --sz: 5vw; left: 46%; top: 3%; }
  .orn--p9 { --sz: 4vw; left: auto; right: 17%; top: 22%; }
  .orn--p10 { --sz: 5vw; right: 34%; bottom: 8%; }
  .orn--p11 { --sz: 2.6vw; left: 56%; top: 9%; }
  .orn--p12 { --sz: 5vw; left: 70%; top: auto; bottom: 5%; }
  .orn--p13 { display: block; --sz: 4.4vw; left: auto; right: 27.5%; top: auto; bottom: 3%; }
  .orn--p14 { display: block; --sz: 4vw; right: 12%; top: 47%; }   /* small tree next to the big one, away from the letters */
  .card__santa { --sw: min(13vw, 220px); left: 4%; bottom: 7%; }
  .card__house { display: block; right: 2%; bottom: 3%; width: 25%; }
  .card .orn--p12 { display: none; }
  .card .orn--p6 { --sz: min(5vw, 9svh); right: 21%; top: 6%; bottom: auto; }   /* candy fills the empty top-right corner */
  .card .pm--poster { right: auto; left: 20%; top: 4%; width: 13vw; max-width: 210px; rotate: -10deg; }
  .sticker--date { right: 5%; top: auto; bottom: 30%; font-size: min(2.8vw, 5svh); }
  .poster__cta { left: 50%; right: auto; bottom: calc(2.5% + 76px); gap: 14px; translate: -50% 0; }
  .poster__cta .btn { min-height: 64px; padding: 0 1.9em; font-size: 1.125rem; }
  .orn--p7 { left: 8%; bottom: 36%; }
  .poster__hint { display: flex; bottom: 16px; gap: 8px; }
  .hint__ico { width: 26px; height: 30px; }
  .card__orgs { left: auto; right: 5%; translate: none; top: 5%; bottom: auto; gap: 22px; }
  .orn--p2 { top: 16%; }
  .card__orgs .logo { height: 44px; } .card__orgs .logo--zako { height: 60px; } .card__orgs .logo--rancho { height: 48px; }
  .card__santa { bottom: 6%; }

  .tile { width: 112px; height: 112px; }

  .pc { top: 0; height: 100svh; padding: 3svh var(--gutter); }
  .pc:last-child { padding-bottom: 3svh; }
  .pc__card { height: 100%; }
  .pc__card { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-rows: 1fr; align-items: center; column-gap: 56px; }
  .pc__text { gap: 18px; }
  .pc__num { width: 88px; height: 88px; font-size: 2.6rem; }
  .pc__icon { left: 70px; width: 56px; height: 56px; padding: 11px; }
  .pc .postcard { width: min(100%, 460px); margin: 0; justify-self: center; }
  .pc .postcard--tall { width: min(80%, 380px); }
  .pc__santa { width: 88px; --walk: 6.3s; --steps: 15; }
  .pc__card { grid-template-rows: 1fr; }
  .pc__road { position: absolute; left: 0; right: 0; bottom: 9%; margin: 0; }
  .pc .orn--a { --sz: 100px; }
  .pc .orn--b { --sz: 80px; bottom: 16%; }

  .plan { margin-top: -22svh; padding: calc(120px + 22svh) var(--gutter) 150px; }
  .plan__in { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: 0; align-items: start; }
  .price { padding-right: 48px; }
  .price__h { white-space: nowrap; font-size: min(3.4rem, 3.3vw); }
  .days { padding: 18px 0 0 64px; border-left: 2px dashed rgba(251, 227, 225, .45); }
  .price__big strong { font-size: min(10.5vw, 10rem); }

  .book { padding: 140px var(--gutter) 72px; }
      .envelope__body { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); column-gap: 64px; padding: 64px; }   /* equal margins top and bottom */
  .envelope__addr { border-top: 0; border-left: 2px dashed rgba(11, 102, 58, .28); padding: 110px 0 4px 48px; align-content: end; align-self: stretch; }   /* address at the bottom, like on an envelope — level with the last contact */
  /* logo next to the address, name on one line */
  .envelope__addr { grid-template-columns: auto 1fr; column-gap: 20px; row-gap: 2px; align-items: center; }
  .envelope__addr .envelope__seal { grid-row: 1 / span 3; margin: 0; }
  .envelope__addr .envelope__seal .logo { height: 72px; }
  .envelope__addr > span:not(.envelope__seal) { grid-column: 2; line-height: 1.4; }
  .envelope__addr > a { grid-column: 1 / -1; }
  .envelope__addr > a:first-of-type { margin-top: 18px; }
  .stamp--santa { width: 136px; height: 170px; top: -44px; right: 48px; }
  .stamp__cap b { font-size: .8125rem; }
  .postmark--env { display: grid; }
  .callbar { display: none; }
}

/* no JS or reduced motion: poster and letter stacked, no zoom-out */
.no-js .poster { height: auto; }
.no-js .poster__stage { position: relative; height: auto; overflow: visible; display: flex; flex-direction: column; }
.no-js .card { position: relative; order: -1; width: 100%; height: min(100svh, 820px); transform: none; }
.no-js .card__paper, .no-js .desk .orn, .no-js .poster__hint, .no-js .poster__cta { display: none; }
.no-js .desk { position: relative; padding: 56px var(--gutter) 64px; }
.no-js .letter { position: relative; inset: auto; width: auto; max-width: 620px; margin: 0 auto; opacity: 1; transform: none; }
.no-js .letter__cta { display: flex; flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .poster { height: auto; }
  .poster__stage { position: relative; height: auto; overflow: visible; display: flex; flex-direction: column; }
  .card { position: relative; order: -1; width: 100%; height: min(100svh, 820px); transform: none; }
  .card__paper { display: none; }
  .desk { position: relative; padding: 56px var(--gutter) 64px; }
  .desk .orn { display: none; }
  .letter { position: relative; inset: auto; width: auto; max-width: 620px; margin: 0 auto; opacity: 1; transform: none; }
  .letter__cta { display: flex; flex-wrap: wrap; }
  .poster__cta, .poster__hint { display: none; }
  .pc__santa { opacity: 1; left: 70%; }
}

/* paper texture pinned to each surface — it moves with it, each has its own tile */
:root { --grain: url(assets/grain.png); --grain-fine: url(assets/grain-fine.png); }
body { background-image: var(--grain-fine); background-size: 200px; background-attachment: scroll; }
.card__face, .plan, .foot, .pc--green .pc__card, .pc--gold .pc__card, .pc--red .pc__card, .pc--pink .pc__card, .day__art, .sticker--date, .btn--solid, .btn--cream, .callbar__call {
  background-image: var(--grain); background-size: 240px;
}
.pc--cream .pc__card, .envelope__body, .postcard, .day, .ticket, .card__paper, .btn--ghost {
  background-image: var(--grain-fine); background-size: 200px;
}
.pc:nth-child(odd) .pc__card { background-position: 37px 91px; background-size: 260px; }
.pc:nth-child(3n) .pc__card { background-position: 120px 13px; background-size: 220px; }
.days__list li:nth-child(odd) .day { background-position: 60px 20px; }
.days__list li:nth-child(3n) .day__art { background-position: 90px 140px; background-size: 200px; }

@media (min-width: 1280px) {
  .envelope__addr > span:not(.envelope__seal) { white-space: nowrap; }
  .envelope__body { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
}
/* desktop footer: logos on the left, farewell on the right — one row */
@media (min-width: 1040px) {
  .foot__in { grid-template-columns: auto 1fr; grid-template-areas: "orgs bye" "base base"; align-items: center; column-gap: 64px; row-gap: 40px; }
  .foot__head { grid-area: bye; display: grid; justify-items: end; gap: 18px; }
  .foot__bye { justify-items: end; text-align: right; }
  .foot__script { margin-left: 0; margin-right: .2em; }
  .foot__big { font-size: clamp(2.6rem, 1.2rem + 3.6vw, 4.6rem); }
  .orgs { grid-area: orgs; border-top: 0; padding-top: 0; }
  .orgs .logo--zako { height: 48px; } .orgs .logo--rancho { height: 46px; }
  .foot__base { grid-area: base; }
  .foot { padding-top: 64px; }
}

@media (max-width: 380px) { .letter .letter__sign { margin-top: 18px; font-size: 1.5rem; } }

@media (min-width: 1600px) { .letter__body { font-size: 1.3125rem; } .letter__head { font-size: 4.8rem; } .letter__phones a { font-size: 1.125rem; } }

/* footer: legal details and links */
.foot__legal { display: grid; gap: 4px; align-content: end; align-self: end; }
.foot__legal b { font-weight: 700; color: var(--paper); }
.foot__ids { display: flex; flex-wrap: wrap; gap: 0 18px; opacity: .85; }
.foot__links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 18px; align-self: end; }

/* subpage: privacy policy */
.legal { background: var(--paper); }
.legal__in { max-width: 44rem; margin: 0 auto; padding: 56px var(--gutter) 96px; color: var(--g-night); }
.legal__back { display: inline-block; padding: 10px 0; font-weight: 700; color: var(--g); }
.legal h1 { margin-top: 18px; font: 800 clamp(2rem, 1.4rem + 3vw, 3.2rem)/1.05 var(--display); letter-spacing: -.03em; color: var(--g); }
.legal__upd { margin-top: 8px; font-size: .875rem; color: var(--g-soft); }
.legal__lead { margin-top: 24px; font-size: 1.125rem; }
.legal section { margin-top: 36px; }
.legal h2 { font: 800 1.25rem/1.2 var(--display); color: var(--g); letter-spacing: -.02em; margin-bottom: 10px; }
.legal p + p { margin-top: 10px; }
.legal ul { list-style: disc; padding-left: 1.2em; display: grid; gap: 6px; }
.legal strong { color: var(--g); }

.foot__right { display: grid; gap: 14px; justify-items: end; align-self: end; }
.foot__social { display: flex; flex-wrap: wrap; gap: 6px 28px; }
.foot__social a { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; color: var(--paper); text-decoration: none; font-weight: 700; }
.foot__social a:hover { color: var(--gold); }
.foot .foot__ico { display: block; width: 22px; height: 22px; flex: none; color: var(--gold); }
@media (max-width: 699px) {
  .foot__right { justify-items: start; }
  .foot__dot { display: none; }
  .foot__addr { display: block; }
}

.foot__head { display: grid; gap: 18px; }

/* ── flat volume: hard shadows in a darker shade of the background, no blur ──── */
:root { --ext-g: #073F24; --ext-r: #8E1214; --ext-c: #C9CAC2; }
.gl { text-shadow: 0.0055em 0.0055em 0 var(--ext-g), 0.0110em 0.0110em 0 var(--ext-g), 0.0165em 0.0165em 0 var(--ext-g), 0.0220em 0.0220em 0 var(--ext-g), 0.0275em 0.0275em 0 var(--ext-g), 0.0330em 0.0330em 0 var(--ext-g), 0.0385em 0.0385em 0 var(--ext-g), 0.0440em 0.0440em 0 var(--ext-g), 0.0495em 0.0495em 0 var(--ext-g), 0.0550em 0.0550em 0 var(--ext-g), 0.0605em 0.0605em 0 var(--ext-g), 0.0660em 0.0660em 0 var(--ext-g); }
.foot__big { text-shadow: 0.0060em 0.0060em 0 #04281A, 0.0120em 0.0120em 0 #04281A, 0.0180em 0.0180em 0 #04281A, 0.0240em 0.0240em 0 #04281A, 0.0300em 0.0300em 0 #04281A, 0.0360em 0.0360em 0 #04281A, 0.0420em 0.0420em 0 #04281A, 0.0480em 0.0480em 0 #04281A, 0.0540em 0.0540em 0 #04281A, 0.0600em 0.0600em 0 #04281A; }
.price__big strong { text-shadow: 0.0050em 0.0050em 0 var(--ext-r), 0.0100em 0.0100em 0 var(--ext-r), 0.0150em 0.0150em 0 var(--ext-r), 0.0200em 0.0200em 0 var(--ext-r), 0.0250em 0.0250em 0 var(--ext-r), 0.0300em 0.0300em 0 var(--ext-r), 0.0350em 0.0350em 0 var(--ext-r), 0.0400em 0.0400em 0 var(--ext-r), 0.0450em 0.0450em 0 var(--ext-r), 0.0500em 0.0500em 0 var(--ext-r); }
.pc--green .pc__text h3 { text-shadow: .04em .04em 0 var(--ext-g); }
.pc--red .pc__text h3 { text-shadow: .04em .04em 0 var(--ext-r); }
.pc--gold .pc__text h3 { text-shadow: .04em .04em 0 #A97A22; }
.pc--pink .pc__text h3 { text-shadow: .04em .04em 0 #D98AA4; }
.pc--cream .pc__text h3, .envelope__text h2 { text-shadow: .04em .04em 0 var(--ext-c); }
.days__h, .price__h { text-shadow: .045em .055em 0 var(--ext-r); }
.letter__hello { text-shadow: .04em .05em 0 #F0B8BA; }
.foot__script { text-shadow: .05em .06em 0 #8A6420; }
/* stickers and buttons: a hard "side" instead of a soft shadow */
.btn--solid { box-shadow: 0 5px 0 var(--ext-g), 0 14px 22px -14px rgba(8, 45, 26, .8); }
.btn--cream { box-shadow: 0 5px 0 var(--ext-r), 0 14px 22px -14px rgba(0, 0, 0, .6); }
.btn--ghost { box-shadow: 0 5px 0 #B9BAB2, 0 14px 22px -14px rgba(0, 0, 0, .5); }
.btn--line { box-shadow: 0 4px 0 rgba(11, 102, 58, .25); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ext-g); }
.callbar__call { box-shadow: 0 4px 0 var(--ext-g); }
.sticker--date { box-shadow: 0 0 0 5px var(--g), 7px 8px 0 5px var(--ext-g); }
.card__santa { box-shadow: 6px 7px 0 var(--ext-g); border-radius: 50%; }
.card__script { box-shadow: 0 .09em 0 var(--ext-r), .06em .14em 0 var(--ext-g); }
.ticket { box-shadow: 8px 9px 0 var(--ext-r); }
.pc__num { box-shadow: 4px 5px 0 rgba(0, 0, 0, .22); }
.pc__icon { box-shadow: 3px 4px 0 rgba(0, 0, 0, .18); }
.pc__text .pc__badge { box-shadow: 0 0 0 3px var(--white), 5px 6px 0 3px rgba(0, 0, 0, .18); }
.days__list li { filter: drop-shadow(5px 6px 0 var(--ext-r)); }
.slot__in { box-shadow: inset 4px 5px 0 rgba(60, 0, 0, .25); }
.airmail-box { box-shadow: 0 0 0 6px var(--r-ink), 8px 9px 0 6px rgba(8, 45, 26, .22); }
.contacts svg { box-shadow: 3px 3px 0 var(--ext-c); }
.to-letter { box-shadow: 0 5px 0 var(--ext-g), 0 12px 20px -10px rgba(8, 45, 26, .6); }
.to-letter.is-shown { background: #138A50; box-shadow: 0 5px 0 #04281A, inset 0 2px 0 rgba(255, 255, 255, .18), 0 14px 22px -10px rgba(0, 0, 0, .55); }
.to-letter.is-shown:hover { background-color: var(--r-ink); box-shadow: 0 5px 0 var(--ext-r), inset 0 2px 0 rgba(255, 255, 255, .18), 0 14px 22px -10px rgba(0, 0, 0, .55); }
.tile svg { filter: drop-shadow(3px 4px 0 rgba(0, 0, 0, .22)); }

/* date sticker: gold */
.sticker--date { background: var(--gold) !important; color: #FFFFFF !important; text-shadow: .04em .05em 0 #A97A22; }
.sticker--date i { color: #FFFFFF !important; }
.sticker--date b { text-shadow: none; }
.sticker--date b { color: var(--g) !important; }   /* year in the poster background colour */

/* tile bands as a moving tape (doubled content, shifted by half = seamless loop) */
.tiles__track { display: flex; flex: none; width: max-content; animation: tiles-run 60s linear infinite; }
.tiles--red .tiles__track { animation-direction: reverse; animation-duration: 70s; }
@keyframes tiles-run { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .tiles__track { animation: none; } }

.pc__badge svg { --flag: #169457; }

@media (max-width: 1039px) { .desk .orn--d2 { --sz: 26px; left: 3.5%; right: auto; top: 22%; } }

/* ── mini-album on the postcard ───────────────────────────────────────────── */
.album { position: relative; isolation: isolate; display: block; width: 100%; padding: 0; border: 0; font: inherit; color: inherit; cursor: zoom-in; background: var(--g-night); }
.album img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .9s ease, transform calc(var(--dur) + 1s) linear; transform: scale(1.01); }
.album img.is-on { opacity: 1; transform: scale(1.06); }
.album::before { content: ""; position: absolute; inset: 0 0 auto; height: 44px; z-index: 1; background: linear-gradient(rgba(4, 26, 15, .45), transparent); pointer-events: none; }
.album__bars { position: absolute; top: 9px; left: 10px; right: 10px; z-index: 2; display: flex; gap: 4px; }
.album__bars i { position: relative; flex: 1; height: 3px; border-radius: 2px; overflow: hidden; background: rgba(252, 252, 250, .38); }
.album__bars i::after { content: ""; position: absolute; inset: 0; background: var(--white); transform: scaleX(0); transform-origin: left; }
.album__bars i.is-done::after { transform: scaleX(1); }
.album__bars i.is-run::after { animation: album-bar var(--dur) linear forwards; }
.album.is-paused .album__bars i.is-run::after, .lb-open .album__bars i.is-run::after { animation-play-state: paused; }
@keyframes album-bar { to { transform: scaleX(1); } }
.album__more {
  position: absolute; right: 9px; bottom: 9px; z-index: 2; display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 9px 5px 7px; border-radius: 99px; background: rgba(252, 252, 250, .94); color: var(--g);
  font: 700 .75rem/1 var(--body); box-shadow: 0 3px 10px -4px rgba(0, 0, 0, .5); transition: transform .25s var(--ease-out);
}
.album__more svg { width: 16px; height: 16px; }
.album:hover .album__more, .album:focus-visible .album__more { transform: scale(1.08); }
.album:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .album img, .album img.is-on { transition: none; transform: none; } }

/* ── full-screen album ───────────────────────────────────────────────────── */
html.lb-open { overflow: hidden; }
.lb {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: #041E11; color: var(--paper); overscroll-behavior: contain; overflow: hidden;
}
.lb[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.lb::backdrop { background: rgba(4, 30, 17, .6); }
.lb__top { display: flex; align-items: center; gap: 16px; padding: max(12px, env(safe-area-inset-top)) 16px 8px; }
.lb__title { flex: 1; min-width: 0; font: 700 clamp(.95rem, 2.4vw, 1.15rem)/1.25 var(--display); letter-spacing: -.01em; }
.lb__count { font: 700 .9rem/1 var(--body); font-variant-numeric: tabular-nums; color: var(--on-g); }
.lb__close, .lb__nav {
  display: grid; place-items: center; flex: none; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(234, 235, 230, .12); color: var(--paper); cursor: pointer; transition: background .2s;
}
.lb__close:hover, .lb__nav:hover { background: rgba(234, 235, 230, .24); }
.lb__close:focus-visible, .lb__nav:focus-visible, .lb__th:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.lb__close svg, .lb__nav svg { width: 22px; height: 22px; }
.lb__stage { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 0 16px; min-height: 0; touch-action: none; }   /* gestures (swipe, pinch) are handled by app.js */
.lb__fig { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; min-height: 0; margin: 0; }
.lb__img { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(100dvh - 176px); border-radius: 4px; opacity: 0; transition: opacity .35s ease; user-select: none; -webkit-user-drag: none; }
.lb__img.is-in { opacity: 1; }
.lb__cap { padding-top: 10px; font-size: .9rem; color: var(--on-g); text-align: center; }
.lb__thumbs { position: relative; display: flex; gap: 8px; justify-content: safe center; overflow-x: auto; padding: 12px 16px max(14px, env(safe-area-inset-bottom)); scrollbar-width: none; }
.lb__thumbs::-webkit-scrollbar { display: none; }
.lb__th { flex: none; width: 74px; height: 54px; padding: 0; border: 0; border-radius: 6px; overflow: hidden; background: none; opacity: .45; cursor: pointer; transition: opacity .2s; }
.lb__th img { width: 100%; height: 100%; object-fit: cover; }
.lb__th:hover { opacity: .8; }
.lb__th[aria-current="true"] { opacity: 1; box-shadow: 0 0 0 2px var(--gold); }
.lb--single .lb__nav, .lb--single .lb__thumbs { visibility: hidden; }
@media (max-width: 699px) {
  .lb__stage { grid-template-columns: minmax(0, 1fr); padding: 0; }
  .lb__nav { position: absolute; top: 50%; z-index: 2; translate: 0 -50%; background: rgba(4, 30, 17, .55); }
  .lb__nav--prev { left: 8px; } .lb__nav--next { right: 8px; }
  .lb__img { border-radius: 0; max-height: calc(100dvh - 160px); }
  .lb__cap { padding-inline: 16px; }
  .lb__th { width: 60px; height: 44px; }
}

/* on the cream sheet the white polaroid blended into the background: thin outline and a stronger shadow */
.pc--cream .postcard { box-shadow: 0 0 0 1.5px rgba(8, 77, 44, .16), 0 2px 4px rgba(8, 45, 26, .16), 0 24px 40px -16px rgba(8, 45, 26, .6); }

/* price: two parallel conditions → amount; the group label looks the same above 70 zł and on the ticket */
.price__for, .ticket__head b {
  display: inline-block; padding: 7px 13px 6px; border-radius: 99px;
  font: 800 .8125rem/1 var(--display); letter-spacing: .06em; text-transform: uppercase;
}
.price__for { margin-top: 18px; background: var(--paper); color: var(--r-ink); box-shadow: 4px 5px 0 var(--ext-r); transform: rotate(-2deg); }
.ticket__head { display: block; margin: 0 0 6px; padding: 0; border: 0; }
.ticket__head b { background: var(--r-ink); color: var(--white); }
.ticket__group { font-size: 2.6rem; }
.ticket__note { font-weight: 700; font-size: 1rem; }
/* unit under the amount, like "za całą grupę" on the ticket — stays inside the column */
.price__unit { margin-top: 8px; font: 700 clamp(1.05rem, .9rem + .7vw, 1.4rem)/1.2 var(--display); color: var(--on-r); }
@media (max-width: 699px) {
  /* 70 zł a bit to the right, closer to the ticket axis — but away from the gold star */
  .price__for, .price__big, .price__unit { margin-left: clamp(10px, 5vw, 22px); }
}
@media (min-width: 1040px) and (max-height: 800px) {
  /* short screens (1280×720): mouse dot without label, buttons lower — so they don't cover MIKOŁAJA */
  .poster__cta { bottom: calc(1.5% + 52px); }
  .poster__hint { bottom: 10px; }
  .poster__hint span { display: none; }
}
.envelope__text p, .days__lede, .letter__body { text-wrap: pretty; }   /* no single orphan words on the last line */

/* ticket: compact on the phone, on desktop a full-size ticket with a stub */
.ticket__stub { display: none; }
@media (min-width: 1040px) {
  .ticket {
    display: grid; grid-template-columns: 1fr auto; width: min(100%, 470px); margin-top: 40px; padding: 0;
  }
  .ticket > .ticket__head, .ticket > .ticket__group, .ticket > .ticket__note { grid-column: 1; padding-left: 36px; padding-right: 20px; }
  .ticket > .ticket__head { padding-top: 26px; margin: 0 0 8px; align-self: end; }
  .ticket__head b { font-size: 1rem; padding: 9px 16px 8px; }
  .ticket__group { font-size: clamp(3rem, 4.2vw, 4.2rem); line-height: 1; }
  .ticket > .ticket__note { padding-bottom: 26px; margin-top: 4px; font-size: 1.125rem; align-self: start; }
  .ticket > .ticket__group { align-self: center; }
  .ticket { padding-right: 64px; }
  .ticket__stub {
    position: absolute; top: 0; bottom: 0; right: 0; width: 64px; display: flex;   /* the stub does not set the ticket height */ align-items: center; justify-content: center; gap: 10px;
    padding: 0; border-left: 2px dashed rgba(11, 102, 58, .35); overflow: hidden; white-space: nowrap;
    writing-mode: vertical-rl; transform: rotate(180deg);
    font: 700 .6875rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--g-soft);
  }
  .ticket__stub b { font: 800 1.15rem/1 var(--display); letter-spacing: .02em; color: var(--r-ink); }
}
@media (min-width: 1040px) { .ticket__stub span { display: none; } .ticket__stub b { font-size: 1.35rem; } }

/* ── "scroll" arrow (request: visible on both phone and desktop) ────────── */
.poster__hint { padding: 0; border: 0; background: none; font-family: var(--body); cursor: pointer; pointer-events: auto;
  visibility: var(--cta-vis, visible); z-index: 4; }
.poster__hint .hint__ico { display: none !important; }
.hint__arrow {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--paper); color: var(--g); box-shadow: 0 4px 0 var(--ext-g), 0 12px 22px -10px rgba(0, 0, 0, .6);
  animation: hint-bob 1.8s var(--ease-out) infinite;
}
.hint__arrow svg { width: 22px; height: 22px; stroke-width: 2.4; }
.poster__hint:hover .hint__arrow, .poster__hint:focus-visible .hint__arrow { background: var(--white); }
.poster__hint:focus-visible { outline: none; }
.poster__hint:focus-visible .hint__arrow { outline: 3px solid var(--gold); outline-offset: 3px; }
@keyframes hint-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }
@media (max-width: 1039px) {
  /* phone: buttons a bit higher, round arrow below them */
  .poster__cta { bottom: calc(76px + env(safe-area-inset-bottom)); }
  .card { --rowB: calc(212px + env(safe-area-inset-bottom)); }
  .poster__hint { display: flex; bottom: calc(14px + env(safe-area-inset-bottom)); }
  .hint__arrow { width: 46px; height: 46px; }
}
@media (min-width: 1040px) and (max-height: 800px) { .hint__arrow { width: 40px; height: 40px; } }
@media (prefers-reduced-motion: reduce) { .hint__arrow { animation: none; } }

/* album zoom: double tap/click, two fingers, Ctrl+wheel */
.lb__img { cursor: zoom-in; transform-origin: 50% 50%; will-change: transform; }
.lb.is-zoomed .lb__img { cursor: grab; position: relative; z-index: 1; }
.lb.is-zoomed .lb__nav { opacity: .35; }

/* ── "Napisz do nas" window with a letter preview ───────── */
.mf { width: min(100% - 24px, 980px); max-height: calc(100dvh - 24px); margin: auto; padding: 0; border: 0; border-radius: 22px;
  background: var(--paper); background-image: var(--grain-fine); background-size: 200px; color: var(--g);
  box-shadow: 0 30px 60px -20px rgba(4, 30, 17, .6); overflow: hidden auto; overscroll-behavior: contain; }
.mf::backdrop { background: rgba(4, 30, 17, .72); }
.mf__in { position: relative; padding: clamp(20px, 4vw, 40px); border-top: 10px solid transparent;
  border-image: repeating-linear-gradient(-45deg, var(--r) 0 14px, var(--paper) 14px 22px, var(--g) 22px 36px, var(--paper) 36px 44px) 10; }
.mf__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.mf__head h2 { font: 800 clamp(1.7rem, 1.2rem + 2vw, 2.6rem)/1 var(--script); color: var(--r-ink); transform: rotate(-2deg); transform-origin: 0 50%; }
.mf__x { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; color: var(--g); cursor: pointer; box-shadow: 0 3px 0 rgba(11, 102, 58, .2); }
.mf__x svg { width: 20px; height: 20px; }
.mf__lede { margin-top: 10px; max-width: 60ch; font-size: 1rem; line-height: 1.5; color: var(--g-soft); text-wrap: pretty; }
.mf__grid { display: grid; gap: 22px; margin-top: 22px; }
@media (min-width: 820px) { .mf__grid { grid-template-columns: 1.1fr 1fr; align-items: start; } }
.mf__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mf__f { display: grid; gap: 6px; min-width: 0; }
.mf__f--wide { grid-column: 1 / -1; }
.mf__f span { font: 700 .8125rem/1.2 var(--body); color: var(--g); }
.mf__f input, .mf__f select, .mf__f textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 2px solid rgba(11, 102, 58, .22); border-radius: 12px;
  background: #fff; font: 600 1rem/1.3 var(--body); color: var(--g); }
.mf__f textarea { resize: vertical; min-height: 84px; }
.mf__f input::placeholder, .mf__f textarea::placeholder { color: #8DA697; }
.mf__f :focus-visible { outline: none; border-color: var(--g); box-shadow: 0 0 0 3px rgba(214, 161, 63, .55); }
.mf__pv { margin: 0; }
.mf__pv figcaption { margin-bottom: 8px; font: 800 .75rem/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--r-ink); }
.mf__letter { position: relative; padding: 18px 20px 20px; border-radius: 14px; background: #fff; box-shadow: 0 2px 0 rgba(11, 102, 58, .12), 0 16px 30px -18px rgba(8, 45, 26, .45);
  transform: rotate(.4deg); }
.mf__meta { font-size: .875rem; color: var(--g-soft); padding-bottom: 6px; border-bottom: 1.5px dashed rgba(11, 102, 58, .2); margin-bottom: 8px; overflow-wrap: anywhere; }
.mf__meta b { color: var(--g); }
.mf__body { margin: 4px 0 0; white-space: pre-wrap; font: 600 .9375rem/1.55 var(--body); color: var(--g); max-height: 340px; overflow: auto; }
.mf__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin-top: 24px; }
.mf__send { flex: 1 1 300px; justify-content: center; }
.mf__copy { flex: 0 1 auto; }
.mf__note { flex-basis: 100%; font-size: .875rem; line-height: 1.45; color: var(--g-soft); }
.mf__call { flex-basis: 100%; font-weight: 700; font-size: .9375rem; }
.mf__call a { display: inline-flex; align-items: center; gap: 6px; color: var(--r-ink); font-family: var(--display); }
.mf__call svg { width: 18px; height: 18px; }
@media (max-width: 560px) {
  .mf { width: 100%; max-height: 100dvh; height: 100dvh; border-radius: 0; }
  .mf__fields { grid-template-columns: 1fr; }
  .mf__body { max-height: none; }
  .mf__copy { flex: 1 1 100%; justify-content: center; }
}

/* Santa walks back and forth in time with the mini-album: one pass = one frame (--dur from .album) */
.pc--walk .pc__santa { opacity: 1; left: 4%; }
.pc--walk.is-active .pc__santa { animation: none; }
.pc--walk .pc__santa.walk-r { animation: walk-r var(--dur) linear forwards, bob .42s ease-in-out infinite alternate; }
.pc--walk .pc__santa.walk-l { animation: walk-l var(--dur) linear forwards, bob .42s ease-in-out infinite alternate; }
@keyframes walk-r { from { left: 4%; transform: scaleX(1); } to { left: calc(96% - var(--sw-w, 64px)); transform: scaleX(1); } }
@keyframes walk-l { from { left: calc(96% - var(--sw-w, 64px)); transform: scaleX(-1); } to { left: 4%; transform: scaleX(-1); } }
@media (min-width: 1040px) { .pc--walk .pc__santa { --sw-w: 88px; } }
.pc--walk:has(.album.is-paused) .pc__santa, .lb-open .pc--walk .pc__santa { animation-play-state: paused; }
.mf__pv summary { margin-bottom: 8px; font: 800 .75rem/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--r-ink); cursor: pointer; list-style: none; }
.mf__pv summary::-webkit-details-marker { display: none; }
.mf__pv summary::after { content: " ▾"; }
.mf__pv[open] summary::after { content: " ▴"; }
@media (min-width: 561px) { .mf__pv summary { pointer-events: none; } .mf__pv summary::after { content: none; } }
@media (max-width: 560px) {
  /* phone: compact — two fields per row, smaller gaps, preview collapsed, bottom button always visible */
  .mf__in { padding: 18px 16px 0; }
  .mf__head h2 { font-size: 1.75rem; }
  .mf__x { width: 40px; height: 40px; }
  .mf__lede { margin-top: 6px; font-size: .9375rem; line-height: 1.4; }
  .mf__grid { gap: 14px; margin-top: 14px; }
  .mf__fields { grid-template-columns: 1fr 1fr; gap: 10px; }
  .mf__f { gap: 4px; }
  .mf__f span { font-size: .75rem; }
  .mf__f input, .mf__f select, .mf__f textarea { min-height: 44px; padding: 9px 12px; font-size: 16px; border-radius: 10px; }
  .mf__f select { padding-right: 6px; font-size: 15px; }
  .mf__f textarea { min-height: 64px; }
  .mf__fields .mf__f:has(select), .mf__fields .mf__f:has([name=phone]) { grid-column: span 1; }
  .mf__pv summary { margin: 0; padding: 12px 0 4px; }
  .mf__foot { position: sticky; bottom: 0; margin: 14px -16px 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: var(--paper); box-shadow: 0 -10px 18px -12px rgba(8, 45, 26, .35); gap: 8px; }
  .mf__send { flex: 1 1 100%; min-height: 52px; }
  .mf__copy { flex: 1 1 auto; min-height: 44px; }
  .mf__note { display: none; }
  .mf__call { flex-basis: auto; font-size: .875rem; }
}
@media (max-width: 560px) {
  .mf { height: auto; max-height: 100dvh; }
  .mf__send { width: 100%; padding: 0 1em; }
  .mf__copy, .mf__call { flex: 1 1 auto; }
  .mf__call { text-align: center; }
}
@media (max-width: 560px) {
  /* window bottom: more air between buttons, "Skopiuj" is a quiet secondary button with no shadow */
  .mf__foot { gap: 12px; padding-top: 16px; box-shadow: 0 -1px 0 rgba(11, 102, 58, .12); }
  .mf__send { box-shadow: 0 4px 0 var(--ext-g); }
  .mf__copy { min-height: 46px; border-width: 1.5px; box-shadow: none; background: transparent; font-size: 1rem; }
  .mf__call { margin-top: 2px; }
}
.mf__pv summary { line-height: 1.35; }
/* letter preview: on desktop a quiet caption, on the phone a clear "Zobacz gotową wiadomość" button */
.mf__pv summary::after { content: none !important; }
.mf__pv summary { font: 700 .8125rem/1.3 var(--body); letter-spacing: 0; text-transform: none; color: var(--g-soft); }
.mf__pv-m, .mf__pv-hide { display: none; }
@media (max-width: 560px) {
  .mf__pv-d { display: none; }
  .mf__pv summary { padding: 0; margin: 2px 0 0; }
  .mf__pv-m { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; border-radius: 12px;
    background: #fff; border: 1.5px dashed rgba(11, 102, 58, .35); font: 700 1rem/1.2 var(--body); color: var(--g); }
  .mf__pv-m svg { width: 20px; height: 20px; flex: none; color: var(--r-ink); }
  .mf__pv-m .mf__pv-chev { margin-left: auto; color: var(--g); transition: transform .2s; }
  .mf__pv[open] .mf__pv-chev { transform: rotate(180deg); }
  .mf__pv[open] .mf__pv-show { display: none; }
  .mf__pv[open] .mf__pv-hide { display: inline; }
  .mf__pv[open] .mf__letter { margin-top: 10px; }
}
/* required fields */
.mf__req { color: var(--r-ink); font-weight: 800; }
.mf__f.is-bad input, .mf__f.is-bad select { border-color: var(--r-ink); background: #FFF6F5; }
.mf__f.is-bad span { color: var(--r-ink); }
.mf__err { margin-top: 14px; padding: 10px 14px; border-radius: 10px; background: #FBE3E1; color: var(--r-ink); font-weight: 700; font-size: .9375rem; line-height: 1.4; }
.mf__err[hidden] { display: none; }
.mf__f select:invalid { color: #8DA697; }
.mf__err { flex-basis: 100%; margin: 0; padding: 8px 12px; font-size: .875rem; text-align: center; }

/* ornament ribbon: drag with finger/mouse and it "spins up" (app.js drives the motion, CSS animation only without JS) */
.js .tiles__track { animation: none; will-change: transform; }
.js .tiles { cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.js .tiles.is-drag { cursor: grabbing; }
.tiles svg, .tiles img { pointer-events: none; -webkit-user-drag: none; }

/* "Zamknij" at the bottom — exit where the user stopped (as in Night to Shine): a quiet text button next to the action */
.mf__cancel { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px;
  border: 0; border-radius: 99px; background: transparent; font: 700 1rem/1 var(--body); color: var(--g-soft); cursor: pointer; }
.mf__cancel svg { width: 18px; height: 18px; }
.mf__cancel:hover { background: rgba(11, 102, 58, .08); color: var(--g); }
.mf__cancel:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.mf__foot { justify-content: flex-end; }
.mf__foot .mf__cancel { order: 1; }
.mf__foot .mf__copy { order: 2; }
.mf__foot .mf__send { order: 3; flex: 0 1 auto; }
.mf__foot .mf__err, .mf__foot .mf__note, .mf__foot .mf__call { order: 4; }
.mf__foot .mf__err { order: 0; }
@media (max-width: 560px) {
  .mf__foot .mf__send { order: 1; flex: 1 1 100%; }
  .mf__foot .mf__copy { order: 2; flex: 1 1 0; }
  .mf__foot .mf__cancel { order: 3; flex: 1 1 0; min-height: 46px; background: rgba(11, 102, 58, .07); }
}

/* desktop: two clear zones — fields on the left, the letter and its actions on the right; below, a separate row with "call" and "Zamknij" */
@media (min-width: 820px) {
  .mf__in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); column-gap: 36px; align-items: start;
    grid-template-areas: "head head" "lede lede" "fields pv" "fields err" "fields send" "fields note" "fields copy" "bar bar"; }
  .mf__grid, .mf__foot { display: contents; }
  .mf__head { grid-area: head; }
  .mf__lede { grid-area: lede; margin-bottom: 22px; }
  .mf__fields { grid-area: fields; }
  .mf__pv { grid-area: pv; }
  .mf__body { max-height: 210px; }
  .mf__foot .mf__err { grid-area: err; margin-top: 14px; }
  .mf__foot .mf__send { grid-area: send; width: 100%; margin-top: 16px; justify-content: center; }
  .mf__foot .mf__note { grid-area: note; margin-top: 8px; font-size: .8125rem; text-align: center; }
  .mf__foot .mf__copy { grid-area: copy; justify-self: center; margin-top: 4px; min-height: 0; padding: 6px 12px; border: 0; box-shadow: none;
    background: none; font-size: .9375rem; text-decoration: underline; text-underline-offset: 3px; color: var(--g-soft); }
  .mf__foot .mf__copy:hover { color: var(--g); transform: none; }
  .mf__foot .mf__call, .mf__foot .mf__cancel { grid-row: 8; margin-top: 26px; padding-top: 18px; border-top: 1.5px dashed rgba(11, 102, 58, .22); align-self: stretch; }
  .mf__foot .mf__call { grid-column: 1; display: flex; align-items: center; gap: 6px; border-radius: 0; }
  .mf__foot .mf__cancel { grid-column: 2; justify-self: stretch; justify-content: flex-end; border-radius: 0; min-height: 0; padding: 18px 0 0; background: none; }
  .mf__foot .mf__cancel:hover { background: none; color: var(--g); }
}

/* desktop: the hint is one bold "pill" (text + red circle with an arrow), not a faint label and a separate ball */
@media (min-width: 1040px) {
  .poster__hint { flex-direction: row; gap: 12px; padding: 7px 7px 7px 20px; border-radius: 99px;
    background: rgba(4, 30, 17, .38); color: var(--paper); box-shadow: inset 0 0 0 1.5px rgba(234, 235, 230, .28);
    font: 700 .9375rem/1 var(--body); letter-spacing: .01em; text-transform: none; opacity: calc(1 - var(--p, 0) * 5);
    transition: background .2s, box-shadow .2s; }
  .poster__hint span { display: inline !important; }
  .poster__hint .hint__arrow { width: 36px; height: 36px; background: var(--r-ink); color: #fff; box-shadow: 0 3px 0 #8E1214; }
  .poster__hint .hint__arrow svg { width: 18px; height: 18px; }
  .poster__hint:hover { background: rgba(4, 30, 17, .55); box-shadow: inset 0 0 0 1.5px rgba(234, 235, 230, .5); }
  .poster__hint:hover .hint__arrow { background: var(--r); }
}
@media (min-width: 1040px) and (max-height: 800px) { .poster__hint { padding: 5px 5px 5px 16px; font-size: .875rem; } .poster__hint .hint__arrow { width: 32px; height: 32px; } }
@media (min-width: 1040px) {
  .poster__hint { bottom: 26px; }
  .poster__hint .hint__arrow { animation-name: hint-bob-s; }
  @keyframes hint-bob-s { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }
}
@media (min-width: 1040px) and (max-height: 800px) { .poster__hint { bottom: 14px; } }
@media (min-width: 1040px) {
  /* circle sits exactly inside the pill; only the arrow in it swings */
  .poster__hint { align-items: center; padding: 6px; padding-left: 22px; gap: 14px; }
  .poster__hint .hint__arrow { animation: none; box-shadow: none; width: 38px; height: 38px; overflow: hidden; }
  .poster__hint .hint__arrow svg { animation: hint-arrow 1.8s var(--ease-out) infinite; }
  @keyframes hint-arrow { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }
}
@media (min-width: 1040px) and (max-height: 800px) { .poster__hint { padding: 5px; padding-left: 18px; } .poster__hint .hint__arrow { width: 32px; height: 32px; } }
@media (prefers-reduced-motion: reduce) { .poster__hint .hint__arrow svg { animation: none; } }
@media (min-width: 1040px) {
  /* letter buttons always in one row: width split evenly, text and padding adapt */
  .letter { width: clamp(440px, 38vw, 620px); }
  .letter__actions { width: 100%; }
  .letter__cta { flex-wrap: nowrap; }
  .letter__cta .btn { flex: 1 1 0; min-width: 0; justify-content: center; padding: 0 clamp(.8em, 1.4vw, 1.6em); white-space: nowrap;
    font-size: clamp(.875rem, .55rem + .55vw, 1.0625rem); }
}
@media (min-width: 700px) and (max-width: 1039px) {
  /* wide phone / tablet: buttons centred, like the rest of the poster */
  .poster__cta { left: 50%; right: auto; translate: -50% 0; justify-content: center; }
}
@media (min-width: 700px) and (max-width: 1039px) {
  /* buttons in one row → "Santa | date" row moves lower, freed space goes to the villa */
  .card {
    --rowB: calc(150px + env(safe-area-inset-bottom));
    --villa: clamp(120px, calc((83svh - 124px - 1.3 * var(--F) - min(10vw, 44px) - 1.72 * var(--F)) / .55), min(76vw, 3.6 * var(--F)));
    --spare: max(0px, calc(83svh - 124px - 1.3 * var(--F) - min(10vw, 44px) - 1.72 * var(--F) - .55 * var(--villa)));
  }
}
@media (min-width: 700px) and (max-width: 1039px) { .poster__cta .btn { min-height: 60px; padding: 0 1.7em; font-size: 1.125rem; } }

/* back to the parent site proemzako.pl — a small "pill" in the poster's top-left corner */
.home-link {
  position: absolute; z-index: 5; left: calc(var(--stripe) + 12px); top: calc(12px + env(safe-area-inset-top));
  display: inline-flex; align-items: center; gap: 5px; padding: 7px 12px 7px 8px; border-radius: 99px;
  background: rgba(4, 30, 17, .38); box-shadow: inset 0 0 0 1px rgba(234, 235, 230, .25); color: var(--paper);
  font: 700 .8125rem/1 var(--body); text-decoration: none; letter-spacing: .01em;
  opacity: calc(1 - var(--p, 0) * 4); visibility: var(--cta-vis, visible); transition: background .2s;
}
.home-link svg { width: 15px; height: 15px; }
.home-link:hover { background: rgba(4, 30, 17, .58); }
.home-link:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
@media (min-width: 1040px) { .home-link { left: calc(var(--stripe) + 20px); top: 20px; padding: 8px 14px 8px 10px; font-size: .875rem; } }
@media (max-width: 1039px) { .card .orn--p1 { top: calc(7% + 22px); } }

/* ── desktop left section "ruler" (as on Night to Shine): where you are, how far to go ── */
.rail { display: none; }
@media (min-width: 1180px) {
  .rail { display: block; position: fixed; z-index: 55; left: calc(var(--stripe) + 22px); top: 50%; translate: 0 -50%;
    opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
  .rail.is-shown { opacity: 1; visibility: visible; }
  .rail ol { list-style: none; display: grid; gap: 4px; }
  .rail a { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 9px 8px; text-decoration: none;
    color: var(--g); opacity: .38; transition: opacity .2s, color .3s; }
  .rail a:hover { opacity: .8; }
  .rail b { font: 800 .8125rem/1 var(--display); letter-spacing: .04em; }
  .rail span { display: none; writing-mode: vertical-rl; font: 700 .6875rem/1 var(--body); letter-spacing: .2em; text-transform: uppercase; }
  .rail a[aria-current="true"] { opacity: 1; }
  .rail a[aria-current="true"] span { display: block; padding-bottom: 12px; border-bottom: 1.5px solid currentColor; }
  .rail.on-dark a { color: var(--paper); }
  .rail a:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 8px; }
}
@media (min-width: 1180px) {
  /* numbers as on the cards (1–5), start and end as letter and phone icons */
  .rail i { display: grid; place-items: center; height: 14px; }
  .rail i svg { width: 15px; height: 15px; }
  .rail b { font-size: .875rem; min-width: 18px; text-align: center; }
}

/* ruler: minimal, as in Night to Shine; only where there really is free space on the left */
.rail { display: none !important; }
@media (min-width: 1380px) {
  .rail { display: block !important; left: calc(var(--stripe) + 18px); }
  .rail ol { gap: 0; }
  .rail a { gap: 9px; padding: 8px 6px; opacity: 1; color: rgba(11, 102, 58, .42); }
  .rail a:hover { color: var(--g); }
  .rail b { font: 700 .6875rem/1 var(--body); letter-spacing: .08em; min-width: 0; }
  .rail span { font: 700 .625rem/1 var(--body); letter-spacing: .22em; }
  .rail a[aria-current="true"] { color: var(--g); }
  .rail a[aria-current="true"] span { padding-bottom: 10px; border-bottom-width: 1px; }
  .rail a.on-dark { color: rgba(234, 235, 230, .5); }
  .rail a.on-dark:hover, .rail a.on-dark[aria-current="true"] { color: var(--paper); }
  .rail.on-dark a { color: inherit; }
}

/* ── footer modelled on the Proem Zako camps site (our own style) ── */
.foot__in { display: grid !important; grid-template-columns: 1fr !important; grid-template-areas: none !important; gap: 40px !important; }
.foot__bye { justify-items: start !important; text-align: left !important; }
.foot__top { display: grid; grid-template-columns: auto auto 1fr auto; align-items: start; gap: 28px clamp(28px, 5vw, 64px);
  padding-top: 32px; border-top: 1px solid rgba(234, 235, 230, .18); }
.ft-col { display: grid; gap: 14px; align-content: start; }
.ft-h { font: 700 .75rem/1 var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--on-g); }
.ft-logo { display: block; color: var(--paper); --la: var(--gold); }
.ft-logo .logo--zako { height: 48px; width: auto; }
.ft-logo .logo--rancho { height: 46px; width: auto; }
.ft-docs ul, .ft-links { list-style: none; margin: 0; padding: 0; }
.ft-docs ul { display: flex; flex-wrap: wrap; gap: 6px 26px; }
.ft-docs a { display: inline-flex; align-items: baseline; gap: 7px; min-height: 40px; padding: 8px 0; color: var(--paper); font-weight: 700; text-decoration: none;
  border-bottom: 1px solid rgba(234, 235, 230, .3); }
.ft-docs a:hover { border-bottom-color: var(--gold); }
.ft-docs small { font: 700 .6875rem/1 var(--body); letter-spacing: .12em; color: var(--gold); }
.ft-links { display: grid; gap: 4px; justify-items: end; }
.ft-links a { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; color: var(--paper); font-weight: 700; text-decoration: none; }
.ft-links a:hover { color: var(--gold); }
.foot__base { grid-area: auto !important; display: flex !important; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 10px 24px; }
.foot__legal { display: block !important; line-height: 1.7; }
.foot__ids { display: inline-flex !important; flex-wrap: wrap; gap: 0 18px; }
@media (max-width: 899px) {
  .foot__top { grid-template-columns: auto auto; }
  .ft-docs, .ft-links { grid-column: 1 / -1; }
  .ft-links { justify-items: start; }
}
@media (max-width: 599px) { .ft-sep { display: none; } .ft-addr { display: block; } }
/* "Grupa / klasa" field next to the school name: 6-column grid, field pairs of 3 */
.mf__fields { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; }
.mf__fields .mf__f { grid-column: span 3 !important; }
.mf__fields .mf__f--place { grid-column: span 4 !important; }
.mf__fields .mf__f--group { grid-column: span 2 !important; }
.mf__fields .mf__f--wide { grid-column: 1 / -1 !important; }
@media (max-width: 380px) { .mf__fields .mf__f--place, .mf__fields .mf__f--group { grid-column: 1 / -1 !important; } }
/* link to the foundation's general policy — separate, below a rule, quieter than the body text */
.legal__more { margin-top: 40px; padding-top: 20px; border-top: 1px dashed rgba(11, 102, 58, .3); font-size: .9375rem; line-height: 1.6; color: var(--g-soft); }
.legal__more a { color: var(--g); font-weight: 700; }
.legal__more small { font: 700 .6875rem/1 var(--body); letter-spacing: .12em; color: var(--r-ink); }
/* who the programme is for — noticeable, but quieter than the letter body text */
.letter__for { display: flex; align-items: center; gap: 10px; justify-self: start; max-width: 40ch; margin: 6px 0 4px; padding: 9px 14px 9px 12px; border: 1.5px dashed color-mix(in srgb, var(--g) 35%, transparent); border-radius: 14px; font-weight: 700; font-size: .875rem; line-height: 1.35; color: var(--g); text-wrap: pretty; }
.letter__for span { flex: none; color: var(--gold); font-size: 1.1em; }
@media (min-width: 1040px) {   /* web: contacts under their buttons, age centred below them */
  .letter__for { order: 1; justify-self: center; max-width: none; margin: 8px 0 0; }
  .letter__cta { display: grid; grid-template-columns: 1fr 1fr; }
  .letter__phones { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; justify-items: center; }
  .letter__phones svg { flex: none; }
}

/* participant age in prices and booking */
.price__aud, .book__aud { display: flex; align-items: baseline; gap: 8px; font-weight: 700; line-height: 1.35; text-wrap: pretty; }
.price__aud { width: fit-content; margin-top: 14px; color: var(--white); font-size: .9375rem; transform: rotate(-2deg); transform-origin: 0 50%; }   /* same slant as the "grupa od 15 dzieci" badge */
.price__aud span, .book__aud span { flex: none; color: var(--gold); }
.envelope__text p.book__aud { width: fit-content; max-width: 40ch; align-items: center; gap: 10px; margin: 0 0 18px; padding: 9px 14px 9px 12px; border: 1.5px dashed color-mix(in srgb, var(--g) 35%, transparent); border-radius: 14px; color: var(--g); font-size: .875rem; }   /* like the badge in the letter */
@media (min-width: 1040px) and (max-width: 1399px) {
  .letter__for { max-width: 39ch; text-wrap: balance; }
  .letter__phones { gap: 0; }
  .letter__phones a { font-size: .9375rem; }
  .letter__phones svg { flex: none; }
}
/* booking (phone): short badge next to the stamp, less empty space above it */
.book__aud b { font-weight: inherit; }
.book__aud .book__lines { color: inherit; }
.book__lines b + b::before { content: " "; }
@media (max-width: 699px) { .envelope__body { padding-top: 40px; } .book__lines { display: grid; } .book__lines b + b::before { content: none; } }
/* form: age badge above the title – as in "Zarezerwuj termin" */
.mf__for { display: flex; align-items: center; gap: 10px; width: fit-content; margin-bottom: 14px; padding: 7px 14px 7px 12px; border: 1.5px dashed color-mix(in srgb, var(--g) 35%, transparent); border-radius: 14px; font-weight: 700; font-size: .8125rem; line-height: 1.3; color: var(--g); }
.mf__for i { flex: none; font-style: normal; color: var(--gold); }
.mf__for b { font-weight: inherit; }
.mf__for b::first-letter { text-transform: uppercase; }

/* 404 – the letter came back to the sender */
.nf { overflow-x: hidden; }
.nf__in { position: relative; z-index: 1; min-height: 100svh; max-width: 64rem; margin: 0 auto; padding: 56px calc(var(--gutter) + 8px); display: grid; align-content: center; gap: 28px; color: var(--g-night); }
.nf__txt { display: grid; justify-items: start; gap: 14px; min-width: 0; }
.nf__txt > * { max-width: 100%; }
.nf__stamp { display: grid; justify-items: center; gap: 2px; padding: 12px 22px; border: 3px solid var(--r-ink); border-radius: 12px; color: var(--r-ink); transform: rotate(-6deg); margin-bottom: 14px; }
.nf__stamp span { font: 800 .75rem/1 var(--display); letter-spacing: .14em; text-transform: uppercase; }
.nf__stamp b { font: 900 3.4rem/1 var(--display); letter-spacing: -.03em; }
.nf__hello { font: 800 clamp(2.4rem, 1.8rem + 3vw, 3.4rem)/1 var(--script); color: var(--r-ink); transform: rotate(-3deg); transform-origin: 0 50%; }
.nf h1 { font: 800 clamp(1.8rem, 1.3rem + 2.4vw, 2.8rem)/1.05 var(--display); letter-spacing: -.03em; color: var(--g); }
.nf__body { max-width: 40ch; color: var(--g-soft); font-size: 1.0625rem; text-wrap: pretty; }
.nf__cta { display: flex; flex-wrap: wrap; gap: 12px; width: 100%; margin-top: 12px; }
/* illustration: Santa looks for a lost letter */
.nf__art { position: relative; justify-self: center; width: min(60vw, 230px); aspect-ratio: 1; }
.nf__trail { position: absolute; left: 35%; top: 45%; width: 90%; height: 90%; transform: scaleY(-1); }
.nf__trail path { fill: none; stroke: var(--r-ink); stroke-width: 3; stroke-dasharray: 2 12; stroke-linecap: round; opacity: .55; }
.nf__disc { position: absolute; inset: 9%; display: grid; place-items: center; border-radius: 50%; background: var(--g); background-image: var(--grain); background-size: 240px; box-shadow: 0 0 0 10px var(--white), 0 24px 40px -18px rgba(8, 45, 26, .6); }
.nf__disc img { width: 66%; height: auto; transform: scaleX(-1); filter: drop-shadow(0 6px 0 rgba(0, 0, 0, .18)); }
.nf__q { position: absolute; right: 2%; top: 4%; display: grid; place-items: center; width: 22%; aspect-ratio: 1; border-radius: 50%; background: var(--gold); color: var(--white); font: 900 clamp(1.6rem, 4vw, 2.4rem)/1 var(--display); transform: rotate(10deg); box-shadow: 0 10px 18px -10px rgba(0, 0, 0, .5); }
.nf .orn { position: fixed; z-index: 0; }
.nf__o1 { --sz: 64px; left: 6%; top: 0; }
.nf__o2 { --sz: 34px; --sw: 14deg; right: 9%; top: 9%; transform-origin: 50% 50%; }
.nf__o3 { --sz: 88px; --sw: 2deg; right: 5%; bottom: 3%; }
.nf__o4 { --sz: 58px; --sw: 2deg; right: calc(5% + 70px); bottom: 3%; }
.nf__o5 { --sz: 40px; --sw: 18deg; left: 8%; bottom: 12%; transform-origin: 50% 50%; }
.nf__o6 { --sz: 22px; --sw: 24deg; left: 44%; top: 7%; transform-origin: 50% 50%; }
.nf__o7 { --sz: 52px; right: 26%; top: 0; }
@media (max-width: 899px) { .nf__o3, .nf__o4, .nf__o5, .nf__o6, .nf__o7 { display: none; } .nf__o1 { --sz: 44px; } .nf__o2 { --sz: 26px; } }
@media (min-width: 900px) {
  .nf__in { max-width: 70rem; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; column-gap: 56px; }
  .nf__art { order: 2; width: min(100%, 400px); }
}

/* phone: signature always below the text (in Safari the last line can run longer and the signature overlapped it) */
@media (max-width: 1039px) { .letter .letter__sign { margin: 0 0 6px; } }
/* short phone screens (Safari with bars): the letter must fit above the bottom "Zarezerwuj / Zadzwoń" bar –
   slightly tighter text; the script hides the pills (class is-tight) when the letter does not fit */
@media (max-width: 1039px) and (max-height: 780px) {
  .letter { gap: 8px; }
  .letter__head { font-size: 2.7rem; }
  .letter__body { font-size: .9375rem; line-height: 1.45; }
  .letter .letter__sign { font-size: 1.45rem; }
  .letter__for { margin: 2px 0 0; padding: 7px 12px 7px 10px; font-size: .8125rem; }
}
@media (max-width: 1039px) { .letter.is-tight .letter__phones { display: none; } }
