/* Can't Wait to Squeeze You: a sunny lemon lunch laid out flat on a cream linen tablecloth with leaf shadows. Every
   section (the invitation and the footer too) is a wavy die-cut card of thick card stock with a butter-and-cream stripe
   and a black ink line; Gemini's glossy photo stickers (lemons and halves, berries, blossoms, a little baby's breath)
   lie on the cloth and over the titles; the name ideas are written on small scalloped cards; the notes are scalloped cards with a
   sprig of baby's breath tucked into each. Border-images keep every piece's corners and edges as photographed. Colors
   and fonts come from vars.css. */

/* ---------- the table: Gemini's linen with leaf shadows, one still picture behind the whole page (never tiled) ---------- */
html{background:var(--desk)}
body{background:transparent}
body::before{content:""; position:fixed; inset:0; z-index:-1; pointer-events:none;
  background:var(--desk) url(../art/linen.jpg) no-repeat center / cover}
main{overflow-x:clip; padding-left:max(14px, env(safe-area-inset-left,0px) + 10px); padding-right:max(14px, env(safe-area-inset-right,0px) + 10px)}

/* ---------- the header: a flat lay seen from above. The page's own linen (one cloth with the page, no edge), the
   umbrella-table drawing printed on card stock in the
   middle, the wavy title card over its top, and the glossy stickers set down around them by hand. A phone held upright
   gets the tall drawing and the stickers pulled in close. ---------- */
.hero.painted{background:none; height:clamp(500px, 76svh, 760px);
  overflow:clip visible}   /* the table's and the stickers' shadows fall onto the page instead of being cut off in a line
                              at the header's foot; the sides still clip, so a tilted sticker never makes the page scroll
                              sideways */
.hero.painted::after{display:none}
/* no cloth of its own: the header shows the page's one still linen behind it, so there is never an edge between the
   two (its own copy drifted as the page scrolled, and its faded foot was cut off as a hard line under the header) */
.hero.painted .back{display:none}
.hero.painted .mid{top:0; bottom:0; left:0; right:0; transform:none;
  background:url(../art/table-wide.webp) no-repeat center bottom 6% / min(74%, 900px, 112svh) auto;
  filter:drop-shadow(0 2px 2px rgba(var(--shadow-rgb),.22)) drop-shadow(0 12px 16px rgba(var(--shadow-rgb),.2))}
/* the stickers, each set down on its own (hero.html) so every lemon has its own clockwise tilt, no two alike (Aaron,
   Nov 27): a half and the hanging bunch up top, a lemon and a half low, then the berries, a sprig of baby's
   breath and a leaf. Widths follow the header; each keeps its picture's shape. */
.hero.painted .front{top:0; bottom:0; left:0; right:0; background:none;
  filter:drop-shadow(0 2px 2px rgba(var(--shadow-rgb),.25)) drop-shadow(0 10px 12px rgba(var(--shadow-rgb),.18))}
.sq-st{position:absolute; display:block; height:auto; background:no-repeat center / contain}
.sq-half{background-image:url(../art/half.webp); aspect-ratio:520 / 516}
.sq-lemons{background-image:url(../art/lemons.webp); aspect-ratio:473 / 520}
.sq-lemon{background-image:url(../art/lemon.webp); aspect-ratio:451 / 520}
.sq-blueberry{background-image:url(../art/blueberry.webp); aspect-ratio:520 / 491}
.sq-raspberry{background-image:url(../art/raspberry.webp); aspect-ratio:421 / 520}
.sq-sprig{background-image:url(../art/sprig.webp); aspect-ratio:505 / 520}
.sq-leaf{background-image:url(../art/leaf.webp); aspect-ratio:417 / 520}
.sq-c{left:3.6%; bottom:4.7%; width:min(11%, 130px); rotate:22deg}
.sq-d{right:4.5%; bottom:4%; width:min(12%, 140px); rotate:31deg}
.sq-e{left:16.1%; bottom:2.7%; width:min(6%, 70px)}
.sq-f{right:17.1%; bottom:1.8%; width:min(6%, 70px)}
.sq-g{left:20.6%; top:2.6%; width:min(7%, 84px)}
.sq-h{right:18.6%; top:1.6%; width:min(8%, 96px)}
/* lemons on the outside of the title card: a half over its bottom-left corner and the hanging bunch over its top-right,
   each half off the card, tilted clockwise (the card itself leans 2deg the other way) */
.hero-title::before, .hero-title::after{content:""; position:absolute; z-index:1; pointer-events:none; background:no-repeat center / contain}
.hero-title::before{width:25%; aspect-ratio:520 / 516; left:-9%; bottom:-14%; background-image:url(../art/half.webp); rotate:16deg}
.hero-title::after{width:27%; aspect-ratio:473 / 520; right:-10%; top:-12%; background-image:url(../art/lemons.webp); rotate:11deg}
.hero-title{width:min(80vw, 380px); top:clamp(18px, 6svh, 60px); filter:drop-shadow(0 2px 2px rgba(var(--shadow-rgb),.25)) drop-shadow(0 14px 18px rgba(var(--shadow-rgb),.22));
  transform:translateX(-50%) rotate(-2deg)}
/* on a laptop the title card sits over the umbrellas: the first bit of scrolling lifts it up and away, faster than the
   page, so the whole table shows before the table itself moves (painted.js sets --depth; still with "reduce motion") */
@media (min-width:900px){
  .hero-title{width:min(34vw, 460px, 52svh); opacity:calc(1 - var(--depth, 0) * 3.5);
    transform:translateX(-50%) translateY(calc(var(--depth, 0) * -200%)) rotate(-2deg)}
}
@media (max-aspect-ratio:3/4) and (max-width:700px){
  .hero.painted{height:clamp(560px, 86svh, 760px)}
  .hero.painted .mid{background-image:url(../art/table-tall.webp); background-size:auto min(52%, 400px); background-position:center bottom 5%}
  .sq-c{left:0; bottom:3.6%; width:20%}
  .sq-d{right:0; bottom:2.7%; width:21%}
  .sq-e{left:22%; bottom:1%; width:11%}
  .sq-f{right:22%; bottom:0; width:11%}
  .sq-g, .sq-h{display:none}
  .hero-title{width:min(84vw, 360px); top:clamp(16px, 4svh, 40px)}
}
/* a phone turned sideways: the header as tall as its screen */
@media (orientation:landscape) and (max-height:560px){
  .hero.painted{height:max(320px, 100svh)}
  .hero-title{width:min(40vw, 360px, 56svh)}
}

/* ---------- every section a wavy die-cut card: Gemini's card rebuilt from its own top-left corner and one wave of each
   side (squeeze_build.py), so the corners match and each side repeats crest to crest; the card's blank middle inside,
   one soft shadow on the linen ---------- */
.card, .invite, footer{border-style:solid; border-width:30px; border-radius:0;
  border-image:url(../art/sheet.webp) 52 fill / 30px round;
  background:none;
  filter:drop-shadow(0 1px 1px rgba(var(--shadow-rgb),.18)) drop-shadow(0 10px 14px rgba(var(--shadow-rgb),.18))}
.card{padding:10px max(6px, 2.4vw) 12px; box-shadow:none}
.card::before{display:none}
.invite{padding:12px max(6px, 2.4vw) 14px; margin-top:22px}
.honoree{font-size:clamp(36px, 10vw, 56px); line-height:1.06; font-weight:700}
section{padding-block:24px 6px}
.sec-title{font-size:clamp(28px, 8vw, 40px); line-height:1.1; margin-bottom:10px; font-weight:700; letter-spacing:-.005em}
.lede{color:var(--soft)}
/* a glossy sticker over most titles, stuck down on the card with its own shadow */
.sec-title::before{content:""; display:none; width:104px; height:96px; margin:0 auto 6px; background:var(--sticker) no-repeat center / contain;
  transform:rotate(var(--turn, -6deg)); filter:drop-shadow(0 2px 2px rgba(var(--shadow-rgb),.2)) drop-shadow(0 6px 8px rgba(var(--shadow-rgb),.14))}
#poll{--sticker:url(../art/half.webp); --turn:26deg}
#pool{--sticker:url(../art/blossoms.webp); --turn:-6deg}
#wishes{--sticker:url(../art/sprig.webp); --turn:-5deg}
#registry{--sticker:url(../art/lemons.webp); --turn:3deg}
#suggest{--sticker:url(../art/lemon.webp); --turn:15deg}
#checkin{--sticker:url(../art/half.webp); --turn:33deg}
#raffle{--sticker:url(../art/raspberry.webp)}
#quiz{--sticker:url(../art/lemons.webp); --turn:10deg}
#match{--sticker:url(../art/leaf.webp); --turn:-12deg}
#photos{--sticker:url(../art/blueberry.webp); --turn:-4deg}
#details{--sticker:url(../art/blossoms.webp); --turn:-9deg}
#rsvp{--sticker:url(../art/sprig.webp); --turn:-3deg}
#board{--sticker:url(../art/leaf.webp); --turn:-14deg}
#bring{--sticker:url(../art/raspberry.webp); --turn:-7deg}
:is(#poll, #pool, #wishes, #registry, #suggest, #checkin, #raffle, #photos, #quiz, #match, #details, #rsvp, #board, #bring) .sec-title::before{display:block}

/* the countdown: a ruled row printed on the card */
.log{border:0; border-block:1.5px solid rgba(var(--ink-rgb),.7); border-radius:0; background:transparent}
.log::before{display:none}
.count div{border-left:1px solid rgba(var(--ink-rgb),.25)}

/* ---------- When & Where: two columns on a laptop ---------- */
.detail-grid h3{letter-spacing:.16em}
.detail-grid .addr{border-bottom:1px solid rgba(var(--ink-rgb),.25); padding-bottom:8px}
@media (min-width:900px){
  .col{max-width:700px}
  .detail-grid{grid-template-columns:1fr 1fr; gap:22px 44px}
  .detail-grid > .span{grid-column:auto}
}

/* ---------- the vote: Team Blueberry and Team Raspberry; a blueberry and a raspberry race ---------- */
.pick{background:var(--field); border-radius:14px; border-width:1.5px}
.pick .script{font-size:30px; line-height:1.15; margin-bottom:4px; font-weight:700}
.pick.boy .script, .pick.boy .caps{color:var(--leaf)}
.pick.boy[aria-pressed=true]{background:rgba(var(--leaf-rgb),.12); border-color:var(--leaf)}
.lane.boy .who, .lane.boy .pct{color:var(--leaf)}
.lane{border-bottom:1.5px dashed rgba(var(--ink-rgb),.3)}
:root{--racer-size:50px}

/* ---------- name ideas: each name on its own small scalloped card (note.webp, the same Gemini card as the notes),
   the name in red script across the top, why and who under it with the heart at the right ---------- */
.name-lists h3{font:700 clamp(20px, 6vw, 26px)/1.15 var(--f-script); letter-spacing:0; text-transform:none; color:var(--ink);
  text-align:center; border-bottom:1.5px solid rgba(var(--ink-rgb),.6); padding-bottom:6px; margin-bottom:12px}
.name-list li{margin:0 0 10px; padding:10px 12px 10px 14px; gap:2px 10px; align-items:center;
  border:0 solid transparent; border-width:16px; border-image:url(../art/note.webp) 34 35 fill / 16px round;
  filter:drop-shadow(0 1px 1px rgba(var(--shadow-rgb),.14)) drop-shadow(0 4px 6px rgba(var(--shadow-rgb),.12))}
.name-list .nm, .name-list .nm.top{grid-column:1 / -1; grid-row:1; min-width:0; font:400 clamp(26px, 7vw, 30px)/1.15 Parisienne, var(--f-script); color:var(--accent);
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.name-list .why{grid-column:1; grid-row:2; font-size:17px; line-height:1.3; color:var(--soft)}
.name-list .why b{color:var(--ink)}
.name-list .heart{grid-column:2; grid-row:2; align-self:end; min-height:36px; padding:4px 12px; gap:5px; font-size:17px; position:relative; background:rgba(var(--card-rgb),.85);
  border-color:rgba(var(--ink-rgb),.3)}
.name-list .heart svg{width:16px; height:16px}
.name-list .heart::before{content:""; position:absolute; inset:-4px 0}   /* the pill stays small; the finger gets 44px */
.name-list .del{padding:2px 0 0}

/* ---------- notes: blank scalloped cards (note.webp, rebuilt like the section card), a sprig of baby's breath
   tucked into each near the top, under its little band ---------- */
.note{--tilt:0deg; background:none; box-shadow:none; border-radius:0; border-style:solid; border-width:22px;
  border-image:url(../art/note.webp) 34 35 fill / 22px round; padding:6px 4px 4px; margin-top:44px;
  filter:drop-shadow(0 1px 1px rgba(var(--shadow-rgb),.16)) drop-shadow(0 6px 8px rgba(var(--shadow-rgb),.14))}
[data-note-attach="art"] .note{padding-top:46px}
[data-note-attach="art"] .note[data-v]::after{top:-46px}
.note .kind{color:var(--accent)}
.note p{font-size:17px; line-height:1.5}
.note .by{color:var(--ink-deep)}

/* ---------- the footer: a card like every section ---------- */
footer{margin:28px auto 22px; width:min(720px, calc(100% - 28px)); box-sizing:border-box; padding:12px 14px 14px}
.foot-line{color:var(--ink-deep); font-weight:700}

/* ---------- on the cloth between the cards: a sticker set down by hand beside each section from the 3rd to the 8th,
   by turns right and left: the hanging bunch, a lemon leaf, a sprig of baby's breath, a half, a curl of peel and a
   raspberry. On a phone each lies over its card's top corner, half on the cloth; on a laptop they sit out beside the
   cards. ---------- */
.col > section{position:relative}
.col > section:is(:nth-of-type(10n+3), :nth-of-type(10n+4), :nth-of-type(10n+5), :nth-of-type(10n+6), :nth-of-type(10n+7), :nth-of-type(10n+8))::after{
  content:""; position:absolute; z-index:3; pointer-events:none; width:84px; height:84px; top:-18px;
  background:var(--touch) no-repeat center / contain; filter:drop-shadow(0 2px 2px rgba(var(--shadow-rgb),.25)) drop-shadow(0 7px 9px rgba(var(--shadow-rgb),.16))}
.col > section:nth-of-type(10n+3)::after{--touch:url(../art/lemons.webp); right:-18px; width:90px; height:96px; transform:rotate(11deg)}
.col > section:nth-of-type(10n+4)::after{--touch:url(../art/leaf.webp); left:-16px; transform:rotate(-22deg)}
.col > section:nth-of-type(10n+5)::after{--touch:url(../art/sprig.webp); right:-14px; height:96px; transform:rotate(-8deg)}
.col > section:nth-of-type(10n+6)::after{--touch:url(../art/half.webp); left:-16px; width:78px; height:78px; transform:rotate(27deg)}
.col > section:nth-of-type(10n+7)::after{--touch:url(../art/peel.webp); right:-16px; transform:rotate(16deg)}
.col > section:nth-of-type(10n+8)::after{--touch:url(../art/raspberry.webp); left:-12px; width:60px; height:66px; transform:rotate(-8deg)}
@media (min-width:600px) and (max-width:899px){
  .col > section:is(:nth-of-type(10n+3), :nth-of-type(10n+5), :nth-of-type(10n+7))::after{right:-56px}
  .col > section:is(:nth-of-type(10n+4), :nth-of-type(10n+6), :nth-of-type(10n+8))::after{left:-56px}
}
@media (min-width:900px){
  .col > section:is(:nth-of-type(10n+3), :nth-of-type(10n+4), :nth-of-type(10n+5), :nth-of-type(10n+6), :nth-of-type(10n+7), :nth-of-type(10n+8))::after{
    z-index:-1; top:36%}
  .col > section:nth-of-type(10n+3)::after{width:210px; height:220px; right:-260px}
  .col > section:nth-of-type(10n+4)::after{width:190px; height:190px; left:-240px}
  .col > section:nth-of-type(10n+5)::after{width:170px; height:200px; right:-220px}
  .col > section:nth-of-type(10n+6)::after{width:180px; height:180px; left:-230px}
  .col > section:nth-of-type(10n+7)::after{width:190px; height:190px; right:-240px}
  .col > section:nth-of-type(10n+8)::after{width:110px; height:120px; left:-160px}
}

/* ---------- small things ---------- */
.invite .piece{rotate:6deg}               /* the invitation's hanging bunch, clockwise like every lemon */
.foot-art{rotate:2deg}
.yourpart li.done a{background:rgba(var(--wash-rgb),.4)}
.count span{letter-spacing:.1em}
.foot-line{font-size:clamp(28px, 8vw, 38px)}
