.home {
  color: var(--ink);
  font: 400 16px/1.35 var(--font);
}
.home h1, .home h2, .home h3, .home p { margin: 0; }
.home :focus-visible { outline: 3px solid var(--b); outline-offset: 2px; }
.home-width { width: min(calc(100% - 64px), 1120px); margin-inline: auto; }
.home .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.home-bar, .nearby-heading, .home-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.home-bar { min-height: 63px; }
.home .wordmark { gap: 8px; letter-spacing: 0; }
.home-link {
  display: inline-flex;
  min-height: 44px;
  gap: 7px;
  color: var(--b-ink);
  font-size: 15px;
  font-weight: 600;
}
.home-link:hover { color: var(--b-hi); text-decoration: underline; }
.home-link svg { width: 16px; height: 16px; }
.home-nav { display: flex; flex-wrap: wrap; gap: 0 16px; align-items: center; max-width: 100%; }
.home-bookings-link { justify-content: center; padding-inline: 12px; border-radius: var(--r-chip); }
.home-bookings-link[aria-current="page"], .home-bookings-link:hover { background: var(--b-soft); }
@media (max-width: 760px) {
  .home-nav { gap: 0 8px; }
  .home-nav .home-bookings-link { padding-inline: 8px; font-size: 13px; }
  .home-nav .home-bookings-link > [data-icon] { display: none; }
}
@media (max-width: 380px) {
  .home-nav { gap: 0 4px; }
  .home-nav .home-link { font-size: 13px; }
}

.home-hero { background: var(--b-100); overflow: hidden; }
.hero-inner { position: relative; padding-block: 10px 30px; }
.hero-inner h1 { font-size: 52px; line-height: 1; letter-spacing: -.03em; }
.hero-inner .title-compact { display: none; }
.hero-description { padding-top: 8px; color: var(--t2); font-size: 19px; line-height: 25px; }
.storefront {
  position: absolute;
  width: min(30%, 333px);
  height: auto;
  right: -17px;
  top: 56px;
  pointer-events: none;
}
#home-search {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 260fr) minmax(0, 390fr) minmax(112px, 158fr);
  align-items: stretch;
  gap: 10px;
  max-width: 828px;
  margin-top: 27px;
}
.home-field {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  column-gap: 9px;
  align-content: center;
  min-width: 0;
  min-height: 58px;
  padding: 4px 7px 4px 11px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: white;
}
.home-field:focus-within { border-color: var(--b); }
.home-field > [data-icon]:first-child { grid-area: 1 / 1 / 3 / 2; align-self: center; }
.home-field [data-icon] svg { width: 18px; height: 18px; }
.home-field label, .district-field small { grid-column: 2; font-size: 12px; font-weight: 600; color: var(--t3); }
.home-field select, .district-field strong, #home-service-value {
  min-width: 0;
  width: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
  line-height: 22px;
}
.home-place-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px; }
.district-field { text-align: left; grid-template-columns: 18px minmax(0, 1fr); }
.district-field strong { grid-column: 2; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.service-field select {
  position: absolute;
  inset: 0;
  height: 100%;
  padding: 15px 32px 0 38px;
  appearance: none;
  cursor: pointer;
  border-radius: inherit;
}
.service-field label { align-self: start; position: absolute; top: 8px; left: 0; }
.field-chevron { grid-area: 1 / 3 / 3 / 4; align-self: center; padding-right: 4px; pointer-events: none; }
.field-chevron svg { width: 14px; height: 14px; }
.home-submit { height: auto; min-height: 58px; padding: 8px 12px; border-radius: var(--r-chip); font-weight: 700; }
#home-location-feedback:not(:empty) { padding-top: 10px; color: var(--b-ink); font-size: 14px; }

.services { padding-block: 17px 12px; }
.services-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
#home-name-field { grid-column: 1 / 3; }
#home-name-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 48px; padding: 4px 8px; border: 0; border-radius: 8px; background: transparent; color: var(--b-ink); font-weight: 650; font-size: 14px; }
#home-name-toggle:hover { background: var(--b-soft); }
#home-name-toggle svg { width: 16px; height: 16px; }
.services h2 { font-size: 23px; letter-spacing: -.02em; line-height: 30px; }
.category-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin-top: 10px; }
.category-grid a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: var(--r-input);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}
.category-grid a:hover { border-color: var(--b); background: var(--b-soft); }
.category-grid .tile, .barber-icon { display: grid; place-items: center; }
.category-grid .tile { width: 36px; height: 36px; }
.category-grid .blow { color: var(--b-ink); background: var(--b-soft); }
.category-grid .kids { color: var(--kid); background: var(--beard-s); }

.home-nearby { padding-block: 15px 27px; background: var(--b-soft); }
.nearby-heading { gap: 12px; }
.nearby-context-row, .audience-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
#home-audience { display: inline-flex; flex: none; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 5px 11px; border: 6px solid transparent; border-inline: 0; border-radius: 16px; background: var(--b-100) padding-box; color: var(--b-ink); font-weight: 650; font-size: 14px; }
#home-audience svg { width: 16px; height: 16px; }
.nearby-heading h2, .how h2 { font-size: 30px; line-height: 38px; letter-spacing: -.03em; }
#home-context { color: var(--t2); font-size: 15px; min-width: 0; overflow-wrap: anywhere; }
#home-results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 3vw, 35px); margin-top: 14px; }
#home-results .shop-card {
  margin: 0;
  padding: 15px;
  gap: 10px;
  min-height: 226px;
  align-content: start;
  color: var(--ink);
}
#home-results .card-top { gap: 12px; }
#home-results .card-meta { min-height: 30px; }
#home-results .card-meta .fine { margin-inline-start: auto; }
#home-results .card-bottom { gap: 7px; }
#home-results .card-bottom .small:first-child { font-weight: 600; }
#home-results .skeleton-card { margin: 0; }
.home-notice {
  grid-column: 1 / -1;
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 24px;
  min-height: 130px;
  border: 1px solid var(--line);
  border-radius: var(--r-row);
  background: white;
}
.home-notice > .icon-slot { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 12px; background: var(--b-100); }
.home-notice h3 { font-size: 22px; line-height: 1.25; }
.home-notice p { margin-top: 8px; color: var(--t2); }
.home-notice .chip { margin-left: auto; flex: none; min-height: 44px; border: 0; border-radius: 10px; background: var(--b-100); color: var(--b-ink); }

.how { padding-block: 27px 30px; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding: 0; margin: 21px 0 0; counter-reset: home-step; }
.steps li { counter-increment: home-step; display: flex; align-items: flex-start; gap: 12px; min-height: 57px; }
.steps li::before { content: counter(home-step); display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--b-100); color: var(--b-ink); font-size: 15px; font-weight: 700; }
.steps strong { font-size: 18px; }
.steps p { padding-top: 4px; color: var(--t2); font-size: 14px; }
.barber-block { display: grid; grid-template-columns: 40px 1fr auto; gap: 16px; align-items: center; margin-bottom: 30px; padding: 16px 20px; min-height: 89px; background: var(--b-100); border-radius: var(--r-row); }
.barber-icon { width: 40px; height: 40px; border-radius: var(--r-chip); background: white; }
.barber-block h2 { font-size: 21px; }
.barber-block p { padding-top: 3px; color: var(--t2); font-size: 15px; }
.barber-block .home-link { justify-content: center; min-width: 148px; padding-inline: 14px; border-radius: 10px; background: white; }
#home-audience-dialog { width: min(380px, calc(100% - 32px)); border: 1px solid var(--line); border-radius: 16px; padding: 12px 12px 24px; color: var(--ink); box-shadow: var(--shadow-overlay); }
#home-audience-dialog::backdrop { background: rgba(21,21,27,.45); }
#home-audience-title { font-size: 22px; }
#home-audience-close { display: grid; place-items: center; width: 48px; height: 48px; border: 0; background: transparent; }

@media (min-width: 761px) and (max-width: 1160px) {
  .storefront { width: min(24%, 240px); top: 14px; right: 0; }
  .category-grid { gap: 8px; }
  .category-grid a { gap: 6px; padding-inline: 6px; }
}
@media (min-width: 761px) and (max-width: 940px) {
  .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #home-results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .home-width { width: calc(100% - 40px); }
  .home-bar { min-height: 55px; }
  .hero-inner { padding-block: 15px 18px; }
  .hero-inner h1 { position: relative; z-index: 1; font-size: 36px; line-height: 38px; }
  .hero-description { max-width: 252px; padding-top: 9px; font-size: 15px; line-height: 20px; }
  .storefront { width: min(28vw, 135px); top: 34px; right: -10px; }
  #home-search { grid-template-columns: 1fr; gap: 5px; margin-top: 7px; }
  .home-field { min-height: 50px; border-radius: var(--r-chip); padding: 2px 4px 2px 11px; }
  .district-field strong, .home-field select { font-size: 16px; }
  .service-field label { top: 3px; }
  .home-submit { min-height: 48px; margin-top: 1px; font-size: 16px; }
  #home-name-field { grid-column: 1 / -1; }
  .services { padding-block: 10px 12px; }
  .services-heading { min-height: 48px; margin-block: -10px -6px; }
  .services h2 { font-size: 20px; line-height: 26px; }
  .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 10px; margin-top: 7px; }
  .category-grid a { flex-direction: column; justify-content: center; gap: 3px; min-height: 60px; padding: 4px; font-size: 13px; text-align: center; }
  .category-grid .tile { width: 28px; height: 28px; border-radius: 9px; }
  .category-grid .tile svg { width: 18px; height: 18px; }
  .home-nearby { padding-block: 5px 22px; }
  .nearby-heading { gap: 6px; }
  .nearby-heading h2 { font-size: 22px; line-height: 1.2; }
  .nearby-heading .home-link { flex: none; font-size: 14px; }
  #home-context { font-size: 13px; }
  .home-sort-note { display: none; }
  #home-results { grid-template-columns: 1fr; gap: 12px; margin-top: 0; }
  #home-results .shop-card { gap: 7px; padding-block: 13px; }
  .home-notice { display: grid; grid-template-columns: 38px minmax(0, 1fr); align-content: start; padding: 16px; }
  .home-notice > div { display: contents; }
  .home-notice h3 { font-size: 18px; }
  .home-notice p { grid-column: 1 / -1; font-size: 14px; margin: 0; }
  .home-notice .chip { grid-column: 1 / -1; justify-self: start; margin: 0; }
  .how { padding-block: 20px; }
  .how h2 { font-size: 23px; line-height: 30px; }
  .steps { grid-template-columns: 1fr; gap: 12px; margin-top: 16px; }
  .steps li { min-height: 59px; }
  .steps strong { font-size: 16px; }
  .steps p { font-size: 13px; }
  .barber-block { grid-template-columns: 40px 1fr; align-items: start; gap: 10px 12px; padding: 16px; }
  .barber-block h2 { font-size: 18px; }
  .barber-block p { font-size: 13px; }
  .barber-block .home-link { grid-column: 2; justify-self: start; }
}
@media (max-width: 360px) {
  .home-width { width: calc(100% - 28px); }
  .hero-inner h1 { font-size: 31px; }
  .storefront { right: -4px; }
}

@media (max-width: 760px) {
  .home { overflow-wrap: anywhere; }
  .hero-inner h1 { line-height: 1.06; }
  .hero-description, .services h2, .how h2,
  .home-field select, .district-field strong, #home-service-value { line-height: normal; }
  .service-field label { position: static; grid-row: 1; }
  #home-service-value:not(:empty) { display: block; grid-area: 2 / 2; font-size: 16px; }
  .service-field > [data-icon], .field-chevron { pointer-events: none; }
  .home-bar, .services-heading, .nearby-heading, .nearby-context-row { flex-wrap: wrap; }
  #home-search, #home-results { grid-template-columns: minmax(0, 1fr); }
  .home-place-actions { display: flex; flex-wrap: wrap; }
  .home-place-actions > button { flex: 1 1 auto; max-width: 100%; }
  .home-submit { white-space: normal; }
  .home-link, #home-audience, #home-name-toggle { max-width: 100%; }
  .category-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, max(28%, 5em)), 1fr)); }
}
@media (max-width: 260px) {
  .storefront { display: none; }
  .home-place-actions { display: grid; grid-template-columns: minmax(0, 1fr); }
  .district-field strong { white-space: normal; overflow: visible; }
  .service-field { grid-template-columns: minmax(0, 1fr) auto; padding: 6px; }
  .service-field label { grid-column: 1; }
  #home-service-value:not(:empty) { grid-area: 2 / 1 / 3 / -1; }
  .service-field > [data-icon] { display: none; }
  .service-field .field-chevron { grid-area: 1 / 2; }
  .barber-block { grid-template-columns: minmax(0, 1fr); }
  .barber-block .home-link { grid-column: 1; min-width: 0; }
}
@media (max-width: 220px) {
  .hero-inner .title-full { display: none; }
  .hero-inner .title-compact { display: inline; }
}
