@font-face {
  font-family: "GT Walsheim Pro";
  src: url("/assets/gt-walsheim-pro-medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --canvas: #050505;
  --surface: #0c0c0c;
  --surface-1: #131313;
  --surface-2: #1b1b1b;
  --hairline: #242424;
  --hairline-soft: #191919;
  --ink: #ffffff;
  --ink-muted: #9a9a9a;
  --ink-faint: #5c5c5c;
  --accent: #4d8bff;
  --danger: #ff6b5e;
  --on-ink: #000000;
  --hover: #262626;
  --hairline-strong: #3a3a3a;
  --field-focus: #4a4a4a;
  --danger-line: #4a2320;
  --logo-bg: #111111;
  --display: "GT Walsheim Pro", Inter, -apple-system, system-ui, sans-serif;
  --body: Inter, -apple-system, system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

/* BRoll's booking address (book.itsbroll.io): the landing page's white, ink and Inter Tight. */
html[data-brand="broll"] {
  --canvas: #ffffff;
  --surface: #ffffff;
  --surface-1: #f4f4f5;
  --surface-2: #ececee;
  --hairline: #e2e2e5;
  --hairline-soft: #efeff1;
  --ink: #111111;
  --ink-muted: #6b6b6f;
  --ink-faint: #9b9ba0;
  --accent: #1f45d6;
  --danger: #d23a2c;
  --on-ink: #ffffff;
  --hover: #ececee;
  --hairline-strong: #c9c9ce;
  --field-focus: #b4b4ba;
  --danger-line: #f1c9c4;
  --logo-bg: #ffffff;
  --display: "Inter Tight", -apple-system, system-ui, sans-serif;
  --body: "Inter Tight", -apple-system, system-ui, sans-serif;
  color-scheme: light;
}
html[data-brand="broll"] .host img { object-fit: contain; padding: 7px 5px; }
html[data-brand="broll"] .intro img { object-fit: contain; }
html[data-brand="broll"] .foot img { width: auto; border-radius: 0; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 15px/1.5 var(--body);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus, :focus-visible { outline: none; }
a { color: inherit; }

.page { min-height: 100svh; display: flex; flex-direction: column; align-items: center; padding: max(16px, env(safe-area-inset-top)) 16px 24px; }
.shell { width: 100%; max-width: 1040px; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.foot { display: flex; align-items: center; gap: 8px; color: var(--ink-faint); font-size: 12px; padding-top: 28px; }
.foot img { opacity: 0.55; border-radius: 4px; }

/* ---------- card ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 22px;
  overflow: hidden;
}
.booker { display: grid; grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .booker { grid-template-columns: 320px 1fr; min-height: 600px; }
  .booker.has-times { grid-template-columns: 300px 1fr 236px; }
}

.panel { padding: 24px 20px; }
@media (min-width: 900px) { .panel { padding: 30px 28px; } }
.info { border-bottom: 1px solid var(--hairline); }
@media (min-width: 900px) { .info { border-bottom: 0; border-right: 1px solid var(--hairline); } }

.host { display: flex; align-items: center; gap: 10px; color: var(--ink-muted); font-size: 14px; margin-bottom: 16px; }
.host img { width: 34px; height: 34px; border-radius: 50%; background: var(--logo-bg); border: 1px solid var(--hairline); padding: 4px; }
.back { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 0; color: var(--ink-muted); font-size: 14px; margin-bottom: 18px; }
.back:hover { color: var(--ink); }
.back svg { width: 16px; height: 16px; }

h1, h2 { font-family: var(--display); font-weight: 500; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: 26px; line-height: 1.15; }
@media (min-width: 900px) { h1 { font-size: 28px; } }
h2 { font-size: 17px; line-height: 1.3; margin-bottom: 16px; }

.meta { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.meta li { display: flex; align-items: flex-start; gap: 10px; color: var(--ink-muted); font-size: 14.5px; }
.meta svg { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--ink-faint); }
.meta .strong { color: var(--ink); }
.desc { color: var(--ink-muted); margin: 18px 0 0; white-space: pre-line; font-size: 14.5px; }
.picked { margin-top: 18px; padding: 14px; border-radius: 14px; background: var(--surface-1); border: 1px solid var(--hairline-soft); }
.picked strong { display: block; font-weight: 500; }
.picked span { color: var(--ink-muted); font-size: 13.5px; }

/* ---------- calendar ---------- */

.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cal-head h2 { margin: 0; }
.cal-nav { display: flex; gap: 6px; }
.icon-btn {
  width: 36px; height: 36px; display: grid; place-items: center;
  border-radius: 10px; border: 1px solid var(--hairline); background: transparent; color: var(--ink);
  transition: background 0.15s, border-color 0.15s, opacity 0.15s;
}
.icon-btn:hover:not(:disabled) { background: var(--surface-2); }
.icon-btn:disabled { opacity: 0.3; cursor: default; }
.icon-btn svg { width: 16px; height: 16px; }

.weekdays, .days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.weekdays { color: var(--ink-faint); font-size: 12px; text-align: center; margin-bottom: 6px; }
.day {
  position: relative; aspect-ratio: 1; max-height: 54px; width: 100%;
  border: 0; border-radius: 12px; background: transparent; color: var(--ink-faint);
  font-size: 15px; font-variant-numeric: tabular-nums; display: grid; place-items: center;
  transition: background 0.15s, color 0.15s, transform 0.15s var(--ease);
}
.day:disabled { cursor: default; }
.day.open { background: var(--surface-2); color: var(--ink); font-weight: 500; }
.day.open:hover { background: var(--hover); }
.day.open:active { transform: scale(0.96); }
.day.selected, .day.selected:hover { background: var(--ink); color: var(--on-ink); }
.day.today::after { content: ""; position: absolute; bottom: 6px; width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: 0.7; }
.days.loading .day { color: transparent; background: var(--surface-1); animation: pulse 1.2s ease-in-out infinite; }
.day.blank { visibility: hidden; }
@keyframes pulse { 50% { opacity: 0.5; } }

.empty-month { margin-top: 14px; color: var(--ink-muted); font-size: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.link-btn { background: none; border: 0; padding: 0; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--ink-faint); }

.tz { margin-top: 20px; }
.tz label { display: block; color: var(--ink-faint); font-size: 12.5px; margin-bottom: 6px; }
.select-wrap { position: relative; }
.select-wrap svg { position: absolute; right: 12px; top: 50%; width: 14px; height: 14px; transform: translateY(-50%); pointer-events: none; color: var(--ink-muted); }
select {
  width: 100%; appearance: none; -webkit-appearance: none;
  background: var(--surface-1); border: 1px solid var(--hairline); border-radius: 12px;
  padding: 11px 36px 11px 12px; font-size: 14.5px;
}

/* ---------- times ---------- */

.times { border-top: 1px solid var(--hairline); }
@media (min-width: 900px) { .times { border-top: 0; border-left: 1px solid var(--hairline); max-height: 640px; overflow-y: auto; } }
.times h2 { font-family: var(--body); font-weight: 500; font-size: 15px; }
.time-list { display: grid; gap: 8px; }
@media (max-width: 899px) { .time-list { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); } }
.time {
  height: 48px; border-radius: 12px; border: 1px solid var(--hairline); background: transparent;
  font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; display: flex; overflow: hidden; padding: 0;
  transition: border-color 0.15s, background 0.15s;
}
.time:hover { border-color: var(--hairline-strong); background: var(--surface-1); }
.time span { flex: 1; display: grid; place-items: center; transition: flex 0.25s var(--ease); }
.time .go { flex: 0; width: 0; background: var(--ink); color: var(--on-ink); opacity: 0; transition: flex 0.25s var(--ease), opacity 0.2s; }
.time.armed { border-color: var(--ink); }
.time.armed .label { color: var(--ink-muted); }
.time.armed .go { flex: 1; opacity: 1; }

/* ---------- form ---------- */

.form { display: grid; gap: 16px; max-width: 520px; }
.field label { display: block; font-size: 13.5px; color: var(--ink-muted); margin-bottom: 7px; }
.field label .opt { color: var(--ink-faint); }
.field input, .field textarea {
  width: 100%; background: var(--surface-1); border: 1px solid var(--hairline); border-radius: 12px;
  padding: 12px 13px; font-size: 16px; transition: border-color 0.15s, background 0.15s;
}
.field textarea { min-height: 104px; resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus { border-color: var(--field-focus); background: var(--surface-2); }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn {
  height: 50px; padding: 0 22px; border-radius: 12px; border: 1px solid var(--ink); background: var(--ink); color: var(--on-ink);
  font-weight: 600; font-size: 15.5px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform 0.15s var(--ease), opacity 0.15s;
}
.btn { text-decoration: none; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active:not(:disabled) { transform: scale(0.98); }
.btn:disabled { opacity: 0.55; cursor: default; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--hairline); }
.btn.ghost:hover { background: var(--surface-1); }
.btn.danger { background: transparent; border-color: var(--danger-line); color: var(--danger); }
.btn.full { width: 100%; }
.fine { color: var(--ink-faint); font-size: 13px; margin: 0; }
.error { color: var(--danger); font-size: 14px; margin: 0; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- done / manage ---------- */

.narrow { max-width: 560px; width: 100%; margin: 0 auto; }
.done { padding: 30px 22px; }
@media (min-width: 600px) { .done { padding: 40px 38px; } }
.tick { width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--on-ink); display: grid; place-items: center; margin-bottom: 18px; }
.tick svg { width: 22px; height: 22px; }
.tick.off { background: var(--surface-2); color: var(--ink-muted); }
.done h1 { margin-bottom: 8px; }
.done .lead { color: var(--ink-muted); margin: 0 0 22px; }
.rows { border-top: 1px solid var(--hairline); margin: 0 0 22px; }
.rows div { display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--hairline-soft); font-size: 14.5px; }
.rows dt { color: var(--ink-faint); }
.rows dd { margin: 0; overflow-wrap: anywhere; }
.rows a { color: var(--accent); text-decoration: none; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.actions .btn { flex: 1 1 180px; }
.note { background: var(--surface-1); border: 1px solid var(--hairline-soft); border-radius: 14px; padding: 14px 16px; color: var(--ink-muted); font-size: 14px; margin: 0 0 20px; }

/* ---------- list of booking types ---------- */

.intro { text-align: center; margin: 4vh 0 26px; }
.intro img { width: 56px; height: 56px; margin-bottom: 14px; }
.intro p { color: var(--ink-muted); margin: 10px 0 0; }
.types { display: grid; gap: 12px; max-width: 560px; width: 100%; margin: 0 auto; }
.type {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; text-decoration: none;
  padding: 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--hairline);
  transition: border-color 0.15s, background 0.15s, transform 0.15s var(--ease);
}
.type:hover { border-color: var(--hairline-strong); background: var(--surface-1); }
.type:active { transform: scale(0.99); }
.type h2 { margin: 0 0 4px; font-size: 18px; }
.type p { margin: 0; color: var(--ink-muted); font-size: 14px; }
.type svg { width: 18px; height: 18px; color: var(--ink-faint); flex: none; }

.center-msg { text-align: center; color: var(--ink-muted); padding: 60px 20px; }
.center-msg h1 { color: var(--ink); margin-bottom: 10px; }

/* ---------- motion ---------- */

.enter { animation: enter 0.32s var(--ease) both; }
@keyframes enter { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
