/* Recipient-only presentation. The main site keeps its own navigation and theme. */
body.gift-shell {
  --gift-ink: #354037;
  --gift-muted: #727969;
  --gift-rule: #b6b9a94a;
  --gift-accent: #763e50;
  --paper-grain: url("/assets/textures/cotton-paper-1a4d4f25.svg");
  color: var(--gift-ink);
  background: radial-gradient(ellipse at 50% 300px, #fffdf8, #f2f0e8 780px);
  min-height: 100svh;
}
html[data-theme=dark] body.gift-shell {
  --gift-ink: #eeeae0;
  --gift-muted: #afb8a8;
  --gift-rule: #acb89b2b;
  --gift-accent: #e4b4bc;
  color: var(--gift-ink);
  background: radial-gradient(ellipse at 50% 300px, #28382f, #131f1b 820px);
}
.gift-shell .gift-masthead {
  position: relative;
  z-index: 10;
  max-width: 1480px;
  margin: auto;
  padding: max(24px, env(safe-area-inset-top)) clamp(24px, 5vw, 72px) 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.gift-shell .gift-masthead .brand { font-size: 29px; letter-spacing: -1.5px; }
.gift-shell .preferences-menu { color: var(--gift-muted); font-size: 12px; }
.gift-shell .preferences-menu summary { padding: 14px 0 14px 14px; min-height: 44px; }
.gift-shell .preferences-panel { right: auto; inset-inline-end: 0; color: var(--gift-ink); }
.gift-shell .recipient-experience { padding: 15px 24px 0; min-height: 0; }
.gift-shell .recipient-heading { max-width: 820px; margin: 0 auto 10px; text-align: center; }
.gift-shell .recipient-heading .eyebrow { color: var(--gift-muted); font-size: 10px; letter-spacing: .17em; justify-content: center; }
.gift-shell .recipient-heading h1 { font-size: clamp(38px, 5vw, 64px); font-weight: 400; line-height: 1.15; letter-spacing: -.045em; margin: 16px 0 12px; overflow-wrap: anywhere; }
.gift-shell .recipient-heading > p:last-child { color: var(--gift-muted); line-height: 1.7; overflow-wrap: anywhere; }
.gift-shell .recipient-flower { max-width: 880px; margin: auto; }
.gift-shell .recipient-scene,
.gift-shell .recipient-experience[data-cinematic=true] .recipient-scene {
  position: relative;
  margin: 12px auto 0;
  max-width: none;
  height: clamp(440px, 58svh, 560px);
  border-radius: 22px;
  overflow: visible;
  background: none;
  box-shadow: none;
}
.gift-shell .recipient-experience[data-cinematic=true] .recipient-scene::after { content: none; }
.gift-shell .recipient-botanical { height: 100%; opacity: 0; visibility: hidden; transition: opacity 1.2s .2s; }
.gift-shell [data-opening=true] .recipient-botanical { opacity: 1; visibility: visible; }
.gift-shell .recipient-scene .botanical-scene { height: 100%; border-radius: 22px; }
.gift-shell .recipient-scene .botanical-scene .scene-backdrop { background: radial-gradient(ellipse at 50% 36%, #fffef9, #edece1); }
/* The gift's saved atmosphere belongs to the sender, not the viewer's UI theme. */
.gift-shell .recipient-scene .botanical-scene[data-lighting=moonlight] .scene-backdrop { background: radial-gradient(ellipse at 50% 35%, #b7c0ce, #68788a); }
.gift-shell .recipient-scene .botanical-scene[data-lighting=midnight_romance] .scene-backdrop { background: radial-gradient(ellipse at 50% 35%, #585d79, #252d42); }
.gift-shell .recipient-scene .botanical-scene[data-lighting=candlelight] .scene-backdrop { background: radial-gradient(ellipse at 45% 30%, #e9d2af, #b7a78b); }
.gift-shell .recipient-scene .botanical-scene[data-lighting=golden_hour] .scene-backdrop { background: radial-gradient(ellipse at 45% 35%, #ffedd4, #e4d9bb); }
.gift-shell .recipient-scene .botanical-scene[data-lighting=garden_sunrise] .scene-backdrop { background: radial-gradient(ellipse at 50% 30%, #f9f2d5, #c9d2af); }
.gift-shell .recipient-experience[data-cinematic=true] .botanical-scene .scene-backdrop { background: radial-gradient(ellipse at 50% 38%, #393444, #15121c 85%); }
.gift-shell .recipient-scene .scene-caption { color: #4b5a43; bottom: 22px; }
.gift-shell .recipient-scene .botanical-scene[data-lighting=midnight_romance] .scene-caption,
.gift-shell .recipient-experience[data-cinematic=true] .scene-caption { color: #ebe6d6; }
.gift-shell .recipient-scene .scene-status { color: #4d5b46; }
.gift-shell .recipient-scene .botanical-scene[data-lighting=midnight_romance] .scene-status,
.gift-shell .recipient-experience[data-cinematic=true] .scene-status { color: #e9e2d2; }

/* Fallback artwork has its own background, independent of the saved lighting. */
.gift-shell .recipient-scene .botanical-scene[data-state=fallback] :is(.scene-status, .scene-caption) {
  color: #fffdf5;
  background: #20392e;
  border-radius: 14px;
  padding: 6px 12px;
  font-size: 12px;
  line-height: 1.5;
  width: max-content;
  max-width: calc(100% - 32px);
  box-sizing: border-box;
  inset-inline: auto;
  left: 50%;
  transform: translateX(-50%);
  text-shadow: none;
}
.gift-shell .recipient-scene .botanical-scene[data-state=fallback] .live-dot { background: currentColor; }

/* A wrapped paper keepsake fills the unopened view; the renderer starts on intent. */
.gift-shell .gift-invitation { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: opacity .6s, transform .65s cubic-bezier(.25,.7,.3,1); }
.gift-shell [data-opening=true] .gift-invitation { opacity: 0; transform: translateY(-12px) scale(1.04); pointer-events: none; }
.gift-shell .invitation-keepsake { width: 234px; height: 288px; position: relative; margin: 12px auto 25px; transform: rotate(-7deg); }
.gift-shell .invitation-shadow { position: absolute; inset: 16px -7px -5px 8px; transform: rotate(11deg); background: #c2c6ad; border-radius: 3px; box-shadow: 0 12px 20px #09180f1a; }
.gift-shell .invitation-shadow::after { content: ''; position: absolute; inset: 8px; border: 1px solid #f5f1d880; }
.gift-shell .invitation-card { position: absolute; inset: 0; background: linear-gradient(115deg, #f5efdd, #fffaf0 40%, #e5dbc4); border: 1px solid #fcf6e9; border-radius: 2px 4px 3px 1px; box-shadow: -1px 2px 0 #d6c9ae, -2px 3px 0 #efe5d0, 0 18px 30px #1720183b, inset 0 0 30px #99845712; overflow: hidden; }
.gift-shell .invitation-wordmark { position: absolute; top: 24px; left: 0; right: 0; text-align: center; color: #7d755b; font: 19px Georgia,serif; letter-spacing: -1px; text-shadow: 0 1px 0 #fffef4; }
.gift-shell .invitation-border { position: absolute; inset: 13px; border: 1px solid #b7a88055; pointer-events: none; }
.gift-shell .invitation-botanical { position: absolute; height: 211px; width: 147px; left: 37px; bottom: 16px; stroke: #728266; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 1px 0 #fff9ea); }
.gift-shell .invitation-ribbon { position: absolute; inset: 139px -4px auto; height: 48px; transform: rotate(-3deg); background: repeating-linear-gradient(0deg,#fff3 0 1px,transparent 1px 3px), linear-gradient(95deg,#9faca1,#d5dac9 20%,#b4c0ac 60%,#8f9e8f); border-block: 1px solid #eef1df99; box-shadow: 0 3px 4px #36443433, inset 0 2px 5px #f0edca44; }
.gift-shell .gift-open { margin-top: 14px; border-radius: 40px; padding: 16px 26px; gap: 28px; box-shadow: 0 6px 18px #532b3920; background: #733b4b; min-height: 54px; }
.gift-shell .gift-open:hover { background: #5d2c3c; }
.gift-shell .invitation-keepsake .wax-seal { top: 135px; width: 59px; height: 59px; left: calc(50% - 29px); transform: rotate(11deg); }

/* Controls belong to the flower, never below the personal letter. */
.gift-shell .bloom-actions { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px 28px; padding: 14px 8px; border-bottom: 1px solid var(--gift-rule); }
.gift-shell .recipient-experience:not([data-revealed=true]) .bloom-actions { border-color: transparent; }
.gift-shell .recipient-experience:not([data-revealed=true]):not([data-cinematic=true]) .bloom-actions { display: none; }
.gift-shell .bloom-actions :is(button, a) { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-size: 12px; color: var(--gift-ink); margin: 0; padding: 8px 0; }
.gift-shell .bloom-actions :is(button, a):hover { color: var(--gift-accent); }
.gift-shell .bloom-replay > span { font-size: 24px; line-height: 1; }
.gift-shell .bloom-keep { text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--gift-rule); }
.gift-shell .soundscape-toggle > span { padding: 4px 7px; border: 1px solid var(--gift-rule); border-radius: 20px; font-size: 10px; }
.gift-shell .soundscape-toggle[aria-pressed=true] > span { background: #708262; color: #fff; }

/* Cotton stock: shared grain over differently lit layers, with raised fold edges. */
.gift-shell .paper-surface::before { content: ''; position: absolute; inset: 0; background-image: var(--paper-grain); background-size: 256px 256px; opacity: .39; mix-blend-mode: multiply; pointer-events: none; border-radius: inherit; }
.gift-shell .letter-ritual { max-width: 660px; margin: 34px auto 0; padding: 0; text-align: center; perspective: 1300px; }
.gift-shell .letter-heading { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 14px 0; }
.gift-shell .letter-heading > span { color: var(--gift-accent); font-size: 22px; }
.gift-shell .letter-heading h2 { font-size: 24px; letter-spacing: -.02em; }
.gift-shell .envelope-stage { padding: 24px 12px 0; overflow: hidden; perspective: 1100px; transition: padding-top .2s ease-out; }
.gift-shell .envelope-stage.is-opening { padding-top: 135px; }
.gift-shell .envelope { width: min(360px,100%); height: auto; aspect-ratio: 1.64; margin: 0 auto; background: transparent; color: #706049; filter: drop-shadow(2px 18px 17px #090c072d); transform: rotate(-3deg); transform-style: flat; transition: transform .6s; }
.gift-shell .envelope:hover:not(.is-open) { transform: rotate(-1deg) translateY(-4px); }
.gift-shell .envelope-back { background: linear-gradient(145deg,#bcb098,#ddd1b8 48%,#cdbd9a); border: 1px solid #b4a27f; box-shadow: inset 0 1px 7px #6e5b3d29; }
.gift-shell .envelope-paper { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: 18px; inset: 9px 13px 5px; background: linear-gradient(105deg,#fffdf1,#f6eddb); border: 1px solid #eee5d1; box-shadow: 0 0 5px #54463233; transition: transform .85s .8s cubic-bezier(.21,.6,.25,1); }
.gift-shell .envelope-paper::after { content: none; }
.gift-shell .paper-monogram { font: italic 26px Georgia,serif; color: #a39677; margin: 0 0 14px; }
.gift-shell .paper-rule { width: 54%; height: 1px; background: #b7a58144; margin: 8px; }
.gift-shell .paper-rule:last-child { width: 39%; }
.gift-shell .envelope-folds { background: linear-gradient(110deg,#ece0c7,#d7c6a5); clip-path: polygon(0 0,50% 53%,100% 0,100% 100%,0 100%); }
.gift-shell .envelope-folds::after { background-image: var(--paper-grain),linear-gradient(170deg,#f4e9d3,#e0cfac); background-size: 256px 256px,auto; background-blend-mode: soft-light; clip-path: polygon(0 100%,0 98%,50% 43%,100% 98%,100% 100%); border-bottom: 1px solid #cab794; }
.gift-shell .envelope-flap { height: 59%; bottom: auto; background: linear-gradient(175deg,#f7ecd6,#d6c19c); clip-path: polygon(0 0,100% 0,51% 100%,49% 100%); transform-origin: center top; transition: transform .8s .2s cubic-bezier(.32,.1,.2,1),filter .8s .2s; }
.gift-shell .wax-seal { display: grid; place-items: center; position: absolute; z-index: 6; top: 46%; left: calc(50% - 26px); width: 52px; height: 53px; padding: 2px; border: 2px solid #945960; border-radius: 45% 51% 46% 49% / 51% 43% 54% 47%; background: radial-gradient(ellipse at 28% 17%,#ae7477 0%,#864551 43%,#703342 77%,#9d6267); box-shadow: 2px 4px 4px #4022215c,inset 1px 2px 2px #e3ab9270,inset -1px -3px 2px #3c192c80; transition: transform .45s,opacity .35s; }
.gift-shell .wax-seal svg { width: 100%; height: 100%; stroke: #dba294; stroke-width: 1.1; filter: drop-shadow(0 -1px 0 #552735); opacity: .9; }
.gift-shell .wax-seal::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background-image: var(--paper-grain); mix-blend-mode: soft-light; opacity: .25; }
.gift-shell .envelope-address { bottom: 22px; padding-inline: 16px; font: italic 22px/1.25 Georgia,serif; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #72634a; opacity: 1; text-shadow: 0 1px #ffffdd80; }
.gift-shell .envelope.is-open { transform: rotate(0); }
.gift-shell .envelope.is-open .envelope-flap { transform: rotateX(180deg); z-index: 1; filter: brightness(.88); }
.gift-shell .envelope.is-open .envelope-paper { transform: translateY(-94px) rotate(-1deg); }
.gift-shell .envelope.is-open .wax-seal { opacity: 0; transform: translate(10px,18px) rotate(18deg); }
.gift-shell .letter-invitation { font-size: 12px; color: var(--gift-muted); line-height: 1.7; opacity: 1; margin: 32px 0 0; }
.gift-shell .card-open-prompt { display: flex; align-items: center; justify-content: center; gap: 12px; width: fit-content; max-width: 100%; min-height: 48px; margin: 0 auto 26px; padding: 12px 20px; border: 1px solid #763e50; border-radius: 999px; background: #763e50; color: #fffaf4; font: 600 14px/1.5 Arial,sans-serif; text-align: center; cursor: pointer; box-shadow: 0 5px 16px #763e501c; }
.gift-shell .card-open-prompt span { min-width: 0; overflow-wrap: anywhere; }
.gift-shell .card-open-prompt svg { flex: none; }
.gift-shell .card-open-prompt:hover { background: #603042; }
.gift-shell .card-open-prompt:focus-visible { outline: 3px solid var(--gift-accent); outline-offset: 4px; }
html[data-theme=dark] .gift-shell .card-open-prompt { background: #e4b4bc; border-color: #e4b4bc; color: #35242b; }
html[data-theme=dark] .gift-shell .card-open-prompt:hover { background: #f1cbd1; }
.gift-shell .letter.tactile-letter {
  --paper-color: #f5eedf;
  --paper-light: #fffaf0;
  --paper-ink: #484137;
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: none;
  min-height: 350px;
  margin: 22px auto 0;
  padding: 64px clamp(28px,6vw,66px) 58px;
  text-align: start;
  color: var(--paper-ink) !important;
  background: linear-gradient(104deg,var(--paper-light),var(--paper-color)) !important;
  border: 1px solid #d1c3a88c;
  border-radius: 2px 5px 2px 3px;
  box-shadow: 0 1px 0 #d9c8a7,0 3px 0 -1px #e9dfce,0 20px 45px #10160920,inset 0 0 45px #ad936311;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.gift-shell .blush .letter.tactile-letter { --paper-color: #f1dfd6; --paper-light: #fff4ed; }
.gift-shell .botanical .letter.tactile-letter { --paper-color: #e6eadb; --paper-light: #f5f7eb; }
.gift-shell .midnight .letter.tactile-letter { --paper-color: #283831; --paper-light: #3e4b42; --paper-ink: #f0e9d9; border-color: #7d826657; }
.gift-shell .tactile-letter::before { z-index: -1; opacity: .46; }
.gift-shell .tactile-letter .letter-watermark { position: absolute; top: 22px; inset-inline-end: 28px; font: italic 23px Georgia,serif; color: var(--paper-ink); opacity: .28; }
.gift-shell .tactile-letter :is(h2,.letter-body,.letter-closing) { font-family: inherit; color: var(--paper-ink) !important; }
.gift-shell .tactile-letter h2 { font-size: 30px; line-height: 1.35; font-weight: 400; margin: 0 0 26px; }
.gift-shell .tactile-letter .letter-body { font-size: 20px; line-height: 1.85; }
.gift-shell .tactile-letter .letter-closing { font-size: 19px; line-height: 1.7; margin-top: 32px; }
.gift-shell .tactile-letter.letter-visible { animation: gift-paper-arrives .8s cubic-bezier(.16,.65,.23,1) both; }
.gift-shell .tactile-letter:focus-visible { outline: 2px solid var(--gift-accent); outline-offset: 7px; }
@keyframes gift-paper-arrives { from { opacity: 0; transform: perspective(1000px) rotateX(-10deg) translateY(16px); } to { opacity: 1; transform: none; } }
.gift-shell .recipient-after { margin: 26px auto 0; max-width: 660px; }
.gift-shell .recipient-after:empty, .gift-shell .gift-media:empty { display: none; }
.gift-shell .recipient-after:has(.gift-media:empty) { display: none; }
.gift-shell .gift-business-signature {
  flex-direction: column;
  align-items: center;
  gap: 18px;
  border-top-width: 1px;
  max-width: 560px;
  margin: 35px auto;
  padding: 28px 20px;
  text-align: center;
}
.gift-shell .gift-business-signature .business-logo { display: block; flex: none; max-width: min(140px, 100%); height: auto; }
.gift-shell .gift-business-signature > div { width: 100%; min-width: 0; overflow-wrap: anywhere; }
.gift-shell .gift-business-signature strong { display: block; font-size: 18px; line-height: 1.4; }
.gift-shell .gift-business-signature p { max-width: 46ch; margin: 8px auto 0; line-height: 1.65; }
.gift-shell .gift-business-signature .fine-print { color: var(--gift-muted); }
.gift-shell .gift-business-signature .story-link { display: inline-block; margin-top: 18px; }
.gift-shell .report-form { max-width: 660px; margin: 38px auto 0; font-size: 11px; color: var(--gift-muted); }
.gift-shell .report-form summary { min-height: 44px; padding-block: 15px; }
.gift-shell .gift-footer { max-width: 660px; margin: 24px auto 0; padding: 20px 24px max(24px,env(safe-area-inset-bottom)); border-top: 1px solid var(--gift-rule); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 12px; }
.gift-shell .gift-footer .gift-entry-form { flex-basis: 100%; min-width: 0; margin: 0; display: flex; justify-content: center; }
.gift-shell .gift-footer button.gift-send-own { max-width: 100%; min-height: 44px; padding: 10px 18px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; border: 1px solid var(--gift-rule); border-radius: 999px; background: transparent; color: var(--gift-ink); font: inherit; font-size: 14px; font-weight: 500; line-height: 1.5; white-space: normal; overflow-wrap: anywhere; text-align: center; }
.gift-shell .gift-footer button.gift-send-own:hover { border-color: var(--gift-accent); background: #763e5008; }
.gift-shell .gift-footer button.gift-send-own .cta-arrow { flex-shrink: 0; width: 18px; }
.gift-shell .gift-footer button.gift-send-own:focus-visible { outline: 2px solid var(--gift-accent); outline-offset: 5px; }
html[data-theme=dark] .gift-shell .gift-footer button.gift-send-own:hover { background: #e4b4bc0d; }
.gift-shell .gift-privacy { color: var(--gift-muted); font-size: 11px; padding: 8px; }
.gift-shell .product-shell.narrow { min-height: 55svh; padding-top: 90px; }
.gift-shell .product-shell.narrow .eyebrow { display: none; }
.gift-shell .group-note-choices { max-width: 660px; margin: 36px auto; }

@media (max-width: 600px) {
  .gift-shell .gift-masthead { padding: max(14px,env(safe-area-inset-top)) 22px 12px; }
  .gift-shell .gift-masthead .brand { font-size: 27px; }
  .gift-shell .recipient-experience { padding: 15px 16px 0; }
  .gift-shell .recipient-heading .eyebrow { font-size: 9px; }
  .gift-shell .recipient-heading h1 { font-size: clamp(34px,9vw,46px); margin-block: 14px 8px; }
  .gift-shell .recipient-heading > p:last-child { font-size: 12px; padding-inline: 12px; }
  .gift-shell .recipient-scene, .gift-shell .recipient-experience[data-cinematic=true] .recipient-scene { height: 430px; margin-top: 15px; }
  .gift-shell .recipient-scene .botanical-scene { border-radius: 18px; }
  .gift-shell .invitation-keepsake { width: 211px; height: 260px; margin-block: 10px 23px; }
  .gift-shell .invitation-botanical { height: 192px; left: 28px; bottom: 12px; }
  .gift-shell .invitation-ribbon { top: 127px; height: 43px; }
  .gift-shell .invitation-keepsake .wax-seal { top: 122px; width: 54px; height: 54px; left: calc(50% - 27px); }
  .gift-shell .gift-open { font-size: 12px; min-height: 51px; }
  .gift-shell .bloom-actions { gap: 3px 20px; padding-block: 10px; }
  .gift-shell .bloom-actions :is(button,a) { font-size: 11px; }
  .gift-shell .letter-ritual { margin-top: 25px; }
  .gift-shell .letter-heading h2 { font-size: 22px; }
  .gift-shell .envelope-stage.is-opening { padding-top: 128px; }
  .gift-shell .envelope { max-width: 330px; }
  .gift-shell .envelope-address { font-size: 20px; bottom: 18px; }
  .gift-shell .letter.tactile-letter { padding: 57px 28px 40px; min-height: 335px; }
  .gift-shell .tactile-letter h2 { font-size: 27px; }
  .gift-shell .tactile-letter .letter-body { font-size: 18px; line-height: 1.85; }
  .gift-shell .tactile-letter .letter-closing { font-size: 18px; }
  .gift-shell .gift-footer { margin-inline: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .gift-shell .gift-invitation, .gift-shell .recipient-botanical, .gift-shell .envelope, .gift-shell .envelope * { transition: none; }
  .gift-shell .tactile-letter.letter-visible { animation: none; }
}

.gift-shell .recipient-experience[data-cinematic=true] .recipient-flower{max-width:1120px}
.gift-shell .recipient-experience[data-cinematic=true] .recipient-scene{height:clamp(480px,65svh,680px)}
.gift-shell .recipient-experience[data-cinematic=true][data-opening=true] .recipient-botanical{box-shadow:0 20px 65px #07161026;border-radius:22px}
@media(max-width:600px){.gift-shell .recipient-experience[data-cinematic=true] .recipient-scene{height:490px}}

/* Photographs sit with the personal letter, like prints tucked into its envelope. */
.gift-shell .keepsake-media{margin:0 auto 38px;max-width:560px;text-align:start}
.gift-shell .keepsake-photos{display:flex;gap:18px;overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;padding:12px 12px 22px;scroll-padding-inline:12px;scrollbar-width:thin;scrollbar-color:var(--gift-rule) transparent}
.gift-shell .keepsake-photograph{flex:0 0 88%;min-width:0;scroll-snap-align:center;margin:0;padding:12px 12px 0;background:#fffdf6;border:1px solid #d8ccb8;border-radius:3px;box-shadow:0 8px 18px #33261612;color:#554b3d}
.gift-shell .keepsake-photos[data-count="1"] .keepsake-photograph{flex-basis:100%}
.gift-shell .keepsake-photograph img{display:block;width:100%;height:clamp(220px,42vw,380px);object-fit:contain;background:#eee9df;border-radius:1px}
.gift-shell .keepsake-photograph figcaption{display:flex;align-items:center;gap:10px;min-height:54px;padding:10px 4px;font:italic 15px/1.5 Georgia,serif;overflow-wrap:anywhere}
.gift-shell .keepsake-photograph figcaption small{margin-inline-start:auto;white-space:nowrap;font:11px/1.5 Arial,sans-serif;opacity:.65}
.gift-shell .keepsake-voice{margin:12px;padding:20px 22px;border:1px solid var(--gift-rule);border-radius:16px;background:var(--gift-paper);color:var(--gift-ink)}
.gift-shell .keepsake-voice p{margin:0 0 12px;font:italic 18px Georgia,serif}
.gift-shell .keepsake-voice audio{display:block;width:100%;max-width:100%}
@media(max-width:600px){.gift-shell .keepsake-media{margin-bottom:28px}.gift-shell .keepsake-photos{gap:12px;padding-inline:4px;scroll-padding-inline:4px}.gift-shell .keepsake-photograph{padding:9px 9px 0}.gift-shell .keepsake-photograph img{height:290px}.gift-shell .keepsake-voice{margin-inline:4px}}
.gift-shell .keepsake-photo-open{display:block;width:100%;padding:0;border:0;background:none;cursor:zoom-in}
.gift-shell .keepsake-photo-open:focus-visible{outline:2px solid var(--gift-accent);outline-offset:4px}
.gift-shell .keepsake-photo-dialog{max-width:94vw;max-height:94svh;margin:auto;padding:14px;border:1px solid #d8ccb8;border-radius:8px;background:#fffdf6;box-shadow:0 24px 100px #0006}
.gift-shell .keepsake-photo-dialog::backdrop{background:#101813d9;backdrop-filter:blur(6px)}
.gift-shell .keepsake-photo-dialog .secondary-button{display:flex;margin:0 0 12px auto}
.gift-shell .keepsake-photo-dialog img{display:block;max-width:calc(94vw - 30px);max-height:calc(94svh - 100px);width:auto;height:auto;object-fit:contain;margin:auto}

/* Reuse the homepage's vector icons; Unicode glyphs vary and can become emoji on iOS. */
.gift-shell .letter-heading > .brand-mark { color: #824256; font-size: 28px; margin: 0; line-height: 1; }
html[data-theme=dark] .gift-shell .letter-heading > .brand-mark { color: #e4b4bc; }
.gift-shell .cta-arrow { width: 22px; height: 22px; display: inline-block; flex: none; vertical-align: middle; }

.gift-shell .gift-masthead .brand-mark { font-size: 1em; margin-right: 6px; }

.gift-shell .invitation-wordmark .brand-mark { font-size: 1em; margin-right: 4px; }
html[data-theme] .gift-shell .invitation-wordmark :is(.brand-mark,.brand-period) { color: #824256; }

.grow-identity{max-width:680px;margin:28px auto 12px;border-top:1px solid var(--gift-rule);padding-top:16px;color:var(--gift-muted);font-size:13px}.grow-identity summary{display:flex;align-items:center;gap:10px;min-height:44px;cursor:pointer;list-style:revert}.grow-identity .brand-mark{font-size:20px;margin:0}.grow-identity p{font-size:13px;line-height:1.7}.grow-identity dl{display:grid;gap:12px;margin-top:14px;max-height:260px;overflow:auto}.grow-identity dt{font-size:12px;margin-bottom:5px}.grow-identity code{font-size:12px;overflow-wrap:anywhere;user-select:all}.grow-identity dd{margin:0}

/* A native, keyboard-accessible disclosure that reads as a control on touch. */
.grow-identity{border:1px solid var(--gift-rule);border-radius:18px;padding:0;overflow:hidden;background:color-mix(in srgb,var(--gift-rule) 12%,transparent)}
.grow-identity summary{padding:16px 20px;gap:14px;list-style:none;color:var(--gift-ink);-webkit-tap-highlight-color:transparent}
.grow-identity summary::-webkit-details-marker{display:none}
.grow-identity summary>span:not(.brand-mark){flex:1;min-width:0;text-align:start}
.grow-identity summary strong{font-size:14px;font-weight:600}
.grow-identity-hint{display:block;margin-top:4px;font-size:13px;line-height:1.5;color:var(--gift-muted)}
.grow-identity summary:focus-visible{outline:2px solid currentColor;outline-offset:-4px;border-radius:18px}
.grow-identity summary:hover{background:color-mix(in srgb,var(--gift-rule) 20%,transparent)}
.grow-identity-chevron{width:20px;height:20px;flex:none;transition:transform .2s}
.grow-identity[open] .grow-identity-chevron{transform:rotate(180deg)}
.grow-identity>p,.grow-identity>dl{margin:0 20px 20px}
.grow-identity code{font-size:13px;line-height:1.7}
@media(max-width:480px){.grow-identity summary{padding:15px}.grow-identity>p,.grow-identity>dl{margin-left:15px;margin-right:15px}}
@media(prefers-reduced-motion:reduce){.grow-identity-chevron{transition:none}}

/* Seasonal recipient invitations use the saved gift's existing poster. The
   artwork stays bright enough to recognize; text sits on its own shaded ink. */
.gift-shell .seasonal-entry {
  --entry-ground: #172c21;
  --entry-shade: 18 41 28;
  --entry-gold: #eed697;
  --entry-paper: #f0e7ce;
  --entry-white: #fff8e8;
  --entry-crop: 50% 43%;
  --entry-reading-direction: 90deg;
  display: grid;
  isolation: isolate;
  place-items: center;
  background: var(--entry-ground);
  color: var(--entry-white);
}
.gift-shell [data-opening=true] .seasonal-entry { opacity: 0; transform: scale(1.035); pointer-events: none; }
.gift-shell .seasonal-entry[hidden], .gift-shell .seasonal-entry-copy:has(noscript a) > button { display: none; }
@media (prefers-reduced-motion: reduce) {
  .gift-shell .seasonal-entry { transition: none; }
}
.gift-shell .seasonal-entry:dir(rtl) { --entry-reading-direction: 270deg; }
.gift-shell .seasonal-entry .seasonal-invitation-art {
  position: absolute;
  inset: 0;
  z-index: -2;
  display: flex;
  max-width: none;
  padding: 0;
  pointer-events: none;
}
.gift-shell .seasonal-invitation-art img {
  width: 100%;
  min-width: 0;
  height: 100%;
  flex: 1 1 0%;
  object-fit: cover;
  object-position: var(--entry-crop);
}
.gift-shell .seasonal-entry::after {
  z-index: -1;
  background: linear-gradient(180deg, rgb(var(--entry-shade) / .30), rgb(var(--entry-shade) / .68) 43%, rgb(var(--entry-shade) / .91));
}
.gift-shell .seasonal-entry .seasonal-entry-copy {
  width: 100%;
  max-width: 33rem;
  min-width: 0;
  padding: clamp(22px, 4vw, 56px);
  text-align: center;
  color: var(--entry-white);
}
.gift-shell .seasonal-entry-mark {
  display: block;
  width: clamp(46px, 5vw, 64px);
  height: auto;
  margin: 0 auto clamp(16px, 2.5vw, 30px);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--entry-gold);
}
.gift-shell .seasonal-invitation-heading {
  margin: 0 auto clamp(19px, 2.6vw, 32px);
  max-width: 19ch;
  color: var(--entry-white);
  font: var(--entry-font-style, normal) 400 clamp(29px, 3.2vw, 49px)/1.12 Georgia, serif;
  letter-spacing: -.025em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.gift-shell .seasonal-entry .gift-open {
  min-width: min(210px, 100%);
  min-height: 52px;
  margin: 0;
  padding: 14px 24px;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid #ffffff55;
  border-radius: 6px;
  background: var(--entry-paper);
  color: var(--entry-ground);
  box-shadow: 0 4px 16px #0002;
}
.gift-shell .seasonal-entry .gift-open:hover { background: #fffaf1; }
.gift-shell .seasonal-entry .gift-open:focus-visible { outline: 3px solid var(--entry-white); outline-offset: 4px; }
.gift-shell .seasonal-entry[data-seasonal-invitation=tree] .seasonal-invitation-art { opacity: .62; filter: blur(2px); transform: scale(1.035); }
.gift-shell .seasonal-entry[data-seasonal-invitation=tree]::after { background: linear-gradient(180deg, #10271952, #0b1d12ae); }
.gift-shell [data-seasonal-invitation=yellow_flowers] { --entry-ground:#333b1c; --entry-shade:45 52 22; --entry-gold:#f8db73; --entry-paper:#f4eab7; --entry-crop:50% 37%; }
.gift-shell [data-seasonal-invitation=rose_day] { --entry-ground:#42212d; --entry-shade:63 28 43; --entry-gold:#f5c4bd; --entry-paper:#f4dfd8; --entry-font-style:italic; --entry-crop:50% 35%; }
.gift-shell [data-seasonal-invitation=brazil_love] { --entry-ground:#142d39; --entry-shade:12 34 46; --entry-gold:#ffcd8a; --entry-paper:#f7e1bd; --entry-crop:50% 36%; }
.gift-shell [data-seasonal-invitation=colombia_love] { --entry-ground:#23433e; --entry-shade:27 55 51; --entry-gold:#f8c199; --entry-paper:#fae1c9; --entry-crop:50% 39%; }
.gift-shell [data-seasonal-invitation=mothers_day] { --entry-ground:#49353e; --entry-shade:67 43 57; --entry-gold:#f8cfdb; --entry-paper:#f3e4e5; --entry-font-style:italic; --entry-crop:50% 39%; }
.gift-shell [data-seasonal-invitation=diwali] { --entry-ground:#45261d; --entry-shade:59 28 19; --entry-gold:#ffd586; --entry-paper:#f9dfaf; --entry-crop:50% 64%; }
.gift-shell [data-seasonal-invitation=rakhi] { --entry-ground:#562c29; --entry-shade:77 33 34; --entry-gold:#ffd28c; --entry-paper:#f7e1bd; --entry-crop:50% 48%; }
.gift-shell [data-seasonal-invitation=onam] { --entry-ground:#1d3b32; --entry-shade:20 50 41; --entry-gold:#f6d484; --entry-paper:#f6eccc; --entry-crop:50% 68%; }
.gift-shell [data-seasonal-invitation=remembrance] { --entry-ground:#382739; --entry-shade:45 30 46; --entry-gold:#f4c285; --entry-paper:#f4e1c9; --entry-crop:50% 62%; }
.gift-shell [data-seasonal-invitation=thanksgiving] { --entry-ground:#402c20; --entry-shade:55 38 27; --entry-gold:#edc88e; --entry-paper:#f6e6c9; --entry-crop:50% 42%; }
.gift-shell [data-seasonal-invitation=halloween] { --entry-ground:#32242d; --entry-shade:40 26 37; --entry-gold:#f8b474; --entry-paper:#f8d5b0; --entry-crop:50% 47%; }
.gift-shell [data-seasonal-invitation=summer] { --entry-ground:#17404a; --entry-shade:18 55 63; --entry-gold:#cfede0; --entry-paper:#e5f0dd; --entry-crop:50% 46%; }
.gift-shell [data-seasonal-invitation=wreath] { --entry-ground:#283d2f; --entry-shade:30 48 36; --entry-gold:#edcfa2; --entry-paper:#f0e5d1; --entry-crop:50% 38%; }
.gift-shell [data-seasonal-invitation=poinsettia] { --entry-ground:#472b35; --entry-shade:59 33 45; --entry-gold:#f8b8b2; --entry-paper:#f5e1d7; --entry-crop:50% 44%; }
.gift-shell [data-seasonal-invitation=mistletoe] { --entry-ground:#324237; --entry-shade:37 53 42; --entry-gold:#e0e8c5; --entry-paper:#f0efde; --entry-font-style:italic; --entry-crop:50% 38%; }

@media (min-width: 701px) {
  .gift-shell .seasonal-entry:not([data-seasonal-invitation=tree]) { justify-items: start; }
  .gift-shell .seasonal-entry:not([data-seasonal-invitation=tree]) .seasonal-invitation-art {
    inset-inline-start: auto;
    width: 65%;
    mask-image: linear-gradient(var(--entry-reading-direction), transparent, #000 17%);
  }
  .gift-shell .seasonal-entry:not([data-seasonal-invitation=tree])::after {
    background: linear-gradient(var(--entry-reading-direction), var(--entry-ground) 26%, rgb(var(--entry-shade) / .97) 35%, rgb(var(--entry-shade) / .68) 48%, rgb(var(--entry-shade) / .13) 75%),
      linear-gradient(0deg, rgb(var(--entry-shade) / .22), transparent 42%);
  }
  .gift-shell .seasonal-entry:not([data-seasonal-invitation=tree]) .seasonal-entry-copy { width: 48%; max-width: 35rem; }
}
@media (max-width: 700px) {
  .gift-shell .seasonal-entry:not([data-seasonal-invitation=tree]) { align-items: end; }
  .gift-shell .seasonal-entry:not([data-seasonal-invitation=tree])::after {
    background: linear-gradient(180deg, rgb(var(--entry-shade) / .10), rgb(var(--entry-shade) / .25) 22%, rgb(var(--entry-shade) / .78) 50%, rgb(var(--entry-shade) / .97) 85%);
  }
  .gift-shell .seasonal-entry:not([data-seasonal-invitation=tree]) .seasonal-entry-copy {
    max-width: 28rem;
    padding: 15px 19px clamp(22px, 5.5vh, 45px);
  }
  /* The lamps and pookalam sit below the vase. Keep them in the visible
     picture before the recipient's greeting starts. */
  .gift-shell .seasonal-entry:is([data-seasonal-invitation=diwali], [data-seasonal-invitation=onam]) .seasonal-invitation-art {
    inset-block-end: auto;
    height: 55%;
    mask-image: linear-gradient(to bottom, #000 83%, transparent);
  }
  .gift-shell .seasonal-entry:is([data-seasonal-invitation=diwali], [data-seasonal-invitation=onam]) .seasonal-invitation-art img { object-position: center bottom; }
  .gift-shell .seasonal-entry:is([data-seasonal-invitation=diwali], [data-seasonal-invitation=onam])::after {
    background: linear-gradient(to bottom, rgb(var(--entry-shade) / .08) 39%, transparent 56%);
  }
  .gift-shell .seasonal-entry .seasonal-entry-mark { width: 43px; margin-bottom: 13px; }
  .gift-shell .seasonal-entry[data-seasonal-invitation=tree] .seasonal-entry-mark { width: 56px; margin-bottom: 22px; }
  .gift-shell .seasonal-invitation-heading { font-size: clamp(26px, 7vw, 35px); line-height: 1.17; }
}
.gift-shell .seasonal-entry:lang(ar) .seasonal-invitation-heading,
.gift-shell .seasonal-entry:lang(hi) .seasonal-invitation-heading,
.gift-shell .seasonal-entry:lang(th) .seasonal-invitation-heading {
  font-style: normal; line-height: 1.4; letter-spacing: normal;
}
