/* =====================================================================
   Gable & Blade · REBUILD LAYER — one continuous wall.
   Reading fields are white-glaze courses set into the grout grid (snapped
   by site.js), never floating cards. Prices and booking are tile cells.
   The four glazes stay the only colours: white, cobalt, ink, grout.
   ===================================================================== */
:root {
  --glaze: #f1f1ef;
  --frieze: #f5f5f3;
  --strip: #f2f2f0;
  --rule: #cdcbc7;
  --field: rgba(249, 249, 248, .9);
}
body { background: var(--glaze); }

/* ---------- Hero: the lettering is the wall's own raised tile ---------- */
.wordmark-art {
  position: absolute; left: 0; top: 0; width: 50%; bottom: calc(115 * var(--u));
  background: image-set(url("../plates/wordmark-wall.webp") type("image/webp"), url("../plates/wordmark-wall.png") type("image/png")) left top / cover no-repeat;
  z-index: 0;
}
.hero-tagline, .hero-book { z-index: 1; }

/* ---------- Trim: a course of cobalt slips wherever the wall changes ---------- */
main > section:not(.hero), .site-foot { overflow-x: clip; }
main > section:not(.hero)::before, .site-foot::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; z-index: 0;
  height: max(10px, calc(var(--tile) / 4));
  background: image-set(url("../plates/cobalt-liner.webp") type("image/webp"), url("../plates/cobalt-liner.png") type("image/png")) var(--wall-ox) 0 / var(--wall-module) 100% repeat-x;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .5), 0 2px 3px rgba(0, 0, 0, .18);
}
.site-foot { position: relative; }

/* ---------- Courses: white glaze fields on the grid ---------- */
.course {
  position: relative; z-index: 1; isolation: isolate;
  /* the white glaze field (::before) covers this; the base colour keeps computed contrast honest */
  background: #f8f8f7 !important; border: 0 !important; outline: 0 !important;
  box-shadow: none !important; border-radius: 0 !important;
  padding: clamp(20px, 2.4vw, 40px);
}
.course::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  top: calc(-1 * var(--ct, 0px)); right: calc(-1 * var(--cr, 0px));
  bottom: calc(-1 * var(--cb, 0px)); left: calc(-1 * var(--cl, 0px));
  background:
    linear-gradient(var(--field), var(--field)),
    image-set(url("../plates/wall-tile.webp") type("image/webp"), url("../plates/wall-tile.png") type("image/png"));
  background-size: auto, var(--wall-module) var(--wall-module);
  background-position: 0 0, var(--fx, 0px) var(--fy, 0px);
  box-shadow: inset 0 0 0 1px rgba(150, 147, 142, .6), inset 0 2px 0 rgba(255, 255, 255, .8);
}
/* Photos and mirrors hang on the wall, over the fields. */
.mirror-frame { position: relative; z-index: 2; }

/* ---------- Things hung on the wall settle into place; the wall itself never moves ---------- */
.js [data-set] { transform: none; transition: none; }
.js [data-set] .mirror-frame, .js .mirror-frame[data-set] { transform: translateY(26px); transition: transform 1.1s var(--ease-out); }
.js [data-set].is-set .mirror-frame, .js .mirror-frame[data-set].is-set, .is-capture [data-set] .mirror-frame { transform: none; }

/* ---------- Section headings: cobalt glaze lettering ---------- */
h2.glaze-text { filter: none; text-shadow: none; padding-bottom: .04em; }

/* ---------- Story ---------- */
.story-copy { color: var(--ink-soft); }
.standard-frieze { margin-top: clamp(64px, 8vw, 128px); padding: 0; }
.standard-frieze li { background: transparent; }
.standard-frieze li:hover { background: var(--cobalt-deep); }

/* ---------- Services ---------- */
.services { background-color: var(--cobalt-deep); }
.services-head { align-self: stretch; }
.services-head p { background: none; padding: 0; box-shadow: none; color: var(--ink-soft); margin-top: 18px; }
.services-plate { border: 0; overflow: visible; }
.services-plate img { border-radius: 1px; }
.menu-board { padding: clamp(8px, 1vw, 16px) clamp(16px, 2.4vw, 40px); }
@media (min-width: 1101px) { .menu-row { grid-template-columns: minmax(0, 3fr) minmax(0, 4fr) 96px 104px 120px; } }
@media (max-width: 1100px) and (min-width: 900px) { .menu-row { grid-template-columns: minmax(0, 1fr) 96px 104px; } }
.menu-row { align-items: center; }
.menu-time { display: grid; place-items: center; height: 56px; border-radius: 3px; background: #fbfbfa; box-shadow: inset 0 0 0 1px var(--rule), inset 0 -2px 0 rgba(0, 0, 0, .05); color: var(--ink); font-weight: 600; }
.menu-price {
  display: grid; place-items: center; height: 64px; border-radius: 3px; color: #fff; text-align: center;
  background: image-set(url("../plates/cobalt-glaze.webp") type("image/webp"), url("../plates/cobalt-glaze.png") type("image/png")) -470px -480px / 2700px 2700px var(--cobalt);
  box-shadow: inset 0 0 0 1px #0a1c5c, inset 0 2px 0 rgba(255, 255, 255, .2), inset 0 -3px 0 rgba(0, 0, 0, .25);
}
.menu-row:hover .menu-price { background: #fff; color: var(--cobalt-deep); box-shadow: inset 0 0 0 1px #fff, inset 0 -3px 0 rgba(0, 0, 0, .08); }
.menu-row:hover .menu-time { background: transparent; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4); color: #fff; }

/* ---------- Ritual ---------- */
.ritual-mirror { z-index: 2; }

/* ---------- Booking: the appointment board is laid in tile ---------- */
.book { background: image-set(url("../plates/wall-tile.webp") type("image/webp"), url("../plates/wall-tile.png") type("image/png")) var(--wall-ox) var(--wall-oy) / var(--wall-module) var(--wall-module) var(--glaze); border: 0; }
.book-head { max-width: var(--content); }
.book-head p { color: var(--ink-soft); }
.board { padding: 0; }
.board-summary { background: transparent; }
.board-rail { background: transparent; }
.pick {
  background: linear-gradient(180deg, #fff, #f3f3f1);
  border: 0; border-radius: 3px;
  box-shadow: inset 0 0 0 1px #c9c6c1, inset 0 2px 0 #fff, inset 0 -3px 0 rgba(0, 0, 0, .07), 0 1px 0 rgba(0, 0, 0, .06);
}
.pick:hover { box-shadow: inset 0 0 0 2px var(--cobalt-deep), inset 0 -3px 0 rgba(0, 0, 0, .07); }
.pick[aria-pressed="true"], .pick[aria-checked="true"] {
  color: #fff;
  background: image-set(url("../plates/cobalt-glaze.webp") type("image/webp"), url("../plates/cobalt-glaze.png") type("image/png")) -470px -480px / 2700px 2700px var(--cobalt);
  box-shadow: inset 0 0 0 1px #0a1c5c, inset 0 2px 0 rgba(255, 255, 255, .22), inset 0 -3px 0 rgba(0, 0, 0, .28);
}
.day-row .pick, .slot-grid .pick { aspect-ratio: auto; }
/* Taken: the tile has been lifted; only the bare grout bed is left. */
.slot-grid .pick:disabled {
  background: #c7c2ba; color: #5d5852;
  box-shadow: inset 0 3px 6px rgba(0, 0, 0, .18), inset 0 0 0 1px #b5afa6;
}
.key-free { background: linear-gradient(180deg, #fff, #f3f3f1); box-shadow: inset 0 0 0 1px #c9c6c1; border: 0 !important; }
.key-taken { background: #c7c2ba; box-shadow: inset 0 2px 3px rgba(0, 0, 0, .2); border: 0 !important; }
.ticket { border-top-color: var(--cobalt-deep); }

/* ---------- Team ---------- */
.barber-plate { margin: 26px 0 0; }

/* ---------- Occasions: the after-hours wall in ink glaze ---------- */
.occasions {
  background: image-set(url("../plates/ink-glaze.webp") type("image/webp"), url("../plates/ink-glaze.png") type("image/png")) var(--wall-ox) var(--wall-oy) / var(--wall-module) var(--wall-module) var(--ink);
  color: var(--ink);
}
.occasions-intro h2 { color: var(--cobalt-deep); }
.occasions-intro p { color: var(--ink-soft); }
.occasions-fact { border-color: var(--rule) !important; }
.occasions-fact strong { color: var(--cobalt-deep); }
.occasion-mosaic { min-height: 0; grid-template-rows: auto auto; align-items: start; gap: clamp(20px, 2vw, 32px); }
.occasion { overflow: visible; border: 0; border-radius: 0; }
.occasion::after { display: none; }
.occasion .mirror-frame { aspect-ratio: 3 / 2; }
.occasion-feature .mirror-frame { aspect-ratio: 4 / 5; }
.occasion img { position: static; width: 100%; height: 100%; object-fit: cover; }
.occasion:hover img { transform: none; }
.occasion-copy { position: relative; left: auto; right: auto; bottom: auto; margin-top: 18px; padding: clamp(16px, 1.8vw, 26px); }
.occasion-copy h3 { color: var(--ink); }
.occasion-copy p { color: var(--ink-soft); }

/* ---------- Gallery ---------- */
.gallery-track img { border: 0; box-shadow: none; border-radius: 1px; }
.gallery-track .mirror-frame { aspect-ratio: 3 / 4; }
.gallery-track figcaption { background: #fbfbfa; border: 0; box-shadow: inset 0 0 0 1px var(--rule), inset 0 -2px 0 rgba(0, 0, 0, .05); }

/* ---------- Reviews ---------- */
.reviews { background-color: var(--cobalt-deep); }
.quote { color: var(--cobalt-deep); padding: clamp(32px, 5vw, 72px) clamp(24px, 5vw, 80px); }
.quote figcaption { color: var(--ink); }
.quote figcaption small { display: block; margin-top: 10px; font-size: 14px; font-weight: 500; color: var(--ink-soft); }

/* ---------- Journal ---------- */
.post .mirror-frame { aspect-ratio: 3 / 2; }
.post img { border: 0; box-shadow: none; border-radius: 1px; }
.post-copy { margin: 26px 0 0; }

/* ---------- FAQ ---------- */
.faq { background: image-set(url("../plates/wall-tile.webp") type("image/webp"), url("../plates/wall-tile.png") type("image/png")) var(--wall-ox) var(--wall-oy) / var(--wall-module) var(--wall-module) var(--glaze); border: 0; }
.faq-list { border-top: 0; padding-top: 8px; padding-bottom: 8px; }
.faq-list details:last-child { border-bottom: 0; }

/* ---------- Visit ---------- */
.visit { background-color: var(--cobalt-deep); }
.street-sign::before, .street-sign::after { display: none; }
.street-sign { box-shadow: inset 0 0 0 clamp(6px, .7vw, 10px) #fbfbf8, inset 0 0 0 clamp(9px, 1vw, 14px) #111, 0 3px 6px -1px rgba(0, 0, 0, .5); }
.visit-grid { color: var(--ink); }
.hours th, .hours td { border-bottom-color: var(--rule); color: var(--ink); }
.contact-k { color: var(--cobalt-deep); }
.contact p { color: var(--ink); }
.contact .contact-note { color: var(--ink-soft); }

/* ---------- Footer: the shop sign, the small print, the floor ---------- */
.foot-sign {
  margin: 0 auto; width: min(620px, 92%);
  padding: clamp(10px, 1.2vw, 16px);
  border-radius: 4px;
  background: linear-gradient(180deg, #1c3a8f, var(--cobalt-deep));
  box-shadow: inset 0 0 0 1px #0a1c5c, inset 0 2px 0 rgba(255, 255, 255, .22), 0 3px 6px -1px rgba(0, 0, 0, .35);
  position: relative; z-index: 2;
}
.foot-sign img { width: 100%; aspect-ratio: 2048 / 1320; object-fit: cover; object-position: 50% 26%; border-radius: 2px; }
.foot-course { display: inline-block; margin: clamp(40px, 5vw, 72px) auto 0; max-width: 760px; }
.foot-line { margin-top: 0; }
.foot-credit { font-size: 15px; color: var(--ink-soft); margin: 20px auto 0; }
.foot-course + .checker { margin-top: clamp(48px, 6vw, 88px); }
.checker {
  background: image-set(url("../plates/checker-floor.webp") type("image/webp"), url("../plates/checker-floor.png") type("image/png")) var(--wall-ox) 0 / calc(var(--wall-module) * .6) calc(var(--wall-module) * .6);
  box-shadow: inset 0 10px 14px -10px rgba(0, 0, 0, .45);
}

/* ---------- Mobile ---------- */
@media (max-width: 899px) {
  .hero-head::before { content: none; }
  .hero-head .menu-btn { margin-left: auto; }
  .hero { padding-top: 58px; }
  .wordmark-art { position: relative; left: auto; top: auto; bottom: auto; width: calc(100% + 32px); margin: 0 -16px; aspect-ratio: 2048 / 1560; background-size: 100% auto; background-position: center top; }
  .wordmark-art::before {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10px;
    background: image-set(url("../plates/cobalt-liner.webp") type("image/webp"), url("../plates/cobalt-liner.png") type("image/png")) 0 0 / 600px 100% repeat-x;
    box-shadow: 0 1px 0 rgba(255, 255, 255, .5), 0 2px 3px rgba(0, 0, 0, .18);
  }
  .hero-tagline { margin-top: 6px; }
  .menu-row { grid-template-columns: minmax(0, 1fr) 66px 70px; column-gap: 10px; }
  .menu-row h3 { font-size: 1.22rem; }
  .menu-time, .menu-price { height: 48px; }
  .menu-time { font-size: 14px; }
  .menu-price { font-size: 1.2rem; }
}
@media (max-width: 760px) {
  .barber-plate, .post-copy { margin: 20px 0 0; }
  .occasion-copy { margin-top: 14px; }
}

/* =====================================================================
   FIX ROUND 1 (finish review)
   ===================================================================== */
/* 1 · Section headings in solid cobalt ink: no grout ever crosses a letter. */
main h2.glaze-text, main h2 { color: var(--cobalt-deep); background: none; -webkit-text-fill-color: currentColor; }
.services-head h2 { color: var(--cobalt-deep); text-shadow: none; }

/* 2 · The footer sign shows the whole lettering. */
.foot-sign img { aspect-ratio: 2048 / 1440; object-position: 50% 32%; }

/* 3 · Testimonial tabs are tile cells that sit above the field. */
.quote-tabs { position: relative; z-index: 3; }
.quote-tabs button {
  color: var(--cobalt-deep); background: #f8f8f7; border: 0;
  box-shadow: inset 0 0 0 1px #c9c6c1, inset 0 -2px 0 rgba(0, 0, 0, .07);
}
.quote-tabs [aria-selected="true"], .quote-tabs button:hover {
  color: #fff; background: linear-gradient(rgba(5, 18, 74, .25), rgba(5, 18, 74, .25)), image-set(url("../plates/cobalt-glaze.webp") type("image/webp"), url("../plates/cobalt-glaze.png") type("image/png")) -470px -480px / 2700px 2700px var(--cobalt);
  box-shadow: inset 0 0 0 1px #0a1c5c, inset 0 2px 0 rgba(255, 255, 255, .2);
}

/* 4 · Tagline at the comp's size and gap below BLADE. */
.hero-tagline { top: calc(992 * var(--u)); font-size: calc(47.5 * var(--u)); }

/* 5 · Every enamel button wears the enamel plaque face (9-slice keeps the rim). */
.enamel, .hero-book {
  background: var(--cobalt-deep) !important;
  border: calc(max(6px, 8 * var(--u))) solid transparent;
  border-image: image-set(url("../plates/enamel-face.webp") type("image/webp"), url("../plates/enamel-face.png") type("image/png")) 30 fill / calc(max(6px, 8 * var(--u))) / 0 stretch;
  border-radius: 6px; outline: 0;
  box-shadow: 0 2px 4px -1px rgba(6, 18, 64, .35), 0 6px 10px -6px rgba(6, 18, 64, .35) !important;
  color: #eef0f6;
}
.enamel:disabled, .summary-confirm:disabled { filter: grayscale(.85) brightness(1.15); opacity: .6; }

/* 6 · Booking picks carry duration and price in fixed tile cells. */
.pick-cells { display: flex; gap: 6px; flex: none; }
.pick-cells .cell {
  display: grid; place-items: center; height: 40px; min-width: 64px; padding: 0 8px; border-radius: 3px;
  font-size: 14px; font-weight: 600; color: var(--ink);
  background: #fbfbfa; box-shadow: inset 0 0 0 1px var(--rule), inset 0 -2px 0 rgba(0, 0, 0, .05);
}
.pick-cells .cell-price {
  min-width: 56px; color: #fff; font-size: 16px; font-weight: 700;
  background: image-set(url("../plates/cobalt-glaze.webp") type("image/webp"), url("../plates/cobalt-glaze.png") type("image/png")) -470px -480px / 2700px 2700px var(--cobalt);
  box-shadow: inset 0 0 0 1px #0a1c5c, inset 0 2px 0 rgba(255, 255, 255, .2);
}
.pick[aria-pressed="true"] .cell { background: rgba(255, 255, 255, .12); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }
.pick[aria-pressed="true"] .cell-price { background: #fff; color: var(--cobalt-deep); }

/* 7 · Team: three chairs in one even course — equal plates, one bottom line. */
.team-grid { align-items: stretch; }
.barber:nth-child(2), .barber:nth-child(3) { margin-top: 0; }
.barber { display: flex; flex-direction: column; }
.barber-plate { flex: 1; }
/* 3b · Each tab tile sits in its own white grout ring, so the selected cobalt tile
   keeps its edge on the cobalt wall (mobile) as well as on the white field (desktop). */
.quote-tabs { gap: 10px; }
.quote-tabs button { outline: 3px solid #f1f1ef; outline-offset: 0; }
.quote-tabs [aria-selected="true"] { outline-color: #ffffff; box-shadow: inset 0 0 0 1px #0a1c5c, inset 0 2px 0 rgba(255, 255, 255, .2), 0 0 0 6px rgba(255, 255, 255, .28); }
.quote-tabs button:focus-visible { outline: 3px solid var(--cobalt-lit); outline-offset: 3px; }
