/* Baby on the Bay: a seafood restaurant's menu laid on a whitewashed plywood table. Every section (the invitation too)
   is a page of Gemini's cream menu card with its navy double rule, the name ideas are chalked up on the specials board,
   and the wishes are torn butcher paper held by ticking tape. A small seafood piece sits over most titles, and three
   little printed napkins (petals, a lemon, a shrimp) are set down by hand beside the menus. All of it is Gemini's,
   kept whole: border-images keep every card's corners as drawn and stretch only the middle. Colors and fonts come
   from vars.css; Lucia's own art (the header, her pieces, the ticking stripe) is used as it was. */

body{background-size:520px}

/* no side borders: the table is the frame now, so the menus get the phone's width */
main{padding-left:max(14px, env(safe-area-inset-left,0px) + 10px); padding-right:max(14px, env(safe-area-inset-right,0px) + 10px)}

/* ---------- every section a page of the menu: corners kept, the middle stretched, one soft shadow on the table ---------- */
.card, .invite{--pad:max(8px, 2.5vw); border-style:solid; border-width:28px 26px; background:none;
  border-image:url(../art/menu.webp) 70 66 fill / 28px 26px stretch;
  filter:drop-shadow(0 1px 1px rgba(var(--shadow-rgb),.16)) drop-shadow(0 12px 14px rgba(var(--shadow-rgb),.18))}
.card{padding:6px var(--pad) 10px}
.card::before{display:none}
.invite{padding:10px var(--pad) 14px; margin-top:22px}
section{padding-block:30px 6px}
.card > .piece:first-child{margin-top:-6px; margin-bottom:6px}
/* the countdown's small words stay on one line inside the menu's rule */
.count span{letter-spacing:.06em}

/* ---------- name ideas: chalked up on the specials board (its weathered frame kept, the navy face stretched), in
   chalk lettering: Cabin Sketch for the headings, Fredericka the Great for the names, a soft chalk-dust edge on both.
   The chalk is white with a faint tint, as real colored chalk looks on a board: the girls' list a little pink, the
   boys' a little blue (the card's cream mixed with a touch of the vote's colors). ---------- */
.name-lists{--chalk:var(--card); --chalk-girl:color-mix(in srgb, var(--card) 64%, var(--girl-soft));
  --chalk-boy:color-mix(in srgb, var(--card) 58%, var(--wash));
  border-style:solid; border-width:26px; border-image:url(../art/board.webp) 52 fill / 26px stretch;
  padding:10px 8px 6px; color:var(--chalk); filter:drop-shadow(0 8px 10px rgba(var(--shadow-rgb),.25))}
.name-lists h3{color:var(--chalk); border-bottom-color:rgba(var(--card-rgb),.4); font:700 17px/1.2 "Cabin Sketch", var(--f-caps);
  letter-spacing:.08em}
.name-lists h3, .name-list .nm, .name-list .why{text-shadow:0 0 1px rgba(var(--card-rgb),.5), 0 0 6px rgba(var(--card-rgb),.12)}
.name-list li{border-bottom-color:rgba(var(--card-rgb),.22)}
.name-lists > div:has(#names-girl){--ink-chalk:var(--chalk-girl)}
.name-lists > div:has(#names-boy){--ink-chalk:var(--chalk-boy)}
.name-list .nm, .name-list .nm.top{color:var(--ink-chalk, var(--chalk)); font:400 31px/1.15 "Fredericka the Great", var(--f-script)}
.name-list .why{color:var(--ink-chalk, var(--chalk)); opacity:.8; font:400 17px/1.35 "Cabin Sketch", var(--f-body); font-style:normal}
.name-list .del{color:var(--ink-chalk, var(--chalk)); opacity:.75}
.name-lists .heart{border-color:rgba(var(--card-rgb),.5); background:transparent; color:var(--ink-chalk, var(--chalk))}
.name-lists .heart[aria-pressed=true]{border-color:var(--ink-chalk, var(--chalk)); color:var(--ink-chalk, var(--chalk));
  background:rgba(var(--card-rgb),.1)}
.name-lists .heart[aria-pressed=true] svg{fill:var(--ink-chalk, var(--chalk)); stroke:var(--ink-chalk, var(--chalk))}
.name-lists :focus-visible{outline-color:var(--card)}

/* ---------- wishes: torn butcher paper, held up by a strip of ticking tape ---------- */
.note{border-style:solid; border-width:20px 18px; border-image:url(../art/note.webp) 40 36 fill / 20px 18px stretch;
  background:none; box-shadow:none; padding:4px 6px 2px; filter:drop-shadow(0 6px 7px rgba(var(--shadow-rgb),.11))}
/* the tape sits high, most of it on the card behind and only its foot on the paper */
[data-note-attach="art"] .notes{--note-room:calc(var(--note-attach-h) * .72 + 4px)}
[data-note-attach="art"] .note[data-v]::after{top:calc(var(--note-attach-h) * -.72)}
[data-note-attach="art"] .note{padding-top:calc(var(--note-attach-h) * .28 + 12px)}
.note .by{color:var(--accent)}
.note .kind{color:color-mix(in srgb, var(--accent) 85%, var(--ink-deep))}   /* a shade deeper: reads on the butcher paper */
/* the tape lies across the paper's top edge, half on the paper and half off. The paper's torn edge is 8px inside the
   note's box and the tape is measured from inside its 20px border, so its middle sits 12px above that; the strips are
   drawn level and only tilt a few degrees (never more than 20, theming rules 5.6). */
html[data-note-attach="art"] .notes{--note-room:calc(var(--note-attach-h) * .5 - 4px)}
html[data-note-attach="art"] .note[data-v]::after{top:calc(-12px - var(--note-attach-h) * .5)}
html[data-note-attach="art"] .note{padding-top:calc(var(--note-attach-h) * .5 - 4px)}

/* ---------- the footer, on the table ---------- */
.foot-line{color:var(--ink-deep)}

/* ---------- three printed paper napkins set down by hand on the table, out along the left and right edges: never
   in a grid, at most one a section, never moving the menus. They're for the laptop's wide table; on a phone the
   menus fill the width, so only an edge of one peeks out. ---------- */
main{overflow-x:clip}
.col > section{position:relative}
.col > section::after{content:""; position:absolute; z-index:-1; pointer-events:none; width:217px; height:217px;
  background:no-repeat center / contain; filter:drop-shadow(0 5px 6px rgba(var(--shadow-rgb),.16))}
.col > section:nth-of-type(10n+1)::after{background-image:url(../art/touch-petals.webp); top:14%; right:-186px; transform:rotate(9deg)}
.col > section:nth-of-type(10n+4)::after{background-image:url(../art/touch-lemon.webp); top:38%; left:-190px; transform:rotate(-12deg)}
.col > section:nth-of-type(10n+6)::after{background-image:url(../art/touch-shrimp.webp); bottom:8%; right:-184px; transform:rotate(-5deg)}
.col > section:nth-of-type(10n+9)::after{background-image:url(../art/touch-petals.webp); top:20%; left:-188px; transform:rotate(-7deg) scaleX(-1)}
.col > section:not(:nth-of-type(10n+1)):not(:nth-of-type(10n+4)):not(:nth-of-type(10n+6)):not(:nth-of-type(10n+9))::after{display:none}
@media (min-width:900px){
  .col > section::after{width:368px; height:368px}
  .col > section:nth-of-type(10n+1)::after{right:-410px}
  .col > section:nth-of-type(10n+4)::after{left:-420px}
  .col > section:nth-of-type(10n+6)::after{right:-400px}
  .col > section:nth-of-type(10n+9)::after{left:-410px}
}
