/* cutebaby.ai: one calm page. Blush background, white surfaces, one pink reserved for the action.
   Every colour is a token here; the dark block at the end of this file swaps the tokens (it follows the visitor's system
   setting, no toggle). The triples (--shade, --glass, --art-glow) are bare RGB so a rule keeps its own alpha: rgb(var(--shade)/.06). */
:root{color-scheme:light dark;--bg:#fff7f9;--surface:#fff;--tint:#fcebf1;--line:#f2d8e1;--line-hover:#e5b2c5;--raised:#fff;--ink:#3b1d2c;--muted:#76535f;--quiet:#866571;--caption:#643747;--accent:#d81b60;--accent-deep:#a8144e;--accent-hover:#a8144e;--accent-icon:#d81b60;--accent-glow:rgb(216 27 96/.7);--glow:#ffe4ed;--glow-clear:rgb(255 228 237/0);--shade:59 29 44;--glass:255 255 255;--art-glow:176 20 80;--shadow:0 1px 2px rgb(var(--shade)/.06),0 12px 32px -16px rgb(var(--shade)/.28);--pad-l:max(20px,env(safe-area-inset-left));--pad-r:max(20px,env(safe-area-inset-right))}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{display:flex;flex-direction:column;margin:0;min-height:100vh;min-height:100dvh;background:radial-gradient(120% 480px at 50% 0,var(--glow),var(--glow-clear)) no-repeat var(--bg);color:var(--ink);font:400 16px/1.5 'DM Sans',ui-sans-serif,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent}
[hidden]{display:none!important}
a{color:inherit}
button,input,textarea{font:inherit;color:inherit}
button{cursor:pointer}
button:disabled{cursor:progress;opacity:.55}
:focus-visible{outline:2px solid var(--ink);outline-offset:3px}
h1,h2{margin:0;font-weight:600;letter-spacing:-.025em;line-height:1.1;text-wrap:balance}
h1{font-size:32px}
h2{font-size:28px}
p{margin:0}
.lede{margin-top:8px;color:var(--muted);text-wrap:balance}
.fine{font-size:13px;line-height:1.45;color:var(--muted)}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* Buttons */
.primary{display:flex;align-items:center;justify-content:center;width:100%;min-height:56px;padding:0 20px;border:0;border-radius:16px;background:var(--accent);color:#fff;font-size:16px;font-weight:600;box-shadow:0 10px 24px -12px var(--accent-glow);transition:background-color .15s,transform .15s}
.primary:active{transform:scale(.985)}
.secondary{min-height:52px;padding:0 18px;border:1px solid var(--line);border-radius:16px;background:var(--surface);font-size:15px;font-weight:500;transition:border-color .15s}
.text-button{display:block;min-height:44px;margin:12px auto 0;padding:0 16px;border:0;background:none;color:var(--accent-deep);font-weight:500}
@media (hover:hover){.primary:hover{background:var(--accent-hover)}.secondary:hover{border-color:var(--line-hover)}.text-button:hover{text-decoration:underline;text-underline-offset:4px}}

/* Page frame: the artwork is the logo, so the only header item is the music toggle. */
.topbar{position:absolute;top:0;right:0;z-index:4;padding:calc(10px + env(safe-area-inset-top)) max(10px,env(safe-area-inset-right)) 0 0}
.icon-button{display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:rgb(var(--glass)/.72);box-shadow:0 1px 3px rgb(var(--shade)/.12);transition:background-color .15s}
.icon-button svg{width:19px;height:19px;fill:none;stroke:var(--ink);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.icon-button[aria-pressed=true]{background:var(--accent)}.icon-button[aria-pressed=true] svg{stroke:#fff}
.studio{width:100%;max-width:480px;margin:0 auto;padding:calc(16px + env(safe-area-inset-top)) var(--pad-r) 24px var(--pad-l)}
.art-panel{display:flex;justify-content:center}
.hero{display:block;width:clamp(120px,19vh,152px);width:clamp(120px,20svh,152px);height:auto;aspect-ratio:1;border-radius:34px;box-shadow:0 18px 36px -18px rgb(var(--art-glow)/.55)}
.maker{margin-top:20px;text-align:center}

/* One primary action, with other options only after a photo. */
#baby-form{margin-top:24px}
.other-options{display:flex;flex-wrap:wrap;justify-content:center;gap:0 12px;margin-top:4px}
.other-options button{min-height:44px;padding:0 4px;border:0;background:none;color:var(--muted);font-size:13px;text-decoration:underline;text-underline-offset:3px}
.continuing{margin-top:12px}
/* The second door, on the first screen only: see yourself as a baby. White and content-sized under the pink button,
   led by the before → after faces of the "baby you" example, so it reads at a glance without competing with it. */
.baby-me{display:flex;align-items:center;gap:10px;width:-webkit-fit-content;width:fit-content;max-width:100%;min-height:48px;margin:12px auto 0;padding:5px 18px 5px 5px;border:1px solid var(--line);border-radius:999px;background:var(--surface);color:var(--ink);font-size:15px;font-weight:500;line-height:1.25;text-align:left;box-shadow:0 1px 2px rgb(var(--shade)/.05);transition:border-color .15s,transform .15s}
.baby-me:active{transform:scale(.98)}
.baby-me-faces{flex:none;display:flex;align-items:center;gap:1px}
.baby-me-faces img{display:block;width:36px;height:36px;border-radius:50%;background:var(--tint)}
.baby-me svg,.example-parents svg{display:block;width:14px;height:14px;margin:0 auto;fill:none;stroke:var(--accent-icon);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
@media (hover:hover){.baby-me:hover{border-color:var(--line-hover)}}

/* Photo tiles */
.photo-row{display:flex;gap:12px;margin-bottom:12px}
.tile{position:relative;flex:1 1 0;min-width:0}
.upload{position:relative;height:clamp(120px,18vh,148px);height:clamp(120px,19svh,148px);display:flex;align-items:center;justify-content:center;overflow:hidden;border:1px solid var(--line);border-radius:20px;background:var(--surface);cursor:pointer;transition:border-color .15s,box-shadow .15s}
.upload>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.upload-content{display:flex;flex-direction:column;align-items:center;gap:8px;padding:8px}
.upload-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:var(--tint)}
.upload-icon svg{width:18px;height:18px;fill:none;stroke:var(--accent-icon);stroke-width:2;stroke-linecap:round}
.upload-content strong{font-size:15px;font-weight:600;line-height:1.2}
.upload-content>span:last-child{margin-top:-6px;font-size:13px;color:var(--muted)}
.upload-content>span:last-child:empty{display:none}
.change-photo{position:absolute;left:50%;bottom:8px;z-index:1;max-width:calc(100% - 16px);overflow:hidden;transform:translateX(-50%);padding:3px 10px;border-radius:999px;background:rgb(var(--glass)/.86);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);font-size:12px;font-weight:500;white-space:nowrap;text-overflow:ellipsis}
#photo-0:focus-visible~.photo-row #upload-0,#photo-1:focus-visible~.photo-row #upload-1{outline:2px solid var(--ink);outline-offset:3px}
.maker.dragover .upload{border-color:var(--accent);box-shadow:0 0 0 3px rgb(216 27 96/.15)}
@media (hover:hover){.upload:hover{border-color:var(--line-hover)}}
/* The × on a filled tile removes just that photo: a 44px target in the tile's top corner, drawn as a small white disc. */
.remove-photo{position:absolute;top:0;right:0;z-index:2;display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;background:none;color:var(--ink)}
.remove-photo::before{content:"";position:absolute;inset:8px;border-radius:50%;background:rgb(var(--glass)/.9);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);box-shadow:0 1px 4px rgb(var(--shade)/.3)}
.remove-photo svg{position:relative;width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.25;stroke-linecap:round}
.remove-photo:focus-visible{outline:none}.remove-photo:focus-visible::before{outline:2px solid var(--ink);outline-offset:2px;box-shadow:0 0 0 2px #fff,0 1px 4px rgb(var(--shade)/.3)} /* white inside the ring: it shows on dark photos too */
@media (hover:hover){.remove-photo:hover::before{background:rgb(var(--glass))}}
.photo-row.solo{justify-content:center}.photo-row.solo .tile{flex:0 0 calc(50% - 6px)}
.photo-row.couple .upload{height:188px}.photo-row.couple .upload>img{object-fit:contain;background:var(--tint)}

/* Celebrity picker */
#celebrity-picker{margin-top:20px}
.celeb-title{margin-bottom:12px;font-size:15px;font-weight:600}
.celeb-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px 10px}
.celeb{display:flex;flex-direction:column;align-items:center;gap:6px;min-width:0;padding:0;border:0;background:none;color:var(--muted);font-size:12px;line-height:1.3}
.celeb img{display:block;width:100%;aspect-ratio:1;object-fit:cover;object-position:center 22%;border-radius:16px;box-shadow:0 0 0 1px var(--line);transition:box-shadow .15s}
.celeb[aria-pressed=true]{color:var(--ink);font-weight:600}.celeb[aria-pressed=true] img{box-shadow:0 0 0 2px var(--bg),0 0 0 4px var(--accent)}
#celebrity-picker .fine{margin-top:14px}

/* Guidance, fine print, messages */
.photo-hint{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:0 6px;min-height:36px;margin:8px 0 2px;font-size:13px;line-height:1.45;color:var(--muted)}
.photo-hint button{min-height:44px;margin:-4px 0;padding:0 6px;border:0;background:none;color:var(--ink);font-size:13px;font-weight:500;text-decoration:underline;text-underline-offset:3px}
.parents-option input{flex:none;width:20px;height:20px;margin:0;accent-color:var(--accent)}
#balance{margin-top:12px}
.notice{margin-top:16px;padding:12px 16px;border-radius:14px;background:var(--tint);font-size:14px;line-height:1.5;text-align:left;scroll-margin:16px}

/* Loading */
.loading-view{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:min(560px,72vh);padding:24px 0;text-align:center}
.loading-duck{width:112px;height:112px;margin-bottom:28px;border-radius:28px;box-shadow:0 18px 36px -18px rgb(var(--art-glow)/.55);animation:breathe 2.8s ease-in-out infinite}
.loading-view h2{font-size:26px}
.progress-line{width:180px;height:3px;margin:22px auto 16px;overflow:hidden;border-radius:3px;background:var(--tint)}
.progress-line span{display:block;width:40%;height:100%;border-radius:3px;background:var(--accent);animation:progress 1.8s ease-in-out infinite}
.loading-view .fine{margin-top:6px}
@keyframes breathe{50%{transform:scale(1.04)}}
@keyframes progress{from{transform:translateX(-100%)}to{transform:translateX(250%)}}

/* Result: the baby first, then share, then options. */
#result-heading{margin-bottom:16px}
.result-image-wrap{display:flex;justify-content:center;min-height:120px;padding:10px;border-radius:20px;background:var(--surface);box-shadow:var(--shadow)}
.result-image-wrap>img{display:block;max-width:100%;height:auto;max-height:min(560px,62vh);border-radius:10px}
/* The card's box is reserved before it is drawn: the exact size it renders at for its format (the same max-width and
   max-height fit as above), and it keeps that box while hidden, so the result view never jumps when the card loads. */
.result-image-wrap>img[data-card]{width:min(100%,calc(min(560px,62vh) * var(--card-w) / var(--card-h)));aspect-ratio:var(--card-w)/var(--card-h);object-fit:contain}
.result-image-wrap>img[data-card=post]{--card-w:1080;--card-h:1350}
.result-image-wrap>img[data-card=story]{--card-w:1080;--card-h:1920}
.result-image-wrap>img[data-card=square]{--card-w:1080;--card-h:1080}
.result-image-wrap>img[hidden]{display:block!important;visibility:hidden} /* beats the global [hidden] rule for this box only */
.result-caption{margin:14px 0 -2px;font:italic 400 19px/1.35 Georgia,serif;color:var(--caption)}.result-caption span{display:inline-block}
#export-status{min-height:19px;margin:10px 0 14px}
.result-actions{display:grid;grid-template-columns:1.5fr 1fr;gap:10px}
.result-actions .secondary{min-height:56px}
.export-formats{display:flex;gap:2px;margin-top:20px;padding:3px;background:var(--tint);border-radius:14px}
.export-formats button{flex:1;min-height:44px;border:0;border-radius:11px;background:none;color:var(--muted);font-size:14px;font-weight:500}
.export-formats button[aria-pressed=true]{background:var(--raised);color:var(--ink);box-shadow:0 1px 3px rgb(var(--shade)/.12)}
.parents-option{display:flex;align-items:center;justify-content:center;gap:10px;min-height:44px;margin-top:8px;font-size:14px;cursor:pointer}
#reference-note{margin-top:8px}
.caption-details{margin-top:12px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);text-align:left}
.caption-details summary{display:flex;align-items:center;gap:8px;min-height:48px;font-size:14px;font-weight:500;cursor:pointer;list-style:none}
.caption-details summary::-webkit-details-marker{display:none}
.caption-details summary::after{content:"";width:7px;height:7px;margin:-3px 2px 0 auto;border-right:1.5px solid var(--muted);border-bottom:1.5px solid var(--muted);transform:rotate(45deg);transition:transform .15s}
.caption-details[open] summary::after{margin-top:3px;transform:rotate(-135deg)}
.caption-details textarea{display:block;width:100%;margin-bottom:10px;padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--surface);font-size:16px;line-height:1.45;resize:vertical}
.caption-details button{width:100%;margin-bottom:14px}
#result-view>.fine:last-child{margin-top:4px}

/* Examples: fictional couples run through the real app. A swipeable strip on phones, a grid on desktop.
   Everything sits below the button and loads only once on screen (app.js). The parents ride on the portrait's
   top edge; the caption under it says which feature came from whom. */
.examples{width:100%;padding:8px 0 4px;text-align:center}
.examples h2{padding:0 var(--pad-r) 0 var(--pad-l);font-size:22px}
.example-strip{display:flex;gap:14px;margin:0;padding:36px var(--pad-r) 12px var(--pad-l);overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scroll-padding-inline:var(--pad-l);list-style:none;scrollbar-width:none}
.example-strip::-webkit-scrollbar{display:none}
.example-strip:focus-visible{outline-offset:-2px;border-radius:24px}
.example{flex:0 0 min(70vw,280px);scroll-snap-align:start;cursor:pointer}
.example-photo{position:relative;border-radius:20px;background:var(--tint);box-shadow:var(--shadow)}
.example-portrait{display:block;width:100%;height:auto;border-radius:20px}
.examples img:not([src]){opacity:0} /* not on screen yet (app.js sets src): no alt-text flash, still read by screen readers */
.example-parents{position:absolute;top:0;left:50%;z-index:1;display:flex;align-items:center;gap:2px;padding:4px;border-radius:999px;background:var(--surface);box-shadow:0 1px 2px rgb(var(--shade)/.08),0 8px 20px -10px rgb(var(--shade)/.4);transform:translate(-50%,-50%)}
.example-parents img{display:block;width:44px;height:44px;border-radius:50%}
.example-parents span{width:18px;color:var(--accent-icon);font-size:18px;font-weight:600;line-height:1}
.example-caption{margin-top:12px;padding:0 4px;font-size:14px;font-weight:500;line-height:1.4}
.example-caption span{display:inline-block} /* "your …" and "their …" wrap as units: a caption breaks only at the dot */
.examples .fine{padding:0 var(--pad-r) 0 var(--pad-l);text-wrap:balance}
#make-yours{margin-top:4px}
@media (hover:hover){.example-photo{transition:transform .2s,box-shadow .2s}.example:hover .example-photo{transform:translateY(-3px);box-shadow:0 1px 2px rgb(var(--shade)/.06),0 18px 36px -16px rgb(var(--shade)/.34)}}

/* Footer, music, dialog. The body is a full-height column and the footer's margin-top:auto takes any spare room, so
   it sits at the bottom of the screen on short pages (the wait) and after the content on long ones, never mid-screen. */
footer{display:flex;flex-direction:column;align-items:center;margin-top:auto;padding:0 var(--pad-r) calc(12px + env(safe-area-inset-bottom)) var(--pad-l)}
footer nav{display:flex;flex-wrap:wrap;justify-content:center}
footer a,footer button{display:inline-flex;align-items:center;min-height:44px;padding:0 12px;border:0;background:none;color:var(--muted);font-size:13px;text-decoration:none;transition:color .3s}
/* The tagline under the links, in their quiet colour, on one line down to 320 px. The footer keeps its height (72 px plus
   the safe area: 44 px of links, 16 px of tagline, 12 px below), so the wait still fits the screen and nothing moves. */
footer .tagline{margin:0;color:var(--muted);font-size:12px;line-height:16px;text-align:center;transition:color .3s}
[data-view=loading] footer a,[data-view=loading] footer button,[data-view=loading] footer .tagline{color:var(--quiet)} /* quieter during the wait: 4.8:1 instead of 6.3:1 */
@media (hover:hover){footer a:hover,footer button:hover{color:var(--ink)}}
.music-panel{position:fixed;top:calc(62px + env(safe-area-inset-top));right:max(12px,env(safe-area-inset-right));z-index:5;width:320px;max-width:calc(100vw - 24px);padding:6px 12px 12px;border-radius:18px;background:var(--surface);box-shadow:0 16px 40px -16px rgb(var(--shade)/.4)}
.music-panel>div:first-child{display:flex;align-items:center;justify-content:space-between;padding-left:2px;font-size:13px;font-weight:500;color:var(--muted)}
.music-panel button{width:44px;height:44px;margin-right:-10px;border:0;background:none;color:var(--muted);font-size:24px;line-height:1}
.music-panel iframe{display:block;border:0;border-radius:12px}
dialog{width:calc(100% - 32px);max-width:560px;max-height:calc(100vh - 48px);padding:28px 24px 24px;border:0;border-radius:24px;background:var(--surface);color:var(--ink);box-shadow:0 24px 64px -24px rgb(var(--shade)/.5)}
dialog::backdrop{background:rgb(59 29 44/.4)} /* not a token: older engines don't pass custom properties to ::backdrop (dark: the end of this file) */
dialog h2{margin:0 40px 14px 0;font-size:24px}
dialog p{margin-bottom:12px;font-size:15px;line-height:1.6;color:var(--muted)}
.dialog-close{position:absolute;top:10px;right:10px;width:44px;height:44px;border:0;border-radius:50%;background:none;color:var(--muted);font-size:26px;line-height:1}
#clear-everything{width:100%;margin-top:6px}

/* Sheets: Privacy, Photo credits and Help (sheets.js). A bottom sheet on phones, a centred card on bigger screens.
   The sheet scrolls under a title bar that stays put, and the page behind stays still. */
html:has(dialog.sheet[open]){overflow:hidden}
dialog.sheet{width:100%;max-width:none;max-height:88vh;max-height:88dvh;margin:auto 0 0;padding:0;border-radius:24px 24px 0 0;overflow-y:auto;overscroll-behavior:contain;box-shadow:0 -16px 48px -24px rgb(var(--shade)/.45)}
dialog.sheet[open]{animation:sheet-in .32s cubic-bezier(.2,.8,.2,1)}
dialog.sheet[open]::backdrop{animation:backdrop-in .32s ease}
.sheet-head{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px max(8px,env(safe-area-inset-right)) 8px var(--pad-l);background:var(--surface)}
dialog.sheet h2{margin:0;font-size:22px}
dialog.sheet h2:focus{outline:none} /* focused on open so screen readers start at the title; not a control */
.sheet-close{flex:none;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:none;color:var(--muted);font-size:28px;line-height:1}
.sheet-body{padding:4px var(--pad-r) calc(24px + env(safe-area-inset-bottom)) var(--pad-l)}
.sheet-body h3{margin:22px 0 6px;font-size:16px;font-weight:600;letter-spacing:-.01em;line-height:1.3}.sheet-body>h3:first-child{margin-top:6px}
.sheet-body>p a,.sheet-points a{padding:14px 0;margin:-14px 0} /* a 44px tap target without moving the text */
.sheet-points{display:grid;gap:10px;margin:4px 0 8px;padding:0;list-style:none;font-size:15px;line-height:1.5}
.sheet-points li{position:relative;padding-left:20px}
.sheet-points li::before{content:"";position:absolute;left:3px;top:.62em;width:7px;height:7px;border-radius:50%;background:var(--accent-icon)}
.sheet-action{display:flex;align-items:center;justify-content:center;width:100%;margin-top:4px;text-decoration:none}
.sheet-wait-note{display:none;margin-top:10px;text-align:center}
[data-view=loading] .sheet-wait-note{display:block}
dialog.sheet .credits-list{grid-template-columns:1fr;margin:20px 0}
dialog.sheet .credit p{margin-bottom:0}
@media (hover:hover){.sheet-close:hover{color:var(--ink)}}
@keyframes sheet-in{from{opacity:0;transform:translateY(32px)}}
@keyframes backdrop-in{from{opacity:0}}

/* Credits page */
.credits-page{width:100%;max-width:720px;margin:0 auto;padding:calc(12px + env(safe-area-inset-top)) var(--pad-r) 48px var(--pad-l)}
.back{display:inline-flex;align-items:center;min-height:44px;color:var(--muted);font-size:14px;text-decoration:none}
.credits-page h1{margin:20px 0 12px}
.credits-page>p{color:var(--muted)}
.credits-list{display:grid;gap:20px;margin:32px 0}
.credit{display:flex;align-items:flex-start;gap:16px;font-size:15px}
.credit img{flex:none;width:64px;height:80px;object-fit:cover;border-radius:12px}
.credit p{margin-top:2px;color:var(--muted)}
.credit a{display:inline-flex;align-items:center;min-height:44px;color:var(--ink);text-underline-offset:3px}

/* Wider screens */
@media (min-width:600px){.hero{width:184px;border-radius:40px}.credits-list{grid-template-columns:1fr 1fr}
  dialog.sheet{width:calc(100% - 48px);max-width:560px;max-height:min(720px,calc(100vh - 64px));max-height:min(720px,calc(100dvh - 64px));margin:auto;border-radius:24px;box-shadow:0 24px 64px -24px rgb(var(--shade)/.5)}
  .sheet-head{padding:20px 16px 8px 28px}.sheet-body{padding:4px 28px 28px}
}
@media (min-width:900px){
  .studio{display:grid;grid-template-columns:minmax(0,440px) minmax(0,440px);justify-content:center;align-items:start;column-gap:clamp(48px,7vw,104px);max-width:none;padding-top:clamp(48px,11vh,120px);padding-bottom:48px}
  .art-panel{position:sticky;top:clamp(48px,11vh,120px)}
  .hero{width:100%;border-radius:44px;box-shadow:0 36px 72px -36px rgb(var(--art-glow)/.55)}
  .maker{margin-top:0;text-align:left}
  h1{font-size:46px}
  .lede{margin-top:12px;font-size:18px}
  .topbar{padding:20px 20px 0 0}
  #baby-form{margin-top:28px}
  .baby-me{margin-left:0}
  .upload{height:176px}.photo-row.couple .upload{height:220px}
  .photo-hint{justify-content:flex-start}
  [data-view=result] .studio{grid-template-columns:minmax(0,520px)}
  [data-view=result] .maker{text-align:center}
  /* The studio no longer fills the screen on its own, so the first row of examples peeks in below it. */
  .examples{max-width:calc(920px + clamp(48px,7vw,104px));margin:0 auto;padding:0 var(--pad-r) 24px var(--pad-l)}
  .examples h2{padding:0;font-size:28px}
  .example-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:56px clamp(20px,2.4vw,32px);padding:40px 0 20px;overflow:visible}
  .example:last-child:nth-child(3n+1){grid-column:2} /* a last example on its own row sits in the middle */
  .examples .fine{padding:0}
}
/* The examples are for the first screen only; loading and result screens stay about your baby. */
[data-view=loading] .examples,[data-view=result] .examples{display:none}
/* Loading and result screens are about the baby, not the duck. */
[data-view=loading] .art-panel,[data-view=result] .art-panel{display:none}
[data-view=loading] .maker,[data-view=result] .maker{margin-top:0}
/* While a baby is being made the wait is centred in the space above the footer, so drafts arriving never move it. */
[data-view=loading] .studio{flex:1 0 auto;display:flex;flex-direction:column;align-items:stretch}
[data-view=loading] .maker{flex:1 0 auto;display:flex;flex-direction:column}
[data-view=loading] #loading-view{flex:1 0 auto}
@media (max-width:359px){:root{--pad-l:max(16px,env(safe-area-inset-left));--pad-r:max(16px,env(safe-area-inset-right))}h1{font-size:28px}}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.progress-line span{width:100%;opacity:.5}}

/* Dark: follows the visitor's system setting (no toggle). A warm plum near-black (not grey, not #000), off-white ink, the
   brand pink kept for the action (lifted a touch so it reads on dark; white on it stays 4.6:1) and a lighter pink for pink
   words, icons and glyphs. Only the page around the pictures changes: the duck art, the examples, portraits and share
   cards never do. Every text pair is at least 4.5:1 (checked pairs: the dark-mode commit message). */
@media (prefers-color-scheme:dark){
  :root{--bg:#161013;--surface:#211a1e;--tint:#2d1f26;--line:#3b2b33;--line-hover:#5c4150;--raised:#3d2d35;--ink:#f4e8ec;--muted:#b9a1ab;--quiet:#9b848e;--caption:#f0c6d4;--accent:#de2166;--accent-deep:#ff6b9d;--accent-hover:#c4195a;--accent-icon:#ff6b9d;--accent-glow:rgb(222 33 102/.5);--glow:#2a1620;--glow-clear:rgb(42 22 32/0);--shade:0 0 0;--glass:40 30 35;--art-glow:120 10 50;--shadow:0 0 0 1px rgb(255 255 255/.04),0 12px 32px -16px rgb(0 0 0/.7)}
  dialog::backdrop{background:rgb(6 3 5/.6)}
  dialog#pay-dialog .pay-kicker{color:var(--accent-deep)} /* small pink words: the lighter pink (paywall.js styles it with --accent) */
}
