/* Brass: a classic barbershop after dark. Warm near-black like old walnut, cream type, one
   brass accent the owner picks, leather grain over everything, hairline rules and a
   barber-pole stripe as the only ornaments. Playfair Display speaks, Golos Text reads. */

:root {
  --paper: #15120f;
  --paper-2: #1b1713;
  --surface: #221d18;
  --line: rgb(240 220 190 / 12%);
  --line-2: rgb(240 220 190 / 24%);
  --ink: #f4ecdf;
  --ink-2: #d4c9b8;
  --muted: #9b8f80;
  --accent: #c8963e; /* brass; company setting */
  --accent-ink: #1a140d;
  --display: "Playfair Display", "Times New Roman", serif;
  --body: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: 18px;
  --radius: 6px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  position: relative;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.6 var(--body);
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}

/* the grain of leather and old paper over the whole page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.09;
  pointer-events: none;
}

header,
main,
footer {
  position: relative;
  z-index: 1;
}

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

a {
  color: var(--accent);
}

h1,
h2,
h3,
p,
ul,
fieldset,
figure {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

fieldset {
  min-width: 0;
  padding: 0;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.lead {
  max-width: 34em;
  margin-top: 16px;
  color: var(--ink-2);
  font-size: 1.125rem;
}

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

.empty {
  padding: 40px 0;
  color: var(--muted);
  text-align: center;
}

.more {
  margin-top: 22px;
  text-align: center;
}

.more a:not(.btn) {
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
}

/* section titles like a sign: rules to the sides */
.heading {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: clamp(1.6rem, 3.2vw, 2.25rem);
  text-align: center;
}

.heading::before,
.heading::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-2));
}

.heading::after {
  background: linear-gradient(90deg, var(--line-2), transparent);
}

.heading--left {
  text-align: left;
}

.heading--left::before {
  display: none;
}

.heading--small {
  font-size: 1.3rem;
}

.block {
  padding-top: 64px;
}

.block .menu-list,
.block .masters,
.block .cards {
  margin-top: 28px;
}

/* the barber's pole, drawn thin */
.pole {
  height: 5px;
  background:
    repeating-linear-gradient(135deg, var(--accent) 0 14px, transparent 14px 28px),
    var(--line);
  opacity: 0.9;
}

/* --- buttons ---------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 22px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  background: transparent;
  color: var(--accent);
  font: 600 0.8125rem/1.2 var(--body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.15s,
    color 0.15s;
}

.btn:hover {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}

.btn--big {
  min-height: 54px;
  padding: 12px 30px;
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 12px 30px -14px color-mix(in srgb, var(--accent) 70%, transparent);
}

.btn--big:hover {
  background: color-mix(in srgb, var(--accent) 88%, white);
}

.btn--ghost {
  border-color: var(--line-2);
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: var(--accent);
  background: transparent;
}

.btn--small {
  min-height: 38px;
  padding: 6px 16px;
  font-size: 0.75rem;
}

/* --- header ------------------------------------------------------------------ */

.top {
  position: sticky;
  top: 0;
  z-index: 3;
  border-bottom: 1px solid var(--line);
  background: rgb(21 18 15 / 86%);
  backdrop-filter: blur(10px);
}

.top__row {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 66px;
}

.brand {
  color: var(--ink);
  font: 700 1.35rem/1 var(--display);
  text-decoration: none;
}

.brand img {
  max-height: 44px;
  width: auto;
}

.menu {
  display: none;
  gap: 20px;
  margin-left: 8px;
}

.menu a {
  color: var(--ink-2);
  font-weight: 500;
  text-decoration: none;
}

.menu a:hover {
  color: var(--accent);
}

.langs {
  display: flex;
  gap: 2px;
  margin-left: auto;
}

.langs a {
  padding: 4px 8px;
  border-radius: 4px;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
}

.langs a[aria-current] {
  color: var(--accent);
}

.book-link {
  margin-left: auto;
}

.langs + .book-link {
  margin-left: 0;
}

@media (min-width: 760px) {
  .menu {
    display: flex;
  }

  .langs {
    margin-left: auto;
  }
}

/* --- hero ------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 64px;
  text-align: center;
}

.hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.75) contrast(1.05);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(80% 70% at 50% 40%, rgb(21 18 15 / 35%), rgb(21 18 15 / 82%) 100%),
    linear-gradient(180deg, rgb(21 18 15 / 55%), rgb(21 18 15 / 40%) 40%, var(--paper) 100%);
}

.hero__text {
  position: relative;
  z-index: 1;
}

.tagline {
  color: var(--accent);
  font: italic 500 1.25rem/1.3 var(--display);
}

.hero h1 {
  margin-top: 12px;
  font-size: clamp(2.4rem, 6.4vw, 4.6rem);
  font-weight: 900;
  line-height: 1.04;
  text-shadow: 0 2px 30px rgb(0 0 0 / 40%);
}

.hero .lead {
  margin: 18px auto 0;
  color: var(--ink);
  font-size: 1.1rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.hero__places {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 36px;
  margin-top: 40px;
  color: var(--ink-2);
  font-size: 0.9375rem;
}

.hero__places li {
  display: grid;
  font-weight: 600;
}

.hero__places small {
  color: var(--muted);
  font-weight: 400;
}

@media (min-width: 760px) {
  .hero {
    padding: 128px 0 96px;
  }
}

/* --- the price list, like a menu board --------------------------------------- */

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

.menu-list__row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 4px 14px;
  align-items: baseline;
  padding: 14px 0;
  color: var(--ink);
  text-decoration: none;
}

a.menu-list__row:hover .menu-list__name {
  color: var(--accent);
}

.menu-list__name {
  font-weight: 500;
}

.menu-list__name small {
  display: block;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 400;
}

.menu-list__dots {
  display: none;
}

.menu-list__meta {
  color: var(--muted);
  font-size: 0.875rem;
  white-space: nowrap;
}

.menu-list__price {
  font: 700 1.15rem/1 var(--display);
  color: var(--accent);
  white-space: nowrap;
}

@media (min-width: 600px) {
  .menu-list__row {
    grid-template-columns: auto 1fr auto auto;
  }

  .menu-list__dots {
    display: block;
    align-self: end;
    margin-bottom: 0.45em;
    border-bottom: 1px dotted var(--line-2);
  }
}

/* --- works ------------------------------------------------------------------ */

.works__strip {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  padding: 0 var(--gutter) 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.works__strip a {
  flex: none;
  scroll-snap-align: start;
}

.works__strip img {
  height: 240px;
  width: auto;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  filter: sepia(0.12) contrast(1.04);
}

@media (min-width: 760px) {
  .works__strip img {
    height: 320px;
  }
}

.gallery {
  margin-top: 28px;
  columns: 2;
  column-gap: 12px;
}

.gallery img {
  margin-bottom: 12px;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  break-inside: avoid;
  filter: sepia(0.12) contrast(1.04);
}

@media (min-width: 760px) {
  .gallery {
    columns: 3;
    column-gap: 16px;
  }

  .gallery img {
    margin-bottom: 16px;
  }
}

/* --- about ------------------------------------------------------------------ */

.about {
  margin-top: 64px;
  padding: 56px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}

.about__grid {
  display: grid;
  gap: 20px;
}

.about__text {
  max-width: 36em;
  font: italic 500 clamp(1.15rem, 2vw, 1.4rem) / 1.5 var(--display);
  color: var(--ink);
}

@media (min-width: 760px) {
  .about__grid {
    grid-template-columns: 1fr 2fr;
    gap: 48px;
    align-items: start;
  }
}

/* --- masters ---------------------------------------------------------------- */

.masters {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 22px 16px;
}

.master {
  color: var(--ink);
  text-decoration: none;
}

.master__frame,
.person__frame {
  display: block;
  padding: 6px;
  border: 1px solid var(--line-2);
  border-radius: 4px;
}

.master__frame img,
.person__frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 2px;
  filter: sepia(0.18) contrast(1.05);
}

.master:hover .master__frame {
  border-color: var(--accent);
}

.master__initial {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 2px;
  background: var(--surface);
  color: var(--accent);
  font: 700 2.5rem/1 var(--display);
}

.master strong {
  display: block;
  margin-top: 12px;
  font: 700 1.1rem/1.2 var(--display);
}

.master small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.4;
}

.person {
  display: grid;
  gap: 24px;
  margin-top: 32px;
}

.person__frame {
  max-width: 320px;
}

.person h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
}

.person .btn {
  margin-top: 8px;
}

@media (min-width: 700px) {
  .person {
    grid-template-columns: 300px 1fr;
    gap: 40px;
    align-items: start;
  }
}

/* --- cards: branches, the visit ---------------------------------------------- */

.cards {
  display: grid;
  gap: 16px;
}

.card {
  padding: 22px 22px 24px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--surface);
}

.card h2,
.card h3 {
  font-size: 1.3rem;
}

.card p {
  margin-top: 8px;
  color: var(--ink-2);
}

.card .btn {
  margin-top: 6px;
}

.hours {
  margin-top: 12px;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.hours th {
  padding: 2px 14px 2px 0;
  color: var(--muted);
  font-weight: 500;
  text-align: left;
}

.hours td {
  color: var(--ink-2);
}

@media (min-width: 700px) {
  .cards {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
}

/* --- pages ------------------------------------------------------------------ */

.page {
  padding-top: 48px;
  padding-bottom: 24px;
}

.page > .block:first-of-type {
  padding-top: 32px;
}

.page--narrow {
  max-width: 760px;
}

.text {
  max-width: 44em;
  color: var(--ink-2);
}

.text p {
  margin-top: 1em;
}

/* --- booking ---------------------------------------------------------------- */

.book {
  display: grid;
  gap: 30px;
  margin-top: 32px;
}

.book fieldset {
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

legend {
  /* sits on the rule above, like a label on a box; no float: a float next to the
     chips (a flex box) would squeeze them aside */
  padding: 0 12px 0 0;
  margin-bottom: 8px;
  font: 700 1.15rem/1.2 var(--display);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 6px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 0.9375rem;
  text-decoration: none;
  cursor: pointer;
}

.chip input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.chip:hover {
  border-color: var(--accent);
}

.chip:has(input:checked),
.chip--on {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
}

.chip:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.menu-list--pick .menu-list__row {
  grid-template-columns: auto 1fr auto auto;
  cursor: pointer;
}

.menu-list--pick input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--accent);
}

@media (min-width: 600px) {
  .menu-list--pick .menu-list__row {
    grid-template-columns: auto auto 1fr auto auto;
  }
}

.book__total {
  margin-top: 10px;
  color: var(--ink-2);
}

.book__total strong {
  font: 700 1.2rem/1 var(--display);
  color: var(--accent);
}

.slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 8px;
  margin-top: 6px;
}

.slots .muted {
  grid-column: 1 / -1;
}

.slot {
  position: relative;
  display: block;
  padding: 9px 0;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  text-align: center;
  font-weight: 600;
  cursor: pointer;
}

.slot input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.slot:hover {
  border-color: var(--accent);
}

.slot:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

.field {
  display: grid;
  gap: 6px;
  margin-top: 14px;
}

.field span {
  font-weight: 600;
  font-size: 0.9375rem;
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  background: var(--paper-2);
  color: var(--ink);
  font: inherit;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
  outline: none;
}

.error {
  color: #ff9b8a;
  font-weight: 600;
}

.cancel {
  margin-top: 16px;
}

/* --- the visit -------------------------------------------------------------- */

.visit {
  margin-top: 28px;
}

.visit__status {
  display: inline-block;
  margin: 0 0 10px;
  padding: 4px 12px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.visit--cancelled .visit__status,
.visit--no_show .visit__status {
  border-color: var(--muted);
  color: var(--muted);
}

.visit__when {
  font-size: 1.1rem;
}

.visit__when span {
  margin-left: 8px;
  color: var(--ink-2);
}

.visit .menu-list {
  margin-top: 14px;
}

.visit__total {
  margin-top: 12px;
  color: var(--ink-2);
}

.visit__total strong {
  font: 700 1.2rem/1 var(--display);
  color: var(--accent);
}

.visit__telegram {
  margin-top: 14px;
}

/* --- footer ----------------------------------------------------------------- */

.foot {
  margin-top: 88px;
  padding-bottom: 40px;
  background: var(--paper-2);
}

.foot__grid {
  display: grid;
  gap: 24px;
  padding-top: 36px;
}

.foot__brand {
  font: 700 1.3rem/1.2 var(--display);
}

.foot__note {
  margin-top: 8px;
  color: var(--ink-2);
}

.foot__phone {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.foot__list {
  display: grid;
  gap: 10px;
  color: var(--ink-2);
}

.foot__list small {
  display: block;
  color: var(--muted);
}

.foot__list a {
  color: var(--ink-2);
  text-decoration: none;
}

.foot__list a:hover {
  color: var(--accent);
}

.foot__copy {
  margin-top: 32px;
  color: var(--muted);
  font-size: 0.875rem;
}

@media (min-width: 760px) {
  .foot__grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
  }
}
