/* Morrow: a preview gym site for Observatory. Gym-floor black, chalk, the lime from its billboard, Anton for the voice. */
:root { --ink: #0B0B0C; --steel: #18191C; --chalk: #F2F2EE; --lime: #D6FF3D; --grey: #8B8D92;
  --display: Anton, Impact, sans-serif; --sans: Geist, system-ui, sans-serif; --mono: "Geist Mono", ui-monospace, monospace;
  --gut: clamp(20px, 5vw, 72px); --out: cubic-bezier(.16, 1, .3, 1); }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--chalk); font: 400 17px/1.55 var(--sans); overflow-x: clip; }
h1, h2, h3, p, dl, dd, ul, ol { margin: 0; padding: 0; }
h1, h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; line-height: .92; letter-spacing: .005em; text-wrap: balance; }
h2 { font-size: clamp(44px, 6vw, 96px); }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2.5px solid var(--lime); outline-offset: 3px; border-radius: 4px; }

.bar { padding: 6px var(--gut); background: var(--lime); color: var(--ink); font-size: 12.5px; font-weight: 600; letter-spacing: .01em; text-align: center; }
.bar a { margin-left: 10px; font-weight: 700; text-underline-offset: 3px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border: 0; border-radius: 6px; font-size: 16px; font-weight: 700; text-decoration: none; transition: transform .3s var(--out), filter .25s; }
.btn--lime { background: var(--lime); color: var(--ink); }
.btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }

/* ---- Nav ---- */
.nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); height: 68px; padding: 0 var(--gut); background: rgb(11 11 12 / .86);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid rgb(242 242 238 / .08); }
.nav__logo { font: 400 30px/1 var(--display); text-transform: uppercase; letter-spacing: .02em; text-decoration: none; }
.nav nav { display: flex; gap: clamp(16px, 2.4vw, 34px); margin-left: auto; font-size: 15px; font-weight: 600; }
.nav nav a { text-decoration: none; color: rgb(242 242 238 / .8); } .nav nav a:hover { color: var(--chalk); }
.nav__book { min-height: 42px; padding: 0 18px; font-size: 14.5px; }

/* ---- Hero: the line, the strike, and the clock ---- */
.hero { position: relative; display: grid; align-items: end; min-height: calc(100svh - 106px); padding: var(--gut); overflow: clip; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgb(11 11 12 / .85) 18%, rgb(11 11 12 / .1) 60%), linear-gradient(0deg, rgb(11 11 12 / .7), transparent 40%); }
.hero__in { position: relative; z-index: 2; display: grid; justify-items: start; gap: 28px; }
.hero h1 { font-size: clamp(76px, 13vw, 220px); line-height: .84; }
.hero h1 span { display: block; }
.hero__strike { position: relative; width: max-content; }
.hero__strike s { text-decoration: none; }
/* The lime bar drawn through Monday: the page's one entrance. */
.hero__strike::after { content: ""; position: absolute; left: -2%; right: -3%; top: 47%; height: .1em; background: var(--lime); rotate: -3deg; transform-origin: left; }
.js .hero__strike::after { animation: strike .7s cubic-bezier(.7, 0, .2, 1) .5s both; }
@keyframes strike { from { scale: 0 1; } }
.hero__in > p { max-width: 36ch; font-size: clamp(18px, 1.5vw, 21px); color: rgb(242 242 238 / .86); }
.clock { display: grid; gap: 4px; padding: 18px 24px 16px; border-radius: 10px; background: #000; box-shadow: inset 0 0 0 1px rgb(214 255 61 / .25), 0 20px 50px -20px rgb(0 0 0 / .8); }
.clock__at { font: 600 13px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--grey); }
.clock__at b { color: var(--chalk); }
.clock__in { font: 600 clamp(52px, 6.4vw, 96px)/1 var(--mono); letter-spacing: -.02em; color: var(--lime); font-variant-numeric: tabular-nums; text-shadow: 0 0 24px rgb(214 255 61 / .35); }

/* ---- The line ---- */
.say { padding: clamp(80px, 14vh, 160px) var(--gut); background: var(--chalk); color: var(--ink); }
.say p { font: 400 clamp(46px, 7.4vw, 124px)/.92 var(--display); text-transform: uppercase; max-width: 15ch; }
.say p + p { margin-top: .25em; color: #9A9B9E; }

/* ---- Today's board ---- */
.today { padding: clamp(80px, 12vh, 140px) var(--gut); }
.head { display: flex; align-items: end; justify-content: space-between; gap: 20px 48px; flex-wrap: wrap; margin-bottom: 40px; }
.head p { max-width: 40ch; color: rgb(242 242 238 / .72); font-size: 18px; }
.board { list-style: none; border-top: 1px solid rgb(242 242 238 / .16); }
.slot { display: grid; grid-template-columns: 9ch 1fr 1fr auto; align-items: center; gap: 20px; padding: 22px 4px; border-bottom: 1px solid rgb(242 242 238 / .16); transition: background .3s; }
.slot__t { font: 600 clamp(26px, 2.4vw, 34px)/1 var(--mono); font-variant-numeric: tabular-nums; }
.slot__n { font: 400 clamp(28px, 2.6vw, 40px)/1 var(--display); text-transform: uppercase; }
.slot__c { color: rgb(242 242 238 / .7); }
.slot__s { justify-self: end; font-weight: 600; }
.slot__s button { min-height: 42px; padding: 0 16px; border: 1.5px solid rgb(242 242 238 / .5); border-radius: 6px; background: transparent; font-weight: 700; font-size: 14.5px; }
.slot__s button:hover { border-color: var(--chalk); }
.slot.is-gone { color: rgb(242 242 238 / .32); }
.slot.is-gone .slot__n { text-decoration: line-through; text-decoration-thickness: 3px; }
.slot.is-gone .slot__c { color: inherit; }
.slot.is-next { background: var(--lime); color: var(--ink); padding-left: 16px; padding-right: 16px; border-radius: 8px; border-bottom-color: transparent; }
.slot.is-next .slot__c { color: rgb(11 11 12 / .7); }
.slot.is-next .slot__s button { border-color: var(--ink); background: var(--ink); color: var(--lime); }
.slot__soon { font: 600 15px/1 var(--mono); font-variant-numeric: tabular-nums; margin-right: 14px; }
.board__tomorrow { margin-top: 18px; color: var(--grey); font-size: 15px; }

/* ---- Classes ---- */
.classes { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; padding: clamp(60px, 10vh, 120px) var(--gut); background: var(--steel); }
.classes dl { margin-top: 36px; }
.classes dl div { padding: 18px 0; border-top: 1px solid rgb(242 242 238 / .14); }
.classes dt { font: 400 34px/1 var(--display); text-transform: uppercase; color: var(--lime); }
.classes dd { margin-top: 8px; max-width: 44ch; color: rgb(242 242 238 / .8); }
.classes__img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 36% 50%; border-radius: 10px; }

/* ---- How a class feels ---- */
.calm { position: relative; display: grid; align-items: center; min-height: min(90vh, 820px); padding: var(--gut); overflow: clip; }
.calm__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 82%; }
.calm::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgb(11 11 12 / .5); }
.calm__in { position: relative; z-index: 2; }
.calm p { font: 400 clamp(40px, 6vw, 100px)/.95 var(--display); text-transform: uppercase; }
.calm p:last-child { margin-top: .3em; color: var(--lime); max-width: 16ch; }

/* ---- Coaches ---- */
.coaches { padding: clamp(80px, 12vh, 140px) var(--gut); }
.coaches ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; list-style: none; }
.coaches li { display: grid; align-content: start; gap: 6px; padding: 0 0 26px; border-radius: 10px; background: var(--steel); overflow: clip; }
.coaches li img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 14px; transition: scale .8s var(--out); }
.coaches li:hover img { scale: 1.04; }
.coaches li > * { margin-inline: 26px; } .coaches li > img { margin-inline: 0; }
.coaches em { font: 600 12.5px/1 var(--mono); font-style: normal; letter-spacing: .08em; text-transform: uppercase; color: var(--lime); }
.coaches b { margin-top: 6px; font: 400 clamp(30px, 2.6vw, 40px)/1 var(--display); text-transform: uppercase; letter-spacing: .01em; }
.coaches span { color: rgb(242 242 238 / .72); }

/* ---- Prices ---- */
.prices { padding: 0 var(--gut) clamp(80px, 12vh, 140px); }
.prices__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.price { padding: 30px; border: 1.5px solid rgb(242 242 238 / .18); border-radius: 10px; }
.price h3 { font-size: 18px; font-weight: 600; }
.price__n { margin: 14px 0 6px; font: 400 clamp(54px, 5vw, 80px)/1 var(--display); }
.price__n small { margin-left: 10px; font: 500 16px/1 var(--sans); color: var(--grey); }
.price > p:last-child { color: rgb(242 242 238 / .72); }
.price--free { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.price--free > p:last-child { color: rgb(11 11 12 / .72); }

/* ---- The last word ---- */
.last { position: relative; display: grid; place-items: center; min-height: 70vh; padding: var(--gut); text-align: center; overflow: clip; }
.last__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.last::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgb(11 11 12 / .6); }
.last__in { position: relative; z-index: 2; display: grid; justify-items: center; gap: 30px; }
.last h2 { font-size: clamp(56px, 9vw, 150px); }

.foot { display: grid; gap: 10px; padding: 56px var(--gut) 64px; border-top: 1px solid rgb(242 242 238 / .1); }
.foot__note { color: var(--grey); font-size: 14.5px; }

/* ---- The booking sheet ---- */
.sheet { width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 40px); padding: 30px; border: 0; border-radius: 14px; background: var(--steel); color: var(--chalk); }
.sheet[open] { animation: up .5s var(--out); } @keyframes up { from { translate: 0 30px; opacity: 0; } }
.sheet::backdrop { background: rgb(0 0 0 / .6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.sheet header { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.sheet h2 { font-size: 44px; }
.x { padding: 8px 14px; border: 1.5px solid rgb(242 242 238 / .4); border-radius: 6px; background: transparent; font-weight: 600; }
.slots { display: grid; gap: 8px; margin: 24px 0; }
.slots button { display: grid; grid-template-columns: auto 7ch 1fr; gap: 16px; align-items: center; min-height: 56px; padding: 0 18px; border: 1.5px solid rgb(242 242 238 / .18); border-radius: 8px; background: transparent; text-align: left; }
.slots button small { color: var(--grey); font-weight: 600; font-size: 13px; }
.slots button span { font: 600 18px/1 var(--mono); }
.slots button b { font: 400 22px/1 var(--display); text-transform: uppercase; }
.slots button[aria-checked="true"] { border-color: var(--lime); background: rgb(214 255 61 / .1); }
.sheet .btn { width: 100%; }
.sheet__done p { margin-top: 14px; color: rgb(242 242 238 / .82); }
.sheet__acts { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 26px; }
.sheet__acts .btn { width: auto; }

/* ---- Phones ---- */
@media (max-width: 860px) {
  .nav nav { display: none; }
  .nav__book { margin-left: auto; }
  .hero { min-height: calc(100svh - 120px); }
  .hero::before { background: linear-gradient(0deg, rgb(11 11 12 / .92) 32%, rgb(11 11 12 / 0) 72%); }
  .hero__img { object-position: 50% 0; }
  .slot { grid-template-columns: 7ch 1fr auto; gap: 6px 14px; }
  .slot__c { grid-column: 2; grid-row: 2; font-size: 14.5px; }
  .slot__s { grid-column: 3; grid-row: 1 / span 2; }
  .slot__soon { display: block; margin: 0 0 6px; text-align: right; }
  .classes { grid-template-columns: 1fr; }
  .classes__img { aspect-ratio: 4 / 3.4; }
  .coaches ul, .prices__row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
