/* Glou brand, same as the tasting app and the Wine Battle poster:
   Tomato Jam #CC2936, Coffee Bean #2A1A1F, Porcelain #FFFFFC,
   Orange #FFAC0E, Dusty Olive #71816D. Bantayog headings, Noto Sans text,
   Caveat accents. */
@font-face { font-family: 'Bantayog'; src: url('/brand/fonts/Bantayog-Regular.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Noto Sans'; src: url('/brand/fonts/NotoSans-latin.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2212; }
@font-face { font-family: 'Noto Sans'; src: url('/brand/fonts/NotoSans-latin-ext.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02BA, U+1E00-1EFF; }
@font-face { font-family: 'Caveat'; src: url('/brand/fonts/Caveat-Regular-latin.woff2') format('woff2'); font-display: swap; unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: 'Caveat'; src: url('/brand/fonts/Caveat-Regular-latin-ext.woff2') format('woff2'); font-display: swap; unicode-range: U+0100-024F; }

:root {
  --tomato: #cc2936;
  --tomato-dark: #a91f2b;
  --coffee: #2a1a1f;
  --porcelain: #fffffc;
  --orange: #ffac0e;
  --olive: #71816d;
  --blush: #f8ecec;
  --ink: var(--coffee);
  --ink-soft: rgba(42, 26, 31, .82);
  --ink-muted: rgba(42, 26, 31, .58);
  --line: rgba(42, 26, 31, .16);
  --radius: 14px;
  --font-brand: 'Bantayog', 'Arial Narrow', sans-serif;
  --font-hand: 'Caveat', cursive;
  font-family: 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink-soft);
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--porcelain); }
body { min-height: 100dvh; font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
h1, h2 { font-family: var(--font-brand); font-weight: 400; color: var(--ink); margin: 0; line-height: 1; }
[hidden] { display: none !important; }

/* Hero, as on the poster */
.hero {
  background: var(--tomato); color: var(--porcelain); text-align: center;
  min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: calc(24px + env(safe-area-inset-top, 0px)) 16px 32px;
}
.hero-top { display: flex; align-items: center; justify-content: center; gap: 12px; }
.wordmark { width: 92px; }
.presents { font-family: var(--font-hand); font-size: 30px; line-height: 1; transform: rotate(-4deg); }
.hero h1 { color: var(--porcelain); font-size: clamp(64px, min(24vw, 12svh), 132px); line-height: .86; margin-top: 10px; }
.tag { font-family: var(--font-hand); color: var(--orange); font-size: clamp(30px, 8vw, 42px); line-height: 1; margin: 12px 0 0; transform: rotate(-2deg); }
.duo { --m: min(28vw, 15svh, 150px); position: relative; display: flex; justify-content: center; align-items: flex-end; gap: 4px; margin: 20px auto 16px; }
.duo img { width: var(--m); }
/* Toasting mermaids from the animated Glou logo (brand/toast.js), drawn at the
   same size as the still images, which show until it has loaded. */
#toastHost { display: none; width: calc(var(--m) * 362.154 / 137.954); margin: calc(var(--m) * -34 / 137.954) calc(var(--m) * -36 / 137.954 + 2px) 0; pointer-events: none; }
#toastHost svg { display: block; width: 100%; height: auto; overflow: visible; }
#tstage .art { fill: var(--porcelain); fill-rule: evenodd; }
#tstage .spark path { fill: none; stroke: var(--orange); stroke-linecap: round; stroke-linejoin: round; }
.duo.live #toastHost { display: block; }
.duo.live .still { display: none; }
.stamp {
  position: absolute; right: calc(-1 * min(20vw, 11svh, 100px)); top: -6%; width: min(25vw, 13svh, 120px); aspect-ratio: 1;
  transform: rotate(9deg); display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--coffee);
}
.stamp svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.stamp b { position: relative; font-family: var(--font-brand); font-weight: 400; font-size: min(5.4vw, 2.8svh, 26px); line-height: .9; white-space: nowrap; }
.stamp i { position: relative; font-family: var(--font-hand); font-style: normal; font-size: min(5vw, 2.6svh, 24px); line-height: .9; }
.cta {
  display: inline-flex; align-items: center; justify-content: center; min-height: 58px; min-width: min(100%, 320px);
  margin-top: 26px; padding: 0 34px; border-radius: 99px; background: var(--porcelain); color: var(--tomato);
  font-family: var(--font-brand); font-size: 24px; letter-spacing: .03em; text-decoration: none;
  box-shadow: 0 10px 24px -12px rgba(42, 26, 31, .6); transition: transform .15s;
}
.cta:active { transform: scale(.97); }
.cta-note { font-size: 14px; margin: 12px 0 0; opacity: .9; }

@media (max-height: 720px) {
  .hero { padding-top: calc(14px + env(safe-area-inset-top, 0px)); padding-bottom: 18px; }
  .hero h1 { margin-top: 4px; }
  .tag { margin-top: 8px; }
  .duo { margin: 12px auto 10px; }
  .cta { margin-top: 16px; min-height: 52px; }
  .cta-note { margin-top: 8px; }
}

/* Compact header while signing up */
.topbar {
  background: var(--tomato); color: var(--porcelain); display: flex; align-items: center; gap: 14px;
  padding: calc(16px + env(safe-area-inset-top, 0px)) 20px 64px;
}
.topbar-home img { width: 70px; }
.tb-title { font-family: var(--font-brand); font-size: 30px; line-height: 1; margin: 0; }
.tb-sub { font-size: 13px; margin: 4px 0 0; opacity: .9; }
.done-duo { display: flex; justify-content: center; gap: 2px; margin: -4px 0 10px; }
.done-duo span { width: 74px; aspect-ratio: 137.954 / 201.423; background: var(--tomato); -webkit-mask: var(--img) center / contain no-repeat; mask: var(--img) center / contain no-repeat; }
.where { font-family: var(--font-brand); font-size: min(7.6vw, 5svh, 44px); line-height: 1; margin: 0; white-space: nowrap; }
.addr { font-family: var(--font-brand); font-size: 17px; letter-spacing: .05em; margin: 6px 0 0; opacity: .95; }

.wrap { max-width: 560px; margin: -40px auto 0; padding: 0 16px 40px; position: relative; }
.card {
  background: var(--porcelain); border-radius: 22px; padding: 26px 20px 24px;
  box-shadow: 0 1px 0 var(--line), 0 18px 40px -18px rgba(42, 26, 31, .35);
}
section + section { margin-top: 30px; }
.card h2 { font-size: 27px; display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.num {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--tomato); color: var(--porcelain); font-size: 17px; flex: none;
}
.hint { font-size: 14px; color: var(--ink-muted); margin: -4px 0 14px; }

/* Day and slot pickers */
.days { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.days button, .slots button {
  border: 1.5px solid var(--line); background: var(--porcelain); border-radius: var(--radius);
  transition: background .15s, border-color .15s, color .15s;
}
.days button { padding: 14px 10px; display: flex; flex-direction: column; align-items: center; min-height: 86px; justify-content: center; }
.days .wd { font-family: var(--font-hand); font-size: 26px; line-height: 1; color: var(--olive); }
.days .dt { font-family: var(--font-brand); font-size: 23px; line-height: 1.05; color: var(--ink); }
.days button[aria-checked="true"], .slots button[aria-checked="true"] { background: var(--tomato); border-color: var(--tomato); }
.days button[aria-checked="true"] .wd { color: var(--orange); }
.days button[aria-checked="true"] .dt, .slots button[aria-checked="true"] .t { color: var(--porcelain); }

.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; transition: opacity .2s; }
.slots.off { opacity: .4; pointer-events: none; }
.slots button { position: relative; min-height: 62px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.slots .t { font-family: var(--font-brand); font-size: 25px; color: var(--ink); line-height: 1; }
.slots button.cozy { background: #fff4dd; border-color: var(--orange); }
.slots button.busy { background: var(--blush); border-color: var(--tomato); }
.slots button.busy[aria-checked="true"], .slots button.cozy[aria-checked="true"] { background: var(--tomato); border-color: var(--tomato); }
/* "druk" in Tomato Jam, "gezellig druk" in orange */
.flag, .busy-dot {
  font-family: var(--font-brand); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
  background: var(--tomato); color: var(--porcelain); border-radius: 99px; padding: 1px 8px 0; line-height: 1.5;
}
.slots button.cozy .flag, .busy-dot.cozy { background: var(--orange); color: var(--coffee); }
.slots button[aria-checked="true"] .flag { background: var(--porcelain); color: var(--tomato); }
.slots .flag { font-size: 10.5px; padding: 1px 6px 0; }
.flag { margin-top: 5px; }
.busy-dot { display: inline-block; font-size: 11px; vertical-align: 1px; }

/* Fields */
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field input {
  width: 100%; min-height: 52px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: var(--radius);
  background: var(--porcelain); font-size: 17px; outline: none;
}
.field input:focus { border-color: var(--tomato); box-shadow: 0 0 0 3px rgba(204, 41, 54, .14); }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stepper button { width: 56px; height: 52px; border: 0; background: var(--blush); font-size: 26px; color: var(--tomato); line-height: 1; }
.stepper button:disabled { color: var(--ink-muted); opacity: .5; cursor: default; }
.stepper output { min-width: 64px; text-align: center; font-family: var(--font-brand); font-size: 26px; color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.error { background: var(--blush); color: var(--tomato-dark); border-radius: 10px; padding: 10px 14px; font-weight: 600; margin: 18px 0 0; }
.btn {
  display: flex; align-items: center; justify-content: center; width: 100%;
  min-height: 56px; margin-top: 22px; padding: 0 22px; border-radius: var(--radius);
  border: 1.5px solid var(--tomato); background: var(--tomato); color: var(--porcelain);
  font-family: var(--font-brand); font-size: 22px; letter-spacing: .02em;
}
.btn:active { background: var(--tomato-dark); }
.btn:disabled { opacity: .7; }
.btn.ghost { background: transparent; color: var(--tomato); }

.done { text-align: center; }
.hand { font-family: var(--font-hand); font-size: 34px; color: var(--olive); margin: 0; line-height: 1; }
.done h2 { font-size: 46px; margin: 2px 0 14px; display: block; }
.done-text { font-size: 17px; color: var(--ink); margin: 0 0 16px; }


footer { background: var(--tomato); color: var(--porcelain); text-align: center; overflow: hidden; }
footer p { font-family: var(--font-brand); letter-spacing: .05em; margin: 0; padding: 22px 16px 18px; font-size: 17px; }
.band { display: grid; margin-left: -28px; }
.band i { aspect-ratio: 1; display: grid; place-items: center; }
.band i.s { background: var(--porcelain); }
.band i.m { background: var(--tomato); }
.band img { width: 78%; height: 78%; object-fit: contain; }

/* While signing up, the sun and moon band stays at the bottom of the screen. */
body.flow footer { position: fixed; left: 0; right: 0; bottom: 0; z-index: 3; padding-bottom: env(safe-area-inset-bottom, 0px); }
body.flow footer p { display: none; }
body.flow .wrap { padding-bottom: calc(88px + 32px + env(safe-area-inset-bottom, 0px)); }

@media (min-width: 720px) {
  .hero { padding-top: 44px; }
}

/* Steps */
.progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.progress i { height: 5px; border-radius: 99px; background: var(--blush); transition: background .25s; }
.progress i.on { background: var(--tomato); }
.stepno { font-family: var(--font-hand); font-size: 22px; color: var(--olive); margin: 10px 0 6px; line-height: 1; }
.card .step h2 { font-size: 32px; margin-bottom: 16px; }
.step { animation: stepin .28s ease-out; }
@keyframes stepin { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .step { animation: none; } }
.back {
  display: inline-flex; align-items: center; gap: 6px; border: 0; background: var(--blush); color: var(--tomato-dark);
  border-radius: 99px; padding: 6px 14px 6px 12px; font-size: 14px; font-weight: 600; margin-bottom: 14px;
}
.slots { margin-bottom: 4px; }

/* Confirmation */
.done .btn { margin-top: 18px; }
.done .btn + .btn { margin-top: 10px; }
.shared { font-size: 14px; color: var(--olive); font-weight: 600; margin: 10px 0 0; }
.hint.small { font-size: 13px; margin-top: 18px; }

/* Changing a booking from the email link */
.editing { display: inline-block; background: var(--orange); color: var(--coffee); font-family: var(--font-brand); font-size: 15px; letter-spacing: .04em; border-radius: 99px; padding: 3px 12px 1px; margin: 14px 0 0; }
.field input[readonly] { background: var(--blush); color: var(--ink-muted); }
.linkbtn { display: block; width: 100%; margin-top: 14px; border: 0; background: none; color: var(--ink-muted); font-size: 14px; text-decoration: underline; padding: 8px; }
.linkbtn.sure { color: var(--porcelain); background: var(--tomato); border-radius: var(--radius); text-decoration: none; font-weight: 600; min-height: 48px; }
#done-mail { margin: -4px 0 4px; }
.done.cancelled .hint.small { display: none; }
