/* The Cut Barbershop, Tempe.
   Branded page set: black ground, orange accent, Archivo only. Every value comes from the design
   decision sheet in docs/PLAN.md. Mobile first at 390; wider layouts add at 640, 960 and 1180px. */

/* ---------- Tokens ---------- */

:root {
  /* Color: four tokens plus one hairline neutral and the accent states. */
  --ground: #0b0b0b;
  --raised: #161616;
  --text: #f5f3ef;
  --muted: #a3a3a3;
  --accent: #ff4d00;
  --line: #262626;
  --accent-hover: #ff6a2b;
  --accent-active: #e64400;

  /* Clipper guard swatches, skin to #4 */
  --swatch-skin: #AB8B75;
  --swatch-0-5: #91715D;
  --swatch-1: #765946;
  --swatch-1-5: #5D4434;
  --swatch-2: #453226;
  --swatch-3: #2B2019;
  --swatch-4: #13100E;

  --font: 'Archivo', 'Helvetica Neue', Arial, sans-serif;

  /* Layout: 1440 outer box, so the content is 1360 wide at 1440 with 40px side padding. */
  --container: 1440px;
  --pad-x: 16px;
  --radius: 10px;
  --radius-btn: 6px;

  /* Motion: one house curve, one step for button states. */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --step: 120ms;

  /* Keyboard focus ring color, set per surface. */
  --focus: var(--accent);
}

@media (min-width: 640px) {
  :root { --pad-x: 24px; }
}

@media (min-width: 960px) {
  :root { --pad-x: 40px; }
}

/* ---------- Fonts ---------- */

/* Archivo, variable font, latin subset: copyright The Archivo Project Authors, SIL Open Font License 1.1, see assets/fonts/OFL.txt. */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('assets/fonts/archivo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Archivo';
  font-style: italic;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('assets/fonts/archivo-latin-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Base ---------- */

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 960px) {
  body { font-size: 17px; }
}

h1, h2, h3, h4, p, dl, dd, figure { margin: 0; }

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

::selection { background: var(--accent); color: var(--ground); }

[hidden] { display: none !important; }

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

main:focus { outline: none; }

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 12px 20px;
  border-radius: var(--radius-btn);
  background: var(--accent);
  color: var(--ground);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.5;
  text-decoration: none;
  transform: translateY(calc(-100% - 24px));
}

.skip-link:focus { transform: none; }

/* The shared page container: 1440 outer box, side padding from the token. Every wrapper below sets it itself, so none nests inside another. */
.nav,
.hero,
.page-head,
.page-cta,
.footer__inner,
.peek,
.services__inner,
.work__inner,
.pick__inner,
.barbers__inner,
.community__inner,
.book__inner,
.visit__inner,
.beeyou__inner,
.owner-head,
.owner-story {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

/* ---------- Type ---------- */

.page-title,
.hero__title,
.section-title,
.page-cta h2 {
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.page-title { font-size: 32px; line-height: 34px; }
.section-title,
.page-cta h2 { font-size: 24px; line-height: 28px; }

.page-lede {
  max-width: 62ch;
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted);
}

@media (min-width: 960px) {
  .page-title { font-size: 44px; line-height: 46px; }
  .section-title,
  .page-cta h2 { font-size: 32px; line-height: 36px; }
  .page-lede { font-size: 18px; }
}

/* Text links in body copy and card "go" links. */
.link-accent { color: var(--accent); text-underline-offset: 4px; }

/* ---------- Rule device ----------
   A short orange bar drawn as a pseudo element above a title. Pages carry no rule markup. */

.page-head::before,
.pick__inner::before,
.hero__eyebrow::before,
.barber__body::before,
.moment__title::before,
.event::before,
.owner-section::before {
  content: '';
  display: block;
  width: 48px;
  height: 4px;
  margin-bottom: 16px;
  background: var(--accent);
}

/* ---------- Buttons ---------- */

.btn {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 24px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-btn);
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--step) linear, border-color var(--step) linear, color var(--step) linear;
}

/* Orange fill, black label. White on orange fails contrast, so the label is never white. */
.btn--accent {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ground);
}

.btn--accent:active:not(:disabled) { background: var(--accent-active); border-color: var(--accent-active); }

/* Secondary: orange outline on the dark ground. */
.btn--outline {
  border-color: var(--accent);
  color: var(--text);
}

.btn--outline:active { background: var(--raised); }

/* On the orange walk-ins card: black fill, and black outline. */
.btn--ink {
  background: var(--ground);
  border-color: var(--ground);
  color: var(--text);
}

.btn--ink-outline {
  border-color: var(--ground);
  color: var(--ground);
}

.btn--nav,
.btn--book { padding: 0 20px; }
.btn--lg { min-height: 52px; padding: 0 28px; }
.btn--xl { display: flex; width: 100%; min-height: 52px; }

@media (min-width: 960px) {
  .btn--nav,
  .btn--book { min-width: 154px; padding: 0 24px; }
}

@media (hover: hover) {
  .btn--accent:hover:not(:disabled) { background: var(--accent-hover); border-color: var(--accent-hover); }
  .btn--outline:hover { background: var(--raised); border-color: var(--accent-hover); }
  .btn--ink:hover { background: var(--raised); border-color: var(--raised); }
  .btn--ink-outline:hover { background: rgba(11, 11, 11, 0.12); }
  .link-accent:hover { color: var(--accent-hover); }
}

/* ---------- Header ---------- */

.site-header {
  background: var(--raised);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  min-height: 64px;
  gap: 8px;
}

.brand {
  display: block;
  flex: none;
  line-height: 0;
  text-decoration: none;
}

.brand__logo { width: 111px; height: auto; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
}

.nav__link[aria-current="page"] { color: var(--accent); font-weight: 700; position: relative; }

.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--accent);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  box-sizing: border-box;
  padding: 0;
  background: transparent;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-btn);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.no-js .menu-btn { display: none; }
.menu-btn__close { display: none; }
.menu-btn[aria-expanded="true"] .menu-btn__open { display: none; }
.menu-btn[aria-expanded="true"] .menu-btn__close { display: block; }

/* Header on the phone and tablet layout: sticky, with the links in a panel under the bar. */
@media (max-width: 959.98px) {
  html { scroll-padding-top: 72px; }
  /* No-JS fallback: with JS the inline script after the header removes this anchor from the DOM. */
  .btn--nav { display: none; }

  .site-header {
    position: sticky;
    top: 0;
    z-index: 40;
  }

  .nav { flex-wrap: wrap; }

  .js .menu-btn { display: inline-flex; }

  /* Without JS the links stay in view as a wrapped row under the bar. */
  .nav__links {
    flex: 1 1 100%;
    order: 3;
    flex-wrap: wrap;
    margin-left: 0;
    padding-bottom: 8px;
    gap: 0 20px;
  }

  .js .nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0;
    padding: 0;
    box-sizing: border-box;
    /* The panel runs from under the header bar down to the quick-action bar and hides the page between them.
       137px is the 64px header bar plus the 73px quick-action bar (12px, 48px button, 12px, 1px rule).
       The quick-action bar adds the bottom safe area to its own height, so the panel gives up the same amount. */
    height: calc(100vh - 137px - env(safe-area-inset-bottom, 0px));
    height: calc(100dvh - 137px - env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    background: var(--raised);
    border-top: 1px solid var(--line);
  }

  .js .nav[data-menu="open"] .nav__links { display: flex; }

  .js .nav__link {
    min-height: 56px;
    padding: 0 var(--pad-x);
    border-top: 1px solid var(--line);
  }

  .js .nav__link:first-child { border-top: 0; }

  /* The active link's bar in the panel: the site's 32 by 3 rule bar, under the label at the row's left padding. */
  .js .nav__link[aria-current="page"]::after {
    left: var(--pad-x);
    right: auto;
    bottom: 8px;
    width: 32px;
  }

  /* The panel clips what overflows it, so the keyboard ring sits inside each row. */
  .js .nav__link:focus-visible,
  .js .menu-social__link:focus-visible { outline-offset: -3px; }

  .nav__actions { order: 2; }
}

/* Instagram under the seven links in the phone panel. Not shown from 960, where the footer carries it. */
.menu-social { display: flex; flex-wrap: wrap; }

.menu-social__link {
  display: inline-flex;
  align-items: center;
  min-height: 56px;
  padding: 0 var(--pad-x);
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
}

.js .menu-social { border-top: 1px solid var(--line); }

@media (min-width: 960px) {
  .menu-social { display: none; }
  .nav { min-height: 96px; }
  .brand__logo { width: 160px; }
  .nav__actions { margin-left: 24px; }
}

/* Seven links: from 960 to 1179 the labels step down to 14px with an 8px gap so the row and the Call button share the bar.
   From 1180 they stay at 16px with 20px between. */
@media (min-width: 960px) and (max-width: 1179.98px) {
  .nav__links { gap: 8px; }
  .nav__link { font-size: 14px; }
}

/* Over the same stretch Book and Call keep their natural width at 15px and the logo steps down to 128px, so both buttons fit beside the links. */
@media (min-width: 960px) and (max-width: 1179.98px) {
  .nav__actions { margin-left: 16px; }
  .btn--nav,
  .btn--book { min-width: 0; padding: 0 16px; font-size: 15px; }
  .brand__logo { width: 128px; }
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ground);
  border-top: 1px solid var(--line);
}

.footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  padding-top: 32px;
  padding-bottom: 40px;
}

.brand--footer .brand__logo { width: 160px; }

.footer__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 24px;
}

.footer__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
  text-underline-offset: 4px;
}

.footer__link--phone { font-variant-numeric: tabular-nums; }

.footer__address { font-size: 16px; color: var(--muted); }
.footer__copy { font-size: 14px; color: var(--muted); }

@media (min-width: 960px) {
  .footer__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "brand links"
      "address links"
      "copy links";
    column-gap: 40px;
    align-items: start;
    padding-top: 40px;
    padding-bottom: 48px;
  }

  .brand--footer { grid-area: brand; justify-self: start; }
  .footer__links { grid-area: links; }
  .footer__address { grid-area: address; }
  .footer__copy { grid-area: copy; }
}

/* Bottom quick-action bar. Phone and tablet, below 960. */
.quickbar { display: none; }

@media (max-width: 959.98px) {
  html { scroll-padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }

  /* Leave room under the footer for the fixed bar. */
  .site-footer { padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }

  .quickbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    background: var(--raised);
    border-top: 1px solid var(--line);
  }

  .btn--bar {
    min-height: 48px;
    padding: 0;
    font-size: 15px;
  }
}

@media (max-width: 359.98px) {
  .brand__logo { width: 96px; }
  .btn--book { padding: 0 12px; font-size: 15px; }
  .btn--bar { font-size: 14px; }
}

/* On a tablet the three buttons keep a sensible width, centered in the bar. */
@media (min-width: 640px) and (max-width: 959.98px) {
  .quickbar {
    grid-template-columns: repeat(3, minmax(0, 220px));
    justify-content: center;
  }
}

@media (hover: hover) {
  .nav__link:hover,
  .footer__link:hover { text-decoration: underline; text-underline-offset: 6px; }
  .menu-btn:hover { border-color: var(--muted); }
  .menu-item__book:hover { text-decoration: underline; text-underline-offset: 6px; }
}

/* ---------- Home: hero ---------- */

.hero {
  display: flex;
  flex-direction: column;
  padding-top: 24px;
  padding-bottom: 48px;
}

.hero__copy {
  min-width: 0;
  margin-top: 24px;
}

.hero__eyebrow {
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* The rule above the eyebrow keeps the left edge of the copy, 12px above the label. */
.hero__eyebrow::before { margin: 0 0 12px; }

.hero__title {
  margin-top: 8px;
  max-width: 14ch;
  font-size: 32px;
  line-height: 34px;
  text-wrap: balance;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

/* Open or closed line under the hero buttons. main.js fills it and removes the hidden attribute. */
.hero__status {
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
}

.hero__status[hidden] { display: none; }

.hero__status > :first-child { font-weight: 700; }
.hero__status > :last-child { color: var(--muted); }

/* Facts: three label and value rows on the phone, three columns from 640px. */
.facts {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  text-align: left;
}

.fact {
  min-width: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.fact dt { font-size: 14px; color: var(--muted); }
.fact dd { margin: 0; font-size: 18px; font-weight: 700; text-align: right; }

/* Only shown with JS off, in place of today's hours. */
.fact__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text);
  text-underline-offset: 3px;
}

/* The photo leads the hero. On a phone its box is a square cut from the top of the file, rows 0 to 1120, crown to shirt,
   so the buttons stay above the fixed bar. From 960 it is the file's own 4 to 5 frame, uncropped, left of the copy. */
.hero__photo {
  display: block;
  width: 100%;
  max-width: 560px;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  object-fit: cover;
  object-position: 50% 0%;
}

@media (min-width: 640px) {
  .hero { padding-top: 32px; }

  .hero__actions {
    flex-direction: row;
    gap: 24px;
  }

  .hero__actions .btn { min-width: 216px; }

  .facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 24px;
    margin-top: 64px;
    border-bottom: 0;
  }

  .fact {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 4px;
    min-height: 0;
    padding: 24px 0 0;
    border-bottom: 0;
  }

  .fact dd { text-align: left; }
}

@media (min-width: 960px) {
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: 48px;
    align-items: center;
    padding-top: 40px;
    padding-bottom: 80px;
  }

  .hero__photo { max-width: none; aspect-ratio: 4 / 5; }
  .hero__copy { margin-top: 0; }
  .hero__title { max-width: none; font-size: 44px; line-height: 46px; }
}

/* ---------- Home: the shop sections ---------- */

.peek { padding-top: 56px; }

.peek--services { padding-top: 40px; }

.peek__menu {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  max-width: 560px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

/* A strip row: the name takes the free width, the Book link keeps its own. The row line comes from .menu-item. */
.peek__menu .menu-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 16px;
  align-items: center;
  min-height: 56px;
  padding: 6px 0;
}

.peek__menu .menu-item__name { overflow-wrap: anywhere; }

.menu-item__book {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  font-size: 16px;
  font-weight: 700;
  text-underline-offset: 4px;
}

.peek--services .page-lede { margin-top: 16px; max-width: 560px; }

/* The proof section ends the page, so it carries the page-end space that Recent work had. */
.peek--proof { padding-bottom: 64px; }

.peek__reviews {
  margin: 24px 0 0;
  max-width: 560px;
  border-top: 1px solid var(--line);
}

.review {
  margin: 0;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.review__text {
  margin: 0;
  max-width: 62ch;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.review__by {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

.review__name { color: var(--text); font-size: 16px; font-weight: 700; }

.review__stars { color: var(--muted); }

.peek__roster {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 32px;
  container-type: inline-size;
}

/* From 320 to 767 the six names sit in two columns and three rows, in source order, with Owner beside Terrence.
   The first column is as wide as its widest row, the second takes the rest. Below 320 the two columns need more
   than the content box holds, and from 768 the six names fit on one line, so both keep the flex row above.
   The names are 32px wherever they fit and shrink only as far as the sixth name needs. The phone rule fits
   Terrence with Owner in the first column beside the sixth name in the second (24px at 320, 32px from 389 in a
   window without a scrollbar); the 768 rule fits the six on one line (26.3px at 768, 32px from 875), and the 960
   rule does the same at the wider gap (32px from 987). Each size is read from the list's own width (100cqi: the
   list is its own size container), so a classic scrollbar cannot push a name over; the 100vw line before it is
   the same fit for a browser without container units. Measured at every width from 320 to 1100, with and
   without a 15px scrollbar, the last name keeps at least 5px. */
@media (min-width: 320px) and (max-width: 767.98px) {
  .peek__roster {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    justify-content: start;
    margin-top: 24px;
    gap: 4px 24px;
  }

  .peek__roster .barber__name {
    font-size: min(32px, calc((100vw - 116px) * 0.1174));
    font-size: min(32px, calc((100cqi - 84px) * 0.1174));
  }
}

@media (min-width: 768px) and (max-width: 959.98px) {
  .peek__roster .barber__name {
    font-size: min(32px, calc((100vw - 276px) * 0.0535));
    font-size: min(32px, calc((100cqi - 228px) * 0.0535));
  }
}

.peek__photos {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.photo--peek { aspect-ratio: 4 / 5; min-width: 0; }

.peek__more { margin-top: 24px; }

.peek__more .link-accent {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
}

@media (min-width: 640px) {
  .peek--proof { padding-bottom: 80px; }
  .peek__photos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 960px) {
  .peek { padding-top: 72px; }

  .peek--services {
    padding-top: 24px;
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-rows: auto auto 1fr auto;
    column-gap: 48px;
    align-items: start;
  }

  .peek--services > .peek__menu { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; }
  .peek--services > .page-lede { grid-column: 2; grid-row: 4; }
  .peek--services > .peek__more { grid-column: 1; grid-row: 2; }
  .peek__roster { margin-top: 40px; gap: 8px 48px; }
  .peek__roster .barber__name {
    font-size: min(32px, calc((100vw - 388px) * 0.0535));
    font-size: min(32px, calc((100cqi - 308px) * 0.0535));
  }
  .peek__photos { margin-top: 40px; gap: 24px; }

  .peek--proof {
    padding-bottom: 96px;
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-rows: auto 1fr;
    column-gap: 48px;
    align-items: start;
  }

  .peek--proof > .peek__reviews { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; }
  .peek--proof > .page-lede { grid-column: 1; grid-row: 2; }
}

/* ---------- Card rule bars and the motion moment ---------- */

.barber__body::before,
.moment__title::before,
.event::before {
  width: 32px;
  height: 3px;
  margin-bottom: 16px;
  transform-origin: left;
}

/* The one motion moment: on hover or keyboard focus of its Book button, a barber card's rule bar grows from 32px to 56px.
   Transform only. No transition under reduced motion. */
.barber__body::before {
  transition: transform 200ms var(--ease);
}

/* On a barber card the rule follows the Book button, not the card. */
.barber:has(.barber__book:focus-visible) .barber__body::before { transform: scaleX(1.75); }

@media (hover: hover) {
  .barber:has(.barber__book:hover) .barber__body::before { transform: scaleX(1.75); }
}

@media (prefers-reduced-motion: reduce) {
  .barber__body::before { transition: none; }
}

/* ---------- Inner page template ---------- */

.page-head {
  padding-top: 44px;
  padding-bottom: 32px;
}

.page-lede { margin-top: 10px; }

.page-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding-top: 40px;
  padding-bottom: 64px;
}

@media (min-width: 640px) {
  .page-cta {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 24px;
  }

  .page-cta h2 { flex: 0 0 100%; }
}

@media (min-width: 960px) {
  .page-cta { padding-top: 48px; padding-bottom: 80px; }
}

/* ---------- Photos ---------- */

.photo {
  position: relative;
  overflow: hidden;
  background: var(--line);
}

.photo__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo--feeding .photo__img { object-position: 50% 30%; }
.photo--top .photo__img { object-position: 50% 20%; }
.photo--right .photo__img { object-position: 100% 0%; }
.photo--top-left .photo__img { object-position: 0% 0%; }

/* ---------- Pick your barber ---------- */

.pick {
  padding-top: 48px;
  padding-bottom: 48px;
}

.pick__inner .section-title { margin-bottom: 24px; }

.pick__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.pick__card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: var(--raised);
  border-radius: var(--radius);
}

.pick__photo {
  flex: none;
  aspect-ratio: 4 / 3;
}

.pick__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 12px;
}

.pick__name {
  font-size: 16px;
  font-weight: 800;
  line-height: 20px;
  overflow-wrap: anywhere;
}

.pick__line {
  margin-bottom: 8px;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 18px;
  color: var(--muted);
}

/* The Book button sits at the foot of its card, so the buttons line up across a row and the card without one keeps its row height. */
.pick__book {
  width: 100%;
  margin-top: auto;
  padding: 0 16px;
}

@media (min-width: 640px) {
  .pick__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .pick__body { padding: 16px; }
}

@media (min-width: 960px) {
  .pick { padding-top: 64px; padding-bottom: 64px; }
  .pick__inner .section-title { margin-bottom: 32px; }
}

@media (min-width: 1180px) {
  .pick__list { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .pick__name { font-size: 18px; line-height: 22px; }
}

/* ---------- Barbers ---------- */

.barbers__inner { padding-bottom: 16px; }

.barbers {
  list-style: none;
  margin: 0;
  padding: 0;
}

.barber {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  padding: 32px 0;
}

.barber + .barber { border-top: 1px solid var(--line); }

.barber__photo {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 7 / 6;
  border-radius: var(--radius);
}

.barber__body { min-width: 0; }

.barber__heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
}

.barber__name {
  font-size: 32px;
  font-weight: 800;
  line-height: 34px;
  letter-spacing: -0.02em;
}

@media (min-width: 640px) {
  .barber__name { line-height: 36px; }
}

/* The Home roster shares .barber__name at 32px, so the profile size is set on the profile list only. */
.barbers .barber__name { font-size: 24px; line-height: 30px; overflow-wrap: anywhere; }

.barber__role { font-size: 14px; color: var(--muted); }

.barber__handle {
  margin-top: 4px;
  font-size: 14px;
  line-height: 19px;
  color: var(--muted);
}

.barber__handle .link-accent { display: inline-flex; align-items: center; min-height: 44px; overflow-wrap: anywhere; }

.barber__bio {
  max-width: 62ch;
  margin-top: 16px;
  font-size: 15px;
  line-height: 24px;
}

.barber__buttons {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 420px;
  margin-top: 24px;
}

@media (min-width: 960px) {
  .barber {
    display: grid;
    grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
    gap: 40px;
    align-items: start;
  }
  .barber__photo { max-width: none; aspect-ratio: 5 / 6; }
  .barbers .barber__name { font-size: 28px; line-height: 34px; }
  .barber__handle { font-size: 15px; line-height: 20px; }
  .barber__bio { font-size: 16px; line-height: 26px; }
  .barber__buttons { flex-direction: row; flex-wrap: wrap; gap: 24px; max-width: none; }
  .barber__book,
  .barber__more { min-width: 210px; }
}

/* ---------- Work ---------- */

.work-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.photo--work { aspect-ratio: 4 / 5; min-width: 0; }

.work__label {
  position: absolute;
  left: 8px;
  bottom: 8px;
  max-width: calc(100% - 16px);
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--ground);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.work__more { margin-top: 24px; }

.work__more .link-accent {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
}

/* Nine tiles in two columns leave one over, so the last tile spans both. */
@media (max-width: 959.98px) {
  .photo--work:last-child { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
  .photo--work:last-child .photo__img { object-position: 50% 20%; }
}

@media (min-width: 960px) {
  .work-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .photo--work { aspect-ratio: 1 / 1; }
  .work__label { left: 12px; bottom: 12px; max-width: calc(100% - 24px); }
}

/* ---------- Services ---------- */

.menu-grid { margin-bottom: 40px; }

.menu-group {
  break-inside: avoid;
  margin-bottom: 32px;
}

.menu-group__title {
  padding-top: 14px;
  border-top: 3px solid var(--accent);
  font-size: 24px;
  font-weight: 800;
  line-height: 28px;
  letter-spacing: -0.02em;
}

.menu-list { list-style: none; margin: 8px 0 0; padding: 0; }

.menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  box-sizing: border-box;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.menu-item__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.menu-item__name { font-size: 17px; font-weight: 700; }
.menu-item__note { font-size: 14px; line-height: 1.4; color: var(--muted); }

.guide {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px;
  background: var(--raised);
  border-radius: var(--radius);
}

.guide__head { display: flex; flex-direction: column; gap: 8px; }

.guide__title {
  font-size: 24px;
  font-weight: 800;
  line-height: 28px;
  letter-spacing: -0.02em;
}

.guide__intro { max-width: 62ch; color: var(--muted); }

.guide__scale {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px 12px;
}

.guide__step { display: flex; flex-direction: column; gap: 4px; min-width: 0; }

.guide__swatch {
  display: block;
  height: 56px;
  margin-bottom: 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.guide__swatch--skin { background: var(--swatch-skin); }
.guide__swatch--0-5 { background: var(--swatch-0-5); }
.guide__swatch--1 { background: var(--swatch-1); }
.guide__swatch--1-5 { background: var(--swatch-1-5); }
.guide__swatch--2 { background: var(--swatch-2); }
.guide__swatch--3 { background: var(--swatch-3); }
.guide__swatch--4 { background: var(--swatch-4); }

.guide__name { font-size: 16px; font-weight: 700; line-height: 1.2; }
.guide__length { font-size: 13px; line-height: 1.3; color: var(--muted); }
.guide__note { font-size: 13px; line-height: 1.45; color: var(--muted); }

/* On a phone the guard scale is one column of rows: swatch on the left, name over length on the right. */
@media (max-width: 639.98px) {
  .guide__scale { grid-template-columns: minmax(0, 1fr); gap: 16px; }

  .guide__step {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-content: center;
    gap: 2px 16px;
  }

  .guide__swatch { grid-row: 1 / span 2; margin-bottom: 0; }
  .guide__name { align-self: end; }
  .guide__length { align-self: start; }
}

@media (min-width: 960px) {
  .menu-grid { column-count: 2; column-gap: 80px; }
  .guide { padding: 32px; }
  .guide__scale { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0 16px; }
}

/* ---------- Bee You ---------- */

.beeyou__ask { max-width: 62ch; font-size: 18px; line-height: 1.5; }

/* ---------- Community ---------- */

.community__inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.moments,
.events {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

.moment,
.event { min-width: 0; }

.photo--moment { aspect-ratio: 4 / 3; margin-bottom: 16px; }

.moment__title,
.event__title {
  display: block;
  font-size: 22px;
  font-weight: 800;
  line-height: 26px;
  letter-spacing: -0.02em;
}

.community__cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

.card {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
  padding: 24px;
  background: var(--raised);
  border-radius: var(--radius);
}

.card__title {
  font-size: 22px;
  font-weight: 800;
  line-height: 26px;
  letter-spacing: -0.02em;
}

.card__title--accent { color: var(--accent); }

.card__text { max-width: 46ch; }

.community__book { align-self: flex-start; }

/* Below 960 the quick-action bar carries Call, Text and Directions, so the in-page contact block goes and the last wrapper keeps the page-end space the block gave it. */
@media (max-width: 959.98px) {
  .page-cta--contact { display: none; }
  .community__book { display: none; }
  .services__inner,
  .work__inner,
  .barbers__inner,
  .community__inner,
  .beeyou__inner { padding-bottom: 64px; }
}

.card__quote { display: flex; flex-direction: column; gap: 4px; }
.card__quote-text { margin: 0; font-size: 18px; font-style: italic; line-height: 1.5; }
.card__quote-source { font-size: 14px; color: var(--muted); }

@media (min-width: 640px) {
  .moments,
  .events { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 960px) {
  .community__inner { gap: 48px; }
  .community__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card { padding: 32px; }
  .card__title,
  .moment__title,
  .event__title { font-size: 24px; line-height: 28px; }
}

/* ---------- Visit ---------- */

.book__inner { padding-bottom: 8px; }

/* The walk-ins block and the address block stand alone in one column at a readable width. */
.book__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  max-width: 560px;
}

/* Below 960px the two blocks of the side column are grid items of their own, in page order. */
.book__side { display: contents; }

.walkins {
  --focus: var(--ground);
  box-sizing: border-box;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  background: var(--accent);
  color: var(--ground);
  border-radius: var(--radius);
}

.walkins__title {
  font-size: 22px;
  font-weight: 800;
  line-height: 26px;
  letter-spacing: -0.02em;
}

.walkins__text { max-width: 46ch; }

.walkins__status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 16px;
  padding: 16px;
  background: var(--ground);
  color: var(--text);
  border-radius: var(--radius-btn);
}

.walkins__status-label { font-size: 16px; }

.walkins__status-value {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.visit__main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.visit__title,
.visit__hours-title {
  font-size: 24px;
  font-weight: 800;
  line-height: 28px;
  letter-spacing: -0.02em;
}

.visit__address {
  display: flex;
  flex-direction: column;
  font-size: 18px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.4;
}

.visit__rating {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
}

.visit__review,
.visit__social .link-accent {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.visit__social { display: flex; flex-wrap: wrap; gap: 0 24px; }

/* Hours */
.visit-hours .visit__inner { padding-top: 40px; padding-bottom: 56px; }

.visit__hours { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

.visit__hours table {
  width: 100%;
  border-collapse: collapse;
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}

.visit__hours tr { border-top: 1px solid var(--line); }
.visit__hours tr:last-child { border-bottom: 1px solid var(--line); }
.visit__hours th { padding: 14px 0; text-align: left; font-weight: 500; }
.visit__hours td { padding: 14px 0; text-align: right; color: var(--muted); }

/* Today's row, marked by main.js. */
.visit__hours tr.is-today th,
.visit__hours tr.is-today td { color: var(--text); font-weight: 700; }

.hours__google { white-space: nowrap; }

.hours__day { display: inline-flex; align-items: center; gap: 10px; }

.badge-today {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ground);
  font-size: 13px;
  font-weight: 700;
}

/* Shown by main.js once the hours on screen come from the shop's Google listing. Google asks for its
   name as plain text, Roboto where the visitor has it, 12 to 16px. On the dark ground the listed gray
   (#5E5E5E) is only about 3 to 1, so it is the muted token here. */
.hours__source {
  font-family: Roboto, Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--muted);
}

@media (min-width: 640px) {
  .walkins { padding: 32px; }
}

@media (min-width: 960px) {
  .book__side {
    display: flex;
    flex-direction: column;
    gap: 48px;
    min-width: 0;
  }

  .walkins__title { font-size: 24px; line-height: 28px; }
  .visit-hours .visit__inner { padding-top: 56px; padding-bottom: 80px; }
  .visit__hours table { font-size: 18px; }
}

/* ---------- Meet the Owner ----------
   A reading page. His four opening lines sit beside his graphic, then ten sections under his own headings, then his contact card.
   The title and the ten headings reuse page-title and section-title. The bar above each heading is the shared rule device. */

.owner-head {
  padding-top: 28px;
  padding-bottom: 28px;
}

.owner-head__copy { min-width: 0; }

.owner-head__title {
  color: var(--text);
  text-wrap: balance;
}

.owner-head__sub {
  margin-top: 18px;
  color: var(--text);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.4;
  text-wrap: balance;
}

.owner-head__by {
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
}

.owner-head__roles {
  margin-top: 14px;
  color: var(--text);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  text-wrap: balance;
}

/* The graphic keeps its own ratio: the column sets the width, the file sets the height, nothing crops it.
   Under 960 it sits below the copy, at most 520 wide. */
.owner-head__photo {
  width: 100%;
  max-width: 520px;
  height: auto;
  margin-top: 40px;
}

/* The reading column: 1080 wide, left aligned at the gutter. */
.owner-section { max-width: 1080px; }
.owner-section + .owner-section { margin-top: 60px; }

.owner-section__title { color: var(--text); }

.owner-section__text {
  margin-top: 20px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
}

/* His set-larger lines: bold, text color, a little more air above. */
.owner-section__emph {
  margin-top: 22px;
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}

.owner-section__title + p { margin-top: 22px; }

/* The contact card: raised ground, his heading, five rows. It sits at the page gutter and is at most 1080 wide. */
.owner-card {
  box-sizing: border-box;
  max-width: 1080px;
  margin: 60px var(--pad-x) 56px;
  padding: 24px 20px;
  background: var(--raised);
  border-radius: var(--radius);
}

.owner-card__title {
  margin-bottom: 18px;
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

.owner-card__row {
  color: var(--muted);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.owner-card__row + .owner-card__row { margin-top: 16px; }

/* The three links get a 44px target. The negative margin hands the padding back, so the rows keep their pitch. */
.owner-card__row .link-accent {
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  min-height: 44px;
  margin: -10px 0;
  padding: 10px 0;
}

@media (min-width: 640px) {
  .owner-card { padding-right: 30px; padding-left: 30px; }
}

@media (min-width: 960px) {
  .owner-head {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    column-gap: 60px;
    align-items: start;
    padding-top: 40px;
    padding-bottom: 64px;
  }

  .owner-head__copy { padding-top: 14px; }
  .owner-head__sub { margin-top: 20px; font-size: 20px; }
  .owner-head__by { font-size: 16px; }
  .owner-head__roles { font-size: 16px; }
  .owner-head__photo { max-width: none; margin-top: 0; }
  .owner-section + .owner-section { margin-top: 64px; }
  .owner-section__text { font-size: 17px; }
  .owner-section__emph { font-size: 21px; }
  .owner-card { margin-top: 64px; margin-bottom: 64px; }
  .owner-card__title { font-size: 20px; }
  .owner-card__row { font-size: 17px; }
}

/* Past 1440 the page container is centered, so the card follows its left edge. */
@media (min-width: 1440px) {
  .owner-card { margin-left: calc((100% - var(--container)) / 2 + var(--pad-x)); }
}
