/* A Baby Is Brewing: a New Orleans corner café drawn in one green line. Sections drop the thin box every theme
   wears: each opens with its own die-cut sticker over the title (the "mug and words" of a coffee cup's logo), and a
   band of awning stripes runs between them. The details read like a café menu, the name ideas sit on a dark green
   menu board in a chalk hand, and the wishes are stickers stuck on the wall. Colors and fonts come from vars.css. */

/* Bebas Neue has one weight; never fake a bold of it. It reads small, so its labels go up a size. */
body{font-synthesis-weight:none}
.caps{font-size:16px; letter-spacing:.14em}
.btn{font-size:17px; letter-spacing:.12em; padding-top:11px}
.field label, .lbl{font-size:15px; letter-spacing:.14em}
.count span, .log-h{font-size:14px; letter-spacing:.16em}
.yourpart li a{font-size:13px; letter-spacing:.12em}
.pick .caps{font-size:15px}
.lane .who{font-size:14px; letter-spacing:.14em}
.note .kind{font-size:13px; letter-spacing:.16em}

/* ---------- header: the shop sign over the café, and two stickers stuck on the corners ---------- */
.brew-hero .brew-sign{width:min(86vw, 390px); top:clamp(18px, 5svh, 56px); padding:16px 18px 13px; text-align:center; pointer-events:auto;
  background:var(--ink); color:var(--card); border-radius:999px; transform:translateX(-50%) rotate(-2deg);
  box-shadow:0 0 0 6px var(--card), 0 0 0 7.5px var(--ink), 0 14px 20px -10px rgba(var(--shadow-rgb),.45);
  outline:1.5px solid var(--card); outline-offset:-7px}
.brew-sign p{margin:0}
.brew-sign-line{font:400 clamp(30px, 8.4vw, 44px)/1.05 var(--f-script)}
.brew-sign-sub{font:400 15px/1.3 var(--f-caps); letter-spacing:.16em; text-transform:uppercase; margin-top:4px !important}
.brew-stick{position:absolute; z-index:3; background:no-repeat center / contain; pointer-events:none;
  filter:drop-shadow(0 6px 6px rgba(var(--shadow-rgb),.22))}
.brew-stick-a{background-image:url(../art/fern.webp); width:64px; height:72px; top:34%; left:2%; transform:rotate(-8deg)}
.brew-stick-b{background-image:url(../art/to-go.webp); width:40px; height:68px; top:40%; right:4%; transform:rotate(9deg)}
@media (min-width:900px){
  .brew-hero .brew-sign{width:min(36vw, 460px)}
  .brew-stick-a{width:118px; height:130px; left:6%; top:22px}
  .brew-stick-b{width:70px; height:118px; right:9%; top:16%}
}

/* ---------- sections: no box, a sticker over each title, awning stripes between ----------
   About 80px from one section's last line to the next one's sticker, the stripes in the middle (Aaron: the old 136px
   read as a lot of blank space). */
.card::before{display:none}
.card{padding:4px max(6px, 2vw) 12px}
.col > section:not([hidden]):not([data-tab-off]) ~ section::before{content:""; display:block; height:26px; margin:0 -26px 22px;
  background:var(--art-border) repeat-x center top / auto 26px}
section{padding-block:18px 4px}
.sec-title{font-size:clamp(44px, 12vw, 60px); line-height:1}
.sec-title::before{content:""; display:none; width:76px; height:76px; margin:0 auto 12px; background:var(--stick) no-repeat center / contain;
  transform:rotate(-5deg); filter:drop-shadow(0 6px 6px rgba(var(--shadow-rgb),.2))}
#details{--stick:url(../art/to-go.webp)}
#rsvp{--stick:url(../art/cup.webp)}
#poll{--stick:url(../art/cups.webp)}
#pool{--stick:url(../art/beignets.webp)}
#suggest{--stick:url(../art/espresso.webp)}
#wishes{--stick:url(../art/note.webp)}
#registry{--stick:url(../art/gift.webp)}
#checkin{--stick:url(../art/badge.webp)}
#raffle{--stick:url(../art/board.webp)}
#quiz{--stick:url(../art/cup.webp)}
#match{--stick:url(../art/pram.webp)}
#photos{--stick:url(../art/pram.webp)}
:is(#details, #rsvp, #poll, #pool, #suggest, #wishes, #registry, #checkin, #raffle, #photos, #quiz, #match) .sec-title::before{display:block}
#poll .sec-title::before, #pool .sec-title::before{width:96px}
.lede{color:var(--soft)}

/* the countdown is a little menu card */
.log{border:1.5px solid var(--ink); border-radius:14px; background:var(--card)}
.log::before{border-color:rgba(var(--ink-rgb),.3); border-radius:10px}
.count div{border-left-style:dotted}

/* ---------- When & Where reads like a menu: each label between dotted rules ---------- */
.detail-grid{background:var(--card); border-radius:16px; padding:22px 18px 24px;
  box-shadow:0 0 0 1.5px var(--ink), 0 12px 20px -14px rgba(var(--shadow-rgb),.4)}
.detail-grid h3{display:flex; align-items:center; gap:12px; font-size:20px; letter-spacing:.18em}
.detail-grid h3::before, .detail-grid h3::after{content:""; flex:1; border-top:2.5px dotted rgba(var(--ink-rgb),.45)}
@media (min-width:900px){
  .col{max-width:680px}
  .detail-grid{grid-template-columns:1fr 1fr; gap:22px 34px}
  .detail-grid > .span{grid-column:auto}
}

/* ---------- the vote: two cups to pick, the pressed one a sticker ---------- */
.pick{border-radius:16px; background:var(--card)}
.pick[aria-pressed=true]{box-shadow:0 0 0 5px var(--card), 0 0 0 6.5px var(--ink), 0 10px 16px -10px rgba(var(--shadow-rgb),.4)}
.pick.boy[aria-pressed=true]{background:rgba(var(--wash-rgb),.45)}
.lane{border-bottom:2px dotted rgba(var(--ink-rgb),.35)}
:root{--racer-size:58px}

/* ---------- name ideas on a dark green menu board, written in chalk ---------- */
.name-lists{--ink:var(--card); --ink-rgb:var(--card-rgb); --soft:var(--field); --accent:var(--wash); --accent-rgb:var(--wash-rgb);
  --line:rgba(var(--card-rgb),.35); color:var(--card); background:var(--ink-deep); border-radius:14px; padding:22px 18px 18px;
  box-shadow:0 0 0 6px var(--card), 0 0 0 7.5px var(--ink-deep), 0 16px 24px -14px rgba(var(--shadow-rgb),.5)}
.name-lists h3{color:var(--card); font-size:17px}
.name-list .nm{font:500 32px/1.1 "Caveat", var(--f-script)}
.name-list li{border-bottom-style:dotted}
.name-lists .heart{background:transparent; color:var(--card)}
.name-lists .heart[aria-pressed=true]{background:rgba(var(--wash-rgb),.16)}
.name-lists .empty{color:var(--field)}

/* ---------- wishes: Gemini's blank stickers stuck to the café wall, two in six with a corner peeling up. Each is a
   border-image (the corners kept as drawn, the peel inside its corner, the straight edges stretched) drawn on ::before,
   pushed out past the note so its cream edge sits where the old drawn ring did. ---------- */
.note{background:none; border-radius:0; box-shadow:none; margin-bottom:38px; padding:22px 24px 18px; isolation:isolate}
.note::after{display:none}
.notes:not(.tv-notes){grid-template-columns:repeat(auto-fit, minmax(max(220px, calc((100% - 36px) / 2)), 1fr)); column-gap:36px}
.tv-notes{gap:34px}   /* the big screen keeps its three columns, with room for each sticker's edge */
.note::before{content:""; position:absolute; inset:-16px; z-index:-1; pointer-events:none; border-style:solid;
  border-width:58px 64px 62px 28px; border-image:url(../art/sticker-flat.webp) 290 320 310 140 fill / 58px 64px 62px 28px stretch;
  filter:drop-shadow(0 6px 7px rgba(var(--shadow-rgb),.16))}
.note[data-v="1"]::before{border-image-source:url(../art/sticker-peel-tr.webp)}
.note[data-v="4"]::before{border-image-source:url(../art/sticker-peel-br.webp)}
.note[data-v="1"]{padding-top:30px}
.note[data-v="1"] .del{right:40px}
.note[data-v="4"]{padding-bottom:26px}
.note .by{font-size:30px}

/* ---------- small things ---------- */
.yourpart li a{border-style:dotted}
.yourpart li.done a{background:rgba(var(--wash-rgb),.4)}
.piece{filter:drop-shadow(0 8px 8px rgba(var(--shadow-rgb),.2))}

/* ---------- the tablecloth: linen tiles (fine and even, so no seam or repeat shows) with coffee marks and powdered
   sugar set by hand down the page. Each section gets its own mark (eight of them) and some a dusting of sugar on the
   other side, so nothing lines up in a grid. ---------- */
body{background-size:300px}
main{overflow-x:clip}   /* the marks reach past the edges; the page never scrolls sideways */
.col > section{position:relative}
.col > section::after, .col > section > .card::before{content:""; display:block; position:absolute; z-index:-1; pointer-events:none;
  border:0; inset:auto; background:no-repeat center / contain}
.col > section::after{opacity:.42; width:220px; height:220px}
.col > section:nth-of-type(8n+1)::after{background-image:url(../art/stain-ring-a.webp); top:4%; right:-170px; transform:rotate(20deg)}
.col > section:nth-of-type(8n+2)::after{background-image:url(../art/stain-drips.webp); top:30%; left:-150px; transform:rotate(-25deg)}
.col > section:nth-of-type(8n+3)::after{background-image:url(../art/stain-ring-b.webp); bottom:6%; left:-190px; width:260px; height:260px; transform:rotate(75deg); opacity:.34}
.col > section:nth-of-type(8n+4)::after{background-image:url(../art/stain-spill.webp); top:16%; right:-170px; width:190px; height:190px; transform:rotate(140deg); opacity:.34}
.col > section:nth-of-type(8n+5)::after{background-image:url(../art/stain-ring-c.webp); bottom:12%; right:-180px; transform:rotate(-60deg)}
.col > section:nth-of-type(8n+6)::after{background-image:url(../art/stain-drops.webp); top:12%; left:-140px; width:180px; height:180px; transform:rotate(30deg)}
.col > section:nth-of-type(8n+7)::after{background-image:url(../art/stain-bloom.webp); bottom:20%; left:-180px; width:240px; height:240px; opacity:.34}
.col > section:nth-of-type(8n)::after{background-image:url(../art/stain-ring-d.webp); top:25%; right:-175px; width:200px; height:200px; transform:rotate(110deg)}
/* powdered sugar: on the side away from the section's coffee mark, with a faint shadow so it sits on the cloth */
.col > section > .card::before{width:200px; height:200px; filter:drop-shadow(0 1px .6px rgba(var(--shadow-rgb),.55))}
.col > section:nth-of-type(8n+2) > .card::before{background-image:url(../art/sugar-ring.webp); bottom:-20px; right:-170px; width:230px; height:230px}
.col > section:nth-of-type(8n+4) > .card::before{background-image:url(../art/sugar-trail.webp); top:46%; left:-160px; transform:rotate(-20deg)}
.col > section:nth-of-type(8n+7) > .card::before{background-image:url(../art/sugar-sprinkle.webp); top:8%; right:-150px}
.col > section:nth-of-type(8n+1) > .card::before{background-image:url(../art/sugar-trail.webp); bottom:4%; left:-150px; transform:rotate(160deg); width:170px; height:170px}
@media (min-width:900px){
  .col > section::after{margin:0 -170px; opacity:.55}
  .col > section:nth-of-type(odd)::after{width:280px; height:280px}
  .col > section > .card::before{margin:0 -170px}
}
