/* The wedding website builder page (/wedding-website).

   Three layers: the page (.studio-page, .ws-*), which wears the Journal's own look; the editor, copied from The Journal
   couples app with its own stylesheet (couple-studio/website-studio.css); and, in the middle, the handful of base styles
   the editor expects from the app it was written in (.journal-studio). Those sit in :where() and this file loads
   before the editor's stylesheet, so the editor's own rules win over them exactly as they do in the app. */

/* ---------- the page ---------- */
.studio-page{margin:0;background:var(--ex-paper);color:var(--ex-ink);color-scheme:light;font:16px/1.65 var(--ex-sans);-webkit-font-smoothing:antialiased;overflow-wrap:break-word}
.studio-page *,.studio-page *::before,.studio-page *::after{box-sizing:border-box}
.studio-page [hidden]{display:none!important}
:where(.studio-page) a{color:inherit}
:where(.studio-page) :is(button,input,select,textarea){font:inherit}
:where(.studio-page) :is(button,a,input,select,textarea){touch-action:manipulation}
:where(.studio-page) :focus-visible{outline:3px solid #6fa78c;outline-offset:4px}
.studio-page #main{padding-top:116px;min-height:75svh}
.studio-page #main:focus{outline:0}
/* A tool needs the whole screen: on this page the menu stays at the top of the page instead of following the scroll. */
.studio-page .site-header{position:absolute}
.ws-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}

/* opening */
.ws-hero{display:grid;grid-template-columns:minmax(0,1.04fr) minmax(0,.96fr);gap:40px;align-items:center;padding-top:30px;padding-bottom:64px}
.ws-hero .ex-title{font-size:clamp(40px,4.7vw,66px);margin:16px 0 20px;max-width:640px}
.ws-hero .ex-deck{max-width:540px}
.ws-hero .ex-actions{margin-top:30px}
.ws-points{display:flex;flex-wrap:wrap;gap:8px;margin:30px 0 0;padding:0;list-style:none}
.ws-points li{border:1px solid #d4ded5;background:#edf2ec;border-radius:999px;padding:6px 13px;font-size:13px;line-height:1.5;color:#33453a}
/* Three phones, fanned. --pw is a phone's width and --shift how far the outer two stand from the middle one. */
.ws-fan{--pw:212px;--shift:158px;position:relative;height:calc(var(--pw)*2.057 + 34px);display:flex;align-items:center;justify-content:center}
.ws-phone{position:absolute;width:var(--pw);height:calc(var(--pw)*2.057);border:7px solid #1f2622;border-radius:calc(var(--pw)*.17);overflow:hidden;background:#fff;box-shadow:0 30px 60px #1826202e,0 4px 12px #18262014;pointer-events:none}
.ws-phone:nth-child(1){transform:translateX(calc(var(--shift)*-1)) translateY(14px) rotate(-7deg) scale(.88)}
.ws-phone:nth-child(2){z-index:2}
.ws-phone:nth-child(3){transform:translateX(var(--shift)) translateY(14px) rotate(7deg) scale(.88)}
@supports (overflow:clip){.ws-hero{overflow-x:clip}}

/* the studio band */
.ws-studio{background:linear-gradient(155deg,#e6e9e8 0%,#e1e9e5 48%,#dbeae4 100%);border-radius:40px;margin:0 16px;padding:44px 0 56px;scroll-margin-top:12px}
.ws-layout{display:grid;grid-template-columns:minmax(0,1fr);max-width:600px;margin:0 auto;padding:0 20px}
.ws-editor{min-width:0}
.ws-load{margin:0;padding:60px 0;text-align:center;color:var(--ex-muted);font-size:15px}
.ws-fineprint{margin:26px 0 0;text-align:center}
.ws-link{border:0;background:none;padding:10px;color:#56635d;font-size:13px;text-decoration:underline;text-underline-offset:4px;cursor:pointer}
.ws-preview{display:none}

@media(min-width:1100px) and (max-width:1279px){.ws-fan{--pw:190px;--shift:134px}}
@media(min-width:1100px){
 .ws-layout{grid-template-columns:minmax(0,540px) minmax(0,1fr);gap:44px;align-items:start;max-width:1440px;padding:0 36px}
 /* On the Preview step the preview takes more of the room; the controls keep enough for the whole row of steps. */
 .ws-layout[data-step="preview"]{grid-template-columns:minmax(0,480px) minmax(0,1fr)}
 /* Choosing a design is a matter of looking: the twelve designs take the room, and the preview keeps a phone's width. */
 .ws-layout[data-ws-view="collections"]{grid-template-columns:minmax(0,1fr) minmax(330px,400px)}
 .ws-layout[data-ws-view="collections"] .website-studio>:not(.template-grid){max-width:540px}
 .ws-layout[data-ws-view="collections"] .template-grid{grid-template-columns:repeat(auto-fill,minmax(205px,1fr));gap:14px}
 .ws-preview{position:sticky;top:20px;display:flex;flex-direction:column;gap:14px;min-width:0;height:calc(100vh - 76px);height:calc(100dvh - 76px);min-height:480px;max-height:940px}
 .ws-preview-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;flex:none}
 .ws-preview-bar p{margin:0;display:grid;gap:1px;line-height:1.35}
 .ws-preview-bar strong{font:600 15px/1.35 var(--ex-display);letter-spacing:-.015em;color:#24312c}
 .ws-preview-bar p span{font-size:12.5px;color:#56635d}
 .ws-segment{display:flex;gap:3px;padding:3px;border:1px solid #fff;border-radius:999px;background:#ffffffa3;flex:none}
 .ws-segment button{min-height:36px;padding:6px 16px;border:0;border-radius:999px;background:none;color:#33453a;font-size:13px;font-weight:500;cursor:pointer}
 .ws-segment button.active{background:#2b3b32;color:#fafaf4}
 .ws-stage{flex:1;min-height:0;display:flex;align-items:center;justify-content:center}
 .ws-device{display:flex;flex-direction:column;overflow:hidden;background:#fff}
 .ws-device[data-device="phone"]{height:100%;aspect-ratio:390/790;max-width:390px;border:8px solid #1f2622;border-radius:42px;box-shadow:0 30px 70px #1826202b,0 4px 14px #18262014}
 .ws-device[data-device="desktop"]{width:100%;height:100%;border:1px solid #c9d3cb;border-radius:16px;box-shadow:0 24px 60px #18262024}
 .ws-browser{display:none}
 .ws-device[data-device="desktop"] .ws-browser{display:flex;align-items:center;gap:6px;flex:none;padding:10px 14px;background:#eef1ee;border-bottom:1px solid #d9e0da}
 .ws-browser i{width:9px;height:9px;border-radius:50%;background:#c5cec7}
 .ws-browser span{margin-left:10px;padding:4px 14px;border-radius:999px;background:#fff;color:#56635d;font-size:12px;line-height:1.5;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .ws-device .scaled-frame{flex:1;min-height:0;height:auto}
 /* The preview is always in view here, so the editor's own small previews step aside. */
 .ws-layout .live-dock,.ws-layout .studio-preview{display:none}
}

/* how it works, good to know */
.ws-how{padding-top:84px;padding-bottom:26px}
.ws-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:0;padding:0;list-style:none}
.ws-steps li{padding:28px;border:1px solid var(--ex-line);border-radius:24px;background:#fff;box-shadow:0 8px 30px #1c352507}
.ws-steps span{display:block;font:600 12px/1.5 var(--ex-sans);letter-spacing:.14em;color:#52675a}
.ws-steps h3{font:500 24px/1.2 var(--ex-display);letter-spacing:-.03em;margin:14px 0 10px}
.ws-steps p{margin:0;color:var(--ex-muted);font-size:15.5px}
.ws-facts{padding-top:58px;padding-bottom:30px}
.ws-fact-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 56px;border-top:1px solid var(--ex-line);margin-top:26px}
.ws-fact-grid>div{padding:24px 0;border-bottom:1px solid var(--ex-line)}
.ws-fact-grid h3{font:600 17px/1.4 var(--ex-display);letter-spacing:-.015em;margin:0 0 8px}
.ws-fact-grid p{margin:0;color:var(--ex-muted);font-size:15.5px}
.ws-credits{margin:34px 0 0;max-width:900px;font-size:13px;line-height:1.7;color:var(--ex-muted)}
.ws-credits strong{color:var(--ex-ink);font-weight:600}
.ws-credits a{text-underline-offset:3px}

/* ---------- what the editor expects from the app it was written in ---------- */
.journal-studio{--paper:#edf1ee;--ink:#24312c;--muted:#56635d;--green:#385446;--sage:#deebdf;--line:#42594c1c;color:var(--ink);font-size:16px;line-height:normal;text-align:left}
:where(.journal-studio) :is(h1,h2,h3,p){margin:0}
:where(.journal-studio) h2{font-size:1.12rem;font-weight:500;line-height:1.4;letter-spacing:-.025em}
:where(.journal-studio) h3{font-size:1rem;font-weight:500;line-height:1.45;letter-spacing:-.015em}
:where(.journal-studio) p{line-height:1.55}
:where(.journal-studio) button{border:0;background:none;color:inherit;cursor:pointer}
:where(.journal-studio) button:disabled{opacity:.45;cursor:default}
:where(.journal-studio) img{display:block;max-width:100%}
:where(.journal-studio) :is(button,a,input,select,textarea):focus-visible{outline:3px solid #426b55;outline-offset:4px}
:where(.journal-studio) .eyebrow{font-size:.75rem;font-weight:400;color:var(--muted);letter-spacing:.045em;line-height:1.5}
:where(.journal-studio) .sub{font-size:1rem;color:var(--muted);line-height:1.6}
:where(.journal-studio) .info{font-size:.875rem;line-height:1.6;color:var(--muted);margin-top:17px}
:where(.journal-studio) .section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:28px 0 13px}
:where(.journal-studio) .text-btn{padding:9px 0;min-height:40px;color:var(--green);font-size:.875rem;font-weight:500;white-space:nowrap}
:where(.journal-studio) :is(.primary,.secondary,.danger){display:flex;align-items:center;justify-content:center;gap:9px;min-height:52px;padding:14px 20px;border-radius:26px;font-size:.94rem;font-weight:500;line-height:1.4;text-decoration:none}
:where(.journal-studio) .primary{background:#354c40;color:#fff;border:1px solid #354c40;box-shadow:0 5px 15px #2f493012}
:where(.journal-studio) .secondary{border:1px solid #97ada07a;background:#ffffff36;color:var(--green)}
:where(.journal-studio) .danger{border:1px solid #be8a7b55;background:#fff4efc9;color:#94422f}
:where(.journal-studio) .full{width:100%}
:where(.journal-studio) .inline-actions{display:flex;align-items:center;gap:10px}
:where(.journal-studio) .chip-scroll{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;margin:20px -20px 22px;padding:0 20px 2px}
:where(.journal-studio) .chip-scroll::-webkit-scrollbar{display:none}
:where(.journal-studio) .field{display:block;margin:19px 0}
:where(.journal-studio) .field>span{display:block;color:var(--muted);font-size:.875rem;font-weight:500;margin-bottom:9px}
:where(.journal-studio) .field :is(input,select,textarea){display:block;width:100%;min-height:53px;max-width:100%;padding:15px;border:1px solid #c3d0c5;border-radius:19px;color:var(--ink);background:#ffffffc9;font-size:1rem}
:where(.journal-studio) .field input[type=color]{height:51px;padding:7px}
:where(.journal-studio) .field textarea{resize:vertical;min-height:100px;line-height:1.5}
:where(.journal-studio) .field :is(input[type=date],input[type=time]){min-width:0}
:where(.journal-studio) .field select{appearance:auto}
:where(.journal-studio) .field small{display:block;color:var(--muted);font-size:.8rem;line-height:1.5;margin-top:8px}
:where(.journal-studio) .form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
:where(.journal-studio) .form-grid .field{min-width:0;margin:7px 0 10px}
:where(.journal-studio) .field-error{font-size:.875rem;color:#993c29;line-height:1.5;margin-top:8px}
:where(.journal-studio) .field-error:empty{margin:0}
:where(.journal-studio) .icon-btn{width:44px;height:44px;border:1px solid #ffffffa6;border-radius:50%;background:#ffffff63;display:grid;place-items:center;flex:none;padding:0;box-shadow:inset 0 1px 0 #ffffff6b}

/* ---------- the editor, dressed for this page ---------- */
/* The Journal's display face for headings, where the app uses its own. */
.journal-studio :is(.studio-intro h2,.studio-publish-hero h2,.studio-empty h3,.reply-summary strong,.sheet-header h2){font-family:var(--ex-display)}
.journal-studio .studio-intro h2{font-size:28px;font-weight:500;line-height:1.14;letter-spacing:-.04em}
.journal-studio .studio-publish-hero h2{font-size:34px;font-weight:500;line-height:1.06;letter-spacing:-.045em}
.journal-studio .studio-empty h3{font-size:25px;font-weight:500;line-height:1.2;letter-spacing:-.035em}
.journal-studio .reply-summary strong{font-size:38px;font-weight:500;letter-spacing:-.04em}
.journal-studio .studio-panel h2{font-weight:600}
/* On this page the editor opens with a slim bar: where the draft is saved, and the way to an account. */
.studio-bar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 18px}
.studio-bar .studio-status{display:grid;gap:2px;justify-content:start;margin:0;font-size:12.5px;line-height:1.4}
.studio-bar .studio-status span:first-child{color:#24312c;font-weight:500}
.studio-bar .studio-account{flex:none;min-height:42px;padding:9px 17px;font-size:13.5px;font-weight:500;color:#24312c;background:#ffffffb8;border:1px solid #fff}
.journal-studio .studio-steps{border:1px solid #fff}
.journal-studio .studio-steps button{flex:1 0 auto;font-weight:500}
.journal-studio .studio-steps button:not(.active){color:#33453a}
.journal-studio .live-dock{top:8px}
@media(min-width:700px){
 .journal-studio .chip-scroll{flex-wrap:wrap;overflow:visible;margin:0 0 20px;padding:0}
}

/* ---------- the sheet and short messages ---------- */
#sheet{margin:auto auto 0;width:min(100%,480px);max-width:100%;max-height:94vh;max-height:94dvh;padding:0;border:1px solid #fffffff2;border-radius:32px 32px 0 0;background:#f1f5f1;box-shadow:0 -15px 70px #233c2524;overflow:auto;overscroll-behavior:contain}
#sheet::backdrop{background:#1a2b2266;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
#sheet .sheet-inner{padding:10px 24px max(28px,env(safe-area-inset-bottom))}
#sheet .handle{width:34px;height:4px;margin:0 auto 19px;border-radius:4px;background:#bfccc1}
#sheet .sheet-header{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:24px}
#sheet .sheet-header h2{font-size:1.5rem;font-weight:500;letter-spacing:-.04em;line-height:1.25}
#sheet .sheet-inner>:is(.primary,.secondary,.danger){margin-top:12px}
#sheet .sheet-inner>.text-btn{display:block;margin:6px auto 0}
@media(min-width:700px){
 #sheet{margin:auto;border-radius:30px;max-height:min(90vh,880px);max-height:min(90dvh,880px);box-shadow:0 30px 90px #1a2b2247}
 #sheet .sheet-inner{padding:26px 30px 30px}
 #sheet .handle{display:none}
 /* The full preview fills the window's height and never needs scrolling inside the sheet to see its foot. */
 #sheet.website-preview-dialog{max-height:calc(100vh - 40px);max-height:calc(100dvh - 40px)}
 #sheet.website-preview-dialog .full-website-preview{height:calc(100vh - 262px);height:calc(100dvh - 262px);min-height:300px;margin-bottom:0}
}
#studio-toast{position:fixed;z-index:80;left:50%;bottom:max(24px,env(safe-area-inset-bottom));width:max-content;max-width:calc(100% - 32px);transform:translate(-50%,16px);padding:13px 20px;border-radius:18px;background:#2b3b32;color:#fff;font-size:14px;line-height:1.5;box-shadow:0 10px 36px #13261d38;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s}
#studio-toast.show{opacity:1;transform:translate(-50%,0)}

/* ---------- smaller screens ---------- */
@media(max-width:1099px){
 .ws-hero{grid-template-columns:minmax(0,1fr);gap:26px;padding-bottom:44px}
 .ws-fan{--pw:184px;--shift:136px;order:2}
 .ws-phone{border-width:6px}
}
@media(max-width:900px){
 .ws-steps{grid-template-columns:minmax(0,1fr);gap:14px}
 .ws-fact-grid{grid-template-columns:minmax(0,1fr)}
 .ws-how{padding-top:60px}
}
@media(max-width:700px){
 .studio-page #main{padding-top:155px}
 .ws-hero{padding-top:18px;padding-bottom:36px}
 .ws-hero .ex-title{font-size:40px}
 .ws-fan{--pw:min(150px,40vw);--shift:min(104px,26vw)}
 .ws-phone{border-width:5px}
 .ws-studio{margin:0 8px;border-radius:30px;padding:28px 0 40px}
 .ws-layout{padding:0 16px}
 .journal-studio .chip-scroll{margin-inline:-16px;padding-inline:16px}
 .ws-steps li{padding:22px}
 .ws-facts{padding-top:44px}
}
@media(max-width:360px){
 .ws-studio{margin:0 4px}
 .ws-layout{padding:0 13px}
 .journal-studio .chip-scroll{margin-inline:-13px;padding-inline:13px}
 .journal-studio .form-grid{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){.studio-page *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
@media(prefers-reduced-transparency:reduce){#sheet::backdrop{-webkit-backdrop-filter:none;backdrop-filter:none}}
