/* Blvd Barbershop concept. Black wall on top, pale concrete floor below, circles of light. */

:root {
  --wall: #111112;
  --charcoal: #3e3e3e; /* printed by make_images.py for the logo edge strip */
  --light: #ffffff;
  --smoke: #b7b4ae;
  --concrete: #d9d4c8;
  --ink: #111112;
  --grit: #4a4743;
  --edge: #2a2a2b;
  --display: "Big Shoulders Display", system-ui, sans-serif;
  --text: "Overpass", system-ui, sans-serif;
  --r: 4px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body {
  margin: 0;
  padding-bottom: 88px;
  background: var(--wall);
  color: var(--light);
  font: 400 1.0625rem/1.55 var(--text);
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, figure, blockquote, address { margin: 0; padding: 0; }
ul { list-style: none; }
address { font-style: normal; }
a { color: inherit; cursor: pointer; }
label { cursor: pointer; }
:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.floor :focus-visible { outline-color: var(--ink); }
main:focus { outline: none; } /* main is only focused by the skip link, it is not a control */

.wrap { max-width: 76rem; margin-inline: auto; padding-inline: 16px; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip {
  position: absolute; left: 8px; top: -80px; z-index: 20;
  padding: 12px 16px; background: #fff; color: var(--ink); font-weight: 800; border-radius: var(--r);
}
.skip:focus { top: 8px; }

/* ---------- ring of light ---------- */
.ring { display: block; aspect-ratio: 1; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 6px #fff; }
.ring--lit { box-shadow: 0 0 0 6px #fff, 0 0 48px 6px rgba(255, 255, 255, .45); }
.ring img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 24px;
  border: 2px solid #fff; border-radius: var(--r);
  background: #fff; color: var(--ink);
  font: 800 1rem/1.1 var(--text); text-decoration: none; text-align: center;
  cursor: pointer; transition: background-color .12s, color .12s;
}
.btn:hover { background: var(--wall); color: #fff; }
.btn--wide { width: 100%; }
.btn--ink { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--ink:hover { background: transparent; color: var(--ink); }
.btn--line { background: transparent; color: #fff; border-width: 1.5px; }
.btn--line:hover { background: #fff; color: var(--ink); }
.btn--head { display: none; }

/* ---------- header ---------- */
.head { background: var(--charcoal); }
.head-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.head h1 { line-height: 0; }
.head h1 img { width: 150px; height: auto; }
.head-act { display: flex; align-items: center; gap: 24px; }
.call { display: inline-flex; align-items: center; min-height: 44px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.call:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- hero ---------- */
.hero { display: grid; padding-top: 32px; padding-bottom: 40px; }
.shout {
  font: 900 clamp(3.5rem, 17vw, 9rem)/.82 var(--display);
  text-transform: uppercase; letter-spacing: .005em; margin-bottom: 28px;
}
.shout span { display: block; white-space: nowrap; }
.hero-ring { width: min(78vw, 320px); justify-self: end; margin: 0 6px 36px 0; animation: light-on 600ms ease-out 1; }
.lede { font-weight: 600; font-size: 1.1875rem; line-height: 1.4; max-width: 28ch; margin-bottom: 20px; }
.their { font: 800 1.5rem/1.15 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.src { color: var(--smoke); font-size: .9375rem; margin: 4px 0 24px; max-width: 36ch; }

@keyframes light-on {
  from { box-shadow: 0 0 0 6px #fff, 0 0 0 0 rgba(255, 255, 255, 0); }
  to   { box-shadow: 0 0 0 6px #fff, 0 0 48px 6px rgba(255, 255, 255, .45); }
}

/* row of vanity bulbs between hero and the rest of the wall */
.bulbs {
  height: 12px; margin: 0 0 8px;
  background: radial-gradient(circle at 50% 50%, #fff 0 3.5px, transparent 4.5px) 0 0 / 24px 12px repeat-x;
}

/* ---------- wall sections ---------- */
.sec { padding-block: 48px; }
h2 {
  font: 900 clamp(2.5rem, 11vw, 5rem)/.9 var(--display);
  text-transform: uppercase; letter-spacing: .005em; margin-bottom: 20px;
}
.intro { color: var(--smoke); max-width: 40ch; margin-bottom: 28px; }
.small { color: var(--smoke); font-size: .9375rem; margin-top: 20px; max-width: 44ch; }

/* ---------- cut picker (CSS only) ---------- */
.picker { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); row-gap: 28px; }
.picker input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.picker label { display: block; width: 72px; height: 72px; justify-self: center; }
.picker label .ring { height: 100%; box-shadow: 0 0 0 2px rgba(255, 255, 255, .6); transition: box-shadow .12s; }
.picker label:hover .ring { box-shadow: 0 0 0 4px rgba(255, 255, 255, .85); }
.picker input:checked + label .ring { box-shadow: 0 0 0 6px #fff; }
.picker input:focus-visible + label { outline: 3px solid #fff; outline-offset: 10px; border-radius: 50%; }

.stage { grid-column: 1 / -1; order: -1; }
.panel { display: none; }
#cut-1:checked ~ .stage .panel-1,
#cut-2:checked ~ .stage .panel-2,
#cut-3:checked ~ .stage .panel-3,
#cut-4:checked ~ .stage .panel-4 { display: block; animation: fade 150ms ease-out; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.panel .ring { width: min(78vw, 340px); margin: 0 auto 28px; }
.panel h3 { font: 800 1.25rem/1.2 var(--text); text-align: center; }
.panel .line { color: var(--smoke); text-align: center; margin: 6px 0 20px; }
.panel .btn { width: 100%; }
.panel .tip { color: var(--smoke); font-size: .9375rem; text-align: center; margin-top: 10px; }

/* ---------- services ---------- */
.services { border-bottom: 1px solid var(--edge); }
.services li {
  border-top: 1px solid var(--edge); padding: .3em 0 .25em;
  font: 800 clamp(1.75rem, 8vw, 3.5rem)/1 var(--display); text-transform: uppercase; letter-spacing: .01em;
}
.note { display: block; font: 400 1rem/1.4 var(--text); text-transform: none; letter-spacing: 0; color: var(--smoke); margin-top: 2px; }

/* ---------- barbers ---------- */
.names { margin-bottom: 28px; }
.names li { border-top: 1px solid var(--edge); padding: 10px 0; font-weight: 800; font-size: 1.25rem; line-height: 1.2; overflow-wrap: anywhere; }
.names li:last-child { border-bottom: 1px solid var(--edge); }
.smallrings { display: flex; flex-wrap: wrap; gap: 36px 28px; align-items: flex-start; margin-top: 44px; padding-left: 6px; }
.smallrings figure { width: min(40vw, 180px); }
.smallrings .sr-b { width: min(40vw, 220px); }
.smallrings .ring { width: 100%; }
.smallrings figcaption { color: var(--smoke); font-size: .9375rem; line-height: 1.35; margin-top: 16px; }

/* ---------- concrete floor ---------- */
.floor { background: var(--concrete); color: var(--ink); border-top: 10px solid var(--charcoal); }
.floor .intro, .floor .small, .floor figcaption { color: var(--grit); }
.hours { width: 100%; border-collapse: collapse; font-size: 1.125rem; max-width: 26rem; }
.hours th, .hours td { text-align: left; padding: 11px 0; border-bottom: 1px solid rgba(17, 17, 18, .25); font-weight: 400; }
.hours th { width: 5.5rem; padding-left: 12px; font-weight: 800; }
.hours td { padding-right: 8px; }
.hours tr:first-child th, .hours tr:first-child td { border-top: 1px solid rgba(17, 17, 18, .25); }
.hours tr[aria-current="true"] th, .hours tr[aria-current="true"] td { font-weight: 800; background: rgba(255, 255, 255, .55); }
.hours tr[aria-current="true"] th { box-shadow: inset 6px 0 0 var(--ink); }
address { font: 800 1.375rem/1.25 var(--text); max-width: 20ch; margin-bottom: 24px; }
.btns { display: grid; gap: 12px; max-width: 22rem; }
.floor-grid .sec { padding-bottom: 24px; }
.sec--rev { padding-top: 24px; padding-bottom: 56px; }
.quotes { display: grid; gap: 28px; margin-bottom: 28px; }
.quotes p { font: 800 clamp(1.6rem, 6.6vw, 2.4rem)/1.05 var(--display); text-transform: uppercase; letter-spacing: .01em; }
.quotes p::before { content: "\201C"; }
.quotes p::after { content: "\201D"; }
.quotes figcaption { margin-top: 8px; font-weight: 600; }
.rating { font-weight: 800; font-size: 1.1875rem; padding-top: 20px; border-top: 2px solid var(--ink); max-width: 30rem; }

/* ---------- footer ---------- */
.foot { background: var(--wall); color: var(--smoke); padding-block: 40px 32px; font-size: .9375rem; }
.foot p + p { margin-top: 4px; }
.foot .concept { font: 800 1.5rem/1 var(--display); text-transform: uppercase; letter-spacing: .03em; color: #fff; margin-bottom: 14px; }
.foot-links { display: flex; gap: 24px; margin-top: 16px; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 800; color: #fff; text-underline-offset: 4px; }

/* ---------- fixed bottom bar (phones) ---------- */
.bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  display: flex; gap: 8px; height: calc(64px + env(safe-area-inset-bottom));
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  background: var(--wall); border-top: 1px solid var(--edge);
}
.bar .btn { min-height: 48px; height: 48px; }
.btn--book { flex: 1; }
.btn--line { width: 96px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- 768 and up ---------- */
@media (min-width: 768px) {
  body { padding-bottom: 0; }
  .bar { display: none; }
  .btn--head { display: inline-flex; min-height: 48px; }
  .wrap { padding-inline: 24px; }
  .sec { padding-block: 72px; }

  .hero { grid-template-columns: 1fr 320px; grid-template-areas: "shout ring" "copy ring"; column-gap: 40px; padding-top: 56px; padding-bottom: 64px; }
  .shout { grid-area: shout; font-size: clamp(3.5rem, 9.3vw, 6.5rem); }
  .hero-ring { grid-area: ring; align-self: center; justify-self: end; width: 320px; margin: 0 6px 0 0; }
  .hero-copy { grid-area: copy; align-self: start; }
  .btn--wide { width: auto; min-width: 260px; }

  .picker { grid-template-columns: repeat(4, 72px); justify-content: center; column-gap: 24px; }
  .panel { text-align: center; }
  .panel .btn { display: flex; width: fit-content; min-width: 260px; margin-inline: auto; }
  .services li { padding: .25em 0 .2em; }
  .barbers { display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; align-items: start; }
  .smallrings { margin-top: 24px; justify-content: flex-start; gap: 40px; padding-left: 12px; }
  .smallrings figure { width: 180px; }
  .smallrings .sr-b { width: 220px; }
  .quotes { grid-template-columns: 1fr 1fr; gap: 48px; }
  .btns { grid-template-columns: 1fr 1fr; max-width: 30rem; }
  address { max-width: none; }
  .foot .wrap { display: grid; grid-template-columns: 1fr auto; column-gap: 24px; }
  .foot .concept, .foot p { grid-column: 1; }
  .foot-links { grid-column: 2; grid-row: 1 / span 3; align-self: end; margin-top: 0; }
}

/* ---------- 1024 and up ---------- */
@media (min-width: 1024px) {
  .hero { grid-template-columns: 1fr 440px; column-gap: 48px; padding-top: 72px; padding-bottom: 88px; }
  .shout { font-size: clamp(5rem, 9.2vw, 8rem); }
  .hero-ring { width: 440px; }

  /* two columns: stage ring left, name, line, thumbnails and button right */
  .picker { grid-template-columns: 340px repeat(4, 72px) 1fr; column-gap: 16px; row-gap: 0; justify-content: start; align-items: start; }
  .stage { display: contents; }
  .panel { text-align: left; }
  #cut-1:checked ~ .stage .panel-1,
  #cut-2:checked ~ .stage .panel-2,
  #cut-3:checked ~ .stage .panel-3,
  #cut-4:checked ~ .stage .panel-4 { display: contents; }
  .panel > * { animation: fade 150ms ease-out; }
  .panel .ring { grid-column: 1; grid-row: 1 / span 5; width: 340px; margin: 0 32px 0 0; align-self: start; }
  .panel h3 { grid-column: 2 / -1; grid-row: 1; text-align: left; align-self: end; font-size: 1.75rem; margin-top: 8px; }
  .panel .line { grid-column: 2 / -1; grid-row: 2; text-align: left; margin: 8px 0 28px; }
  .picker label { grid-row: 3; justify-self: start; }
  label[for="cut-1"] { grid-column: 2; }
  label[for="cut-2"] { grid-column: 3; }
  label[for="cut-3"] { grid-column: 4; }
  label[for="cut-4"] { grid-column: 5; }
  .panel .btn { grid-column: 2 / 6; grid-row: 4; margin: 36px 0 0; justify-self: start; width: auto; min-width: 260px; }
  .panel .tip { grid-column: 2 / -1; grid-row: 5; text-align: left; margin-top: 12px; }

  .floor-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 72px; }
  .services-wrap { display: grid; grid-template-columns: 1fr 2fr; column-gap: 48px; align-items: start; }
  .services-wrap h2 { grid-column: 1; grid-row: 1; margin: 0; }
  .services-wrap .services { grid-column: 2; grid-row: 1; }
  .services-wrap .small { grid-column: 2; }
}

/* ---------- 1440 ---------- */
@media (min-width: 1440px) {
  .shout { font-size: clamp(5rem, 9.2vw, 8.25rem); }
}
