/* Linden Bath House. Brand settings live in :root; change these to restyle the template.
   Ink colours for the water are in js/fluid.js (INKS) and each section's data-ink. */
@font-face { font-family: 'Syne'; src: url('../fonts/syne-latin-wght-normal.woff2') format('woff2'); font-weight: 400 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter-latin-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --water: #eef2f1;     /* the water: page ground */
  --water-2: #dfe7e6;
  --ink: #1f2b45;       /* deep indigo ink: text and buttons */
  --ink-2: #4a5468;
  --muted: #6d7686;
  --teal: #2f6f6a;      /* small accents */
  --glass: rgba(246, 249, 248, 0.6);
  --glass-line: rgba(255, 255, 255, 0.75);
  --line: rgba(31, 43, 69, 0.14);
  --line-2: rgba(31, 43, 69, 0.28);
  --display: 'Syne', system-ui, sans-serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: clamp(20px, 4.5vw, 72px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--water); color: var(--ink); -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; }
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 14px; background: var(--ink); color: var(--water); border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }

.label { font: 600 12px/1.2 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px;
  border-radius: 999px; border: 1px solid var(--ink); background: var(--ink); color: var(--water);
  font: 500 15px/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.2s var(--ease);
}
.btn:hover { background: #2b3a5c; }
.btn:active { transform: scale(0.98); }
.btn-ghost { background: var(--glass); color: var(--ink); border-color: var(--glass-line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.8); }
.btn-small { min-height: 40px; padding: 0 18px; font-size: 14px; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 20; height: 74px; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav-brand { font: 700 24px/1 var(--display); letter-spacing: -0.02em; text-decoration: none; }
.nav-links { display: flex; gap: 6px; padding: 6px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-line); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.nav-links a { text-decoration: none; font-size: 14px; padding: 8px 14px; border-radius: 999px; transition: background 0.3s; }
.nav-links a:hover { background: rgba(255, 255, 255, 0.7); }

/* ---------- The water ---------- */
.water { position: fixed; inset: 0; z-index: 0; pointer-events: none; background: var(--water) url('../poster-scene.webp') center / cover no-repeat; }
.water canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1s var(--ease); }
.ink-ready .water canvas { opacity: 1; }
main, .footer { position: relative; z-index: 1; }

/* ---------- Opening ---------- */
.hero { min-height: 100svh; display: grid; align-content: center; gap: 22px; padding: 110px var(--gutter) 80px; max-width: 760px; }
.hero-title { font: 700 clamp(56px, 8.4vw, 132px)/0.9 var(--display); letter-spacing: -0.045em; }
.hero-lede { font-size: clamp(18px, 1.5vw, 21px); color: var(--ink-2); max-width: 36ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hint { font-size: 13px; color: var(--muted); margin-top: 18px; }
:root:not(.live) .hint { display: none; }

/* ---------- Sections ---------- */
.section { padding: clamp(96px, 11vw, 160px) var(--gutter); }
.section-head { display: grid; gap: 16px; max-width: 820px; margin-bottom: clamp(36px, 4vw, 56px); }
.section-title { font: 700 clamp(38px, 4.6vw, 70px)/0.98 var(--display); letter-spacing: -0.035em; }
.section-lede { color: var(--ink-2); max-width: 52ch; }

.glass { background: var(--glass); border: 1px solid var(--glass-line); border-radius: 22px; -webkit-backdrop-filter: blur(22px) saturate(1.1); backdrop-filter: blur(22px) saturate(1.1); box-shadow: 0 30px 80px rgba(31, 43, 69, 0.08); }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card { display: grid; grid-template-rows: auto auto 1fr auto; gap: 14px; padding: 28px; border-radius: 22px; background: var(--glass); border: 1px solid var(--glass-line); -webkit-backdrop-filter: blur(22px) saturate(1.1); backdrop-filter: blur(22px) saturate(1.1); box-shadow: 0 30px 80px rgba(31, 43, 69, 0.08); }
.card-kind { font: 600 12px/1.2 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); }
.card h3 { font: 700 26px/1.08 var(--display); letter-spacing: -0.025em; }
.card p { color: var(--ink-2); }
.card-price { font: 700 30px/1 var(--display) !important; color: var(--ink) !important; letter-spacing: -0.03em; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.steps li { padding: 26px; display: grid; gap: 10px; align-content: start; }
.step-n { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--water); font: 700 15px/1 var(--display); }
.steps h3 { font: 700 22px/1.15 var(--display); letter-spacing: -0.02em; }
.steps p { color: var(--ink-2); }

.price-panel, .find-panel, .book-panel { padding: clamp(28px, 4vw, 56px); max-width: 1100px; }
.price-list div, .hours div { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 14px 0; border-top: 1px solid var(--line); }
.price-list { border-bottom: 1px solid var(--line); }
.price-list dd { font: 700 24px/1 var(--display); letter-spacing: -0.02em; white-space: nowrap; }
.find-panel { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); }
.find-panel .section-head { margin-bottom: 0; }
.hours { align-self: end; border-bottom: 1px solid var(--line); }
.hours dt { color: var(--ink-2); }
.hours a { text-underline-offset: 3px; }

.book-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 20px; }
.field { display: grid; gap: 8px; }
.field span { font: 600 12px/1.2 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 12px;
  background: rgba(255, 255, 255, 0.7); color: var(--ink); font: 400 17px/1.3 var(--sans);
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: #fff; }
.field.invalid input, .field.invalid select { border-color: #b2543a; }
.field-wide { grid-column: 1 / -1; }
.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.form-status { color: var(--ink-2); font-size: 15px; }

.footer { margin-top: 40px; padding: 40px var(--gutter) 36px; display: flex; flex-wrap: wrap; gap: 10px 36px; align-items: baseline; font-size: 15px; color: var(--ink-2); background: var(--glass); border-top: 1px solid var(--glass-line); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.footer-brand { font: 700 22px/1 var(--display); letter-spacing: -0.02em; color: var(--ink); }
.footer-small { margin-left: auto; }

/* Entrances (content.js adds .in). Content is visible without scripts. */
.live .section-head, .live .card, .live .steps li, .live .price-list, .live .hours, .live .book-form { opacity: 0; transform: translateY(22px); transition: opacity 0.9s var(--ease), transform 1.1s var(--ease); }
.live .in, .instant .live .section-head, .instant.live .section-head, .instant.live .card, .instant.live .steps li, .instant.live .price-list, .instant.live .hours, .instant.live .book-form { opacity: 1 !important; transform: none !important; transition: none !important; }

.poster-mode .nav, .poster-mode main, .poster-mode .footer, .poster-mode .skip { visibility: hidden; }

/* ---------- Tablets and phones ---------- */
@media (max-width: 980px) {
  .cards, .steps { grid-template-columns: minmax(0, 1fr); }
  .find-panel { grid-template-columns: minmax(0, 1fr); }
  .book-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav { height: 64px; }
  .nav-links { display: none; }
  .hero { align-content: end; padding-bottom: 72px; position: relative; }
  .hero::before { content: ''; position: absolute; inset: 38% 0 0 0; z-index: -1; background: linear-gradient(to top, rgba(238, 242, 241, 0.94) 55%, rgba(238, 242, 241, 0)); }
  .section-head { padding: 20px; border-radius: 18px; background: var(--glass); border: 1px solid var(--glass-line); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
  .price-panel .section-head, .find-panel .section-head, .book-panel .section-head { padding: 0; background: none; border: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .book-form { grid-template-columns: minmax(0, 1fr); }
  .footer-small { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
}
