:root {
  --blue: #1f46b4;
  --blue-deep: #15307f;
  --sky: #bfe0fb;
  --red: #dc2433;
  --red-deep: #b51624;
  --white: #ffffff;
  --ink: #1b2130;
  --muted: #535b6c;
  --steel: #3b414c;
  --wood: #dfc19a;
  --wood-dark: #cfae84;
  --paper: #f5f8fc;
  --stripes: repeating-linear-gradient(-35deg, var(--red) 0 14px, #fff 14px 28px, var(--blue-deep) 28px 42px, #fff 42px 56px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Rubik, system-ui, sans-serif; font-size: 17px; line-height: 1.55; color: var(--ink); background: var(--white); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, blockquote, figure { margin: 0; }
h2 { font-family: "Bowlby One", Impact, sans-serif; font-weight: 400; font-size: clamp(30px, 4.2vw, 50px); line-height: 1.08; color: var(--blue); text-wrap: balance; }
h3 { font-size: 20px; line-height: 1.2; }
:focus-visible { outline: 3px solid #ffc83d; outline-offset: 3px; }
.wrap { width: min(1180px, 100% - 48px); margin-inline: auto; }

.preview { background: var(--red-deep); color: #fff; text-align: center; padding: 9px 16px; font-size: 14px; }

/* Storefront */
.front {
  padding: 18px max(24px, calc((100% - 1240px) / 2)) 0;
  background-color: #5d4033;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='44'%3E%3Crect width='88' height='44' fill='%234a3329'/%3E%3Crect x='1' y='1' width='42' height='20' fill='%23765141'/%3E%3Crect x='45' y='1' width='42' height='20' fill='%236a4638'/%3E%3Crect x='-21' y='23' width='42' height='20' fill='%236f4a3b'/%3E%3Crect x='23' y='23' width='42' height='20' fill='%237b5544'/%3E%3Crect x='67' y='23' width='42' height='20' fill='%236f4a3b'/%3E%3C/svg%3E");
}
.nav { display: flex; justify-content: flex-end; gap: 6px; margin-bottom: 18px; }
.nav a { color: #fff; background: rgba(32, 20, 15, .78); text-decoration: none; font-weight: 500; font-size: 16px; padding: 8px 14px; border-radius: 4px; }
.nav a:hover { background: var(--blue-deep); }

.sign {
  display: grid; grid-template-columns: 58px auto 1fr 58px; align-items: center; gap: 30px;
  border: 10px solid #454a52; border-radius: 4px;
  background: linear-gradient(#2a56cb, var(--blue) 60%, #1c3fa4);
  box-shadow: 0 16px 26px rgba(0, 0, 0, .38);
}
.pole { align-self: stretch; background: var(--stripes); background-size: 100% 200%; }
.sign-logo { width: 172px; height: 172px; border-radius: 50%; object-fit: cover; margin: 16px 0; border: 3px solid #fff; }
.sign h1 { display: flex; align-items: center; flex-wrap: wrap; gap: 0 32px; font-weight: 400; }
.script { font-family: Yellowtail, cursive; color: var(--red); -webkit-text-stroke: 8px #fff; paint-order: stroke fill; }
.sign .script { font-size: clamp(84px, 10.4vw, 142px); line-height: 1.12; padding-right: 10px; white-space: nowrap; }
.sign .block { font-family: "Bowlby One", Impact, sans-serif; text-transform: uppercase; font-size: clamp(22px, 2.5vw, 33px); line-height: 1.1; color: var(--sky); -webkit-text-stroke: 5px var(--blue-deep); paint-order: stroke fill; }

.shopfront {
  display: grid; grid-template-columns: 1.45fr 1.15fr .8fr; gap: 12px;
  width: calc(100% - 40px); margin: 0 auto; padding: 14px 14px 0;
  background: #b9bec5;
}
.pane { min-height: 390px; background: #fff; }
.pane-photo { overflow: hidden; position: relative; }
.pane-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.pane-text { display: flex; flex-direction: column; justify-content: center; gap: 20px; padding: 34px 32px; background: linear-gradient(125deg, #fff 0 46%, #edf5fd 46% 60%, #fff 60%); }
.since { color: var(--red-deep); font-weight: 600; font-size: 18px; }
.tagline { font-size: clamp(25px, 2.5vw, 34px); font-weight: 600; line-height: 1.2; color: var(--blue-deep); text-wrap: balance; }
.rating { display: flex; align-items: center; gap: 14px; }
.rating strong { font-family: "Bowlby One", Impact, sans-serif; font-weight: 400; font-size: 46px; line-height: 1; color: var(--blue); }
.rating span { display: grid; font-size: 16px; line-height: 1.35; }
.rating i { font-style: normal; color: #b56a00; letter-spacing: 2px; }
.door { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 30px 26px; background: linear-gradient(125deg, #26303f 0 42%, #334052 42% 55%, #26303f 55%); border: 8px solid #dfe3e8; border-bottom: 0; }
.open { color: #fff; border: 2px solid #ff6b76; border-radius: 50%; padding: 15px 20px; font-weight: 600; line-height: 1.2; text-align: center; text-wrap: balance; box-shadow: 0 0 14px rgba(255, 90, 104, .5), inset 0 0 10px rgba(255, 90, 104, .35); }
.door-link { color: #fff; text-underline-offset: 4px; }
.handle { position: absolute; left: 8px; top: 44%; width: 6px; height: 84px; border-radius: 3px; background: #dfe3e8; }
.pavement { height: 26px; background: linear-gradient(#a9a59d, #c9c5bd); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 24px; border-radius: 4px; border: 2px solid var(--red); background: var(--red); color: #fff; font-weight: 600; text-decoration: none; text-align: center; transition: background-color .15s, border-color .15s; }
.btn:hover { background: var(--red-deep); border-color: var(--red-deep); }
.btn-line { background: transparent; color: var(--blue-deep); border-color: var(--blue); }
.btn-line:hover { background: var(--blue); border-color: var(--blue); color: #fff; }

/* Prices: the shop's wood floor with a white board */
.prices { padding: 84px 0 92px; background: repeating-linear-gradient(90deg, rgba(111, 73, 35, .2) 0 1px, transparent 1px 148px), linear-gradient(90deg, var(--wood), #ead1ae 35%, var(--wood-dark) 70%, var(--wood)); }
.head { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 30px; }
.head h2 { color: var(--blue-deep); }
.head p { max-width: 30ch; }
.board { display: grid; grid-template-columns: 1fr 1.25fr 1fr; background: #fff; border-top: 12px solid var(--blue); box-shadow: 0 14px 30px rgba(74, 46, 18, .22); }
.col { padding: 28px 26px 30px; }
.col + .col { border-left: 1px solid #d9e0eb; }
.col h3 { color: var(--red-deep); margin-bottom: 10px; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 14px 10px; margin-inline: -10px; border-radius: 4px; text-decoration: none; line-height: 1.3; }
.row span { font-weight: 500; }
.row small { display: block; margin-top: 3px; font-size: 15px; font-weight: 400; color: var(--muted); }
.row b { font-size: 22px; color: var(--blue); font-variant-numeric: tabular-nums; }
.row:hover { background: #e8f1fc; }

/* Kids */
.kids { padding: 92px 0; }
.kids-grid { display: grid; grid-template-columns: 340px 1fr; gap: 76px; align-items: center; }
.ticket { position: relative; padding: 46px 30px 34px; text-align: center; background: var(--sky); border-radius: 6px; overflow: hidden; transform: rotate(-2deg); }
.ticket::before { content: ""; position: absolute; inset: 0 0 auto; height: 18px; background: var(--stripes); }
.ticket-name { font-weight: 600; font-size: 21px; }
.ticket-price { font-family: "Bowlby One", Impact, sans-serif; font-size: 92px; line-height: 1.15; color: var(--blue); }
.ticket-time { margin-bottom: 22px; }
.lead { margin: 16px 0 26px; font-size: 19px; max-width: 46ch; }
blockquote p { text-wrap: pretty; }
cite { display: block; margin-top: 10px; font-style: normal; font-size: 16px; color: var(--muted); }
.kids blockquote p { font-size: clamp(21px, 2.1vw, 27px); line-height: 1.38; font-weight: 500; max-width: 32em; }

/* Barbers: dark stations and mirrors, like the shop */
.barbers { padding: 88px 0; background: var(--blue); }
.barbers h2 { color: #fff; margin-bottom: 36px; }
.stations { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.station { display: grid; grid-template-columns: 216px 1fr; background: var(--steel); color: #fff; border-radius: 4px; overflow: hidden; }
.mirror { padding: 26px 0 26px 26px; }
.mirror img { width: 190px; height: 190px; object-fit: cover; border: 5px solid #e8ecf2; box-shadow: 0 0 34px rgba(255, 224, 160, .38); }
.counter { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 26px; }
.counter h3 { font-size: 28px; }
.counter .btn { margin-top: auto; }
.station cite { color: #d3dae5; }

/* Inside */
.inside { display: grid; grid-template-columns: 1.1fr 1fr; background: var(--paper); }
.inside img { width: 100%; height: 100%; max-height: 560px; object-fit: cover; }
.inside-text { display: flex; flex-direction: column; justify-content: center; gap: 24px; padding: 56px max(24px, calc((100vw - 1180px) / 2)) 56px 64px; }
.inside blockquote p { font-size: 22px; line-height: 1.42; }
.text-link { font-weight: 600; color: var(--blue); text-underline-offset: 4px; }

/* Visit */
.visit { padding: 92px 0; }
.visit-grid { display: grid; grid-template-columns: 440px 1fr; gap: 72px; align-items: center; }
.visit-grid > img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; border: 10px solid #454a52; }
address { font-style: normal; font-size: 21px; font-weight: 500; margin: 18px 0 24px; }
table { width: 100%; max-width: 440px; border-collapse: collapse; }
caption { text-align: left; font-weight: 600; padding-bottom: 8px; }
th, td { padding: 8px 10px; text-align: left; font-weight: 400; border-bottom: 1px solid #d9e0eb; }
td { text-align: right; font-variant-numeric: tabular-nums; }
tr.today th, tr.today td { background: var(--sky); font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

footer { padding: 46px 24px 54px; text-align: center; color: #fff; background: var(--blue-deep); }
footer .script { display: inline-block; font-size: 58px; line-height: 1.2; padding: 0 10px; -webkit-text-stroke-width: 5px; }
footer p { margin-top: 10px; }
footer p a { margin: 0 8px; }
.sticky { display: none; }

@media (prefers-reduced-motion: no-preference) {
  .pole { animation: pole 9s linear infinite; background-size: auto; }
  @keyframes pole { to { background-position: 0 273.4px; } }
}

@media (max-width: 1080px) {
  .sign { grid-template-columns: 40px auto 1fr 40px; gap: 20px; }
  .sign-logo { width: 140px; height: 140px; }
  .shopfront { grid-template-columns: 1.2fr 1fr; }
  .pane { min-height: 330px; }
  .door { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
  .handle { display: none; }
  .board { grid-template-columns: 1fr; }
  .col + .col { border-left: 0; border-top: 1px solid #d9e0eb; }
  .stations { grid-template-columns: 1fr; }
  .kids-grid { gap: 48px; }
  .visit-grid { grid-template-columns: 1fr 1.2fr; gap: 40px; }
}

@media (max-width: 720px) {
  body { padding-bottom: 76px; }
  .wrap { width: calc(100% - 32px); }
  .front { padding: 12px 12px 0; }
  .nav { justify-content: center; gap: 4px; margin-bottom: 12px; }
  .nav a { padding: 8px 10px; }
  .nav-call { display: none; }
  .sign { grid-template-columns: 18px 1fr 18px; gap: 8px; border-width: 7px; text-align: center; }
  .sign .pole:first-child { grid-row: 1 / 3; grid-column: 1; }
  .sign .pole:last-child { grid-row: 1 / 3; grid-column: 3; }
  .sign-logo { grid-column: 2; grid-row: 1; width: 112px; height: 112px; margin: 14px auto 0; }
  .sign h1 { grid-column: 2; grid-row: 2; display: block; padding-bottom: 16px; }
  .sign .script { display: block; font-size: clamp(56px, 18.5vw, 84px); padding: 0; -webkit-text-stroke-width: 6px; }
  .sign .block { display: block; font-size: 22px; }
  .shopfront { grid-template-columns: 1fr; width: calc(100% - 12px); padding: 10px 10px 0; gap: 10px; }
  .pane { min-height: 0; }
  .pane-text { order: -1; padding: 26px 20px; gap: 14px; }
  .pane-photo { aspect-ratio: 4 / 3; }
  .door { flex-direction: column; padding: 24px 18px; }
  .prices, .kids, .barbers, .visit { padding: 60px 0; }
  .head { display: block; }
  .head p { margin-top: 12px; }
  .col { padding: 24px 20px; }
  .kids-grid, .visit-grid, .inside { grid-template-columns: 1fr; }
  .kids-grid > div:last-child { order: -1; }
  .ticket { width: min(320px, 100%); margin-inline: auto; }
  .station { grid-template-columns: 1fr; }
  .mirror { padding: 24px 24px 0; }
  .inside-text { padding: 40px 16px; }
  .actions .btn { width: 100%; }
  .sticky { position: fixed; inset: auto 0 0; z-index: 5; display: grid; grid-template-columns: 2fr 1fr; gap: 10px; padding: 10px 16px; background: #fff; box-shadow: 0 -4px 16px rgba(20, 30, 60, .18); }
}
