/* Handheld invitation: a readable letter, native taps, and a bottom sheet. */
@media(max-width:560px){
  html{scroll-padding-top:16px}
  .site-header .nav-link{min-height:44px;display:inline-flex;align-items:center}
  .site-header nav .nav-link:first-child{display:inline-flex}
  .site-header nav .nav-link:nth-child(3){display:none}
  .invitation-copy h1{font-size:clamp(31px,9.5vw,40px);line-height:1.34;letter-spacing:-.7px;margin-bottom:21px}
  .title-mobile-line{display:block}
  .invitation-description{font-size:13px;line-height:1.95}
  .second-line{font-size:12px;margin-top:9px}
  .start-button{width:100%;min-width:0;min-height:51px;font-size:16px;margin-top:25px}
  .quote-note{font-size:11px;line-height:1.65}
  .resume-link{min-height:35px;padding:10px 0 4px;font-size:11px}
  .invitation-directions{gap:16px;margin-top:24px;padding-top:22px}
  .direction{min-height:34px}
  .below-invitation{align-items:center;gap:10px}
  .below-invitation>span{max-width:57%;line-height:1.7}
  .below-invitation button{min-height:44px;white-space:nowrap}
  .motion-toggle{min-height:36px;padding:5px 7px}
  .ambient-shadow{filter:blur(5px)}
  .motion-enabled .ambient-shadow{animation-name:mobile-leaf-drift;animation-duration:20s}
  .motion-enabled .ambient-light{animation-name:mobile-daylight-drift;animation-duration:24s}
  .motion-enabled .invitation-paper{animation-name:mobile-letter-arrival;animation-duration:.95s}
  .primary-button:hover{transform:none}
  .primary-button:hover::before{transform:translateX(-110%)}
  .primary-button:hover>span:last-child{transform:none}
  .primary-button:active{transform:translateY(1px) scale(.985);transition:transform .12s}
  .primary-button:active>span:last-child{transform:translateX(4px)}
  .choice-row:hover{transform:none}
  .choice-row:active{background:#ead5c74d;transform:scale(.992)}
  .direction:hover .direction-icon,.direction:hover .direction-line{transform:none}
  .bespoke-dialog{position:fixed;inset:auto 0 0;margin:0;width:100%;max-width:none;max-height:calc(100dvh - env(safe-area-inset-top,0px) - 12px);border-radius:20px 20px 0 0;border-bottom:0;padding:22px 22px calc(17px + env(safe-area-inset-bottom,0px));box-shadow:0 -12px 60px #40242f33;overflow-y:auto;overscroll-behavior:contain}
  .bespoke-dialog::before{content:"";display:block;width:34px;height:3px;background:#ceb9a8;border-radius:3px;margin:-11px auto 16px}
  .bespoke-dialog[open]{animation:mobile-sheet-arrival .32s cubic-bezier(.2,.7,.25,1) both}
  .bespoke-dialog::backdrop{backdrop-filter:blur(3px)}
  .dialog-topline{font-size:15px}
  .close-button{width:44px;height:44px;margin-top:-7px;margin-right:-10px;flex:0 0 44px}
  .stepper{margin-top:15px;margin-bottom:24px}
  .step-heading h2{font-size:27px}
  .step-heading>p:last-child{font-size:13px;line-height:1.7}
  .choice-row{min-height:86px;padding:15px 12px;gap:11px}
  .choice-copy strong{font-size:16px}
  .choice-copy small{font-size:11px;line-height:1.6}
  .choice-icon{width:35px;height:35px;flex-basis:35px}
  .wizard-actions{position:sticky;bottom:calc(-17px - env(safe-area-inset-bottom,0px));z-index:3;background:var(--paper) url('assets/paper-texture.svg');margin:23px -4px calc(-17px - env(safe-area-inset-bottom,0px));padding:16px 4px calc(17px + env(safe-area-inset-bottom,0px));gap:10px}
  .wizard-actions .primary-button{min-height:48px;font-size:15px}
  .wizard-actions>div{gap:10px}
  .back-button{min-height:44px;padding:12px 0}
  .field-label{font-size:14px}
  .field-label>span{font-size:11px}
  .field-label input,.field-label textarea{font-size:16px;line-height:1.6;min-height:48px;padding:12px;border-radius:4px;max-width:100%}
  .field-label textarea{min-height:136px}
  .field-label input::placeholder,.field-label textarea::placeholder{font-size:13px;line-height:1.7}
  .duration-options{gap:9px}
  .duration-options label span{font-size:13px;padding:13px 0;min-height:45px}
  .summary-top button{min-height:34px;padding:7px 0}
  .request-summary dl{font-size:12px;grid-template-columns:62px 1fr}
  .form-promise{font-size:11px;line-height:1.9}
  .local-note{font-size:10px;line-height:1.9;margin-bottom:3px}
  .saved-panel{padding-bottom:5px}
  .saved-panel h2{font-size:24px}
  .saved-panel>p:not(.eyebrow){font-size:12px}
  .saved-summary{font-size:13px;max-height:190px}
  .saved-edit{min-height:40px;padding:11px 0}
}
@media(max-width:360px){
  .site-header nav{gap:13px}
  .brand-name{font-size:22px}
  .invitation-paper{padding-left:25px;padding-right:25px}
  .invitation-copy h1{font-size:31px}
  .invitation-copy .eyebrow{letter-spacing:2px;font-size:6.5px}
  .bespoke-dialog{padding-left:18px;padding-right:18px}
  .stepper li{font-size:9px}
  .stepper li>span{flex-basis:25px;width:25px;height:25px}
  .choice-copy small{font-size:10px}
  .choice-copy strong{font-size:15px}
  .wizard-actions .primary-button{padding:12px 13px;gap:14px;min-width:130px;font-size:14px}
}
@keyframes mobile-letter-arrival{from{opacity:0;transform:translateY(19px) rotate(-.8deg)}to{opacity:1;transform:translateY(0) rotate(-.55deg)}}
@keyframes mobile-sheet-arrival{from{opacity:.35;transform:translateY(45px)}to{opacity:1;transform:translateY(0)}}
@keyframes mobile-leaf-drift{from{transform:translate(-4px,-2px) rotate(-.3deg);opacity:.06}to{transform:translate(6px,4px) rotate(.35deg);opacity:.11}}
@keyframes mobile-daylight-drift{from{transform:translate(-1%,0);opacity:.22}to{transform:translate(1.5%,.5%);opacity:.37}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}
@media(max-width:560px){
  .site-header{height:auto;min-height:112px;flex-wrap:wrap;gap:0;padding:12px 0 4px;align-content:center}
  .site-header nav{width:100%;margin-left:0;gap:6px;justify-content:space-between}
  .site-header nav .nav-link:nth-child(3){display:inline-flex}
  .site-header .nav-link{font-size:11px;white-space:nowrap;padding:9px 0}
}
