:root {
  color-scheme: light;
  --coal: #171513;
  --ink: #221f1b;
  --cream: #f7f0e5;
  --paper: #fffaf3;
  --brass: #b7793c;
  --garnet: #7d2f2b;
  --blue: #2f6473;
  --muted: #776f65;
  --line: rgba(34, 31, 27, 0.16);
  --shadow: 0 22px 48px rgba(23, 21, 19, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "Avenir Next", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.top-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px max(20px, calc((100vw - 1180px) / 2));
  background: var(--coal);
  color: rgba(255, 250, 243, 0.82);
  font-size: 13px;
  font-weight: 800;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(180px, auto) 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 16px max(20px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(23, 21, 19, 0.12);
  background: rgba(247, 240, 229, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 2px solid var(--coal);
  border-radius: 8px;
  background: var(--garnet);
  color: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  font-weight: 900;
}

.brand strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  letter-spacing: 0;
}

.brand span span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.main-nav a,
.button,
.gallery-lock {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid rgba(183, 121, 60, 0.34);
  border-radius: 8px;
  background: rgba(255, 250, 243, 0.72);
  color: var(--coal);
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.main-nav a[aria-current="page"] {
  background: var(--coal);
  color: #ffffff;
}

.header-cta,
.button {
  border-color: var(--garnet);
  background: var(--garnet);
  color: #ffffff;
}

.button.secondary {
  border-color: rgba(255, 250, 243, 0.76);
  background: rgba(255, 250, 243, 0.14);
  color: #ffffff;
}

.button.light {
  border-color: rgba(23, 21, 19, 0.2);
  background: var(--paper);
  color: var(--coal);
}

.gallery-lock {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  border-color: var(--coal);
  background: var(--coal);
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(23, 21, 19, 0.25);
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 640px;
  display: grid;
  align-items: end;
  padding: 120px max(20px, calc((100vw - 1180px) / 2)) 70px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(23, 21, 19, 0.92), rgba(23, 21, 19, 0.68) 46%, rgba(23, 21, 19, 0.18)),
    var(--hero-image, url("https://images.unsplash.com/photo-1585747860715-2ba37e788b70?auto=format&fit=crop&w=1800&q=80")) center / cover;
  color: #ffffff;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 42%;
  background: linear-gradient(0deg, rgba(23, 21, 19, 0.88), transparent);
}

.hero-copy {
  width: min(760px, 100%);
  padding: 24px;
  border: 2px solid rgba(255, 250, 243, 0.72);
  border-radius: 8px;
  background: rgba(23, 21, 19, 0.62);
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 16px;
  color: #f2c48e;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
}

h1 {
  max-width: 780px;
  font-size: 76px;
  line-height: 0.96;
}

h2 {
  color: var(--coal);
  font-size: 52px;
  line-height: 1.04;
}

h3 {
  font-size: 22px;
}

.hero p:not(.eyebrow),
.lead {
  max-width: 660px;
  color: rgba(255, 250, 243, 0.88);
  font-size: 18px;
  line-height: 1.7;
}

.hero .hero-actions {
  border-top: 1px solid rgba(255, 250, 243, 0.2);
  padding-top: 22px;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.section {
  padding: 78px max(20px, calc((100vw - 1180px) / 2));
}

.section.paper {
  background: var(--paper);
}

.section.coal {
  background: var(--coal);
  color: #ffffff;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 34px;
}

.section-heading p,
.split-copy p,
.card p,
.menu-item p,
.team-card p,
.visit-step p,
.price-note {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.coal .section-heading p,
.coal .card p,
.coal .visit-step p {
  color: rgba(255, 250, 243, 0.72);
}

.coal h2,
.coal h3 {
  color: #ffffff;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  gap: 36px;
  align-items: center;
}

.photo-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.photo-panel img {
  width: 100%;
  height: 450px;
  object-fit: cover;
}

.card-grid,
.team-grid,
.menu-grid,
.visit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card,
.team-card,
.menu-item,
.visit-step {
  min-height: 100%;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 243, 0.76);
}

.coal .card,
.coal .visit-step {
  border-color: rgba(255, 250, 243, 0.16);
  background: rgba(255, 250, 243, 0.06);
}

.card strong,
.menu-item strong,
.team-card strong,
.visit-step strong {
  display: block;
  margin-bottom: 10px;
  color: var(--coal);
  font-size: 18px;
}

.coal .card strong,
.coal .visit-step strong {
  color: #ffffff;
}

.menu-item {
  display: grid;
  gap: 10px;
}

.menu-item .price {
  color: var(--garnet);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 900;
}

.service-list {
  display: grid;
  gap: 16px;
}

.service-row {
  display: grid;
  grid-template-columns: minmax(170px, 0.4fr) 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.service-row strong {
  color: var(--coal);
  font-size: 18px;
}

.service-row p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.service-row span {
  color: var(--blue);
  font-weight: 950;
  white-space: nowrap;
}

.team-card img {
  width: 100%;
  height: 290px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 16px;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.badge-row span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  border: 1px solid rgba(47, 100, 115, 0.22);
  border-radius: 8px;
  padding: 0 10px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.membership-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
  gap: 28px;
  align-items: start;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.number-stack {
  display: grid;
  gap: 12px;
}

.number-stack div {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  align-items: start;
}

.number-stack code {
  display: grid;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: var(--coal);
  color: #ffffff;
  font-family: inherit;
  font-weight: 950;
}

.booking-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.55fr);
  gap: 26px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.booking-panel .visit-grid {
  grid-template-columns: 1fr;
  align-content: start;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--coal);
  font-size: 13px;
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(34, 31, 27, 0.2);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  min-height: 44px;
  padding: 10px 12px;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

.full {
  grid-column: 1 / -1;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding: 26px max(20px, calc((100vw - 1180px) / 2));
  background: var(--coal);
  color: rgba(255, 250, 243, 0.72);
  font-size: 14px;
}

.footer a {
  color: #ffffff;
  font-weight: 900;
}

.barber-hero {
  min-height: 680px;
  display: grid;
  grid-template-columns: minmax(210px, 0.36fr) minmax(0, 0.9fr) minmax(280px, 0.64fr);
  gap: 28px;
  align-items: end;
  padding: 74px max(20px, calc((100vw - 1180px) / 2)) 54px;
  background:
    linear-gradient(135deg, rgba(125, 47, 43, 0.12), transparent 42%),
    linear-gradient(315deg, rgba(47, 100, 115, 0.14), transparent 38%),
    var(--cream);
}

.barber-copy h1 {
  color: var(--coal);
  font-size: 74px;
}

.barber-copy {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.barber-copy .eyebrow {
  color: var(--garnet);
}

.barber-copy p:not(.eyebrow) {
  max-width: 650px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.barber-ticket {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 2px solid var(--coal);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 10px 10px 0 var(--brass);
}

.barber-ticket span {
  color: var(--garnet);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.barber-ticket strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 31px;
  line-height: 1;
}

.barber-ticket p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.barber-photo-wall {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 12px;
  align-items: end;
}

.barber-photo-wall img {
  width: 100%;
  object-fit: cover;
  border: 4px solid var(--paper);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.barber-photo-wall img:nth-child(1) {
  grid-row: span 2;
  height: 470px;
}

.barber-photo-wall img:nth-child(2),
.barber-photo-wall img:nth-child(3) {
  height: 228px;
}

.shop-counter {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.cut-board {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px 16px;
  padding: 24px;
  border-radius: 8px;
  background: var(--coal);
  color: #ffffff;
  box-shadow: var(--shadow);
}

.cut-board span {
  display: grid;
  height: 40px;
  place-items: center;
  border-radius: 8px;
  background: var(--brass);
  font-weight: 950;
}

.cut-board strong {
  align-self: center;
  font-size: 19px;
}

.cut-board p {
  grid-column: 2;
  margin: -6px 0 10px;
  color: rgba(255, 250, 243, 0.74);
  line-height: 1.55;
}

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: 1fr;
  }

  .main-nav {
    justify-content: flex-start;
  }

  h1 {
    font-size: 54px;
  }

  h2 {
    font-size: 40px;
  }

  .split,
  .barber-hero,
  .shop-counter,
  .membership-band,
  .booking-panel {
    grid-template-columns: 1fr;
  }

  .card-grid,
  .team-grid,
  .menu-grid,
  .visit-grid {
    grid-template-columns: 1fr 1fr;
  }

  .barber-photo-wall {
    grid-template-columns: repeat(3, 1fr);
  }

  .barber-photo-wall img:nth-child(1),
  .barber-photo-wall img:nth-child(2),
  .barber-photo-wall img:nth-child(3) {
    grid-row: auto;
    height: 260px;
  }

  .service-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .top-strip {
    display: none;
  }

  .site-header {
    position: static;
  }

  .main-nav a {
    flex: 1 1 42%;
  }

  .hero {
    min-height: 560px;
    padding-top: 80px;
  }

  .barber-hero {
    min-height: auto;
    padding-top: 44px;
  }

  .barber-copy {
    order: -1;
  }

  .barber-ticket {
    order: 2;
  }

  .barber-photo-wall {
    order: 3;
  }

  h1 {
    font-size: 42px;
  }

  .barber-copy h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 34px;
  }

  .card-grid,
  .team-grid,
  .menu-grid,
  .visit-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .photo-panel img,
  .team-card img {
    height: 310px;
  }

  .barber-photo-wall {
    grid-template-columns: 1fr;
  }

  .gallery-lock {
    right: 12px;
    bottom: 12px;
  }
}

.main-nav {
  position: relative;
  overflow: hidden;
}

.barber-marker {
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  z-index: 0;
  border: 1px solid rgba(199, 143, 74, 0.5);
  border-radius: 6px;
  background: linear-gradient(135deg, #181512, var(--garnet));
  box-shadow: 0 10px 24px rgba(122, 43, 43, 0.2);
  opacity: 0;
  transition: transform 240ms ease, width 240ms ease, opacity 180ms ease;
  pointer-events: none;
}

.js-ready .main-nav a {
  position: relative;
  z-index: 1;
  transition: color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.js-ready .main-nav a[aria-current="page"] {
  border-color: transparent;
  background: transparent;
  color: #ffffff;
}

.js-ready .main-nav a:hover,
.js-ready .main-nav a:focus-visible {
  color: #ffffff;
  transform: translateY(-1px);
}

.shop-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease var(--delay, 0ms), transform 520ms ease var(--delay, 0ms), box-shadow 220ms ease, translate 220ms ease;
}

.shop-reveal.shop-in {
  opacity: 1;
  transform: translateY(0);
}

.shop-reveal:hover {
  translate: 0 -3px;
  box-shadow: 0 18px 38px rgba(23, 21, 19, 0.16);
}

.button-pop {
  animation: button-pop 260ms ease;
}

@keyframes button-pop {
  50% {
    transform: translateY(-2px) scale(1.025);
  }
}

@media (max-width: 640px) {
  .gallery-lock {
    position: fixed;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    width: 42px;
    min-width: 42px;
    height: 42px;
    min-height: 42px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    text-indent: -999px;
  }

  .gallery-lock::before {
    content: "<";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 20px;
    text-indent: 0;
  }
}
