/* Picasso, "הגלריה": the barbershop as a museum. White gallery walls, gilt frames, museum labels, a guest book. */
:root {
  --wall: #F4F0E8; --wall2: #ECE5D8; --ink: #1B1B1F; --muted: #5B564D; --gold: #A9823F; --gold2: #D8B878; --red: #B5442F; --blue: #2F4B7C;
  --serif: "Frank Ruhl Libre Variable", Georgia, serif; --sans: "Assistant Variable", system-ui, sans-serif; --pad: clamp(18px, 5vw, 56px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--wall); color: var(--ink); font: 400 18px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); text-wrap: balance; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.skip { position: absolute; top: -60px; inset-inline-start: 12px; padding: 10px 14px; background: var(--ink); color: #fff; z-index: 9; }
.skip:focus { top: 12px; }
.demo { background: var(--ink); color: #EFE6D2; text-align: center; font-size: 13px; padding: 7px 16px; }

.top { display: flex; align-items: center; justify-content: space-between; max-width: 1180px; margin: 0 auto; padding: 22px var(--pad); }
.mark { text-decoration: none; display: grid; line-height: 1.1; }
.mark span { font: 600 22px/1 var(--serif); letter-spacing: .32em; }
.mark small { font-size: 13px; color: var(--muted); margin-top: 6px; }
.top__link { font-size: 15px; color: var(--muted); padding: 10px 4px; text-underline-offset: 5px; }

.room { margin: 0 0 12px; font-size: 13px; letter-spacing: .14em; color: var(--gold); font-weight: 700; }
.hero { max-width: 1180px; margin: 0 auto; padding: 18px var(--pad) 80px; display: grid; gap: 56px; align-items: center; }
h1 { margin: 0; font-size: clamp(52px, 13vw, 112px); line-height: .98; font-weight: 700; letter-spacing: -.01em; }
h1 .hl { color: var(--red); }
.lead { max-width: 34ch; margin: 22px 0 0; font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 26px; font-weight: 700; font-size: 17px; text-decoration: none; letter-spacing: .02em; transition: transform .2s ease, background .2s ease; }
.btn:active { transform: scale(.97); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--line { box-shadow: inset 0 0 0 1.5px var(--ink); }

/* Frames and labels */
.work { margin: 0; display: grid; justify-items: center; gap: 18px; position: relative; }
.work::before { content: ""; position: absolute; top: -40px; left: 50%; width: 70%; height: 120px; translate: -50% 0; background: radial-gradient(closest-side, rgb(255 248 228 / .9), transparent); pointer-events: none; }
.frame { position: relative; padding: 22px; background: linear-gradient(135deg, var(--gold2), var(--gold) 45%, #7E5E2A 55%, var(--gold2)); box-shadow: 0 30px 50px -28px rgb(27 27 31 / .6), inset 0 0 0 2px rgb(255 255 255 / .35); }
.frame::after { content: ""; position: absolute; inset: 12px; box-shadow: inset 0 0 0 10px #FBF8F1; pointer-events: none; }
.frame .art { width: min(72vw, 340px); height: auto; }
.frame--sm { padding: 14px; }
.frame--sm::after { inset: 8px; box-shadow: inset 0 0 0 6px #FBF8F1; }
.frame--sm .art { width: 100%; }
.label { display: grid; gap: 2px; padding: 10px 14px; background: #FFFDF8; box-shadow: 0 1px 2px rgb(0 0 0 / .12); font-size: 14px; color: var(--muted); max-width: 300px; }
.label b { color: var(--ink); font-size: 15px; }

.sec { max-width: 1180px; margin: 0 auto; padding: 72px var(--pad); border-top: 1px solid #DDD3C1; }
.sec--wall { background: var(--wall2); max-width: none; padding-inline: max(var(--pad), (100% - 1180px) / 2 + var(--pad)); }
h2 { margin: 0 0 12px; font-size: clamp(36px, 7vw, 64px); line-height: 1.02; }
.sub { margin: 0 0 36px; color: var(--muted); max-width: 46ch; }

.artists { display: grid; gap: 18px; }
.plaque { padding: 26px; background: #FFFDF8; border-top: 4px solid var(--gold); box-shadow: 0 20px 40px -32px rgb(0 0 0 / .5); }
.plaque h3 { margin: 0 0 10px; font-size: 30px; }
.plaque p { margin: 0 0 10px; font: 400 19px/1.55 var(--serif); }
.plaque small { color: var(--muted); }

.gallery { display: grid; gap: 44px; }
.gallery .frame { width: min(100%, 260px); }

.book { display: grid; gap: 0; background: #FFFDF8 repeating-linear-gradient(transparent 0 39px, #E8DECB 39px 40px); padding: 26px 28px; box-shadow: 0 24px 40px -30px rgb(0 0 0 / .5); }
.book blockquote { margin: 0; padding: 10px 0 22px; }
.book p { margin: 0; font: 400 clamp(21px, 3vw, 27px)/40px var(--serif); }
.book footer { margin-top: 4px; font-size: 15px; color: var(--gold); font-weight: 700; }

.visit { display: grid; gap: 40px; align-items: center; }
.hours { margin: 18px 0 0; display: grid; gap: 0; max-width: 420px; }
.hours div { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px dashed #CDBFA6; }
.hours dt { font-weight: 600; }
.hours dd { margin: 0; color: var(--muted); }
.addr { margin-top: 18px; color: var(--muted); }
.ticket { position: relative; padding: 30px 28px; background: var(--ink); color: #F4F0E8; max-width: 420px; clip-path: polygon(0 0, 100% 0, 100% 42%, 96% 50%, 100% 58%, 100% 100%, 0 100%, 0 58%, 4% 50%, 0 42%); }
.ticket__top { margin: 0; font-size: 13px; letter-spacing: .14em; color: var(--gold2); }
.ticket__big { margin: 14px 0 24px; font: 700 34px/1.15 var(--serif); }
.ticket .btn--ink { background: var(--gold2); color: var(--ink); }

.foot { padding: 32px var(--pad) 110px; text-align: center; font-size: 14px; color: var(--muted); }
.foot p { margin: 4px 0; }
.sticky { position: fixed; inset-inline: 14px; bottom: max(14px, env(safe-area-inset-bottom)); z-index: 5; display: flex; justify-content: center; align-items: center; min-height: 54px; background: var(--ink); color: #fff; font-weight: 700; text-decoration: none; box-shadow: 0 14px 30px -12px rgb(0 0 0 / .6); }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .gallery .work, .plaque { animation: hang linear both; animation-timeline: view(); animation-range: entry 0% cover 30%; }
    @keyframes hang { from { opacity: 0; translate: 0 30px; rotate: -1.5deg; } }
  }
}
@media (hover: hover) { .btn--ink:hover { background: var(--red); } .gallery .work:hover .frame { transform: translateY(-4px); } .frame { transition: transform .3s ease; } }
@media (min-width: 760px) {
  .hero { grid-template-columns: 1.1fr .9fr; }
  .artists { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); align-items: start; }
  .gallery .work:nth-child(2) { margin-top: 60px; }
  .visit { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) { .sticky { display: none; } .foot { padding-bottom: 40px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .frame { transition: none; } }
