/* גזרה, an invented barbershop: the example site agenteams links to. Night palette taken from the photographs:
   green-black, bottle green, cream plaster, aged brass. Every text pair is >= 4.5:1 on its surface. */
:root {
  --night: #0e1210;      /* page, dark bands */
  --green: #16302a;      /* the price band */
  --green-2: #1d3b33;    /* rows on it */
  --cream: #f2ece1;      /* plaster bands */
  --cream-2: #e8dfd0;
  --ink: #18201c;        /* text on cream: 14.5:1 */
  --ink-mute: #4f5a54;   /* 6.6:1 on cream */
  --paper: #f2ece1;      /* text on night: 16:1 */
  --paper-mute: #b7b0a3; /* 8.4:1 on night, 6.9:1 on green */
  --brass: #c9a35a;      /* buttons, rules */
  --brass-ink: #15130e;  /* text on brass: 8.6:1 */
  --brass-text: #d9b874; /* brass as text on dark: 9.6:1 on night */
  --brass-deep: #7a5a1e; /* brass as text on cream: 5.3:1 */
  --line-dark: rgba(242, 236, 225, 0.14);
  --line-light: rgba(24, 32, 28, 0.14);
  --serif: "Frank Ruhl Libre", "Times New Roman", serif;
  --sans: "Assistant", system-ui, sans-serif;
  --r: 18px;
  --bar: 44px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--night); color: var(--paper); font: 400 1.125rem/1.65 var(--sans); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, figure, ul { margin: 0; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
@media (min-width: 640px) { .wrap { width: min(1200px, 100% - 64px); } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100; background: var(--brass); color: var(--brass-ink); padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 6px; }
.num, [dir="ltr"] { font-variant-numeric: tabular-nums; }

/* the honest strip */
.demo-bar { display: flex; align-items: center; justify-content: center; gap: 4px 16px; flex-wrap: wrap; min-height: var(--bar);
  padding: 6px 16px; background: #000; color: var(--paper-mute); font-size: 0.875rem; text-align: center; }
.demo-bar a { color: var(--paper); }
.demo-bar__cta { display: inline-flex; align-items: center; min-height: 32px; font-weight: 600; text-underline-offset: 3px; }

/* header */
.head { position: sticky; top: 0; z-index: 40; background: rgba(14, 18, 16, 0.78); backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); border-bottom: 1px solid var(--line-dark); }
.head__row { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: baseline; gap: 10px; text-decoration: none; min-height: 44px; align-items: center; }
.brand__name { font: 700 1.75rem/1 var(--serif); letter-spacing: 0; color: var(--paper); }
.brand__sub { font-size: 0.875rem; color: var(--paper-mute); padding-top: 4px; }
.nav { display: none; gap: 4px; margin-inline-start: auto; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; text-decoration: none; color: var(--paper-mute); font-size: 1rem; border-radius: 10px; transition: color .2s; }
.nav a:hover { color: var(--paper); }
.head .btn { margin-inline-start: auto; }
@media (min-width: 900px) { .nav { display: flex; } .head .btn { margin-inline-start: 8px; } }
@media (max-width: 420px) { .brand__sub { display: none; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 28px; border-radius: 999px;
  font: 700 1.0625rem/1 var(--sans); text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease; }
.btn:active { transform: scale(0.98); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 1rem; }
.btn--brass { background: var(--brass); color: var(--brass-ink); }
.btn--brass:hover { background: #d6b26c; }
.btn--ghost { border-color: rgba(242, 236, 225, 0.45); color: var(--paper); background: rgba(14, 18, 16, 0.25); }
.btn--ghost:hover { border-color: var(--paper); }
.btn--ink { background: var(--ink); color: var(--cream); }
.btn--ink:hover { background: #26302b; }

/* type */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 0.9375rem; font-weight: 600; color: var(--brass-text); }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.eyebrow--dark { color: var(--brass-deep); }
.display { font: 700 clamp(2.75rem, 7.4vw, 5.75rem)/1.02 var(--serif); margin-top: 18px; text-wrap: balance; }
.title { font: 700 clamp(2.125rem, 4.6vw, 3.5rem)/1.08 var(--serif); margin-top: 14px; text-wrap: balance; }
.display em, .title em { font-style: normal; color: var(--brass-text); }
.band--cream .title em { color: var(--brass-deep); }

/* hero */
.hero { position: relative; min-height: min(88svh, 860px); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.hero picture, .hero__img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero__img { object-fit: cover; object-position: 62% 50%; animation: settle 2.4s cubic-bezier(.2,.7,.2,1) both; }
@keyframes settle { from { transform: scale(1.06); } to { transform: scale(1); } }
.hero__shade { position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(14,18,16,.96) 0%, rgba(14,18,16,.72) 38%, rgba(14,18,16,.18) 72%, rgba(14,18,16,.35) 100%),
              linear-gradient(to left, rgba(14,18,16,.55), rgba(14,18,16,0) 60%); }
.hero__body { padding-block: 120px 56px; }
.hero__lede { max-width: 34ch; margin-top: 20px; font-size: clamp(1.125rem, 1.8vw, 1.3125rem); color: #ddd6c9; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__body > * { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
.hero__body > :nth-child(2) { animation-delay: .08s; } .hero__body > :nth-child(3) { animation-delay: .16s; } .hero__body > :nth-child(4) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (min-width: 900px) { .hero__body { padding-block: 160px 96px; } }

/* facts */
.facts { border-bottom: 1px solid var(--line-dark); }
.facts__row { display: grid; gap: 0; }
.facts p { display: flex; align-items: baseline; gap: 14px; padding: 22px 0; border-top: 1px solid var(--line-dark); color: var(--paper-mute); font-size: 1rem; }
.facts p:first-child { border-top: 0; }
.facts b { font: 700 2.25rem/1 var(--serif); color: var(--paper); min-width: 2.6ch; direction: ltr; text-align: end; }
@media (min-width: 760px) { .facts__row { grid-template-columns: repeat(3, 1fr); } .facts p { border-top: 0; padding: 34px 0; }
  .facts p + p { border-inline-start: 1px solid var(--line-dark); padding-inline-start: 32px; } }

/* bands */
.band { padding-block: 88px; }
@media (min-width: 900px) { .band { padding-block: 128px; } }
.band--cream { background: var(--cream); color: var(--ink); }
.band--cream .eyebrow::before { background: var(--brass-deep); }
.band--green { background: var(--green); }
.band--dark { background: var(--night); }
.band__head { max-width: 640px; }

/* split */
.split { display: grid; gap: 40px; align-items: center; }
.split__media { border-radius: var(--r); overflow: hidden; box-shadow: 0 30px 60px -30px rgba(14, 18, 16, .55); }
.split__text p { margin-top: 18px; color: var(--ink-mute); max-width: 56ch; }
.split__text .title + p { margin-top: 24px; }
@media (min-width: 960px) { .split { grid-template-columns: 5fr 6fr; gap: 80px; } .split--rev .split__media { order: 2; } }
.ticks { list-style: none; padding: 0; margin-top: 28px; display: grid; gap: 12px; }
.ticks li { position: relative; padding-inline-start: 28px; color: var(--ink); font-weight: 600; }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 0; top: .72em; width: 14px; height: 2px; background: var(--brass-deep); }

/* the price list */
.menu { list-style: none; padding: 0; margin-top: 48px; display: grid; gap: 0 64px; }
@media (min-width: 900px) { .menu { grid-template-columns: 1fr 1fr; } }
.menu li { display: grid; grid-template-columns: 1fr auto; gap: 4px 20px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line-dark); }
.menu h3 { font: 700 1.375rem/1.25 var(--serif); }
.menu .price { font: 700 1.5rem/1 var(--serif); color: var(--brass-text); direction: ltr; }
.menu .meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; color: var(--paper-mute); font-size: 1rem; }
.menu .meta button { margin-inline-start: auto; }
.link-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 4px; border: 0; background: none; color: var(--brass-text);
  font: 600 1rem/1 var(--sans); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.menu__note { margin-top: 28px; color: var(--paper-mute); font-size: 1rem; }

/* gallery */
.gallery { display: grid; gap: 16px; margin-top: 48px; grid-template-columns: 1fr 1fr; }
.g { border-radius: var(--r); overflow: hidden; background: var(--cream-2); }
.g img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.g:hover img { transform: scale(1.03); }
.g--tall { grid-column: 1 / -1; aspect-ratio: 4 / 5; }
.g--wide { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.gallery .g:not(.g--tall):not(.g--wide) { aspect-ratio: 4 / 5; }
@media (min-width: 960px) {
  .gallery { grid-template-columns: 1.15fr 1fr 1fr; grid-template-rows: auto auto; gap: 20px; }
  .g--tall { grid-column: auto; grid-row: span 2; aspect-ratio: auto; }
  .g--wide { grid-column: span 2; aspect-ratio: 16 / 8; }
}

/* booking */
.book { display: grid; gap: 40px; align-items: start; }
@media (min-width: 960px) { .book { grid-template-columns: 4fr 6fr; gap: 72px; } .book__intro { position: sticky; top: 120px; } }
.book__intro > p:not(.eyebrow) { margin-top: 20px; color: var(--paper-mute); max-width: 44ch; }
.book__demo { padding: 14px 16px; border: 1px dashed rgba(201, 163, 90, .5); border-radius: 12px; font-size: 1rem; }
.card { background: #151b18; border: 1px solid var(--line-dark); border-radius: 22px; padding: 22px; box-shadow: 0 40px 80px -40px rgba(0,0,0,.7); }
@media (min-width: 640px) { .card { padding: 32px; } }
.steps { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 24px; }
.steps li { flex: 1; height: 3px; border-radius: 3px; background: var(--line-dark); }
.steps li.on { background: var(--brass); }
.bk-title { font: 700 1.5rem/1.2 var(--serif); }
.bk-sub { color: var(--paper-mute); font-size: 1rem; margin-top: 6px; }
.opts { display: grid; gap: 10px; margin-top: 20px; }
.opt { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 16px; width: 100%; min-height: 64px; padding: 14px 18px; text-align: start;
  border: 1px solid var(--line-dark); border-radius: 14px; background: transparent; color: var(--paper); font: inherit; cursor: pointer; transition: border-color .2s, background-color .2s; }
.opt:hover { border-color: rgba(201,163,90,.6); }
.opt[aria-pressed="true"] { border-color: var(--brass); background: rgba(201,163,90,.1); }
.opt b { font-weight: 700; font-size: 1.0625rem; }
.opt small { grid-column: 1; color: var(--paper-mute); font-size: .9375rem; }
.opt .price { grid-row: 1 / span 2; grid-column: 2; font: 700 1.25rem/1 var(--serif); color: var(--brass-text); direction: ltr; }
.days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-top: 20px; scrollbar-width: thin; overscroll-behavior-x: contain; }
.day { flex: 0 0 auto; display: grid; justify-items: center; gap: 2px; width: 68px; min-height: 76px; padding: 10px 0; border: 1px solid var(--line-dark); border-radius: 14px;
  background: transparent; color: var(--paper); font: inherit; cursor: pointer; }
.day small { color: var(--paper-mute); font-size: .875rem; }
.day b { font: 700 1.5rem/1 var(--serif); }
.day[aria-pressed="true"] { background: var(--brass); color: var(--brass-ink); border-color: var(--brass); }
.day[aria-pressed="true"] small { color: var(--brass-ink); }
.day:disabled { opacity: .35; cursor: not-allowed; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin-top: 16px; }
.slot { min-height: 48px; border: 1px solid var(--line-dark); border-radius: 12px; background: transparent; color: var(--paper); font: 600 1.0625rem/1 var(--sans);
  cursor: pointer; direction: ltr; font-variant-numeric: tabular-nums; }
.slot:hover:not(:disabled) { border-color: rgba(201,163,90,.6); }
.slot[aria-pressed="true"] { background: var(--brass); color: var(--brass-ink); border-color: var(--brass); }
.slot:disabled { color: rgba(242,236,225,.38); text-decoration: line-through; cursor: not-allowed; }
.fields { display: grid; gap: 16px; margin-top: 20px; }
.field label { display: block; font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.field input { width: 100%; min-height: 52px; padding: 0 16px; border-radius: 12px; border: 1px solid rgba(242,236,225,.24); background: #0e1210; color: var(--paper); font: 1.0625rem var(--sans); }
.field input:focus { outline: 2px solid var(--brass); outline-offset: 1px; border-color: transparent; }
.field .err { color: #f2a48c; font-size: .9375rem; margin-top: 6px; }
.summary { margin-top: 20px; padding: 16px 18px; border-radius: 14px; background: rgba(242,236,225,.05); display: grid; gap: 6px; font-size: 1rem; color: var(--paper-mute); }
.summary b { color: var(--paper); }
.bk-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 24px; }
.bk-nav .btn { flex: 1 1 auto; max-width: 280px; }
.bk-nav .btn:disabled { opacity: .4; cursor: not-allowed; }
.done { text-align: center; padding: 12px 0; }
.done__mark { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: var(--brass); color: var(--brass-ink); }
.done .summary { text-align: start; }

/* visit */
.hours { width: 100%; max-width: 440px; margin-top: 28px; border-collapse: collapse; font-size: 1.0625rem; }
.hours th { text-align: start; font-weight: 400; color: var(--ink-mute); padding: 14px 0; border-bottom: 1px solid var(--line-light); }
.hours td { text-align: end; font-weight: 700; padding: 14px 0; border-bottom: 1px solid var(--line-light); }
.visit__where b { color: var(--ink); }

/* footer */
.foot { padding-block: 56px 120px; border-top: 1px solid var(--line-dark); }
@media (min-width: 900px) { .foot { padding-bottom: 56px; } }
.foot__row { display: grid; gap: 28px; }
@media (min-width: 760px) { .foot__row { grid-template-columns: 1fr 1fr; align-items: end; } .foot__made { text-align: end; } }
.brand__name--foot { font-size: 2.25rem; }
.foot__line, .foot__made { color: var(--paper-mute); font-size: 1rem; margin-top: 8px; }
.foot__made p + p { margin-top: 4px; }

/* the floating button on a phone */
.fab { position: fixed; inset-inline: 16px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 50; box-shadow: 0 18px 40px -12px rgba(0,0,0,.7);
  transition: opacity .25s, transform .25s; }
.fab[hidden] { display: inline-flex; opacity: 0; transform: translateY(16px); pointer-events: none; }
@media (min-width: 900px) { .fab { display: none !important; } }

/* reveal on scroll: only once script has run, so nothing hides without it */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .hero__img, .hero__body > * { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .g img, .btn { transition: none; }
}
.bk-title:focus { outline: none; }
