:root {
  --pine: #202c23;
  --paper: #fffbf3;
  --cream: #fef5e7;
  --red: #9e3322;
  --line: #cfaa79;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--pine); font: 1rem/1.55 system-ui, sans-serif; }
a { color: inherit; text-underline-offset: .23em; }
a:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
.wrap { width: min(76rem, calc(100% - clamp(2rem, 7vw, 6rem))); margin-inline: auto; }
header { background: var(--paper); }
header:has(.hero) .top { border-bottom: 1px solid #ae7c4d44; }
.top, .foot, nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.top { min-height: 4.5rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font: bold clamp(1rem, 3vw, 1.35rem)/1.2 Georgia, serif; text-decoration: none; }
.shop-header { display: flex; align-items: center; gap: .6rem; min-width: 0; padding-block: .4rem; }
.shop-header-text { display: grid; min-width: 0; grid-template-columns: minmax(0, 1fr); justify-items: start; gap: .1rem; }
.header-phone { display: inline-flex; align-items: center; min-height: 1.5rem; color: var(--pine); font-size: 1.09375rem; font-weight: 650; text-decoration: none; white-space: nowrap; }
.header-phone:hover { text-decoration: underline; }
.shop-header > img { display: block; flex: none; width: auto; height: clamp(5.25rem, 12vw, 7.125rem); border-radius: .2rem; filter: none; mix-blend-mode: normal; }
nav a { display: inline-flex; align-items: center; min-height: 2.75rem; padding-inline: .5rem; font-weight: 650; text-decoration: none; }
nav .nav-book { color: var(--red); border: 1px solid #a5553b; border-radius: .4rem; padding-inline: .9rem; }
nav a:hover { text-decoration: underline; }
.hero { background: linear-gradient(120deg, #fdf2e2, #fffaf0); border-bottom: 4px solid var(--red); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: center; gap: clamp(1.5rem, 4vw, 3.5rem); padding-block: clamp(1.6rem, 5vw, 4.25rem); }
.shop-wordmark { display: block; width: 100%; height: auto; }
.brand .header-wordmark { display: block; width: clamp(12.5rem, 32.5vw, 23.75rem); max-width: 100%; height: auto; }
.hero-copy .shop-wordmark { width: min(100%, 30rem); }
.foot .shop-wordmark { width: clamp(9rem, 28vw, 15rem); min-width: 0; }
.foot a { flex-shrink: 0; white-space: nowrap; }
.eyebrow { margin: 0 0 1rem; color: var(--red); text-transform: uppercase; letter-spacing: .18em; font-weight: 700; font-size: .875rem; }
h1, h2 { font-family: Georgia, serif; }
h1 { font-size: clamp(2.8rem, 5.6vw, 5.5rem); line-height: 1.02; margin: 0; letter-spacing: -.05em; }
.street { margin: 1.5rem 0; font-size: 1.125rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; border: 1px solid var(--red); border-radius: .4rem; padding: .6rem 1rem; font-weight: 700; text-decoration: none; }
.primary { background: var(--red); color: #fff5e5; border-color: var(--red); }
.primary:focus-visible { outline-color: var(--pine); }
.secondary { color: var(--red); }
.primary:hover:not(:disabled) { background: #7c281c; border-color: #7c281c; }
.secondary:hover { background: #9e33220d; }
.storefront { display: block; width: 100%; height: auto; border: 1px solid #b87948; border-radius: .65rem; box-shadow: 0 .8rem 2rem #67382126; }
.content-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto auto auto; align-items: stretch; gap: clamp(1rem, 3vw, 2rem); padding-block: clamp(1.75rem, 5vw, 4rem); }
.booking-stack, .info-stack { display: contents; }
#booking { grid-column: 1; grid-row: 1; }
#hours { grid-column: 2; grid-row: 1; }
#meet-the-barber { grid-column: 1; grid-row: 2; }
#location { grid-column: 2; grid-row: 2; }
.meet-barber-card { display: grid; grid-template-columns: minmax(0, 42%) minmax(0, 1fr); align-items: stretch; overflow: hidden; padding: 0; }
.meet-barber-photo { display: block; width: 100%; height: 100%; min-height: 0; aspect-ratio: auto; object-fit: cover; object-position: center; }
.meet-barber-copy { min-width: 0; padding: clamp(1.2rem, 3vw, 2rem); }
.meet-barber-copy h2 { margin-bottom: 0; }
.info-stack { display: contents; }
.info-card, .booking.booking-card { border: 1px solid #d9bb92; border-top: .25rem solid var(--red); border-radius: .65rem; padding: clamp(1.2rem, 3vw, 2rem); background: #fffefb; box-shadow: 0 .3rem 1rem #6738210c; }
.info-card h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.leather-work { grid-column: 1 / -1; grid-row: 3; background: linear-gradient(145deg, #fffefb, #fef5e7); }
.leather-work-copy { min-width: 0; }
.leather-work .eyebrow { margin: 0 0 .35rem; }
.leather-work h2 { margin-bottom: 1.1rem; }
.leather-work-grid { display: grid; grid-template-columns: 1fr; gap: .65rem; margin-bottom: 1rem; }
.leather-work-grid > div { border: 1px solid #d9bb92; border-top: .25rem solid var(--red); border-radius: .45rem; padding: .9rem; background: #fffefb; }
.leather-work-grid > .shop-item-card { min-width: 0; overflow: hidden; padding: 0; }
.shop-item-image { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: center; }
.shop-item-copy { padding: .9rem; }
.leather-work-grid h3 { margin: 0 0 .35rem; color: var(--red); font: 700 1.1rem/1.25 Georgia, serif; }
.leather-work-grid p { margin: 0; }
.info-card dt, .info-card dd { font-variant-numeric: tabular-nums; }
.info-card dl div:last-child { border-bottom: 0; padding-bottom: 0; }

h2 { margin: 0 0 1rem; font-size: clamp(1.9rem, 4vw, 2.65rem); line-height: 1.1; }
dl { margin: 0; }
dl div { display: flex; justify-content: space-between; gap: .5rem; padding-block: .65rem; border-bottom: 1px solid var(--line); }
dd { margin: 0; text-align: right; font-weight: 650; }
address { font-style: normal; margin-bottom: .8rem; }
.map { font-weight: 700; color: var(--red); }
footer { background: var(--cream); border-top: 1px solid var(--line); }
.foot { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; padding-block: 1rem; }
.site-credit { justify-self: center; color: var(--pine); font-size: .9rem; font-weight: 650; text-align: center; text-decoration: none; }
.site-credit:hover { text-decoration: underline; }
.footer-call { justify-self: end; color: var(--pine); font-weight: 650; text-decoration: none; white-space: nowrap; }
.footer-call:hover { text-decoration: underline; }
@media (max-width: 48rem) {
  .hero-grid, .content-grid { grid-template-columns: 1fr; }
  .content-grid { grid-template-rows: auto auto auto auto auto; }
  #booking { grid-column: 1; grid-row: 1; }
  #hours { grid-column: 1; grid-row: 2; }
  #meet-the-barber { grid-column: 1; grid-row: 3; }
  #location { grid-column: 1; grid-row: 4; }
  .meet-barber-card { grid-template-columns: 1fr; }
  .meet-barber-photo { height: auto; aspect-ratio: 4 / 3; }
  .leather-work { grid-column: 1; grid-row: 5; }
  .leather-work-grid { grid-template-columns: 1fr; }
}
@media (max-width: 32rem) {
  .foot { grid-template-columns: 1fr; justify-items: center; gap: .5rem; text-align: center; }
  .foot .shop-wordmark { width: min(60%, 15rem); }
  .footer-call { justify-self: center; }
}
.booking { padding-block: clamp(2.25rem, 5vw, 4rem); border-bottom: 1px solid var(--line); }
.booking p { margin: .6rem 0 1rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; max-width: 42rem; margin-bottom: 1rem; }
label { display: block; font-weight: 650; }
input, select { display: block; width: 100%; min-width: 0; min-height: 3rem; margin-top: .3rem; border: 1px solid #807864; border-radius: .25rem; padding: .5rem; background: #fffefc; color: var(--pine); font: inherit; }
button { font: inherit; cursor: pointer; }
button:disabled { opacity: .55; cursor: default; }
.admin-title { font-size: clamp(2rem, 6vw, 3.5rem); }
.manage-section { margin-top: 2rem; }
.manage-section label { max-width: 18rem; margin-bottom: 1rem; }
.manage-section .secondary { color: var(--pine); border-color: var(--pine); }
.manage-section li { padding-block: .3rem; }
#booking-result { font-weight: 650; }
@media (max-width: 32rem) {
  .form-grid { grid-template-columns: 1fr; }
  .top, nav { gap: .35rem; }
  nav a { padding-inline: .28rem; font-size: .875rem; }
  nav .nav-book { padding-inline: .55rem; }
  nav { flex-wrap: wrap; justify-content: flex-end; }
}

@media (max-width: 32rem) {
  header:has(.hero) .top { flex-wrap: wrap; }
  header:has(.hero) .top nav { width: 100%; justify-content: flex-start; padding-bottom: .4rem; }
  .brand .header-wordmark { width: clamp(12.5rem, 73.75vw, 21.25rem); }
}

@media (min-width: 48.01rem) {
  .leather-work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 75rem) {
  .leather-work-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
