:root {
  --cream: #f4f1ea;
  --sand: #d6caba;
  --taupe: #7f7262;
  --brown: #553f36;
  --ink: #2b2420;
  --white: #fffdfa;
  --display: "Aboreto", "Cormorant Garamond", Georgia, serif;
  --text: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --tabbar: 64px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 300 16px/1.6 var(--text);
  padding-bottom: calc(var(--tabbar) + env(safe-area-inset-bottom));
}
h1, h2, h3 { font-family: var(--display); font-weight: 400; color: var(--brown); line-height: 1.15; margin: 0; }
h1 { font-size: 2.2rem; margin-bottom: 1rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 0.8rem; }
a { color: inherit; }
img { max-width: 100%; }

.eyebrow, .link, .btn, nav a, .pill, .card-time, .sub, .per, .stats span, .bar span {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.68rem;
  font-weight: 500;
}
.eyebrow { color: var(--taupe); margin-bottom: 0.4rem; }
.link { color: var(--taupe); text-underline-offset: 4px; }
.fine, .demo-note { font-size: 0.8rem; color: var(--taupe); }
.demo-note { border: 1px dashed var(--sand); padding: 0.6rem 0.8rem; }
.lead { max-width: 46rem; }
.empty, .loading { color: var(--taupe); padding: 1rem 0; }
.loading { text-align: center; padding: 30vh 1rem; }

/* Header and navigation: a bar at the top on wide screens, tabs at the bottom on phones. */
.top {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: center;
  /* No backdrop-filter here: it would trap the fixed tab bar inside the header. */
  background: var(--white);
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--sand);
}
.brand { font-family: var(--display); font-size: 1.35rem; letter-spacing: 0.08em; text-decoration: none; color: var(--ink); }
.brand small { font-family: var(--text); font-size: 0.55rem; letter-spacing: 0.3em; text-transform: uppercase; vertical-align: middle; }
nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 6;
  display: flex;
  background: var(--white);
  border-top: 1px solid var(--sand);
  padding-bottom: env(safe-area-inset-bottom);
}
nav a {
  flex: 1; text-align: center; text-decoration: none;
  height: var(--tabbar); line-height: var(--tabbar);
  color: var(--taupe); font-size: 0.6rem; letter-spacing: 0.1em;
}
nav a[aria-current] { color: var(--brown); box-shadow: inset 0 2px 0 var(--brown); }

main { outline: none; }
section, .detail-body { padding: 2rem 1.25rem; max-width: 1120px; margin: 0 auto; }
.row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1rem; gap: 1rem; }
.sub { color: var(--taupe); font-family: var(--text); margin: 2rem 0 0.8rem; }

.btn {
  display: inline-block; cursor: pointer; text-decoration: none; text-align: center;
  background: var(--brown); color: var(--white);
  border: 1px solid var(--brown); border-radius: 0;
  padding: 0.95rem 1.6rem; font-family: var(--text);
}
.btn.light { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn.ghost { background: transparent; color: var(--brown); }
.btn.wide { width: 100%; margin-top: 1rem; }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--brown); outline-offset: 3px; }

.hero {
  min-height: 78vh; max-width: none; padding: 0;
  display: flex; align-items: flex-end;
  background: var(--taupe) center 20% / cover;
}
.hero-text {
  width: 100%; padding: 6rem 1.25rem 2.5rem; color: var(--white);
  background: linear-gradient(transparent, rgb(43 36 32 / 0.72));
}
.hero h1 { color: var(--white); font-size: clamp(2.6rem, 9vw, 5rem); }
.hero .eyebrow { color: var(--sand); }
.hero p { max-width: 28rem; }

.band { background: var(--taupe); color: var(--white); max-width: none; text-align: center; padding: 3rem 1.25rem; }
.band h2 { color: var(--white); font-size: 1.9rem; margin-bottom: 0.6rem; }
.band .eyebrow { color: var(--sand); }
.band .btn { background: var(--white); color: var(--ink); border-color: var(--white); margin-top: 0.6rem; }
.band.slim { padding: 1.2rem; margin-bottom: 1rem; }
.band.slim p:last-child { margin: 0; }

.quote { text-align: center; max-width: 44rem; }
.quote p:first-child { font-family: var(--display); font-size: 1.25rem; color: var(--brown); line-height: 1.5; }

.grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.grid.four, .grid.people { grid-template-columns: repeat(2, 1fr); }
.rail { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -1.25rem; padding: 0 1.25rem 0.5rem; scrollbar-width: none; }
.rail .card { flex: 0 0 72%; max-width: 300px; scroll-snap-align: start; }

.card { display: block; text-decoration: none; background: var(--white); }
.card-photo {
  aspect-ratio: 4 / 5; position: relative;
  background: var(--sand) center / cover;
  display: flex; align-items: flex-end; justify-content: space-between; padding: 0.8rem;
}
.grid .card-photo { aspect-ratio: 16 / 10; }
.card-photo::before { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgb(43 36 32 / 0.6)); }
.card-time { position: relative; color: var(--white); font-size: 0.8rem; }
.card-body { padding: 0.9rem 1rem 1.1rem; }
.meta { display: flex; align-items: center; gap: 0.5rem; margin: 0.5rem 0 0; font-size: 0.85rem; color: var(--taupe); }

.pill { position: relative; display: inline-block; background: var(--white); color: var(--brown); padding: 0.3rem 0.6rem; font-size: 0.58rem; white-space: nowrap; }
.pill.warm { background: var(--brown); color: var(--white); }
.pill.on { background: var(--ink); color: var(--white); }
.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tags .pill { border: 1px solid var(--sand); background: transparent; }

.avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex: none; }
.avatar.big { width: 56px; height: 56px; }
.mono { display: inline-grid; place-items: center; background: var(--sand); color: var(--brown); font-family: var(--display); font-size: 0.7rem; }
.avatar.big.mono { font-size: 1.2rem; }

.tile-photo, .coach-photo { aspect-ratio: 4 / 5; background: var(--sand) center top / cover; margin-bottom: 0.9rem; }
.coach { text-decoration: none; }
.coach-photo.mono { display: grid; font-size: 3rem; }
.coach h3 { margin-bottom: 0.3rem; }

.detail-photo { position: relative; height: 46vh; background: var(--sand) center / cover; }
.detail-photo.tall { height: 62vh; background-position: center top; }
.back {
  position: absolute; top: 1rem; left: 1rem; width: 42px; height: 42px;
  display: grid; place-items: center; text-decoration: none;
  background: var(--white); border-radius: 50%; font-size: 1.1rem;
}
.detail-body { max-width: 720px; }
.facts { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; color: var(--taupe); }
.facts .pill { border: 1px solid var(--sand); }
.coach-line { display: flex; align-items: center; gap: 0.9rem; text-decoration: none; padding: 1rem 0; margin: 1rem 0; border-block: 1px solid var(--sand); }
.coach-line span { display: flex; flex-direction: column; }
.coach-line small { color: var(--taupe); font-size: 0.8rem; }
.coach-line .chev { margin-left: auto; color: var(--taupe); font-size: 1.4rem; }
.notes { padding-left: 1.1rem; color: var(--taupe); font-size: 0.9rem; }
.confirm { background: var(--white); padding: 1.4rem; margin-top: 1rem; }
.confirm .btn { margin: 0.3rem 0.3rem 0.8rem 0; }

.days { display: flex; gap: 0.5rem; overflow-x: auto; margin: 0 -1.25rem; padding: 0 1.25rem 0.4rem; scrollbar-width: none; }
.days button {
  flex: 0 0 58px; padding: 0.7rem 0; cursor: pointer;
  background: var(--white); color: var(--taupe); border: 1px solid var(--sand); font-family: var(--text);
  display: flex; flex-direction: column; align-items: center; gap: 0.2rem;
}
.days span { font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; }
.days b { font: 400 1.2rem var(--display); }
.days [aria-selected="true"] { background: var(--brown); border-color: var(--brown); color: var(--white); }

.price { background: var(--white); padding: 1.1rem; }
.amount { font: 400 1.3rem var(--display); color: var(--brown); margin: 0.4rem 0 0; }
.per { color: var(--taupe); font-size: 0.58rem; }

.member { display: flex; align-items: center; gap: 1rem; margin: 1.2rem 0; }
.member h1 { margin: 0; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; text-align: center; }
.stats div { background: var(--white); padding: 1rem 0.4rem; }
.stats b { display: block; font: 400 1.9rem var(--display); color: var(--brown); }
.stats span { color: var(--taupe); font-size: 0.55rem; }
.pass { background: var(--white); padding: 1.2rem; }
.meter { height: 6px; background: var(--sand); margin: 0.6rem 0; }
.meter i { display: block; height: 100%; background: var(--brown); }
.bar { display: grid; grid-template-columns: 1fr auto; gap: 0 0.8rem; align-items: center; background: var(--white); padding: 0.8rem 1rem; margin-bottom: 0.4rem; }
.bar .meter { grid-column: 1; margin: 0.4rem 0; }
.bar b { grid-row: 1 / span 2; grid-column: 2; font: 400 1.4rem var(--display); color: var(--brown); }
.bar small { grid-column: 1 / -1; color: var(--taupe); font-size: 0.75rem; }

footer { text-align: center; color: var(--taupe); font-size: 0.75rem; padding: 2rem 1.25rem; }

@media (min-width: 720px) {
  .grid.two { grid-template-columns: repeat(2, 1fr); }
  .grid.three { grid-template-columns: repeat(3, 1fr); }
  .grid.four { grid-template-columns: repeat(4, 1fr); }
  .rail .card { flex-basis: 260px; }
}
@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .top { justify-content: space-between; padding: 1rem 2.5rem; }
  nav { position: static; border: 0; background: none; gap: 2rem; padding: 0; }
  nav a { flex: none; height: auto; line-height: 2; font-size: 0.68rem; }
  nav a[aria-current] { box-shadow: inset 0 -1px 0 var(--brown); }
  .hero-text { padding: 8rem 2.5rem 4rem; }
  .detail { display: grid; grid-template-columns: 1fr 1fr; max-width: 1120px; margin: 2rem auto; }
  .detail-photo, .detail-photo.tall { height: auto; min-height: 70vh; }
}
