/* Hallmark · shape: Bento Grid · genre: editorial · theme: Hedgerow (deal 2/3, seed calm-premium-private-pilates-b18c·4a987bde·2026-10-28·r0) · job: book · draw: 6d5c43
 * hero: Ledge · nav: edge-aligned (swapped from search-led: a one-person studio has nothing to search) · footer: colophon block (swapped from index columns: no sitemap) · imagery: photographs, the studio's own 4 (Abby on the chair, her portrait, two reformer frames from her site) · product sample: the booking and pack counter · signature: the session pack counting down as you book · hedgerow: custom colourway, greige paper, graphite ink and sage from the studio's own logo (the user turned down the green ground)
 * axes: light/high-contrast-serif/chromatic-green · posture: restrained · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R4 V4 · weakest: S, a studio page could be any studio; led with Abby on her own Stability Chair and made the pack counter the thing to try */
/* Hallmark · answered F4 · the booking preview is its own small app inside a slot; its confirm button is that app's one primary */
@import url("./tokens.css");
@import url("./base.css");

:root { --nav-h: 72px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: var(--z-sticky-nav); background: var(--color-paper); border-bottom: var(--rule-hair) solid var(--color-rule); }
.nav__in { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); min-height: var(--nav-h); }
.wordmark { font-family: var(--font-display); font-size: var(--text-xl); text-decoration: none; color: var(--color-ink); white-space: nowrap; }
.nav__links { display: flex; align-items: center; gap: var(--space-xl); margin: 0; padding: 0; list-style: none; font-size: var(--text-sm); font-weight: 500; }
.nav__links a:not(.btn) { color: var(--color-ink-2); text-decoration: none; transition: color var(--dur-short) var(--ease-out); }
.nav__links a:not(.btn):hover { color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-accent); }

/* Controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); min-height: 48px; padding: 0 var(--space-lg); border: 1.5px solid var(--color-accent); border-radius: var(--radius-pill); font: 700 var(--text-sm)/1 var(--font-body); white-space: nowrap; text-decoration: none; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn--primary { background: var(--color-accent); color: var(--color-accent-ink); }
.btn--primary:hover { background: var(--color-accent-2); border-color: var(--color-accent-2); }
.btn--secondary { background: transparent; color: var(--color-accent); }
.btn--secondary:hover { background: color-mix(in oklab, var(--color-accent) 12%, transparent); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn[aria-busy="true"] { cursor: progress; }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); }

/* Hero: Ledge */
.hero { min-height: calc(100dvh - var(--nav-h)); display: grid; grid-template-rows: minmax(0, 1fr) auto; padding-block: var(--space-lg) var(--space-2xl); }
.hero__field { min-height: 300px; height: 100%; max-height: 620px; margin: 0; }
.hero__field > img { object-position: 50% 22%; transform: scale(1.2); outline: var(--rule-hair) solid color-mix(in oklab, var(--color-ink) 8%, transparent); outline-offset: -1px; }
.hero__base { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); row-gap: var(--space-lg); align-items: end; padding-top: var(--space-xl); }
.hero__base h1 { grid-column: 1 / span 7; max-width: 16ch; line-height: 1.04; }
.hero__aside { grid-column: 9 / span 4; display: grid; gap: var(--space-lg); }
.hero__aside .lead { color: var(--color-ink-2); }

/* Sections */
.section { padding-block: var(--section-gap) 0; }
.section--l { padding-block: var(--section-gap-l) 0; }
.head { display: grid; gap: var(--space-md); margin-bottom: var(--space-2xl); }
.head .lead { color: var(--color-ink-2); }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); }
.tile { margin: 0; min-width: 0; }
.tile--photo { min-height: 420px; }
.tile--photo > img { outline: var(--rule-hair) solid color-mix(in oklab, var(--color-ink) 8%, transparent); outline-offset: -1px; }
.tile--lead { grid-column: span 8; }
.tile--portrait { grid-column: span 4; }
.tile--portrait > img { object-position: 50% 18%; }
.tile--text { grid-column: span 4; display: grid; align-content: space-between; gap: var(--space-lg); min-height: 280px; padding: var(--space-xl); background: var(--color-surface); }
.tile--text h3 { font-size: var(--text-2xl); }
.tile--text p { color: var(--color-ink-2); max-width: 36ch; }
.tile--text .tile__fact { font-size: var(--text-sm); color: var(--color-muted); }

/* Booking band (cream) */
.band--cream { margin-top: var(--section-gap); padding-block: var(--section-gap-s); background: var(--color-paper-2); color: var(--color-ink); }
.band--cream .lead { color: var(--color-ink-2); }
.book { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); row-gap: var(--space-2xl); align-items: start; }
.book__intro { grid-column: 1 / span 5; display: grid; gap: var(--space-lg); }
.book__intro .lead { max-width: 34ch; }

.packs { display: grid; gap: 0; margin: var(--space-md) 0 0; padding: 0; border: 0; }
.packs legend { float: left; width: 100%; padding: 0 0 var(--space-sm); border-bottom: 1.5px solid var(--color-accent-deep); font-size: var(--text-sm); font-weight: 500; }
.packs input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.packs label { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: var(--space-md); padding: var(--space-md) var(--space-sm); border-bottom: var(--rule-hair) solid var(--color-rule); cursor: pointer; transition: background-color var(--dur-short) var(--ease-out); }
.packs label:hover { background: color-mix(in oklab, var(--color-accent-soft) 12%, transparent); }
.packs input:checked + label { background: color-mix(in oklab, var(--color-accent-soft) 26%, transparent); box-shadow: inset 3px 0 0 var(--color-accent); }
.packs input:focus-visible + label { outline: 2px solid var(--color-focus); outline-offset: -2px; }
.packs__name { font-weight: 700; }
.packs__each { display: block; font-size: var(--text-sm); color: var(--color-muted); font-weight: 400; }
.packs__price { font-family: var(--font-display); font-size: var(--text-2xl); font-variant-numeric: lining-nums tabular-nums; }
.book__note { font-size: var(--text-sm); color: var(--color-muted); }

.app { grid-column: 7 / span 6; display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; gap: var(--space-xl); padding: var(--space-xl); background: var(--color-surface); }
.app__balance { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: end; gap: var(--space-lg); padding-bottom: var(--space-lg); border-bottom: var(--rule-hair) solid var(--color-rule); }
.app__figure { font-family: var(--font-display); font-size: clamp(4.5rem, 6vw + 1rem, 7rem); line-height: 0.9; color: var(--color-accent-deep); font-variant-numeric: lining-nums tabular-nums; }
.app__label { padding-bottom: var(--space-xs); font-size: var(--text-lead); line-height: 1.35; }
.days { display: flex; gap: var(--space-xs); overflow-x: auto; padding-bottom: var(--space-3xs); scrollbar-width: thin; }
.days button, .times button { min-height: 44px; border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-pill); background: transparent; color: var(--color-ink); font-size: var(--text-sm); font-weight: 500; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out); }
.days button { flex: 0 0 auto; padding: 0 var(--space-md); }
.days button:hover, .times button:hover { border-color: var(--color-accent-deep); }
.days button[aria-selected="true"], .times button[aria-pressed="true"] { background: var(--color-accent); color: var(--color-accent-ink); border-color: var(--color-accent); }
.days button:focus-visible, .times button:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.days button:active, .times button:active { transform: translateY(1px); }
.times button:disabled { opacity: 0.55; cursor: not-allowed; text-decoration: line-through; }
.times { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-xs); }
.app__confirm { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-md); }
.app__status { min-height: 1lh; font-size: var(--text-sm); }
.booked { display: grid; margin: 0; padding: 0; list-style: none; border-top: var(--rule-hair) solid var(--color-rule); }
.booked li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-md); align-items: center; padding: var(--space-sm) 0; border-bottom: var(--rule-hair) solid var(--color-rule); font-size: var(--text-sm); }
.booked button { min-height: 44px; padding: 0 var(--space-sm); border: 0; background: transparent; color: var(--color-ink); font-size: var(--text-sm); text-decoration: underline; text-decoration-color: var(--color-accent-deep); text-underline-offset: 0.16em; cursor: pointer; }
.booked button:hover { text-decoration-thickness: 2px; }
.booked button:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.reminder { display: grid; gap: var(--space-xs); padding-left: var(--space-md); border-left: 1.5px solid var(--color-accent-deep); }
.reminder__when { font-size: var(--text-sm); font-weight: 500; color: var(--color-muted); }
.reminder__text { max-width: 46ch; }

/* Where */
.where { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); row-gap: var(--space-2xl); }
.where .head { grid-column: 1 / span 4; margin: 0; align-content: start; }
.facts { grid-column: 5 / span 8; margin: 0; border-top: 1.5px solid var(--color-accent); }
.facts > div { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gap-columns); padding: var(--space-lg) 0; border-bottom: var(--rule-hair) solid var(--color-rule); }
.facts dt { font-size: var(--text-sm); font-weight: 500; color: var(--color-muted); padding-top: var(--space-2xs); }
.facts dd { margin: 0; font-family: var(--font-display); font-size: var(--text-xl); line-height: 1.3; }
.facts dd a { text-decoration-color: var(--color-accent); }
.facts dd a:hover { text-decoration-thickness: 2px; }
.fill { padding: 0 0.25em; border: 1px dashed color-mix(in oklch, var(--color-muted) 70%, transparent); border-radius: 3px; color: var(--color-muted); -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* Close */
.close { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); row-gap: var(--space-xl); align-items: center; }
.close__photo { grid-column: 1 / span 7; aspect-ratio: 4 / 3; min-height: 440px; margin: 0; }
.close__photo > img { object-position: 50% 45%; outline: var(--rule-hair) solid color-mix(in oklab, var(--color-ink) 8%, transparent); outline-offset: -1px; }
.close__text { grid-column: 9 / span 4; display: grid; gap: var(--space-lg); }
.close__text .lead { color: var(--color-ink-2); }

/* Footer: colophon block */
.foot { margin-top: var(--section-gap); padding-block: var(--space-3xl) calc(var(--space-3xl) + var(--space-2xl)); background: var(--color-paper-2); border-top: var(--rule-hair) solid var(--color-rule); }
.foot__in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); row-gap: var(--space-xl); }
.foot .wordmark { grid-column: 1 / span 4; font-size: var(--text-2xl); }
.foot__text { grid-column: 5 / span 5; display: grid; gap: var(--space-md); color: var(--color-ink-2); }
.foot__links { grid-column: 10 / span 3; display: grid; gap: var(--space-xs); margin: 0; padding: 0; list-style: none; align-content: start; }
.foot__links a { color: var(--color-ink); text-decoration-color: var(--color-accent); }
.foot__links a:hover { text-decoration-thickness: 2px; }
.foot__legal { font-size: var(--text-sm); color: var(--color-muted); }

/* Sticky booking bar */
.bar { position: fixed; inset: auto 0 0 0; z-index: var(--z-sticky); background: var(--color-surface); border-top: var(--rule-hair) solid var(--color-rule); }
.bar__in { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); min-height: 72px; }
.bar p { font-size: var(--text-sm); color: var(--color-ink-2); }
.bar strong { font-family: var(--font-display); font-weight: 400; font-size: var(--text-lg); color: var(--color-ink); }
.js .bar { opacity: 0; transform: translateY(100%); pointer-events: none; transition: opacity var(--dur-short) var(--ease-out), transform var(--dur-short) var(--ease-out); }
.js .bar.is-on { opacity: 1; transform: none; pointer-events: auto; }
@media (prefers-reduced-motion: reduce) { .js .bar { transition: opacity var(--dur-micro) linear; transform: none; } }

.skip { position: absolute; left: var(--space-md); top: calc(-1 * var(--space-3xl)); z-index: var(--z-toast); padding: var(--space-xs) var(--space-md); background: var(--color-ink); color: var(--color-paper); }
.skip:focus-visible { top: var(--space-md); }

/* Under 60rem */
@media (max-width: 60rem) {
  .nav__links li:not(:last-child) { display: none; }
  .hero { min-height: 0; padding-bottom: var(--space-2xl); }
  .hero__field { height: 52svh; max-height: 480px; }
  .hero__field > img { object-position: 24% 40%; transform-origin: 24% 40%; }
  .hero__base h1, .hero__aside { grid-column: 1 / -1; }
  .tile--lead, .tile--portrait, .tile--text { grid-column: 1 / -1; }
  .tile--portrait { min-height: 480px; }
  .book__intro, .app { grid-column: 1 / -1; }
  .where .head, .facts { grid-column: 1 / -1; }
  .close__photo, .close__text { grid-column: 1 / -1; }
  .close__photo { min-height: 0; }
  .foot .wordmark, .foot__text, .foot__links { grid-column: 1 / -1; }
}
@media (max-width: 40rem) {
  .app { padding: var(--space-lg); }
  .times { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts > div { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xs); }
  .bar p { display: none; }
  .bar__in { justify-content: flex-end; }
}
