/* The gift page studio (/gifts).

   The page wears the builder page's layout (couple-studio-page.css) and the studio brings its own stylesheets, copied
   from The Journal couples app (couple-studio/website-studio.css and gifts.css). This file holds only what is
   particular to this page: the example in the opening, and the page guests see kept beside the controls on wide
   screens. */

/* opening: an example gift page on a phone, with a package from a guest resting against its foot. The package lies
   over the guest's half of the example (their name and note), never over the couple's goal, which is the part that
   shows best what the page is for. Its place is set from the top of the phone, at each size below. */
.gp-art{position:relative;height:612px;padding-top:10px;display:flex;align-items:flex-start;justify-content:center}
.gp-phone{flex:none;width:266px;height:548px;border:7px solid #1f2622;border-radius:44px;overflow:hidden;background:#fff;box-shadow:0 30px 60px #1826202e,0 4px 12px #18262014;pointer-events:none;transform:translateX(52px) rotate(3deg)}
.gp-phone .scaled-frame{height:100%}
.gp-package{position:absolute;left:calc(50% - 262px);top:432px;width:292px;transform:rotate(-6deg);box-shadow:0 26px 54px #1826203b,0 3px 10px #1826201c;pointer-events:none}
@supports (overflow:clip){.gp-hero{overflow-x:clip}}

/* the studio band */
.gp-studio{background:#e5e9e7}
.gp-layout .gift-studio .studio-status{font-size:12.5px}
.gp-preview{display:none}
/* The opening already shows a package from a guest, so here the studio's welcome carries no example of its own. */
.gp-layout .gift-sample{display:none}
.gp-layout .gift-welcome>.primary{margin-top:26px}
/* The Journal's display face for the studio's larger figures and headings, where the app uses its own. */
.journal-studio :is(.gift-welcome-copy h2,.gift-meter-sum strong,.gift-door h2,.gift-parcel-from strong,.gift-given .gift-money-line strong){font-family:var(--ex-display);font-weight:500;letter-spacing:-.04em}
.journal-studio .gift-welcome-copy h2{font-size:28px;line-height:1.14}
.journal-studio .gift-meter-sum strong{font-size:40px}
.journal-studio .gift-door h2{font-size:26px;line-height:1.16}
.journal-studio .gift-parcel-from strong{font-size:22px;letter-spacing:-.03em}
.gp-layout .gift-welcome-copy>p{font-size:16px}
/* Headings break into even lines rather than leaving one word on a line of its own. */
.gp-layout :is(.gift-welcome-copy h2,.studio-intro h2,.studio-empty h3,.gift-door h2),.gp-page #sheet .sheet-header h2{text-wrap:balance}

@media(min-width:1100px){
 .gp-layout{grid-template-columns:minmax(0,540px) minmax(0,1fr);gap:56px;align-items:start;max-width:1280px;padding:0 36px}
 .gp-preview{position:sticky;top:20px;display:flex;flex-direction:column;gap:14px;min-width:0;height:calc(100vh - 56px);height:calc(100dvh - 56px);min-height:480px;max-height:940px}
 .gp-preview-bar{flex:none}
 .gp-preview-bar p{margin:0;display:grid;gap:1px;line-height:1.35}
 .gp-preview-bar strong{font:600 15px/1.35 var(--ex-display);letter-spacing:-.015em;color:#24312c}
 .gp-preview-bar p span{font-size:12.5px;color:#56635d}
 .gp-stage{flex:1;min-height:0;display:flex;align-items:flex-start;justify-content:center}
 .gp-device{height:100%;aspect-ratio:390/790;max-width:390px;border:8px solid #1f2622;border-radius:42px;overflow:hidden;background:#fff;box-shadow:0 30px 70px #1826202b,0 4px 14px #18262014}
 .gp-device .scaled-frame{height:100%}
 /* The page is always in view beside the controls here, so the studio's own looks at it step aside. */
 .gp-layout .gift-preview,.gp-layout .gift-preview+[data-gift="full-preview"]{display:none}
 /* Before there is a page to work on (signed out, no page yet, opening), the few lines in the studio sit level with
    the middle of the tall preview beside them rather than at its top. */
 .gp-layout:is([data-step="start"],[data-step="loading"],[data-step="out"],[data-step="none"],[data-step="error"]) .ws-editor{align-self:center}
}

@media(max-width:1099px){
 .gp-art{order:2;height:574px}
 .gp-phone{width:236px;height:486px;border-radius:40px}
 .gp-package{left:calc(50% - 247px);top:384px}
}
@media(max-width:700px){
 .gp-art{height:470px}
 .gp-phone{width:200px;height:412px;border-width:6px;border-radius:34px;transform:translateX(38px) rotate(3deg)}
 .gp-package{left:max(2px,calc(50% - 184px));width:238px;top:328px}
 .gp-package .gift-parcel-body{padding:12px 13px 13px;gap:8px 10px}
 .gp-package .gift-parcel-from strong{font-size:1.2rem}
 .gp-package .gift-parcel-mark{width:46px;height:46px}
 .gp-package .gift-parcel-mark b{font-size:.9rem}
 .gp-package .gift-parcel-inside{font-size:.76rem}
 .gp-package .gift-parcel-open{min-height:34px;padding:6px 14px;font-size:.76rem}
}
@media(max-width:360px){
 /* The page's address, on one line on the smallest phones, so it never ends with a letter on its own. */
 .gp-layout .gift-link{font-size:14px;letter-spacing:-.01em}
}
