/* Customer colorsets from assets/brand/brand.md. Light is appearance any. */

:root {
  --accent-color: #5bbbff;
  --background: #ffffff;
  --booked-fill: #d5dce3;
  --booked-ink: #3e4c58;
  --brand-accent: #f5923f;
  --canvas: #f3f7fb;
  --deep: #3fa9f5;
  --error: #9f1c1c;
  --field-fill: #f7fbfe;
  --free-fill: #d6eeff;
  --hairline: #d3e4f2;
  --ink: #0e2433;
  --light: #7cc8ff;
  --pale: #9dd6ff;
  --primary: #5bbbff;
  --secondary-ink: #1a4e76;
  --surface: #ffffff;
  --surface-raised: #e7f3fc;
  --yours-fill: #3fa9f5;
  --on-bright: #0e2433;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent-color: #5bbbff;
    --background: #0b1c28;
    --booked-fill: #3a4654;
    --booked-ink: #d5dce3;
    --brand-accent: #f5923f;
    --canvas: #07141e;
    --deep: #9dd6ff;
    --error: #ffb4ab;
    --field-fill: #0c1a26;
    --free-fill: #1a5278;
    --hairline: #2a4660;
    --ink: #f4f8fc;
    --light: #7cc8ff;
    --pale: #163044;
    --primary: #5bbbff;
    --secondary-ink: #b9dfff;
    --surface: #12283a;
    --surface-raised: #1a3c54;
    --yours-fill: #8ec8ff;
    --on-bright: #0e2433;
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}

html {
  background: var(--canvas);
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
}

:focus-visible {
  outline: 3px solid var(--brand-accent);
  outline-offset: 2px;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  flex-wrap: wrap;
  padding: 0.75rem 1.25rem;
  background: var(--surface);
  border-bottom: 4px solid var(--brand-accent);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.mark {
  display: block;
  width: 2.75rem;
  height: auto;
}

.langs {
  display: flex;
  gap: 0.35rem;
}

.langs button {
  appearance: none;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0 0.7rem;
  border: 2px solid var(--deep);
  border-radius: 999px;
  background: var(--surface);
  color: var(--secondary-ink);
  font: 700 0.85rem/1 inherit;
  cursor: pointer;
}

.langs button[aria-pressed="true"] {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--on-bright);
}

.hero-wrap {
  max-width: 56rem;
  margin: 0 auto;
  padding: 1rem 1.25rem 0;
}

.hero {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 0.75rem;
  background: var(--pale);
}

.wrap {
  max-width: 40rem;
  margin: 0 auto;
  padding: 1.75rem 1.25rem 2.5rem;
}

h1 {
  margin: 0 0 0.75rem;
  color: var(--ink);
  font-size: clamp(2rem, 5vw, 3.15rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.lede {
  margin: 0 0 1.5rem;
  font-size: 1.125rem;
}

.points {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
}

.points li {
  margin: 0;
  padding: 1rem 0 1rem 0.9rem;
  border-top: 1px solid var(--hairline);
  border-left: 3px solid var(--brand-accent);
}

.points li:last-child {
  border-bottom: 1px solid var(--hairline);
}

.points h2 {
  margin: 0 0 0.3rem;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.points p {
  margin: 0;
}

.store {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 3.25rem;
  padding: 0.45rem 0.95rem 0.45rem 0.75rem;
  border-radius: 0.6rem;
  background: var(--ink);
  color: var(--canvas);
  text-decoration: none;
}

.apple {
  display: block;
  width: 1.15rem;
  height: 1.45rem;
  flex: 0 0 auto;
}

.store small {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.2;
}

.store strong {
  display: block;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.quiet {
  margin: 1.25rem 0 0;
  color: var(--secondary-ink);
  font-size: 0.95rem;
}

.actions {
  margin: 0 0 1.75rem;
}

.cta,
.map {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.55rem 1rem;
  border-radius: 0.6rem;
  background: var(--brand-accent);
  color: var(--on-bright);
  font-weight: 700;
  text-decoration: none;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: inherit;
  text-decoration: none;
}

.back {
  margin: 0 0 0.75rem;
}

.back a {
  color: var(--secondary-ink);
  font-weight: 700;
  text-decoration: none;
}

.status {
  margin: 0 0 1rem;
}

.status-error {
  color: var(--error);
}

.retry {
  appearance: none;
  min-height: 2.75rem;
  margin-left: 0.35rem;
  padding: 0.4rem 0.85rem;
  border: 2px solid var(--deep);
  border-radius: 999px;
  background: var(--surface);
  color: var(--secondary-ink);
  font: 700 0.9rem/1 inherit;
  cursor: pointer;
}

.club-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.club {
  margin: 0;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--brand-accent);
  border-radius: 0.75rem;
}

.club-logo {
  display: block;
  width: auto;
  max-width: 100%;
  height: 4.5rem;
  padding: 0.35rem;
  object-fit: contain;
  background: #fff;
  border-radius: 0.5rem;
}

.club h2 {
  margin: 0.75rem 0 0.25rem;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.club-id,
.club-address,
.club-days,
.club-geo {
  margin: 0.2rem 0;
}

.club-id,
.club-geo {
  color: var(--secondary-ink);
  font-size: 0.9rem;
}

.map {
  margin-top: 0.75rem;
}

.photos {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.9rem;
  overflow-x: auto;
}

.photos img {
  width: 7.5rem;
  height: 7.5rem;
  flex: 0 0 auto;
  object-fit: cover;
  border-radius: 0.5rem;
  background: var(--pale);
}

.times {
  margin-top: 0.9rem;
}

html[data-book-club] #book-wrap {
  max-width: 56rem;
}

html[data-book-club] #club-browser {
  display: none;
}

#slot-browser {
  display: none;
}

html[data-book-club] #slot-browser {
  display: block;
}

.month-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
}

.month-bar h2 {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.month-nav {
  appearance: none;
  min-width: 2.75rem;
  min-height: 2.75rem;
  border: 2px solid var(--deep);
  border-radius: 999px;
  background: var(--surface);
  color: var(--secondary-ink);
  font: 700 1.2rem/1 inherit;
  cursor: pointer;
}

.month-nav:disabled {
  opacity: 0.4;
  cursor: default;
}

.calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(2.4rem, 1fr));
  gap: 0.25rem;
}

.dow {
  text-align: center;
  color: var(--secondary-ink);
  font-size: 0.75rem;
  font-weight: 700;
}

.day {
  appearance: none;
  min-height: 2.75rem;
  border: 1px solid var(--hairline);
  border-radius: 0.5rem;
  background: var(--surface);
  color: var(--ink);
  font: 700 0.95rem/1 inherit;
  cursor: pointer;
}

.day.today:not([aria-pressed="true"]) {
  border-color: var(--brand-accent);
}

.day[aria-pressed="true"] {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--on-bright);
}

.day:disabled {
  background: transparent;
  color: var(--booked-ink);
  cursor: default;
  opacity: 0.55;
}

.grid-scroll {
  margin-top: 1.25rem;
  overflow-x: auto;
}

.slot-table {
  border-collapse: separate;
  border-spacing: 0.35rem;
  width: max-content;
  min-width: 100%;
}

.slot-table th {
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
}

.slot-table .time {
  position: sticky;
  left: 0;
  padding-right: 0.4rem;
  background: var(--canvas);
  color: var(--secondary-ink);
  text-align: left;
  white-space: nowrap;
}

.slot-cell {
  appearance: none;
  display: block;
  width: 100%;
  min-width: 5.75rem;
  min-height: 2.75rem;
  padding: 0.35rem 0.45rem;
  border: 1px solid var(--hairline);
  border-radius: 0.5rem;
  background: var(--free-fill);
  color: var(--ink);
  font: 700 0.85rem/1.2 inherit;
  cursor: pointer;
}

.slot-cell[aria-pressed="true"] {
  background: var(--yours-fill);
  border-color: var(--deep);
  color: var(--on-bright);
}

.slot-cell:disabled {
  background: var(--booked-fill);
  color: var(--booked-ink);
  cursor: default;
}

.price-summary {
  margin-top: 1.25rem;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--brand-accent);
  border-radius: 0.75rem;
}

.price-summary h2 {
  margin: 0;
  font-size: 1rem;
}

.price-total {
  margin: 0.2rem 0;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.price-lines {
  margin: 0.4rem 0;
  padding: 0;
  list-style: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.foot {
  padding: 0 1.25rem 2.5rem;
  color: var(--secondary-ink);
  font-size: 0.9rem;
  text-align: center;
}

.wordmark {
  display: block;
  width: min(100%, 16rem);
  height: auto;
  margin: 0 auto 0.75rem;
}

.foot a {
  color: var(--secondary-ink);
}

@media (max-width: 24rem) {
  .store strong {
    font-size: 1.1rem;
  }
}
