/* Barkley's Basement Bar — the bar at night. One dark look on purpose (it's a basement club),
   phone first, big tap targets. Brand colors and fonts: brand/README.md. */
@font-face { font-family: "Poiret One"; src: url("/fonts/PoiretOne-Regular.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Tilt Neon"; src: url("/fonts/TiltNeon.woff2") format("woff2"); font-display: swap; }

:root {
  --bg: #0B0A0D; --surface: #15121A; --surface-2: #1D1924; --ink: #F3EEF5; --muted: #A69FB0; --line: #2C2733;
  --pink: #FF3D8B; --pink-core: #FFC1DA; --blue: #22D3EE; --blue-core: #ABEEF9; --error: #FF8A7A;
  --display: "Poiret One", "Avenir Next", "Futura", system-ui, sans-serif;
  --label: "Tilt Neon", "Avenir Next", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r: 14px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 var(--body);
  background-image: radial-gradient(120% 60% at 50% -10%, rgba(255, 61, 139, .10), transparent 60%),
                    radial-gradient(90% 50% at 50% 110%, rgba(34, 211, 238, .07), transparent 60%);
  background-attachment: fixed; min-height: 100vh; }
a { color: var(--blue-core); }
img { max-width: 100%; }
.wrap { max-width: 560px; margin: 0 auto; padding: 20px 18px 56px; display: grid; gap: 28px; }
.wrap.wide { max-width: 980px; }

/* Header */
.top { display: flex; justify-content: center; padding-top: 6px; }
.top a { display: block; }
.top img { width: min(260px, 70vw); height: auto; display: block; }
.top.small img { width: 150px; }

/* Type */
.eyebrow { font: 400 13px/1 var(--label); letter-spacing: .22em; text-transform: uppercase; color: var(--blue-core);
  text-shadow: 0 0 8px rgba(34, 211, 238, .55); }
h1, h2 { font-family: var(--display); font-weight: 400; margin: 0; line-height: 1.05; text-wrap: balance; letter-spacing: .02em; }
h1 { font-size: clamp(2.5rem, 11vw, 3.6rem); color: var(--pink-core);
  text-shadow: 0 0 2px var(--pink), 0 0 12px rgba(255, 61, 139, .8), 0 0 32px rgba(255, 61, 139, .45); }
h2 { font-size: 1.7rem; color: var(--ink); }
p { margin: 0; }
.muted { color: var(--muted); }
.when { font: 400 1.15rem/1.3 var(--label); letter-spacing: .04em; }
.party-head { display: grid; gap: 12px; text-align: center; justify-items: center; }
.where { color: var(--muted); }
.where a { color: var(--ink); text-decoration-color: var(--line); text-underline-offset: 3px; }
.tagline { font-size: 1.05rem; color: var(--ink); }
.desc { color: var(--ink); display: grid; gap: 14px; }
.desc h3 { margin: 10px 0 0; font: 400 1rem/1.2 var(--label); letter-spacing: .18em; text-transform: uppercase; color: var(--blue-core);
  text-shadow: 0 0 8px rgba(34, 211, 238, .5); }
.desc b { font-weight: 600; color: var(--pink-core); }
.desc ul { margin: 0; padding: 16px 18px; list-style: none; display: grid; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.desc li b { color: var(--muted); font-weight: 500; }

/* Buttons */
.btn { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 14px 18px;
  border-radius: var(--r); font: 400 1.1rem/1.1 var(--label); letter-spacing: .05em; text-decoration: none; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); width: 100%; -webkit-tap-highlight-color: transparent; }
.btn.primary { background: var(--blue); border-color: var(--blue); color: #04181D; font-size: 1.2rem;
  box-shadow: 0 0 0 1px rgba(34, 211, 238, .4), 0 0 24px rgba(34, 211, 238, .45); }
.btn.pink { background: var(--pink); border-color: var(--pink); color: #23030F; box-shadow: 0 0 22px rgba(255, 61, 139, .45); }
.btn:focus-visible, input:focus-visible, .choice input:focus-visible + span { outline: 2px solid var(--blue-core); outline-offset: 3px; }
.btn:active { transform: translateY(1px); }
.actions { display: grid; gap: 10px; }
.cal-more { display: flex; justify-content: center; gap: 18px; font-size: 15px; }
.cal-more a { color: var(--muted); }
.hint { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; font-size: 15px; color: var(--muted); }

/* RSVP */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px 18px; display: grid; gap: 18px; }
.card h2 { font-size: 1.5rem; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 10px; }
legend { padding: 0; margin-bottom: 10px; font: 400 14px/1 var(--label); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 58px; padding: 8px 6px;
  border: 1.5px solid var(--line); border-radius: var(--r); font: 400 1rem/1.15 var(--label); background: var(--bg); }
.choice input:checked + span { border-color: var(--pink); color: var(--pink-core); box-shadow: 0 0 0 1px var(--pink), 0 0 18px rgba(255, 61, 139, .35); }
.choices.small .choice span { min-height: 48px; }
label.field { display: grid; gap: 6px; font-size: 15px; color: var(--muted); }
input[type=text], input[type=tel], input[type=email], input[type=number] { width: 100%; min-height: 52px; padding: 12px 14px; font: 17px var(--body);
  color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 12px; }
input::placeholder { color: #6E6778; }
.check { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 16px; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--pink); }
.check small { display: block; color: var(--muted); font-size: 14px; }
.opt-head { display: grid; gap: 4px; }
.err { color: var(--error); font-size: 15px; }
.field.bad input { border-color: var(--error); }
.size { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--muted); }
.size input { width: 84px; }
.saved { text-align: center; display: grid; gap: 10px; justify-items: center; }
.saved .status { font: 400 1.6rem/1.1 var(--display); color: var(--blue-core); text-shadow: 0 0 14px rgba(34, 211, 238, .6); }
.linkish { background: none; border: 0; color: var(--blue-core); font: inherit; text-decoration: underline; cursor: pointer; padding: 0; }

/* Lists */
.events { display: grid; gap: 12px; }
.event-row { display: grid; gap: 4px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); }
.event-row b { font: 400 1.35rem/1.15 var(--display); color: var(--pink-core); }
.event-row span { color: var(--muted); font-size: 15px; }
.empty { text-align: center; display: grid; gap: 12px; padding: 18px 0 6px; }
.empty h1 { font-size: clamp(2rem, 9vw, 2.8rem); }

footer { text-align: center; color: var(--muted); font-size: 14px; display: grid; gap: 6px; padding-top: 6px; }
footer nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 18px; }
footer a { color: var(--muted); }

.js .js-hide { display: none; }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Add to Calendar pinned to the top once the main button scrolls away. */
.pinbar { position: fixed; top: 0; left: 0; right: 0; z-index: 8; padding: calc(env(safe-area-inset-top, 0px) + 10px) 16px 10px;
  background: linear-gradient(rgba(7, 6, 10, .96), rgba(7, 6, 10, .88)); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transform: translateY(-110%); transition: transform .22s ease; }
.pinbar.on { transform: none; }
.pinbar .btn { max-width: 524px; margin: 0 auto; min-height: 50px; }
.btn.ghost { background: transparent; border-style: dashed; color: var(--muted); }

/* The flyer preview, for phones that can't share an image straight to Photos. */
.flyer-sheet { position: fixed; inset: 0; z-index: 9; background: rgba(5, 4, 7, .94); display: grid; place-items: center; padding: 20px 16px; }
.flyer-sheet figure { margin: 0; display: grid; gap: 14px; justify-items: center; max-height: 100%; }
.flyer-sheet img { max-height: 72vh; width: auto; border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,.6); }
.flyer-sheet figcaption { color: var(--ink); text-align: center; font-size: 15px; }
.flyer-sheet .row { display: flex; gap: 10px; }
.flyer-sheet .btn { width: auto; min-height: 48px; }

/* The flyer's highlights, under the date at the top of a party page. */
.highlights { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; font: 400 1.02rem/1.35 var(--label); letter-spacing: .02em; }
.highlights li { color: var(--ink); }
.highlights li + li::before { content: ""; display: block; width: 28px; height: 1px; margin: 0 auto 6px; background: rgba(171, 238, 249, .45); }
