/* Pariah — styled after the @pariah_mcr "Working Hours" posts:
   flat charcoal, off-white, wide uppercase grotesk, label/value rows. */
:root {
  --bg: #1f1e1c;
  --fg: #ecebe6;
  --muted: #9c9a94;
  --line: #3a3936;
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 64px);
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-stretch: 125%;
  font-variation-settings: "wdth" 125;
  font-weight: 300;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; background: #2a2926; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, dl, dd { margin: 0; }
h1, h2, h3 { font-weight: 300; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 16px var(--gutter);
  background: rgba(31, 30, 28, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 14px; font-size: 16px; letter-spacing: 0.06em; }
.logo { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.nav nav { display: flex; gap: 36px; font-size: 12px; }
.nav nav a { color: var(--muted); transition: color .2s; }
.nav nav a:hover { color: var(--fg); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 28px;
  background: var(--fg); color: var(--bg);
  border: 1px solid var(--fg);
  font-size: 12px; font-weight: 400; letter-spacing: 0.08em;
  transition: background .2s, color .2s;
}
.btn:hover { background: transparent; color: var(--fg); }
.btn-ghost { background: transparent; color: var(--fg); }
.btn-ghost:hover { background: var(--fg); color: var(--bg); }
.btn-sm { padding: 10px 18px; font-size: 11px; }

/* Shared post-style blocks */
.section, .hero { max-width: var(--max); margin: 0 auto; padding: clamp(64px, 10vw, 128px) var(--gutter); }
.section { border-top: 1px solid var(--line); }

.split { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: clamp(48px, 7vw, 88px); }
h1, h2 { font-size: clamp(44px, 9vw, 112px); line-height: 1.05; letter-spacing: -0.01em; }
.meta { text-align: right; font-size: clamp(13px, 1.6vw, 20px); line-height: 1.25; display: grid; gap: 1.4em; }

.rows { display: grid; gap: 18px; max-width: 640px; font-size: 12px; }
.rows > div { display: grid; grid-template-columns: 170px 1fr; gap: 16px; }
.rows dt { color: var(--fg); }
.rows dd { color: var(--fg); }
.hours { border-collapse: collapse; }
.hours td { padding: 0 32px 2px 0; vertical-align: top; }

.statement {
  margin-top: clamp(48px, 7vw, 80px);
  max-width: 860px;
  font-size: clamp(14px, 1.9vw, 22px);
  line-height: 1.4;
  text-align: justify;
  word-spacing: 0.15em;
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; align-items: center; }

/* Prices */
.price-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.price-list li {
  display: grid; grid-template-columns: 1fr 120px 80px; gap: 16px; align-items: baseline;
  padding: 22px 0; border-bottom: 1px solid var(--line);
  font-size: clamp(14px, 1.7vw, 19px);
}
.price-list small { display: block; margin-top: 6px; font-size: 11px; color: var(--muted); }
.price-list .dur { font-size: 12px; color: var(--muted); }
.price-list .price { text-align: right; }

/* Team */
.team { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 3vw, 32px); }
.member img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(1); transition: filter .4s; }
.member:hover img { filter: grayscale(0); }
.member-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; font-size: 13px; }
.member h3 { font-size: clamp(16px, 2vw, 22px); }
.member-meta p { color: var(--muted); }

/* Work */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.gallery img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; filter: grayscale(1); transition: filter .4s; }
.gallery img:hover { filter: grayscale(0); }
.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: clamp(56px, 8vw, 96px); }
blockquote { margin: 0; }
blockquote p { font-size: clamp(18px, 2.6vw, 30px); line-height: 1.25; }
cite { display: block; margin-top: 14px; font-style: normal; font-size: 11px; color: var(--muted); }

/* Footer */
.footer {
  max-width: var(--max); margin: 0 auto;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
  padding: 40px var(--gutter) 56px; border-top: 1px solid var(--line);
  font-size: 11px; color: var(--muted);
}
.footer a:hover { color: var(--fg); }

.mobile-book { display: none; }

@media (max-width: 860px) {
  .nav nav { display: none; }
  .quotes { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  body { font-size: 12px; }
  .rows > div { grid-template-columns: 1fr; gap: 4px; }
  .rows dt { color: var(--muted); }
  .price-list li { grid-template-columns: 1fr auto; }
  .price-list .dur { grid-row: 2; }
  .price-list .price { grid-row: 1 / span 2; grid-column: 2; align-self: center; }
  .statement { text-align: left; }
  h1, h2 { font-size: 40px; }
  .split { flex-direction: column; gap: 20px; }
  .meta { text-align: left; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 12px; color: var(--muted); }
  .meta br { display: none; }
  .hero .split { margin-bottom: 32px; }
  .hero .meta { display: none; }
  .member-meta { flex-direction: column; gap: 4px; }
  .mobile-book {
    display: flex; position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 20;
  }
  .footer { padding-bottom: 100px; }
}

/* Logo */
.brand img { height: 30px; width: auto; background: none; }
.footer-logo { height: 24px; width: auto; background: none; }

/* Booksy: hide its default button, keep its overlay working (fixed overlay escapes this box) */
#booksy-slot { position: absolute; left: -9999px; top: 0; width: 1px; height: 1px; }

.hero-statement { margin-top: 0; flex: 1; }

/* Hero image */
.hero-media { margin: 0 0 clamp(48px, 7vw, 88px); }
.hero-media img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; object-position: center 50%; filter: grayscale(1) contrast(1.05); }
@media (max-width: 560px) { .hero-media img { aspect-ratio: 4 / 3; } }

/* ---------- Motion (gentle; off for prefers-reduced-motion) ---------- */
:root { --ease: cubic-bezier(.2, .7, .2, 1); }

/* Page load: nav settles in */
@keyframes navIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.motion .nav { animation: navIn .8s var(--ease) both; }
.nav { transition: box-shadow .4s, background .4s; }
.nav.scrolled { box-shadow: 0 10px 30px rgba(0,0,0,.25); }

/* Nav links: thin underline draws in */
.nav nav a { position: relative; }
.nav nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.nav nav a:hover::after { transform: scaleX(1); transform-origin: left; }

/* Fade-up blocks */
.motion [data-reveal=""] { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.motion [data-reveal=""].in { opacity: 1; transform: none; }

/* Headings: each line slides up from behind a mask */
h2 .line { display: block; overflow: hidden; padding-bottom: .04em; }
h2 .line > span { display: inline-block; }
.motion [data-reveal="lines"] .line > span { transform: translateY(105%); transition: transform 1.1s var(--ease); }
.motion [data-reveal="lines"].in .line > span { transform: none; }

/* Images: soft wipe up with a slow settle */
.hero-media, .member { overflow: hidden; }
.motion [data-reveal="image"] { clip-path: inset(100% 0 0 0); transition: clip-path 1.3s var(--ease); }
.motion [data-reveal="image"].in { clip-path: inset(0 0 0 0); }
.motion .hero-media img, .motion .member img { transform: scale(1.08); transition: transform 1.8s var(--ease), filter .4s; }
.motion .hero-media.in img, .motion .member img.in { transform: scale(1); }

/* Price rows: lines draw across as rows arrive */
.price-list li { position: relative; border-bottom-color: transparent; }
.price-list li::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--line); transform-origin: left; transition: transform 1.2s var(--ease); transition-delay: inherit; }
.motion .price-list li:not(.in)::after { transform: scaleX(0); }
.price-list .price { transition: transform .4s var(--ease); }
.price-list li:hover .price { transform: translateX(-6px); }

/* Gallery: gentle lift on hover */
.gallery img { transition: filter .5s, transform .6s var(--ease), opacity .9s var(--ease); }
.gallery img:hover { transform: translateY(-4px); }
.motion .gallery img[data-reveal].in:hover { transform: translateY(-4px); }

/* Buttons: smoother fill */
.btn { transition: background .35s var(--ease), color .35s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Information blocks (square corners throughout) ---------- */
:root { --surface: #262522; --surface-2: #2e2d2a; }
.muted { color: var(--muted); }
.stars { color: var(--fg); letter-spacing: .12em; font-size: 12px; }

/* Shared tag: small square label */
.tag {
  display: inline-block; padding: 5px 8px 4px;
  border: 1px solid var(--line); color: var(--muted);
  font-size: 10px; font-weight: 400; letter-spacing: .1em; line-height: 1; white-space: nowrap;
}
.tag-solid { background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* Facts strip (hero + hours) */
.facts {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line); margin: 0;
}
.facts > div { padding: 22px 24px; border-left: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.facts > div:first-child { border-left: 0; }
.facts dt { font-size: 10px; letter-spacing: .14em; color: var(--muted); }
.facts dd { font-size: 14px; line-height: 1.45; }
.facts dd .stars { margin-right: 6px; }
.facts-2 { grid-template-columns: 2fr 1fr; margin-top: 16px; }
.hero .facts { margin-top: clamp(32px, 4vw, 48px); }

/* Services: square cards with a solid price block */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.service {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  min-height: 210px; padding: 24px;
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color .35s var(--ease, ease), background .35s var(--ease, ease);
}
.service:hover { border-color: var(--muted); background: var(--surface-2); }
.service-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.service h3 { font-size: clamp(16px, 1.6vw, 20px); font-weight: 400; line-height: 1.2; }
.service .note { color: var(--muted); font-size: 12px; }
.service-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.service .dur { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.ic { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; }
.service .price {
  display: inline-block; min-width: 72px; padding: 10px 14px; text-align: center;
  background: var(--fg); color: var(--bg); font-size: 20px; font-weight: 500; line-height: 1;
  transition: transform .35s var(--ease, ease);
}
.service:hover .price { transform: translateY(-3px); }
.service.featured { border-color: var(--fg); }
.service.featured .tag { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.service.offer {
  grid-column: 1 / -1; min-height: 0; flex-direction: row; align-items: center; justify-content: space-between; gap: 32px;
  background: transparent; border-style: dashed; border-color: var(--muted);
}
.service.offer .offer-copy { display: grid; gap: 10px; justify-items: start; }
.service.offer .service-foot { margin-top: 0; padding-top: 0; border-top: 0; align-items: center; gap: 24px; }

/* Reviews: rating summary + quote cards */
.reviews { display: grid; grid-template-columns: 1fr 1.2fr 1.2fr; gap: 12px; margin-top: clamp(56px, 8vw, 96px); }
.rating-card, .review { margin: 0; padding: 28px; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.rating-card { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.rating-card .label { font-size: 10px; letter-spacing: .14em; }
.rating-card .score { font-size: clamp(56px, 6vw, 80px); line-height: .9; font-weight: 400; }
.rating-card .stars { color: var(--bg); font-size: 14px; }
.rating-card .muted { color: #5d5b56; font-size: 12px; }
.rating-card .link { margin-top: auto; font-size: 11px; letter-spacing: .08em; border-bottom: 1px solid currentColor; align-self: flex-start; padding-bottom: 2px; }
.review { background: var(--surface); }
.review blockquote { margin: 0; font-size: clamp(18px, 2vw, 24px); line-height: 1.3; }
.review figcaption { margin-top: auto; display: grid; gap: 4px; font-size: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.review figcaption .muted { font-size: 11px; }

/* Hours: one square per open day */
.days { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.day { position: relative; padding: 24px; border: 1px solid var(--line); background: var(--surface); display: grid; gap: 14px; }
.day-name { font-size: 11px; letter-spacing: .14em; color: var(--muted); }
.day-time { font-size: clamp(18px, 2vw, 24px); font-weight: 400; }
.day .tag { position: absolute; top: 20px; right: 20px; background: var(--fg); color: var(--bg); border-color: var(--fg); }
.days-note { margin: 18px 0 40px; font-size: 12px; max-width: 640px; }

@media (max-width: 960px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .reviews { grid-template-columns: 1fr 1fr; }
  .rating-card { grid-column: 1 / -1; }
  .days { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .facts, .facts-2 { grid-template-columns: 1fr; }
  .facts > div { border-left: 0; border-top: 1px solid var(--line); padding: 18px 20px; }
  .facts > div:first-child { border-top: 0; }
  .services, .reviews { grid-template-columns: 1fr; }
  .service { min-height: 0; padding: 20px; }
  .service.offer { flex-direction: column; align-items: stretch; gap: 16px; }
  .service.offer .service-foot { padding-top: 16px; border-top: 1px solid var(--line); }
  .day { padding: 20px; }
  .day .tag { top: 16px; right: 16px; }
}

/* ---------- Spacing fixes (mobile) ---------- */
.day-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; min-height: 22px; }
.day .tag { position: static; }
.mobile-book { transition: transform .4s var(--ease, ease), opacity .4s; }
.mobile-book.is-hidden { transform: translateY(140%); opacity: 0; pointer-events: none; }

@media (max-width: 560px) {
  /* Stack sections a little tighter and keep content clear of the floating button */
  .section, .hero { padding-top: 56px; padding-bottom: 56px; }
  .hero { padding-top: 24px; }
  .split { margin-bottom: 32px; }
  main { padding-bottom: 24px; }

  /* Hero: full-width buttons */
  .actions .btn { flex: 1 1 100%; }

  /* Hours: one clean row per day */
  .days { grid-template-columns: 1fr; gap: 0; border: 1px solid var(--line); }
  .day { grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 16px 20px; border: 0; border-top: 1px solid var(--line); }
  .day:first-child { border-top: 0; }
  .day-head { justify-content: flex-start; }
  .day-time { font-size: 16px; text-align: right; }
  .days-note { margin: 14px 0 28px; }

  /* Reviews and services: slightly tighter cards */
  .rating-card, .review { padding: 22px; }
  .reviews { margin-top: 48px; }
  .service h3 { font-size: 16px; }
  .footer { padding-bottom: 40px; }
}

/* Service cards link to the booking section */
section[id] { scroll-margin-top: 72px; }
a.service { color: inherit; cursor: pointer; }
.service .price { position: relative; }
.service-foot .dur { transition: color .35s; }
a.service:hover .dur, a.service:focus-visible .dur { color: var(--fg); }
a.service:focus-visible { outline: 1px solid var(--fg); outline-offset: 3px; }
.service .price::after {
  content: "→"; display: inline-block; width: 0; overflow: hidden; vertical-align: top;
  transition: width .35s var(--ease, ease), margin .35s var(--ease, ease);
}
a.service:hover .price::after, a.service:focus-visible .price::after { width: .9em; margin-left: .35em; }

/* Header: plain at the top; liquid glass once the page scrolls */
.nav { transition: background .45s, box-shadow .45s, backdrop-filter .45s, -webkit-backdrop-filter .45s; }
.nav::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .45s;
  background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,.06) 45%, transparent 70%);
}
.nav > * { position: relative; }
.nav.scrolled {
  background:
    linear-gradient(180deg, rgba(255,255,255,.08) 0%, rgba(255,255,255,.02) 50%, rgba(255,255,255,0) 100%),
    rgba(31, 30, 28, .38);
  -webkit-backdrop-filter: blur(22px) saturate(170%) brightness(1.08);
  backdrop-filter: blur(22px) saturate(170%) brightness(1.08);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.nav.scrolled::before { opacity: 1; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav.scrolled { background: rgba(31, 30, 28, .94); }
}
.nav nav a { color: rgba(236,235,230,.78); text-shadow: 0 1px 8px rgba(0,0,0,.45); }
.brand img { filter: drop-shadow(0 1px 6px rgba(0,0,0,.35)); }
