/* BodhiZaffa contact sheets — Pastel vice, matches the landing page */
:root {
  --bg-top: #ffe9f1;
  --bg-bot: #c9f5ef;
  --paper: #ffffff;
  --line: rgba(22, 50, 74, .14);
  --text: #16324a;          /* navy ink */
  --muted: #3f6b7a;
  --accent: #ff5e94;        /* pink */
  --teal: #1b8f9a;
  --accent-ink: #ffffff;
  --wave-1: #2ec4b6; --wave-2: #7fdcd0; --wave-3: #ff8fb3; --wave-4: #1e8f9c;
  --ok: #1b8f9a;
  --err: #e0446f;
  --display: 'Righteous', system-ui, sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  color: var(--text); font: 16px/1.5 var(--display);
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bot) 100%) fixed;
  background-color: var(--bg-bot);
}
body.has-bar .waves { margin-bottom: 0; }
body.has-bar .copy { bottom: calc(14px + 84px); }
body.has-bar .waves { height: calc(clamp(160px, 26vh, 300px) + 84px); }
button, select { font: inherit; color: inherit; }
input, textarea { font: 16px/1.4 var(--sans); color: inherit; }

/* Header */
.top { width: 100%; max-width: 1400px; margin: 0 auto; padding: 32px 16px 8px; text-align: center; }
.home { display: inline-block; }
.logo {
  width: min(64vw, 260px); aspect-ratio: 848 / 486; margin: 0 auto;
  background: linear-gradient(100deg, #1b8f9a 15%, #ff5e94 85%);
  -webkit-mask: url("logo.png") center / contain no-repeat; mask: url("logo.png") center / contain no-repeat;
  transition: transform .2s;
}
.home:hover .logo, .home:focus-visible .logo { transform: scale(1.03); }
.home:focus-visible { outline: 3px solid var(--wave-1); outline-offset: 6px; border-radius: 8px; }
.brand { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
h1 { font-weight: 400; font-size: clamp(14px, 1.8vw, 18px); letter-spacing: .4em; padding-left: .4em; text-transform: uppercase; margin: 14px 0 6px; color: var(--muted); }
.intro { color: var(--text); max-width: 46ch; margin: 0 auto 22px; font-size: 15px; }
.datepick { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.datepick label { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.datepick select {
  background-color: var(--paper); border: 2px solid var(--text); border-radius: 999px;
  padding: 10px 40px 10px 18px; max-width: 100%; appearance: none; -webkit-appearance: none; cursor: pointer;
  box-shadow: 0 4px 0 var(--accent);
  background-image: linear-gradient(45deg, transparent 50%, var(--text) 50%), linear-gradient(135deg, var(--text) 50%, transparent 50%);
  background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat;
}
.datepick select:focus-visible { outline: 3px solid var(--wave-1); outline-offset: 3px; }
.datepick button { border: 2px solid var(--text); background: var(--text); color: var(--bg-top); border-radius: 999px; padding: 8px 16px; cursor: pointer; }

/* Grid */
main { width: 100%; max-width: 1400px; margin: 0 auto; padding: 8px 16px 40px; flex: 1 0 auto; }
.dayhead { font-weight: 400; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; text-align: center;
  color: var(--muted); margin: 26px 0 18px; display: flex; align-items: center; gap: 14px; }
.dayhead::before, .dayhead::after { content: ""; flex: 1; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--wave-3)); }
.dayhead::after { background: linear-gradient(90deg, var(--wave-3), transparent); }
.empty { color: var(--muted); padding: 48px 0; text-align: center; }

.sheet { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
@media (min-width: 900px) { .sheet { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; } }
.frame { background: var(--paper); border: 2px solid transparent; border-radius: 14px; padding: 8px 8px 0;
  box-shadow: 0 6px 18px rgba(22, 50, 74, .08); transition: border-color .15s, box-shadow .15s, transform .15s; }
.frame:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(22, 50, 74, .12); }
.frame .open { display: block; aspect-ratio: 3 / 2; background: #f3eef2; border-radius: 8px; overflow: hidden; }
.frame img { width: 100%; height: 100%; object-fit: contain; display: block; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.pick { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 8px;
  background: none; border: 0; padding: 10px 4px; cursor: pointer; }
.num { font-size: 16px; letter-spacing: .06em; }
.box { width: 24px; height: 24px; border: 2px solid var(--muted); border-radius: 50%; display: grid; place-items: center; transition: all .15s; }
.frame.on { border-color: var(--accent); box-shadow: 0 6px 0 var(--accent), 0 10px 24px rgba(255, 94, 148, .2); }
.frame.on .num { color: var(--accent); }
.frame.on .box { background: var(--accent); border-color: var(--accent); }
.frame.on .box::after { content: ""; width: 6px; height: 11px; border: solid var(--accent-ink); border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
.pick:focus-visible, .open:focus-visible { outline: 3px solid var(--wave-1); outline-offset: 2px; border-radius: 8px; }

/* Buttons — same look as "Find yourself" */
.primary, .ghost { border-radius: 999px; padding: 10px 20px; cursor: pointer; border: 2px solid var(--text); white-space: nowrap;
  letter-spacing: .08em; transition: transform .15s, box-shadow .15s, background .15s; }
.primary { background: var(--text); color: var(--bg-top); box-shadow: 0 4px 0 var(--accent); }
.primary:hover { transform: translateY(-1px); box-shadow: 0 6px 0 var(--accent); }
.primary:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--accent); }
.ghost { background: transparent; color: var(--text); }
.ghost:hover { background: rgba(255, 255, 255, .6); }
.primary:focus-visible, .ghost:focus-visible { outline: 3px solid var(--wave-1); outline-offset: 3px; }

/* Selection bar */
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; background: rgba(255, 233, 241, .94); border-top: 2px solid var(--accent);
  backdrop-filter: blur(8px); padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.bar[hidden] { display: none; }
.bar-text { min-width: 0; flex: 1 1 260px; font-size: 14px; }
.bar-count { color: var(--accent); font-size: 18px; font-weight: 400; }
.bar-list { color: var(--muted); font-size: 13px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-actions { display: flex; gap: 8px; }

/* Notice */
.notice { width: calc(100% - 32px); max-width: 1368px; margin: 16px auto 0; padding: 12px 18px; border-radius: 14px; background: var(--paper); border-left: 6px solid; }
.notice.ok { border-color: var(--ok); }
.notice.err { border-color: var(--err); }

/* Dialogs */
dialog { border: 0; background: var(--paper); color: var(--text); border-radius: 20px; padding: 0; box-shadow: 0 20px 60px rgba(22, 50, 74, .25); }
dialog::backdrop { background: rgba(22, 50, 74, .55); backdrop-filter: blur(3px); }
.request { width: min(480px, calc(100% - 32px)); }
.request form { padding: 26px; display: grid; gap: 14px; }
.request h3 { margin: 0; font-weight: 400; font-size: 22px; }
.summary { font-size: 14px; color: var(--text); white-space: pre-line; background: linear-gradient(100deg, rgba(46,196,182,.12), rgba(255,94,148,.12)); padding: 12px 14px; border-radius: 12px; }
.request label { display: grid; gap: 6px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.request input, .request textarea { background: #fbf7f9; border: 2px solid var(--line); border-radius: 12px; padding: 10px 12px; width: 100%; text-transform: none; letter-spacing: 0; }
.request input:focus, .request textarea:focus { outline: none; border-color: var(--wave-1); background: #fff; }
.row { display: flex; justify-content: flex-end; gap: 10px; padding-top: 4px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Lightbox stays dark so photos read true */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; border-radius: 0; background: #0f2233; color: #fff; }
.lightbox[open] { display: flex; flex-direction: column; }
.lightbox img { flex: 1; min-height: 0; width: 100%; object-fit: contain; padding: 16px; -webkit-user-select: none; user-select: none; }
.lb-bar { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); flex-wrap: wrap; }
.lb-num { font-size: 20px; min-width: 80px; text-align: center; }
.lightbox .ghost { color: #fff; border-color: rgba(255, 255, 255, .5); }
.lightbox .ghost:hover { background: rgba(255, 255, 255, .1); }
.lightbox .primary { background: var(--bg-top); color: var(--text); border-color: var(--bg-top); }
.js-lbpick.on { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 4px 0 #c43d6e; }

/* Waves + copyright (same as landing page) */
.waves { position: relative; width: 100%; height: clamp(160px, 26vh, 300px); overflow: hidden; flex-shrink: 0; pointer-events: none; }
.waves svg { position: absolute; bottom: 0; left: 0; width: 200%; height: 100%; }
.w1 { animation: drift 22s linear infinite; }
.w2 { animation: drift 16s linear infinite reverse; }
.w3 { animation: drift 11s linear infinite; }
@keyframes drift { to { transform: translateX(-50%); } }
.copy { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; font-size: 10px; letter-spacing: .3em; color: var(--text); opacity: .7; margin: 0; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
