/* Scene selection keeps the whole photograph visible on narrow screens. */
.hero-family{display:flex;align-items:center;gap:16px;width:fit-content;margin:23px 0 0;padding:13px 18px;background:#fff1ca;color:#761b32;border:1px solid #f8d893;border-radius:12px;box-shadow:0 5px 0 #4c102433;text-decoration:none}
.hero-family>strong{font:900 32px/1 var(--sans);white-space:nowrap;letter-spacing:-1px}
.hero-family>strong>span{display:block;font:800 13px/1.4 var(--sans);letter-spacing:.02em;text-transform:uppercase;margin-top:4px}
.hero-family>span{font:600 13px/1.5 var(--sans)}
.hero-family>span:last-child{font-size:24px;margin-left:5px}
.hero-family:hover{background:#fff8e7}
.hero-family:focus-visible{outline:3px solid #fff;outline-offset:5px}
.family-offer{position:relative;border:2px solid #f1cd85;margin:8px 0 40px;background:radial-gradient(ellipse at top left,#b6324c,transparent 70%),#71172e;scroll-margin-top:20px}
.family-offer h2{margin:14px 0 20px;display:flex;align-items:center;gap:20px}
.family-equation{font:900 clamp(70px,7vw,108px)/.95 var(--sans);letter-spacing:-5px;color:#fff0c4;white-space:nowrap}
.family-equation em{font-style:normal;color:#ffe09e}
.family-free{font:400 clamp(38px,5vw,66px)/1 var(--script);transform:rotate(-7deg)}
.family-gifts{display:flex;gap:9px;margin:0 0 20px}
.family-gifts>span{position:relative;width:46px;height:46px;display:grid;place-items:center;background:#fff2d316;border:1px solid #f1cf8a88;border-radius:8px;font:700 18px var(--sans)}
.family-gifts>span:last-child{width:70px;background:#f4d596;color:#6f2033;border-color:#fff1c4;transform:rotate(5deg);font-size:24px}
.family-gifts small{position:absolute;bottom:-8px;background:#fff2ca;color:#71263a;border-radius:4px;padding:2px 5px;font:800 9px var(--sans)}
.family-offer .button{margin:18px 0 14px}
.themes-section{scroll-margin-top:25px}
.scene-card{display:flex;flex-direction:column;min-width:0;transition:transform .2s,box-shadow .2s;border:2px solid #dfbf85}
.scene-card:hover{transform:translateY(-3px);box-shadow:0 12px 26px #470c2333}
.scene-image{display:block;position:relative;overflow:hidden;width:100%;background:#36121a}
.scene-card .scene-image img{display:block;aspect-ratio:1672/941;height:auto;width:100%;object-fit:contain}
.scene-number{position:absolute;left:12px;top:12px;border:1px solid #edd3a2aa;background:#521727c9;border-radius:50%;width:32px;height:32px;display:grid;place-items:center;color:#ffebc4;font:700 12px var(--sans)}
.scene-selected{position:absolute;right:12px;top:12px;background:#fff0c9;color:#742138;border:1px solid #fff8e6;border-radius:20px;padding:7px 10px;font:800 12px var(--sans)}
.scene-card[aria-pressed=true]{border:2px solid #a3213d;box-shadow:0 0 0 3px #af244031}
.scene-card .theme-card-copy{display:flex;flex-direction:column;gap:8px;width:100%;flex:1;padding:20px 22px}
.scene-card .theme-card-copy strong{font:400 34px/1.2 var(--script);color:#8a1f39}
.scene-card .theme-card-copy>span{font:400 14px/1.6 var(--sans);color:#75534a;display:block}
.scene-card .theme-card-copy small{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #ddc9a7;padding-top:12px;margin-top:auto;font:700 12px/1.5 var(--sans);color:#8d2840}
.scene-card .theme-card-copy small>span{font-size:20px}
.scene-choices{gap:15px}
.scene-choices .scene-card .theme-card-copy{padding:14px 16px}
.scene-choices .scene-card .theme-card-copy strong{font-size:29px}
.scene-choices .custom-coming{padding:5px 10px}
.scene-choices .custom-symbol{font-size:42px;padding:10px}
.custom-coming{min-width:0}
.custom-coming .theme-card-copy>span{line-height:1.6}
.custom-coming small{line-height:1.5}
.scene-choices .custom-coming .theme-card-copy strong{font:700 16px/1.5 var(--sans)}
/* Media retains its real aspect ratio; captions are below the picture, never over the face. */
.video-caption{background:#4b1325;border:1px solid #e8c27755;border-top:0;border-radius:0 0 12px 12px;padding:15px 20px;text-align:center;color:#fff3d9;min-height:104px}
.caption-label{font:700 10px/1.5 var(--sans);text-transform:uppercase;letter-spacing:.1em;color:#efcd90}
.video-caption p{font:600 clamp(18px,2.1vw,24px)/1.55 var(--sans);margin:7px auto 0;max-width:700px}
.caption-current{color:#fff5cf;background:#a54152;border-radius:4px;padding:2px 3px;box-decoration-break:clone;-webkit-box-decoration-break:clone}
.greeting-video-frame:has(+.video-caption){border-radius:12px 12px 0 0}
.letter-tools{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin:24px 0 0}
.letter-tools button,.letter-tools a{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:12px 16px;border:1px solid #e4bf7c;border-radius:9px;background:#fff0d2;color:#762039;font:700 14px/1.4 var(--sans);text-decoration:none}
.letter-tools button:hover,.letter-tools a:hover{background:#fff8ec}
.letter-tools-hint{text-align:center;color:#eed8be;font:400 12px/1.6 var(--sans);max-width:640px;margin:12px auto 0}
.video-transcript{margin-top:22px}
.video-transcript>summary{min-height:50px}
.letter-print-copy{display:none}
@media(max-width:850px){
  .family-offer h2{gap:22px}
  .family-equation{font-size:88px}
  .family-free{font-size:60px}
}
@media(max-width:680px){
  .site-shell{padding:0 18px}
  .site-header{height:auto;min-height:80px;gap:12px;padding:16px 0;flex-wrap:wrap}
  .site-header .brand{font-size:32px;letter-spacing:0;gap:6px}
  .site-header .brand-mark{width:32px}
  .cart-nav{margin-left:auto;gap:12px}
  .cart-nav a{font-size:12px;min-height:44px;display:flex;align-items:center;gap:4px}
  .hero{padding-top:26px;gap:24px}
  .hero h1{font-size:clamp(50px,13vw,76px)}
  .hero-family{width:100%;padding:14px 16px;gap:15px;margin-top:20px}
  .hero-family>strong{font-size:36px}
  .hero-family>span:last-child{margin-left:auto}
  .hero-family>span{font-size:12px}
  .hero-actions{display:grid;grid-template-columns:1fr;gap:12px}
  .hero-actions>.button{width:100%;font-size:24px;min-height:54px}
  .hero-actions>.play-link{justify-content:center;font-size:14px;min-height:44px}
  .format-hints{justify-content:center;font-size:12px;gap:14px;margin-top:14px}
  .format-hints>span+span{padding-left:14px}
  .format-hints .icon{width:20px;height:20px}
  .hero-art{margin:0 0 16px;transform:none}
  .hero-stamp img{aspect-ratio:1672/941;object-fit:contain;height:auto}
  .paper-note{min-width:136px;padding:9px 11px 25px;bottom:-9px;left:10px}
  .family-offer{padding:25px 20px;margin:15px 0 32px;gap:25px}
  .family-offer .eyebrow{font-size:10px}
  .family-offer h2{gap:18px;justify-content:center}
  .family-equation{font-size:78px;letter-spacing:-4px}
  .family-free{font-size:52px}
  .family-gifts{justify-content:center}
  .family-offer .family-price{font-size:29px}
  .family-offer p{font-size:15px}
  .family-offer .button{width:100%}
  .family-animation{padding:22px 16px}
  .theme-cards,.scene-choices{grid-template-columns:1fr;gap:20px}
  .scene-choices .scene-card{display:flex;grid-template-columns:none}
  .scene-card .scene-image img{aspect-ratio:1672/941;object-fit:contain;height:auto}
  .scene-choices .scene-card .theme-card-copy strong{font-size:31px}
  .scene-choices .theme-card-copy>span{display:block;font-size:13px}
  .scene-choices .theme-card-copy{padding:16px}
  .custom-coming{padding:13px;gap:8px}
  .custom-symbol{padding:5px!important;font-size:36px}
  .custom-coming .theme-card-copy{padding:5px}
  .custom-coming strong{font-size:23px}
  .custom-coming span,.custom-coming small{overflow-wrap:anywhere}
  .creator-dialog{width:calc(100% - 16px);padding:16px;max-height:calc(100dvh - 16px)}
  .creator-dialog .dialog-bottom{position:sticky;bottom:-16px;background:#fff8ed;margin:20px -16px -16px;padding:14px 16px;z-index:3;border-top:1px solid #ddc7a1;box-shadow:0 -5px 20px #7b2e3510}
  .creator-dialog .dialog-bottom .button{font:700 14px/1.4 var(--sans);min-height:48px;padding:10px 12px}
  .field input,.field textarea{font-size:16px}
  .recipient-dialog{width:calc(100% - 12px);max-height:calc(100dvh - 12px);border-radius:14px}
  .recipient-dialog .recipient-close{position:sticky;top:10px;float:right;margin:10px 10px -54px 0;width:44px;height:44px}
  .recipient-dialog .envelope-scene,.envelope-scene{min-height:0;padding:62px 16px 28px}
  .recipient-dialog .envelope-scene h1,.envelope-scene h1{font-size:44px;line-height:1.1;overflow-wrap:anywhere}
  .envelope-intro{margin-top:14px;font-size:14px}
  .magic-envelope,.recipient-dialog .magic-envelope{width:min(330px,calc(100vw - 60px));height:208px;margin:49px auto 20px}
  .envelope-seal{top:76px}
  .envelope-hint{margin-top:17px}
  .video-greeting .letter-revealed,.recipient-dialog .video-greeting .letter-revealed{padding:52px 12px 25px}
  .video-greeting .letter-topline{padding-right:0;margin:0 0 14px;gap:10px}
  .letter-topline button{min-height:44px;text-align:right}
  .video-greeting-heading h2{font-size:35px;line-height:1.2}
  .video-greeting-heading{margin:0 0 18px}
  .greeting-video-frame{border-radius:10px;box-shadow:0 8px 24px #37041433}
  .video-preview-badge{font-size:9px;left:6px;bottom:6px;padding:4px 6px}
  .video-caption{padding:12px;min-height:104px}
  .video-caption p{font-size:18px}
  .video-pending-status{padding:14px 12px;margin:14px 0}
  .video-pending-status>span{display:none}
  .letter-tools{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:18px}
  .letter-tools button,.letter-tools a{font-size:12px;padding:11px 8px;min-height:46px}
  .letter-tools-hint{font-size:11px}
  .video-transcript>summary{font-size:13px;line-height:1.6}
  .video-transcript .christmas-letter,.recipient-dialog .video-transcript .christmas-letter{padding:32px 23px 26px}
  .video-transcript .letter-script,.recipient-dialog .video-transcript .letter-script{font-size:28px;line-height:1.65}
  .video-transcript .christmas-letter h2{font-size:35px;overflow-wrap:anywhere}
  .letter-header{padding:22px 18px}
}
@media(max-width:370px){
  .site-header .brand{font-size:28px}
  .cart-nav{width:100%;justify-content:flex-end;margin-top:-8px}
  .family-equation{font-size:65px}
  .family-free{font-size:46px}
  .family-offer .family-price{font-size:25px}
  .hero-family{gap:12px;padding:13px}
  .hero-family>strong{font-size:32px}
}
@media(prefers-reduced-motion:reduce){.scene-card{transition:none}.scene-card:hover{transform:none}}
@page{size:A4;margin:16mm}
@media print{
  body.printing-letter{background:#fff!important;margin:0!important;overflow:visible!important}
  body.printing-letter>*{display:none!important}
  body.printing-letter>.letter-print-copy{display:block!important;position:static!important;color:#44292c}
  body.printing-letter::before,body.printing-letter::after{display:none!important}
  .letter-print-copy .christmas-letter{display:block;background:#fff!important;box-shadow:none!important;border:1px solid #b9986a;outline:none;min-height:245mm;padding:14mm 15mm;overflow:visible;print-color-adjust:exact;-webkit-print-color-adjust:exact}
  .letter-print-copy .christmas-letter::before{inset:4mm}
  .letter-print-copy .christmas-letter h2{font:400 32pt/1.25 var(--script);color:#812b3c;break-after:avoid}
  .letter-print-copy .letter-script{font:400 22pt/1.55 var(--script);color:#44292c}
  .letter-print-copy .letter-script p{orphans:3;widows:3;margin-bottom:5mm}
  .letter-print-copy .reading-word{color:inherit!important;background:none!important;box-shadow:none!important}
  .letter-print-copy .letter-dedication{break-inside:avoid}
}
.scene-card.compact .theme-card-copy>span{display:block}
.theme-card.custom-coming{display:flex}
@media(max-width:680px){.theme-card.scene-card{display:flex;flex-direction:column;grid-template-columns:none}.theme-card.custom-coming{display:flex;flex-direction:row}}
