/* SeniorBarber
   Black and white, like the shop's own mark. Two themes: dark (default) and light.
   The only colour on the page is the model and the metal of each tariff. */

:root {
  color-scheme: dark;
  --bg: #000;
  --bg-alt: #0c0c0c;
  --surface: #171717;          /* cards, fields, tiles */
  --surface-2: #232323;
  --text: #fff;
  --text-soft: rgba(255, 255, 255, 0.7);
  --text-faint: rgba(255, 255, 255, 0.45);
  --rule: rgba(255, 255, 255, 0.15);
  --rule-strong: rgba(255, 255, 255, 0.36);
  --solid: #fff;               /* filled buttons and chosen tiles */
  --on-solid: #000;
  --solid-hover: #d6d6d6;
  --hover: rgba(255, 255, 255, 0.1);
  --danger: #ff7c6e;
  --stage-in: #2c2c2c;         /* the light behind the model */
  --stage-mid: #101010;
  --stage-out: #000;

  --metal-entry: linear-gradient(165deg, #8a94a6, #3b4558);
  --metal-bronze: linear-gradient(165deg, #e6a871, #96552a);
  --metal-silver: linear-gradient(165deg, #f4f6f9, #8f9bab);
  --metal-gold: linear-gradient(165deg, #f8dc82, #bb8414);
  --metal-platinum: linear-gradient(165deg, #ffffff, #aebccd 55%, #e9eef4);

  --display: "Sofia Sans Extra Condensed", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --body: "Sofia Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: clamp(1.25rem, 4.5vw, 4rem);
  --r-tile: 10px;   /* things you choose */
  --r-card: 22px;   /* things that hold a result */
  --bar-h: 64px;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #fff;
  --bg-alt: #f3f3f3;
  --surface: #fff;
  --surface-2: #ececec;
  --text: #000;
  --text-soft: rgba(0, 0, 0, 0.68);
  --text-faint: rgba(0, 0, 0, 0.45);
  --rule: rgba(0, 0, 0, 0.14);
  --rule-strong: rgba(0, 0, 0, 0.38);
  --solid: #000;
  --on-solid: #fff;
  --solid-hover: #2e2e2e;
  --hover: rgba(0, 0, 0, 0.06);
  --danger: #b3261e;
  --stage-in: #fff;
  --stage-mid: #f4f4f4;
  --stage-out: #e6e6e6;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, dl, dd, fieldset, legend { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid var(--text);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  background: var(--solid);
  color: var(--on-solid);
  font-weight: 600;
}
.skip:focus { top: 1rem; }

.wrap {
  width: 100%;
  max-width: 82rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.5rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn--big { min-height: 58px; padding: 0 2rem; font-size: 1.0625rem; }
.btn--solid { background: var(--solid); color: var(--on-solid); }
.btn--solid:hover { background: var(--solid-hover); }
.btn--line { background: transparent; border-color: var(--rule-strong); color: var(--text); }
.btn--line:hover { background: var(--hover); border-color: var(--text); }
.btn--danger { background: var(--danger); color: #000; }
:root[data-theme="light"] .btn--danger { color: #fff; }
.btn[disabled] { opacity: 0.55; cursor: progress; }

/* ---------------------------------------------------------------- top bar */

.bar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: var(--bar-h);
  padding-inline: var(--gutter);
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s, border-color 0.25s;
}
.bar--solid { background: var(--bg); border-color: var(--rule); }

.bar__brand {
  font: 800 1.75rem/1 var(--display);
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 0.01em;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}
.bar--solid .bar__brand { opacity: 1; visibility: visible; }

.bar__nav { display: none; gap: 1.75rem; margin-inline: auto; }
.bar__nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  padding-block: 0.5rem;
  border-bottom: 2px solid transparent;
}
.bar__nav a:hover { border-color: var(--text); }

.lang {
  display: flex;
  margin-left: auto;
  padding: 3px;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
}
.lang button {
  min-width: 40px;
  height: 34px;
  padding: 0 0.6rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--solid); color: var(--on-solid); }

/* One button, two faces: it shows the theme you would switch to. */
.theme {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border: 1px solid var(--rule-strong);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.theme:hover { background: var(--hover); }
.theme svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme__moon { display: none; }
:root[data-theme="light"] .theme__sun { display: none; }
:root[data-theme="light"] .theme__moon { display: block; }

/* Shows up once something is in the basket. */
.cartlink {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border: 1px solid var(--rule-strong);
  border-radius: 50%;
}
.cartlink:hover { background: var(--hover); }
.cartlink svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cartlink__count {
  position: absolute;
  top: -5px;
  right: -5px;
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--solid);
  color: var(--on-solid);
  font-size: 0.75rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.bar__cta { display: none; min-height: 42px; padding-inline: 1.25rem; font-size: 0.9375rem; }

/* Phones have no room for the whole menu; the shop is a page of its own, so it keeps a link. */
.bar__shop { font-size: 0.9375rem; font-weight: 600; text-decoration: none; padding-block: 0.5rem; }
.bar__nav a[aria-current="page"] { border-color: var(--text); }
.store--page { padding-top: calc(var(--bar-h) + clamp(2.5rem, 6vw, 5rem)); min-height: 70svh; }
@media (max-width: 999px) {
  .bar:not(.bar--page) .bar__brand { display: none; } /* the masthead and the shop link do its job here */
  .bar--page .bar__brand { font-size: 1.5rem; margin-right: auto; }
  .bar--page .lang { margin-left: 0; }
  .bar--page .lang button { min-width: 34px; padding-inline: 0.35rem; }
}
@media (max-width: 399px) {
  .bar--page .theme { display: none; } /* not enough width next to the brand; the theme can be switched on the home page */
}

@media (min-width: 1000px) {
  :root { --bar-h: 76px; }
  .bar__nav { display: flex; }
  .bar__shop { display: none; }
  .bar .lang { margin-left: 0; }
  .bar__cta { display: inline-flex; }
}

/* ---------------------------------------------------------------- cover */

.cover {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding: calc(var(--bar-h) + 0.75rem) 0 2.5rem;
  overflow: hidden;
  background: radial-gradient(95% 44% at 50% 30%, var(--stage-in) 0%, var(--stage-mid) 55%, var(--stage-out) 100%);
}

.cover__masthead { margin-inline: var(--gutter); user-select: none; }
.cover__masthead svg { display: block; width: 100%; height: auto; overflow: visible; }
.cover__masthead text { font: 900 192.7px var(--display); fill: var(--text); }

.cover__stage {
  position: relative;
  z-index: 2;
  height: min(108vw, 64svh);
  margin-top: -8vw;
}

.cover__bust {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: pan-y;
  cursor: grab;
  outline: none;
  /* The bust dissolves into the ground instead of being cut by the canvas edge. */
  -webkit-mask-image: linear-gradient(to bottom, #000 74%, transparent 97%), linear-gradient(to right, transparent, #000 9%, #000 91%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, #000 74%, transparent 97%), linear-gradient(to right, transparent, #000 9%, #000 91%, transparent);
  mask-composite: intersect;
}
.cover__bust:active { cursor: grabbing; }

.cover__hint {
  position: absolute;
  left: 50%;
  bottom: 7%;
  translate: -50% 0;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.8125rem;
  white-space: nowrap;
  pointer-events: none;
  transition: opacity 0.4s;
}
.cover__hint.is-gone { opacity: 0; }
/* The canvas is masked, so its own outline would be cut off; the hint carries keyboard focus instead. */
.cover__stage.is-keys .cover__hint { opacity: 1; outline: 3px solid var(--text); outline-offset: 3px; }

.cover--flat .cover__stage { display: none; }
.cover__nogl {
  margin: 1.5rem var(--gutter) 0;
  padding: 1rem 1.25rem;
  border: 1px solid var(--rule);
  border-radius: var(--r-tile);
  color: var(--text-soft);
}

.cover__pick { position: relative; z-index: 3; padding-inline: var(--gutter); }
.cover__pick + .cover__pick { margin-top: 1.25rem; }
.cover__label { font-size: 0.9375rem; font-weight: 600; color: var(--text-soft); }

.looks {
  display: flex;
  gap: 1.25rem;
  margin-inline: calc(var(--gutter) * -1);
  padding: 0.15rem var(--gutter) 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}
.looks::-webkit-scrollbar { display: none; }

.looks button {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0;
  border: 0;
  border-bottom: 3px solid transparent;
  background: none;
  font: 800 1.75rem/1.05 var(--display);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--text-faint);
  cursor: pointer;
  scroll-snap-align: center;
  transition: color 0.2s;
}
.looks button:hover { color: var(--text); }
.looks button[aria-checked="true"] { color: var(--text); border-color: var(--text); }
/* A dot marks the cuts that suit the chosen face shape. */
.looks__fit { width: 0.5rem; height: 0.5rem; flex: none; border-radius: 50%; background: currentColor; }

.cover__desc { max-width: 34rem; margin-top: 0.5rem; color: var(--text-soft); }
.cover__key { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.6rem; font-size: 0.9375rem; color: var(--text-soft); }
.cover__key .looks__fit { color: var(--text); }

.cover__go { position: relative; z-index: 3; padding: 1.5rem var(--gutter) 0; }
.cover__go .btn { width: 100%; }

@media (min-width: 1000px) {
  .cover {
    grid-template-columns: minmax(0, 1fr) minmax(0, 37vw) minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr) auto;
    column-gap: 2vw;
    min-height: max(100svh, 46rem);
    padding: calc(var(--bar-h) + 0.5rem) var(--gutter) 0;
    background: radial-gradient(44% 60% at 50% 50%, var(--stage-in) 0%, var(--stage-mid) 55%, var(--stage-out) 100%);
  }
  .cover__masthead { grid-column: 1 / -1; grid-row: 1; margin-inline: 0; }
  .cover__stage { grid-column: 2; grid-row: 1 / 4; height: auto; min-height: 40rem; margin-top: 0; }
  .cover__hint { bottom: calc(2.5rem + 58px + 1.25rem); }

  /* Both lists hang from the same line under the masthead. */
  .cover__pick { grid-row: 2 / 4; align-self: start; padding: clamp(1.25rem, 5vh, 6rem) 0 2.5rem; }
  .cover__pick + .cover__pick { margin-top: 0; }
  .cover__pick--face { grid-column: 1; width: min(100%, 23rem); }
  .cover__pick--cut { grid-column: 3; justify-self: end; width: min(100%, 23rem); }
  .cover__label { font-size: 1rem; margin-bottom: 0.6rem; }

  .looks { display: grid; gap: 0; margin: 0; padding: 0; overflow: visible; }
  .looks button {
    justify-self: start;
    padding: 0.1rem 0 0.1rem 1rem;
    border-bottom: 0;
    border-left: 4px solid transparent;
    /* sized by the shorter of width and height, so eight names fit on a laptop screen too */
    font-size: clamp(1.5rem, min(2.4vw, 4.6vh), 2.35rem);
    line-height: 1;
    text-align: left;
  }
  .cover__desc { margin-top: 1rem; }

  .cover__go { grid-column: 2; grid-row: 3; align-self: end; justify-self: center; padding: 0 0 2.5rem; }
  .cover__go .btn { width: auto; }
}

/* ---------------------------------------------------------------- pitch */

.pitch { padding-block: clamp(3.5rem, 8vw, 6.5rem); border-top: 1px solid var(--rule); }
.pitch .wrap { display: grid; gap: 1.75rem; }
.pitch__line {
  font: 800 clamp(3rem, 9.5vw, 7rem)/0.88 var(--display);
  text-transform: uppercase;
  text-wrap: balance;
}
.pitch__sub { max-width: 30rem; font-size: 1.125rem; color: var(--text-soft); }
.pitch .btn { margin-top: 1.5rem; width: 100%; }
@media (min-width: 900px) {
  .pitch .wrap { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: end; gap: 4rem; }
  .pitch .btn { width: auto; }
}

/* ---------------------------------------------------------------- sections */

.sheet, .crew, .store { padding-block: clamp(4.5rem, 10vw, 8.5rem); scroll-margin-top: calc(var(--bar-h) - 1px); }
.sheet { background: var(--bg-alt); }
.foot { scroll-margin-top: calc(var(--bar-h) - 1px); }

.sheet h2, .crew h2, .store h1, .foot h2 {
  font: 800 clamp(3.75rem, 11vw, 8rem)/0.84 var(--display);
  text-transform: uppercase;
}
.sheet__head { display: grid; gap: 1.25rem; margin-bottom: clamp(2rem, 5vw, 4rem); }
.sheet__head p { max-width: 34rem; font-size: 1.125rem; color: var(--text-soft); }
@media (min-width: 900px) {
  .sheet__head { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: end; gap: 3rem; }
  .sheet__head p { padding-bottom: 0.6rem; }
}

/* ---------------------------------------------------------------- tariffs */

.tariff {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "name price"
    "items items"
    "time cta";
  gap: 1rem 1.25rem;
  align-items: center;
  padding: 1.75rem 0 1.75rem 1.5rem;
  border-top: 1px solid var(--rule);
}
.tariff:last-child { border-bottom: 1px solid var(--rule); }
/* The tier's metal, as an inlaid strip. */
.tariff::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.75rem;
  bottom: 1.75rem;
  width: 7px;
  border-radius: 4px;
  background: var(--metal);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2);
}
.tariff--entry { --metal: var(--metal-entry); }
.tariff--bronze { --metal: var(--metal-bronze); }
.tariff--silver { --metal: var(--metal-silver); }
.tariff--gold { --metal: var(--metal-gold); }
.tariff--platinum { --metal: var(--metal-platinum); }

.tariff__name { grid-area: name; }
.tariff__name h3 { font: 800 2.75rem/0.9 var(--display); text-transform: uppercase; }
.tariff__name p { margin-top: 0.35rem; font-size: 0.9375rem; color: var(--text-soft); }

.tariff__items { grid-area: items; display: grid; gap: 0.4rem; }
.tariff__items li { position: relative; padding-left: 1.1rem; }
.tariff__items li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text);
}
.tariff__level {
  margin-left: 0.4rem;
  padding: 0.05rem 0.45rem;
  border: 1px solid var(--rule-strong);
  border-radius: 5px;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}

.tariff__time { grid-area: time; font-weight: 500; color: var(--text-soft); white-space: nowrap; }
.tariff__price {
  grid-area: price;
  align-self: start;
  font: 800 2.25rem/0.9 var(--display);
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.tariff .btn { grid-area: cta; justify-self: end; }

@media (min-width: 900px) {
  .tariff {
    grid-template-columns: 13rem minmax(0, 1fr) 7.5rem 12.5rem auto;
    grid-template-areas: "name items time price cta";
    gap: 1.5rem;
    align-items: start;
    padding: 2.25rem 0 2.25rem 2rem;
  }
  .tariff::before { top: 2.25rem; bottom: 2.25rem; }
  .tariff__name h3 { font-size: 3.5rem; }
  .tariff__items { padding-top: 0.3rem; }
  .tariff__time { padding-top: 0.3rem; }
  .tariff__price { font-size: 2.75rem; }
}
@media (min-width: 1280px) {
  .tariff { grid-template-columns: 15rem minmax(0, 1fr) 8.5rem 12.5rem auto; gap: 2rem; }
  .tariff__items { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.45rem 2rem; }
}

/* ---------------------------------------------------------------- barbers */

.crew h2 { margin-bottom: clamp(2rem, 5vw, 4rem); }
.crew__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }

.barber {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 1.25rem;
  align-items: center;
  padding: 1.25rem;
  border: 1px solid var(--rule);
  border-radius: var(--r-card);
}
/* Holds the photo once there is one; a plate with the initial until then. */
.barber__plate {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 14px;
  background: var(--surface-2);
  font: 900 4.5rem/1 var(--display);
}
.barber__plate img { width: 100%; height: 100%; object-fit: cover; }
.barber h3 { font: 800 2.75rem/0.9 var(--display); text-transform: uppercase; overflow-wrap: break-word; }
.barber__role { margin-top: 0.3rem; color: var(--text-soft); }
.barber__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin-top: 1.1rem; }
.barber__actions a:not(.btn) { font-weight: 500; text-underline-offset: 0.25em; }

@media (min-width: 600px) {
  .barber { grid-template-columns: 9rem minmax(0, 1fr); gap: 1.75rem; padding: 1.75rem; }
  .barber__plate { font-size: 6.5rem; }
  .barber h3 { font-size: clamp(2.75rem, 4.2vw, 4rem); }
}
@media (min-width: 1000px) {
  .crew__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
}

/* ---------------------------------------------------------------- booking */

/* Single columns are minmax(0, 1fr) so one long word can never widen the page. */
.booking { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
.booking__steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.75rem; }

.step legend {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
  font-size: 1.25rem;
  font-weight: 700;
}
.step__n {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--solid);
  color: var(--on-solid);
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
}
.step__msg { color: var(--text-soft); }
.step__msg:empty { display: none; }

/* A choice is a tile: quiet when free, filled when it is yours. */
.choices { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.6rem; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.15rem 1rem;
  align-items: center;
  min-height: 60px;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--rule);
  border-radius: var(--r-tile);
  background: var(--surface);
  transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}
.choice:hover .choice__body { border-color: var(--rule-strong); }
.choice input:focus-visible + .choice__body { outline: 3px solid var(--text); outline-offset: 3px; }
.choice input:checked + .choice__body { border-color: var(--solid); background: var(--solid); color: var(--on-solid); }
.choice__title { font-weight: 700; }
.choice__sub { grid-column: 1; font-size: 0.875rem; color: var(--text-soft); }
.choice__aside { grid-column: 2; grid-row: 1 / span 2; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.choice input:checked + .choice__body .choice__sub { color: inherit; opacity: 0.75; }

.choices--tariff .choice__title { display: flex; align-items: center; gap: 0.6rem; }
.choices--tariff .choice__title::before {
  content: "";
  flex: none;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--metal);
  box-shadow: 0 0 0 1px rgba(127, 127, 127, 0.5);
}
.choices--barber { grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); }

.days {
  display: flex;
  gap: 0.5rem;
  margin-inline: calc(var(--gutter) * -1);
  padding: 4px var(--gutter) 1rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}
.days:empty, .times:empty { display: none; }

.day, .time {
  border: 1.5px solid var(--rule);
  border-radius: var(--r-tile);
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}
.day:hover, .time:hover { border-color: var(--rule-strong); }
.day[aria-pressed="true"], .time[aria-pressed="true"] {
  border-color: var(--solid);
  background: var(--solid);
  color: var(--on-solid);
}
.day[disabled], .time[disabled] {
  border-style: dashed;
  background: transparent;
  color: var(--text-faint);
  cursor: not-allowed;
}

.day {
  flex: none;
  display: grid;
  justify-items: center;
  width: 4.5rem;
  padding: 0.6rem 0 0.55rem;
  scroll-snap-align: start;
}
.day__week { font-size: 0.8125rem; font-weight: 500; }
.day__num { font: 800 2.25rem/1 var(--display); font-variant-numeric: tabular-nums; }
.day__month { font-size: 0.8125rem; }

.times {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(5.25rem, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}
.time {
  display: grid;
  justify-items: center;
  align-content: center;
  min-height: 52px;
  padding: 0.3rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.time small { font-size: 0.6875rem; font-weight: 500; }
.time[disabled] span { text-decoration: line-through; }

.fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.1rem; }
.field { display: grid; gap: 0.4rem; }
.field > span:first-child { font-size: 0.9375rem; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 54px;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--rule-strong);
  border-radius: var(--r-tile);
  background: var(--surface);
}
.field textarea { min-height: 5rem; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  border-color: var(--text);
  outline-offset: 1px;
}
.field [aria-invalid="true"] { border-color: var(--danger); }
.field__error { font-size: 0.875rem; font-weight: 500; color: var(--danger); }

.phone { position: relative; display: block; }
.phone__code {
  position: absolute;
  left: 1rem;
  top: 50%;
  translate: 0 -50%;
  font-weight: 600;
  pointer-events: none;
}
.phone input { padding-left: 4rem; font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.phone input.phone__short { padding-left: 2.4rem; letter-spacing: 0; }

.ticket {
  display: grid;
  gap: 1.25rem;
  align-content: start;
  padding: 1.5rem;
  border: 1px solid var(--rule);
  border-radius: var(--r-card);
  background: var(--surface);
}
.ticket h3 { font-size: 1.25rem; font-weight: 700; }
.ticket__rows { display: grid; }
.ticket__rows > div {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 1rem;
  padding-block: 0.8rem;
  border-top: 1px solid var(--rule);
}
.ticket__rows dt { color: var(--text-soft); }
.ticket__rows dd { font-weight: 600; }
.ticket__rows dd.is-empty { font-weight: 400; color: var(--text-faint); }
.ticket__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  color: var(--text-soft);
}
.ticket__price strong { font: 800 2.75rem/0.9 var(--display); color: var(--text); font-variant-numeric: tabular-nums; }
.ticket__error { font-weight: 500; color: var(--danger); }
.ticket .btn { width: 100%; }

@media (min-width: 700px) {
  .choices--tariff { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field--wide { grid-column: 1 / -1; }
  .days { margin-inline: 0; padding-inline: 0; }
}
@media (min-width: 1000px) {
  .booking { grid-template-columns: minmax(0, 1fr) 23rem; gap: 4rem; align-items: start; }
  .ticket { position: sticky; top: calc(var(--bar-h) + 1.5rem); padding: 2rem; }
}

.visits { margin-bottom: 3rem; }
.visits h3 { font-size: 1.25rem; font-weight: 700; }
.visits ul { display: grid; gap: 0.6rem; margin-top: 1rem; }
.visit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--rule);
  border-radius: var(--r-card);
  background: var(--surface);
}
.visit__when { font-weight: 700; }
.visit__what { color: var(--text-soft); }
.visit__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; }
.visit .btn { min-height: 40px; padding-inline: 1.1rem; font-size: 0.9375rem; }

.done {
  display: grid;
  gap: 1rem;
  justify-items: start;
  max-width: 40rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--rule);
  border-radius: var(--r-card);
  background: var(--surface);
}
.done h3 { font: 800 clamp(3rem, 8vw, 4.5rem)/0.88 var(--display); text-transform: uppercase; }
.done__text { font-size: 1.25rem; font-weight: 600; }
.done__hint { color: var(--text-soft); }

/* ---------------------------------------------------------------- shop */

.store__layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
#savat { scroll-margin-top: calc(var(--bar-h) + 1rem); }

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.chips:empty { display: none; }
.chip {
  min-height: 40px;
  padding: 0 1rem;
  border: 1.5px solid var(--rule);
  border-radius: 999px;
  background: transparent;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
}
.chip:hover { border-color: var(--rule-strong); }
.chip[aria-pressed="true"] { border-color: var(--solid); background: var(--solid); color: var(--on-solid); }

.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.product {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 0.75rem;
  padding: 0.75rem;
  border: 1px solid var(--rule);
  border-radius: var(--r-card);
  background: var(--surface);
}
/* The photo; until there is one, a drawing of what the product comes in. */
.product__art {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 14px;
  background: var(--surface-2);
}
.product__art img { width: 100%; height: 100%; object-fit: cover; }
.product__art svg { width: 58%; height: auto; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.product__art .art__label { fill: currentColor; stroke: none; opacity: 0.16; }
.product h3 { font-size: 1.0625rem; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.product__meta { font-size: 0.875rem; color: var(--text-soft); }
.product__desc { margin-top: 0.4rem; font-size: 0.9375rem; line-height: 1.4; color: var(--text-soft); }
.product__buy { display: grid; gap: 0.6rem; }
.product__price { font: 800 1.75rem/0.9 var(--display); white-space: nowrap; font-variant-numeric: tabular-nums; }
.product__gone { display: grid; place-items: center; min-height: 42px; font-weight: 600; color: var(--text-faint); }
.product .btn { width: 100%; min-height: 42px; padding-inline: 0.75rem; font-size: 0.9375rem; }
.product--out .product__art { opacity: 0.45; }

.stepper {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: center;
  min-height: 42px;
  border: 1.5px solid var(--solid);
  border-radius: 999px;
}
.stepper button {
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: none;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}
.stepper button:hover { background: var(--hover); }
.stepper button[disabled] { opacity: 0.35; cursor: not-allowed; }
.stepper output { text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }

.basket__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem 1rem;
  align-items: center;
  padding-block: 0.8rem;
  border-top: 1px solid var(--rule);
}
.basket__name { font-weight: 600; }
.basket__name span { display: block; font-size: 0.875rem; font-weight: 400; color: var(--text-soft); }
.basket__line { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.basket__item .stepper { grid-column: 1 / -1; width: 8rem; min-height: 38px; grid-template-columns: 38px minmax(0, 1fr) 38px; }
.basket__item .stepper button { height: 36px; }
.basket__empty { padding-block: 0.8rem 1rem; color: var(--text-soft); }
.basket__form, .basket__done { display: grid; gap: 1.1rem; }
.basket__terms { font-size: 0.9375rem; color: var(--text-soft); }
.basket__doneTitle { font: 800 2.5rem/0.9 var(--display); text-transform: uppercase; }
.basket__done .btn { justify-self: start; }

@media (min-width: 700px) {
  .products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
  .product { padding: 1rem; }
}
@media (min-width: 1000px) {
  .store__layout { grid-template-columns: minmax(0, 1fr) 23rem; gap: 4rem; align-items: start; }
  /* it stays beside the products as they scroll, so it may never be taller than the screen */
  .basket { max-height: calc(100svh - var(--bar-h) - 3rem); overflow-y: auto; }
}

/* ---------------------------------------------------------------- contact */

.foot { padding-block: clamp(4.5rem, 10vw, 8.5rem) 7rem; border-top: 1px solid var(--rule); }
.foot__phone {
  display: inline-block;
  margin-top: 1.5rem;
  font: 800 clamp(2.9rem, 13.5vw, 9rem)/0.9 var(--display);
  text-decoration: none;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.foot__phone:hover { text-decoration: underline; text-decoration-thickness: 0.06em; text-underline-offset: 0.08em; }
.foot__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1.75rem 2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}
.foot__grid dt { font-size: 0.9375rem; color: var(--text-soft); }
.foot__grid dd { margin-top: 0.2rem; font-size: 1.25rem; font-weight: 600; }
.foot__grid a { text-decoration: none; }
.foot__grid a:hover { text-decoration: underline; text-underline-offset: 0.25em; }
.foot__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin-top: 4rem;
  font-size: 0.9375rem;
  color: var(--text-soft);
}
.foot__legal a { text-underline-offset: 0.25em; }
.foot__credit { max-width: 46rem; margin-top: 1rem; font-size: 0.8125rem; color: var(--text-faint); }

/* ---------------------------------------------------------------- phone dock */

.dock {
  position: fixed;
  inset: auto 0.75rem calc(0.75rem + env(safe-area-inset-bottom)) 0.75rem;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  border-radius: 999px;
  background: var(--solid);
  color: var(--on-solid);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 0 0 1px var(--rule), 0 12px 28px -10px rgba(0, 0, 0, 0.6);
  translate: 0 140%;
  transition: translate 0.3s;
}
.dock.is-up { translate: 0 0; }
@media (min-width: 1000px) {
  .dock { display: none; }
  .foot { padding-bottom: 4rem; }
}

.noscript { margin: 0; padding: 1rem var(--gutter); background: var(--surface); text-align: center; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
