/* New to the Club: suede-cut golf club on heavy linen. Every section is Gemini's cream paper with a double green rule
   (four ways round, so the creases vary), its title on Gemini's green suede band with the section's number in a round
   marker. The countdown is a scorecard row, the vote's lanes are mown fairway
   stripes, and the name ideas (placards on a leaderboard) and the notes (cards held by a tee pushed through them) sit
   on Gemini's own suede pieces, stretched in the middle by a border-image. Colors and fonts come from vars.css. */

body{background-size:400px}
.col{counter-reset:hole}

/* ---------- header: the pennant hangs big just over the pro shop. Its foot sits at a share of the header's height,
   since the stand's awning stands at about 52% of it from the bottom on phones and laptops alike (the layers cover the
   header from the bottom); its width is held under half the header's height so it never reaches the top. ---------- */
.hero-title{width:min(90vw, 400px, 52svh); top:auto; bottom:calc(52% - 16px); filter:drop-shadow(0 10px 14px rgba(var(--shadow-rgb),.28))}
@media (min-width:900px){.hero-title{width:min(30vw, 440px, 50svh); bottom:calc(53% - 16px)}}
/* phones see only the middle of the wide front layer: their own has the balloons, bag, roses and teddy close in */
@media (max-width:899px){.hero.painted .front{background-image:url(../art/hero-front-phone.webp)}}

/* ---------- sections: scorecards ---------- */
section{padding-block:26px 8px}
/* every section (the invitation too) on Gemini's cream paper with its double green rule (art/sheet-*.jpg, 44 px slices
   kept, the middle stretched), one of four ways round by turns so the creases change from section to section; the
   shadow is drawn here, so it falls the same way on all four */
.card, .invite{--pad:max(12px, 3.5vw); --sheet:url(../art/sheet-1.jpg); border-style:solid; border-width:20px;
  border-image:var(--sheet) 44 fill / 20px stretch; background:none;
  filter:drop-shadow(0 1px 1px rgba(var(--shadow-rgb),.18)) drop-shadow(0 12px 14px rgba(var(--shadow-rgb),.22))}
.col > section:nth-of-type(4n+2) > .card{--sheet:url(../art/sheet-2.jpg)}
.col > section:nth-of-type(4n+3) > .card{--sheet:url(../art/sheet-3.jpg)}
.col > section:nth-of-type(4n) > .card{--sheet:url(../art/sheet-4.jpg)}
.card{padding:0 var(--pad) 20px}
.card::before{display:none}
/* the title on Gemini's green suede band (art/band.webp: its cream rule and square corners kept, the middle
   stretched), set just inside the paper's double rule */
.card > .sec-title{position:relative; margin:-4px calc(-4px - var(--pad)) 18px; padding:10px 44px 8px;
  border-style:solid; border-width:14px; border-image:url(../art/band.webp) 34 fill / 14px stretch;
  color:var(--card); font-size:clamp(30px, 8.6vw, 42px); line-height:1.1; counter-increment:hole}
/* the section's number in a round hole marker at the left of the band */
.card > .sec-title::before{content:counter(hole); position:absolute; left:12px; top:50%; transform:translateY(-50%);
  width:30px; height:30px; border-radius:50%; display:grid; place-items:center;
  background:var(--card); color:var(--ink); font:600 13px/1 var(--f-caps); letter-spacing:0}
.lede{color:var(--soft)}

/* the invitation: the same scorecard, a plain top (it has no band), the names big in the club script */
.invite{padding:22px var(--pad) 22px; margin-top:18px}
.honoree{color:var(--ink)}

/* the countdown: one scorecard row, each number in its own ruled cell */
.log{border:1.5px solid var(--ink); border-radius:2px; background:var(--field)}
.log::before{inset:3px; border-color:rgba(var(--ink-rgb),.35)}
.count b{color:var(--ink)}
.count div{border-left:1px solid rgba(var(--ink-rgb),.35)}
.count span{letter-spacing:.1em}   /* Montserrat runs wide: on a phone the countdown goes two by two (invite/guest.js) */

/* ---------- buttons, boxes and chips: crisp club labels ---------- */
.btn{border-radius:3px; border-width:1.5px; letter-spacing:.18em}
.btn.solid{background:var(--ink); color:var(--card); box-shadow:inset 0 0 0 3px var(--ink), inset 0 0 0 4px rgba(var(--card-rgb),.5)}
.btn.solid:hover{background:var(--ink-deep); box-shadow:inset 0 0 0 3px var(--ink-deep), inset 0 0 0 4px rgba(var(--card-rgb),.5)}
input[type=text], input[type=date], select, textarea{border-radius:2px; background:var(--field)}
.chip{border-radius:3px}

/* ---------- When & Where: the scorecard's own rows ---------- */
@media (min-width:900px){
  .col{max-width:700px}
  .detail-grid{grid-template-columns:1fr 1fr; gap:22px 40px}
  .detail-grid > .span{grid-column:auto}
}

/* ---------- the vote: a blue cart and a yellow cart, racing down mown fairway stripes ---------- */
.pick{border-radius:3px; border:1.5px solid var(--ink)}
.pick.boy{background:rgba(var(--wash-rgb),.55)}
.pick.girl{background:rgba(var(--girl-soft-rgb),.6)}
.pick.boy .script{color:var(--leaf)}
.pick.boy .caps{color:color-mix(in srgb, var(--leaf) 75%, var(--ink-deep))}   /* a shade deeper: reads on the tile's tint */
.pick.boy[aria-pressed=true]{background:var(--wash); border-color:var(--leaf); box-shadow:inset 0 0 0 2px var(--leaf)}
.pick.girl[aria-pressed=true]{background:var(--girl-soft); border-color:var(--girl); box-shadow:inset 0 0 0 2px var(--girl)}
.lane{border-bottom:none; border-radius:2px;
  background:repeating-linear-gradient(90deg, rgba(var(--accent-rgb),.16) 0 26px, rgba(var(--accent-rgb),.26) 26px 52px)}
.lane.boy .who, .lane.boy .pct{color:var(--leaf)}
/* Boy and Girl a shade deeper than their colors, so they read on the mown stripes */
.lane.boy .who{color:color-mix(in srgb, var(--leaf) 75%, var(--ink-deep))}
.lane.girl .who, .lane.girl .pct{color:color-mix(in srgb, var(--girl) 75%, var(--ink-deep))}
:root{--racer-size:66px}

/* ---------- name ideas: Gemini's leaderboard (wood frame, cream rule) with each name on its own suede placard;
   both keep their corners as drawn and stretch in the middle ---------- */
.name-lists{border-style:solid; border-width:16px; border-image:url(../art/board.webp) 75 fill / 16px stretch;
  padding:8px 6px 4px; filter:drop-shadow(0 10px 12px rgba(var(--shadow-rgb),.22))}
.name-lists h3{color:var(--card); border-bottom-color:rgba(var(--card-rgb),.4)}
.name-list li{border-style:solid; border-width:12px 16px; border-image:url(../art/placard.webp) 85 fill / 12px 16px stretch;
  margin:0 0 6px; padding:2px 2px 2px 4px; filter:drop-shadow(0 3px 3px rgba(var(--shadow-rgb),.3))}
.name-list .nm{font-size:28px}
.name-list .heart{background:rgba(var(--field-rgb),.7)}

/* ---------- notes: Gemini's little suede note cards, each held by a tee pushed through it ---------- */
.note{border-style:solid; border-width:16px; border-image:url(../art/note.webp) 85 fill / 16px stretch;
  background:none; box-shadow:none; padding:8px 6px 4px; filter:drop-shadow(0 8px 8px rgba(var(--shadow-rgb),.2))}
.note .by{color:var(--accent)}

/* ---------- the footer ---------- */
.foot-line{color:var(--ink); font-size:clamp(30px, 8.4vw, 42px); line-height:1.15}

/* a piece set before a title would sit under the title's band; never let the band ride up over it */
.card > .piece + .sec-title{margin-top:14px}
