/* Layout: quiet, centred wordmark bar; full-bleed photography bands alternating with
   narrow text columns on brand stone; locations as wide rows, not cards. */

/* Brand type, self-hosted. One file per face so "Ā" is always shaped as one glyph
   (Google's split subsets made Chrome decompose it into "A" + a stray macron). */
@font-face { font-family: "Gotu"; src: url("fonts/gotu.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Gotu"; src: url("fonts/gotu-deva.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0900-097F, U+200C-200D, U+25CC; }
@font-face { font-family: "Avenir"; src: url("fonts/avenir-book.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Avenir"; src: url("fonts/avenir-regular.woff2") format("woff2"); font-weight: 500 600; font-display: swap; }
/* Avenir has no Ā/ā: borrow just those letters from Jost, the closest open geometric */
@font-face { font-family: "Avenir"; src: url("fonts/jost-ext.woff2") format("woff2"); font-weight: 300 600; font-display: swap; unicode-range: U+0100-017F, U+0304; }

:root {
  /* Colours exactly as the approved concept */
  --bg: #fafaf9;        /* near-white, the page ground */
  --surface: #eff0f1;   /* brand Paper, quiet bands */
  --stone: #d1c7bf;     /* brand Sand, warm accents */
  --line: #e2e1df;      /* brand Mist, hairlines */
  --ink: #3b3a3b;       /* brand charcoal, text */
  --ink-soft: #5f5c5d;  /* secondary text */
  --accent: #324354;    /* brand deep blue, buttons and links */
  --on-accent: #f4f4f2;
  --earth: #a23e29;     /* brand terracotta, used once or twice */
  --photo-ink: #f6f4f1; /* text laid over photographs */
  --display: "Gotu", "Palatino Linotype", Palatino, Georgia, serif;
  --body: "Avenir", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --step--1: 0.8rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: 1.65rem;
  --step-3: clamp(2rem, 4vw, 2.75rem);
  --step-4: clamp(2.6rem, 6.5vw, 4.8rem);
  --head-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;  /* light theme only: form controls and scrollbars stay light on dark-mode devices */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--head-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 var(--step-0)/1.65 var(--body); letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 0.2em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; text-wrap: balance; line-height: 1.15; letter-spacing: -0.01em; }
h1 { line-height: 1.08; letter-spacing: -0.02em; }
p { margin: 0; text-wrap: pretty; }

.wrap {
  width: 100%; max-width: 1180px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.narrow { max-width: 760px; }
.eyebrow {
  font: 500 var(--step--1)/1.3 var(--body); letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft);
}

/* Wordmark: the real YĀTRĀ letterforms used as a mask, so it takes the theme's ink */
.wordmark {
  display: block; width: 132px; aspect-ratio: 1000 / 243; max-width: 100%;
  background: var(--ink);
  -webkit-mask: url("img/wordmark.png") center / contain no-repeat;
          mask: url("img/wordmark.png") center / contain no-repeat;
}
.wordmark span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
.site-head {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5;
  background: var(--bg); border-bottom: 1px solid transparent;
}
.site-head .wrap {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding-block: 16px;
}
.site-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-nav a, .head-end a.text {
  color: var(--ink); text-decoration: none; font-size: var(--step--1); letter-spacing: 0.14em; text-transform: uppercase;
}
.site-nav a:hover, .head-end a.text:hover { color: var(--accent); }
.head-end { display: flex; justify-content: flex-end; align-items: center; gap: 20px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 500 var(--step--1)/1 var(--body); letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none;
  background: var(--accent); color: var(--on-accent); border: 1px solid var(--accent);
  padding: 15px 24px; min-height: 44px; border-radius: 0;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .15s var(--ease);
}
.btn:hover { background: transparent; color: var(--accent); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--bg); }
.btn.on-photo { background: transparent; color: var(--photo-ink); border-color: var(--photo-ink); }
.btn.on-photo:hover { background: var(--photo-ink); color: #2b2a2b; }

/* Photo hero */
.hero { position: relative; color: var(--photo-ink); background: #2b3138; overflow: hidden; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,24,28,.42) 0%, rgba(20,24,28,.08) 26%, rgba(20,24,28,.18) 55%, rgba(20,24,28,.68) 100%); }
.hero .wrap { position: relative; z-index: 1; padding-block: clamp(120px, 22vw, 260px) clamp(48px, 7vw, 80px); display: grid; gap: 18px; }
.hero .eyebrow { color: var(--photo-ink); opacity: .9; }
.hero h1 { font-size: var(--step-4); max-width: 14ch; }
.hero p.lede { font-size: var(--step-1); max-width: 40ch; line-height: 1.55; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; }

/* Text sections */
.section { padding-block: clamp(64px, 10vw, 120px); }
.section.tint { background: var(--surface); }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { font-size: var(--step-3); }
.section-head p { color: var(--ink-soft); max-width: 58ch; }
.intro { text-align: center; display: grid; gap: 22px; justify-items: center; }
.intro h2 { font-size: var(--step-3); max-width: 22ch; }
.intro p { max-width: 60ch; color: var(--ink-soft); font-size: 1.08rem; }
.sanskrit { font-family: var(--display); color: var(--earth); font-size: var(--step-1); letter-spacing: 0.06em; }

/* Locations */
.locations { display: grid; gap: clamp(40px, 6vw, 72px); }
.loc { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.loc:nth-child(even) .loc-media { order: 2; }
.loc-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--stone); position: relative; max-width: 100%; }
.loc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.loc:hover .loc-media img { transform: scale(1.02); }
.loc-media.empty { display: grid; place-items: center; }
.loc-media.empty .glyph { font-family: var(--display); font-size: clamp(3rem, 9vw, 6rem); color: var(--bg); opacity: .8; line-height: 1; }
.loc-media.empty .caption { position: absolute; left: 14px; bottom: 12px; font-size: 0.75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.loc-body { display: grid; gap: 14px; min-width: 0; }
.loc-body h3 { font-size: var(--step-3); }
.loc-body .where { color: var(--ink-soft); }
.loc-facts { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.loc-facts li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.loc-facts li span:first-child { color: var(--ink-soft); }
.loc-facts li span:last-child { text-align: right; }
.loc-body .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }

/* Journey stages: a real sequence, so they are numbered */
.stages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); counter-reset: stage; }
.stage { display: grid; gap: 12px; align-content: start; border-top: 1px solid var(--ink); padding-top: 22px; min-width: 0; }
.stage .num { font-family: var(--display); color: var(--earth); font-size: var(--step-1); }
.stage h3 { font-size: var(--step-2); }
.stage p { color: var(--ink-soft); }
.stage .eg { font-size: var(--step--1); letter-spacing: .06em; color: var(--ink); }

/* Gifting + membership */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.split > div { background: var(--bg); padding: clamp(28px, 5vw, 56px); display: grid; gap: 14px; align-content: start; min-width: 0; }
.split h3 { font-size: var(--step-3); }
.split p { color: var(--ink-soft); max-width: 44ch; }
.split .actions { margin-top: 8px; }

/* Partners */
.partners { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 40px; font-family: var(--display); font-size: var(--step-1); color: var(--ink-soft); }

/* Journal */
.journal { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); }
.post { display: grid; gap: 10px; text-decoration: none; color: inherit; align-content: start; min-width: 0; }
.post .swatch { aspect-ratio: 3 / 2; background: var(--stone); max-width: 100%; }
.post:nth-child(2) .swatch { background: var(--surface); }
.post:nth-child(3) .swatch { background: var(--line); }
.post h3 { font-size: var(--step-1); line-height: 1.35; }
.post:hover h3 { color: var(--accent); }

/* Menu (location page) */
.menu { display: grid; gap: clamp(40px, 6vw, 64px); }
.menu-group { display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); gap: 24px; }
.menu-group h3 { font-size: var(--step-2); }
.menu-group ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.menu-group li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.menu-group .name { font-family: var(--display); font-size: 1.08rem; }
.menu-group .price { font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink-soft); font-size: 0.95rem; }

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); margin: 0; }
.facts div { display: grid; gap: 8px; align-content: start; border-top: 1px solid var(--line); padding-top: 18px; min-width: 0; }
.facts dt { margin: 0; }
.facts dd { margin: 0; }

.cta-band { background: var(--accent); color: var(--on-accent); }
.cta-band .wrap { padding-block: clamp(56px, 8vw, 96px); display: grid; gap: 18px; justify-items: center; text-align: center; }
.cta-band h2 { font-size: var(--step-3); }
.cta-band p { max-width: 50ch; opacity: .9; }
.cta-band .btn { background: var(--on-accent); color: var(--accent); border-color: var(--on-accent); }
.cta-band .btn:hover { background: transparent; color: var(--on-accent); }

/* Footer */
.site-foot { border-top: 1px solid var(--line); }
.site-foot .wrap { padding-block: 64px 72px; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 36px; }
.site-foot h4 { margin: 0 0 10px; font: 500 var(--step--1)/1.3 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-foot a { color: var(--ink); text-decoration: none; }
.site-foot a:hover { color: var(--accent); }
.site-foot .small { color: var(--ink-soft); font-size: var(--step--1); margin-top: 14px; }

@media (max-width: 900px) {
  .site-head .wrap { grid-template-columns: auto 1fr; }
  .site-nav { display: none; }
  .loc, .split, .journal, .stages, .facts { grid-template-columns: 1fr; }
  .loc:nth-child(even) .loc-media { order: 0; }
  .menu-group { grid-template-columns: 1fr; gap: 12px; }
  .site-foot .wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .head-end a.text { display: none; }
  .site-foot .wrap { grid-template-columns: 1fr; }
  .btn { padding: 13px 18px; }
}

/* Quick booking bar under the hero */
.quick { background: var(--bg); border-bottom: 1px solid var(--line); }
.quick .wrap { padding-block: 20px; }
.quick form { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.qf { display: grid; gap: 6px; min-width: 0; }
.qf span { font-size: 0.72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.qf select, .qf input, .book-field input {
  font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 0;
  padding: 12px 12px; width: 100%; min-width: 0; min-height: 46px;
}
.quick .btn { min-height: 46px; }

/* Booking panel */
html.book-open { overflow: hidden; }
.book-layer { position: fixed; inset: 0; z-index: 50; }
.book-backdrop { position: absolute; inset: 0; background: rgba(24, 28, 33, .45); opacity: 0; transition: opacity .25s ease; }
.book-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(480px, 100%);
  background: var(--bg); color: var(--ink); display: grid; grid-template-rows: auto auto 1fr auto;
  transform: translateX(24px); opacity: 0; transition: transform .3s ease, opacity .3s ease;
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px);
  padding-right: env(safe-area-inset-right, 0px);
  box-shadow: -18px 0 40px rgba(0,0,0,.12);
}
.book-layer.is-in .book-backdrop { opacity: 1; }
.book-layer.is-in .book-panel { transform: none; opacity: 1; }
.book-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 22px 24px 10px; }
.book-top h2 { font-size: var(--step-2); }
.book-x { font: 300 2rem/1 var(--body); background: none; border: 0; color: var(--ink); cursor: pointer; padding: 4px 8px; }
.book-tabs { display: flex; gap: 22px; padding: 0 24px; border-bottom: 1px solid var(--line); }
.book-tabs button {
  font: 500 var(--step--1)/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft);
  background: none; border: 0; border-bottom: 2px solid transparent; padding: 14px 0 12px; cursor: pointer;
}
.book-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.book-body { overflow-y: auto; padding: 8px 24px 24px; display: grid; gap: 8px; align-content: start; min-height: 0; }
.book-step { border: 0; margin: 0; padding: 18px 0 6px; display: grid; gap: 12px; min-width: 0; scroll-margin-top: 16px; }
.book-step legend { padding: 0; margin-bottom: 12px; font-family: var(--display); font-size: var(--step-1); display: flex; align-items: center; gap: 10px; }
.book-step .n { font: 500 0.72rem/1 var(--body); width: 24px; height: 24px; border: 1px solid var(--ink); border-radius: 50%; display: inline-grid; place-items: center; }
.spa-choices { display: grid; gap: 10px; }
.spa-choice, .exp-choice, .item-choice {
  text-align: left; font: inherit; color: var(--ink); background: var(--bg); cursor: pointer;
  border: 1px solid var(--line); border-radius: 0; padding: 14px 16px; transition: border-color .2s ease, background .2s ease;
}
.spa-choice { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; }
.spa-choice .tier { grid-column: 1 / -1; font-size: 0.7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.spa-choice .nm { font-family: var(--display); font-size: var(--step-1); }
.spa-choice .wh { grid-column: 1 / -1; font-size: 0.9rem; color: var(--ink-soft); }
.spa-choice .nt { grid-column: 1 / -1; font-size: 0.82rem; color: var(--ink-soft); }
.spa-choice:hover, .exp-choice:hover, .item-choice:hover { border-color: var(--ink-soft); }
.spa-choice[aria-pressed="true"], .exp-choice[aria-pressed="true"], .item-choice[aria-pressed="true"], .guests button[aria-pressed="true"] {
  border-color: var(--accent); background: var(--surface); box-shadow: inset 0 0 0 1px var(--accent);
}
.exp-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.exp-choice { display: grid; gap: 2px; align-content: start; }
.exp-choice .nm { font-family: var(--display); }
.exp-choice .pr, .item-choice .pr { font-size: 0.85rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
/* Treatments of the chosen category: a headed list (rows, not tiles) set apart from the category grid */
.item-choices { display: grid; margin-top: 14px; padding-top: 20px; border-top: 1px solid var(--line); }
.item-choices:empty { display: none; }
.item-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.item-head .nm { font-family: var(--display); font-size: var(--step-1); }
.item-head .ct { font-size: 0.7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); white-space: nowrap; }
.item-choices .book-hint { margin-bottom: 6px; }
.item-choice { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 4px; background: none; border-width: 0 0 1px; }
.item-choice:hover { background: var(--surface); border-color: var(--line); }
.item-choices .item-choice[aria-pressed="true"] { border-color: var(--line); box-shadow: inset 2px 0 0 var(--accent); padding-left: 14px; }
.item-choice .pr { white-space: nowrap; }
.date-hint { display: grid; gap: 8px; justify-items: start; }
.date-hint:empty { display: none; }
.date-hint .is-full { color: var(--ink); }
.date-next { font: inherit; font-size: var(--step--1); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); background: none; border: 0; padding: 4px 0; cursor: pointer; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 6px; }
.date-next:hover { text-decoration-color: var(--ink); }
/* Availability calendar: Cally web component, styled through its shadow parts */
calendar-date.cal { display: block; width: 100%; --color-accent: var(--accent); --color-text-on-accent: var(--on-accent); transition: opacity .2s ease; }
calendar-date.cal.is-loading { opacity: .55; }
calendar-date.cal::part(container) { gap: 10px; }
calendar-date.cal::part(header) { gap: 12px; }
calendar-date.cal::part(button) { width: 40px; height: 40px; background: none; border: 1px solid var(--line); border-radius: 0; color: var(--ink); cursor: pointer; transition: border-color .2s ease; }
calendar-date.cal::part(button):hover { border-color: var(--ink-soft); }
calendar-date.cal::part(disabled) { opacity: .35; cursor: default; }
calendar-date.cal::part(disabled):hover { border-color: var(--line); }
.cal-head { font: 400 var(--step-1)/1.2 var(--display); color: var(--ink); }
.cal calendar-month { width: 100%; }
.cal calendar-month::part(heading) { display: none; }
.cal calendar-month::part(table) { width: 100%; table-layout: fixed; font-size: .92rem; }
.cal calendar-month::part(th) { width: auto; height: 30px; font-size: .66rem; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.cal calendar-month::part(button) { width: 100%; height: 44px; font-family: var(--body); color: var(--ink); border-radius: 0; cursor: pointer; transition: background .2s ease, color .2s ease; }
.cal calendar-month::part(day):hover { background: var(--surface); }
.cal calendar-month::part(today) { text-decoration: underline; text-underline-offset: 5px; }
.cal calendar-month::part(booked) { opacity: 1; color: var(--ink-soft); text-decoration: line-through; cursor: not-allowed; }
.cal calendar-month::part(past) { cursor: default; }
.cal calendar-month::part(booked):hover, .cal calendar-month::part(past):hover { background: none; }
.cal calendar-month::part(button):focus-visible { background: var(--surface); color: var(--ink); outline: 2px solid var(--accent); outline-offset: -2px; }
.cal calendar-month::part(selected), .cal calendar-month::part(selected):hover { background: var(--accent); color: var(--on-accent); }
.cal calendar-month::part(selected):focus-visible { background: var(--accent); color: var(--on-accent); outline-color: var(--on-accent); }
.book-field { display: grid; gap: 6px; min-width: 0; }
.book-field > span { font-size: 0.72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.guests { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.guests button { font: inherit; font-size: 0.9rem; color: var(--ink); background: var(--bg); border: 1px solid var(--line); min-height: 46px; cursor: pointer; padding: 0 6px; }
.book-foot { border-top: 1px solid var(--line); padding: 18px 24px 22px; display: grid; gap: 10px; background: var(--bg); }
.book-summary { font-size: 0.92rem; color: var(--ink); }
.book-go { width: 100%; }
.book-go.is-off { opacity: .45; pointer-events: none; }
.book-hint { font-size: 0.82rem; color: var(--ink-soft); }
.gift-copy { color: var(--ink-soft); padding-top: 18px; }

@media (max-width: 900px) {
  .quick form { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .quick form { grid-template-columns: 1fr; }
  .book-top, .book-tabs, .book-body, .book-foot { padding-left: 18px; padding-right: 18px; }
}
@media (prefers-reduced-motion: reduce) { .book-panel, .book-backdrop { transition: none; } }


/* ===== Homepage, clean edition: one light ground, big images, one idea per section ===== */
.hero-tall .wrap { padding-block: clamp(200px, 34vw, 420px) clamp(56px, 8vw, 96px); }
.hero-tall h1 { font-size: clamp(2.6rem, 7vw, 5rem); max-width: 12ch; }
.hero-tall .lede { font-size: var(--step-2); font-family: var(--display); }

.statement .wrap { padding-block: clamp(48px, 6vw, 80px) clamp(28px, 3.5vw, 44px); display: grid; gap: 16px; justify-items: center; text-align: center; }
.statement h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); max-width: 24ch; line-height: 1.25; }
.statement p { max-width: 46ch; color: var(--ink-soft); font-size: 1.08rem; }

.quiet-head { display: grid; gap: 12px; justify-items: center; text-align: center; margin-bottom: clamp(28px, 4vw, 48px); }
.quiet-head h2 { font-size: var(--step-3); }

.spas .wrap { padding-block: clamp(24px, 3vw, 40px) clamp(96px, 12vw, 160px); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); }
.card { display: grid; gap: 8px; align-content: start; min-width: 0; }
.card-img { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface); margin-bottom: 14px; max-width: 100%; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s ease; }
.card:hover .card-img img { transform: scale(1.015); }
.card h3 { font-size: var(--step-2); }
.card .hotel { color: var(--ink-soft); }
.card .links, .menus { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 6px; }
.card .links a, .menus a, .book-link {
  color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 6px;
  font-size: var(--step--1); letter-spacing: .16em; text-transform: uppercase;
}
.card .links a:hover, .menus a:hover, .book-link:hover { text-decoration-color: var(--ink); }

.band { position: relative; color: var(--photo-ink); background: #2b3138; overflow: hidden; }
.band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band::after { content: ""; position: absolute; inset: 0; background: rgba(20, 24, 28, .42); }
.band .wrap { position: relative; z-index: 1; padding-block: clamp(140px, 20vw, 260px); display: grid; gap: 16px; justify-items: center; text-align: center; }
.band h2 { font-size: clamp(1.9rem, 4.4vw, 3.2rem); max-width: 18ch; }
.band p { letter-spacing: .14em; text-transform: uppercase; font-size: var(--step--1); opacity: .9; }

.rituals .wrap { padding-block: clamp(96px, 12vw, 160px); }
.ritual-list { list-style: none; margin: 0 auto; padding: 0; max-width: 880px; }
.ritual-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px 32px; align-items: baseline; padding: 26px 0; border-top: 1px solid var(--line); }
.ritual-list li:last-child { border-bottom: 1px solid var(--line); }
.ritual-list h3 { font-size: var(--step-1); margin-bottom: 4px; }
.ritual-list p { color: var(--ink-soft); font-size: .95rem; }
.ritual-list .from { font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; }
.menus { justify-content: center; margin-top: 36px; color: var(--ink-soft); font-size: var(--step--1); letter-spacing: .16em; text-transform: uppercase; }

.gift { background: var(--surface); }
.gift .wrap { padding-block: clamp(96px, 12vw, 150px); display: grid; gap: 18px; justify-items: center; text-align: center; }
.gift h2 { font-size: var(--step-3); }
.gift p { color: var(--ink-soft); max-width: 44ch; }
.gift .btn { margin-top: 8px; }

.partners-line .wrap { padding-block: 56px; display: grid; gap: 12px; justify-items: center; text-align: center; }
.partners-line p { font-family: var(--display); color: var(--ink-soft); font-size: 1.05rem; }

.site-foot li { color: var(--ink-soft); font-size: .95rem; }

@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .card-img { aspect-ratio: 4 / 3; }
}
@media (max-width: 520px) {
  .ritual-list li { grid-template-columns: minmax(0, 1fr) auto; }
  .ritual-list .book-link { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) { .card-img img { transition: none; } }

/* Split hero: words on the light ground, the film in a tall frame */
.hero-split .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: clamp(32px, 6vw, 96px); align-items: center; padding-block: clamp(32px, 5vw, 64px) clamp(48px, 6vw, 80px); }
.hs-text { display: grid; gap: 22px; min-width: 0; }
.hs-text h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); max-width: 11ch; }
.hs-text .lede { font-family: var(--display); font-size: var(--step-2); color: var(--ink-soft); }
.hs-text .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.hs-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #1c2532; max-width: 100%; }
.hs-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 900px) {
  .hero-split .wrap { grid-template-columns: 1fr; }
  .hs-media { order: -1; aspect-ratio: 4 / 5; }
}

/* Full-width film hero */
.hero-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-video .wrap { padding-block: clamp(220px, 30vw, 400px) clamp(56px, 7vw, 88px); }
.hero-video h1 { font-size: clamp(2.6rem, 7vw, 5rem); max-width: 12ch; }
.hero-video .lede { font-family: var(--display); font-size: var(--step-2); }
@media (max-width: 700px) {
  .hero-video .wrap { padding-block: clamp(300px, 90vw, 460px) 48px; }
}

.card .facilities { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.55; }

.quiet-head .tiers { color: var(--ink-soft); max-width: 62ch; display: grid; gap: 4px; font-size: 1rem; }
.quiet-head .tiers strong { font-weight: 500; color: var(--ink); }
.card .about { color: var(--ink); line-height: 1.55; margin-top: 4px; }
.senses .wrap { padding-block: clamp(80px, 10vw, 130px) clamp(40px, 5vw, 64px); }
.senses-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.senses-grid > div { display: grid; gap: 10px; align-content: start; border-top: 1px solid var(--line); padding-top: 20px; min-width: 0; text-align: center; justify-items: center; }
.senses-grid h3 { font-size: var(--step-1); }
.senses-grid p { color: var(--ink-soft); max-width: 34ch; }
@media (max-width: 760px) { .senses-grid { grid-template-columns: 1fr; } }

.band .stage-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; }
.band .stage-links a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; text-decoration-color: rgba(246,244,241,.5); }
.band .stage-links a:hover { text-decoration-color: currentColor; }
.stage-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 auto clamp(24px, 4vw, 40px); max-width: 880px; }
.stage-tabs button { font: inherit; font-size: var(--step--1); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); background: transparent; border: 1px solid var(--line); padding: 10px 16px; cursor: pointer; }
.stage-tabs button:hover { color: var(--ink); border-color: var(--ink-soft); }
.stage-tabs button[aria-selected="true"] { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
.stage-tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* 4 tabs don't fit one row on phones: even 2x2 grid instead of a ragged centred wrap */
@media (max-width: 760px) {
  .stage-tabs { display: grid; grid-template-columns: 1fr 1fr; }
  .stage-tabs button { padding: 12px 8px; line-height: 1.35; }
}
.stage-intro { text-align: center; color: var(--ink-soft); max-width: 52ch; margin: 0 auto 24px; }

.offer-bar { display: block; background: var(--accent); color: var(--on-accent); text-align: center; font-size: var(--step--1); letter-spacing: .08em; padding: 10px 16px; text-decoration: none; }
.offer-bar:hover span { text-decoration: underline; text-underline-offset: 4px; }
.gift-offer { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 6px; }
.gift-offer > div { display: grid; gap: 4px; min-width: 150px; padding: 18px 24px; background: var(--bg); border: 1px solid var(--line); }
.gift-offer .pay { font-size: var(--step--1); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.gift-offer .get { font-family: var(--display); font-size: var(--step-2); color: var(--ink); }
.gift-terms { font-size: var(--step--1); color: var(--ink-soft); }

.winter { background: var(--surface); }
.winter .wrap { padding-block: clamp(80px, 10vw, 130px); }
.winter .quiet-head p { color: var(--ink-soft); max-width: 52ch; }
.winter-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 28px); }
.winter-card { background: var(--bg); border: 1px solid var(--line); padding: clamp(24px, 3vw, 36px); display: grid; gap: 12px; align-content: start; min-width: 0; }
.winter-card h3 { font-size: var(--step-2); line-height: 1.25; }
.winter-card .feel { color: var(--ink); }
.winter-card ul { list-style: none; margin: 4px 0 0; padding: 0; border-top: 1px solid var(--line); }
.winter-card li { padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink-soft); font-size: .95rem; line-height: 1.5; }
.winter-card .meta { font-size: var(--step--1); letter-spacing: .08em; color: var(--ink-soft); }
.winter-card .links { display: flex; gap: 22px; margin-top: 4px; }
.winter-card .links a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 6px; font-size: var(--step--1); letter-spacing: .14em; text-transform: uppercase; }
.winter-card .links a:hover { text-decoration-color: var(--ink); }
.winter-card.is-pending { opacity: .6; border-style: dashed; }
.winter-feature { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.winter-feature > div { display: grid; gap: 16px; min-width: 0; }
.winter-feature h2 { font-size: var(--step-3); }
.winter-feature p { color: var(--ink-soft); max-width: 52ch; }
.includes { margin: 0; border-top: 1px solid var(--line); }
.includes > div { padding: 16px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.includes dt { font-family: var(--display); font-size: var(--step-1); }
.includes dd { margin: 0; color: var(--ink-soft); font-size: .95rem; }
@media (max-width: 860px) { .winter-cards, .winter-feature { grid-template-columns: 1fr; } }
.winter-card .meta { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; }

.winter-card { padding: 0; gap: 0; }
.winter-img { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--stone); max-width: 100%; }
.winter-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s ease; }
.winter-card:hover .winter-img img { transform: scale(1.015); }
.winter-body { display: grid; gap: 12px; align-content: start; padding: clamp(22px, 2.6vw, 32px); }
.winter-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 22px; margin-top: 6px; }
.winter-actions .more { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 6px; font-size: var(--step--1); letter-spacing: .14em; text-transform: uppercase; }
.winter-actions .more:hover { text-decoration-color: var(--ink); }

.winter-banner { background: var(--accent); color: var(--on-accent); }
.winter-banner-link { display: block; color: inherit; text-decoration: none; }
.winter-banner .wrap { padding-block: clamp(96px, 13vw, 180px); display: grid; gap: 16px; justify-items: center; text-align: center; }
.winter-banner .eyebrow { color: inherit; opacity: .85; }
.winter-banner h2 { font-size: clamp(1.9rem, 4.4vw, 3.2rem); max-width: 18ch; }
.winter-banner p { max-width: 46ch; opacity: .9; }
.winter-banner .btn { margin-top: 8px; }
.winter-banner-link:hover .btn { background: var(--on-accent); color: var(--accent); }
.winter-hero { background: var(--accent); color: var(--on-accent); }
.winter-hero .wrap { padding-block: clamp(96px, 12vw, 160px) clamp(64px, 8vw, 110px); display: grid; gap: 16px; justify-items: center; text-align: center; }
.winter-hero .eyebrow { color: inherit; opacity: .85; }
.winter-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); max-width: 16ch; line-height: 1.15; }
.winter-hero .lede { max-width: 52ch; opacity: .9; }
.winter-list .wrap { padding-block: clamp(56px, 7vw, 96px) clamp(40px, 5vw, 64px); }
.winter-list + .gift { background: var(--bg); }

.winter-banner, .winter-hero { position: relative; overflow: hidden; background: #2b3138; color: var(--photo-ink); }
.winter-banner > img, .winter-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.winter-banner::after, .winter-hero::after { content: ""; position: absolute; inset: 0; background: rgba(20, 24, 28, .45); pointer-events: none; }
.winter-banner-link, .winter-hero .wrap { position: relative; z-index: 1; }
.winter-banner-link:hover .btn { background: var(--photo-ink); color: #2b2a2b; }
.spas + .partners-line .wrap { padding-block: 0 clamp(72px, 9vw, 120px); }
.spas:has(+ .partners-line) .wrap { padding-bottom: clamp(48px, 6vw, 72px); }
.winter-home .wrap { padding-block: clamp(40px, 5vw, 64px) clamp(72px, 9vw, 110px); }
.winter-banner .wrap { padding-block: clamp(80px, 10vw, 140px); }

.winter-card .inc { list-style: none; margin: 4px 0 0; padding: 0; border-top: 1px solid var(--line); }
.winter-card .inc li { padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--ink-soft); font-size: .92rem; line-height: 1.45; }
.winter-card .winter-body { height: 100%; grid-template-rows: auto auto auto 1fr auto; }
.winter-card { display: flex; flex-direction: column; }
.winter-card .winter-body { flex: 1; display: flex; flex-direction: column; gap: 12px; height: auto; }
.winter-card .winter-actions { margin-top: auto; padding-top: 8px; }

/* ===== Production pass ===== */

/* Skip link for keyboard users */
.skip { position: absolute; left: 16px; top: -60px; z-index: 60; background: var(--accent); color: var(--on-accent); padding: 12px 18px; font-size: var(--step--1); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; transition: top .2s var(--ease); }
.skip:focus { top: 12px; }

/* Header sits over photo heroes, then turns solid once you scroll or open the menu */
.site-head { transition: background .3s var(--ease), border-color .3s var(--ease); }
html.is-scrolled .site-head { border-bottom-color: var(--line); }
.site-head + main > :is(.hero, .winter-hero):first-child { margin-top: calc(-1 * var(--head-h)); }
.site-head:has(+ main > :is(.hero, .winter-hero):first-child) { background: transparent; }
.site-head:has(+ main > :is(.hero, .winter-hero):first-child) .wordmark { background: var(--photo-ink); }
.site-head:has(+ main > :is(.hero, .winter-hero):first-child) .site-nav a,
.site-head:has(+ main > :is(.hero, .winter-hero):first-child) .menu-toggle { color: var(--photo-ink); }
.site-head:has(+ main > :is(.hero, .winter-hero):first-child) .head-end .btn { background: transparent; color: var(--photo-ink); border-color: var(--photo-ink); }
.site-head:has(+ main > :is(.hero, .winter-hero):first-child) .head-end .btn:hover { background: var(--photo-ink); color: #2b2a2b; }
html.is-scrolled .site-head:has(+ main > :is(.hero, .winter-hero):first-child),
.site-head.menu-open:has(+ main > :is(.hero, .winter-hero):first-child) { background: var(--bg); }
html.is-scrolled .site-head:has(+ main > :is(.hero, .winter-hero):first-child) .wordmark,
.site-head.menu-open:has(+ main > :is(.hero, .winter-hero):first-child) .wordmark { background: var(--ink); }
html.is-scrolled .site-head:has(+ main > :is(.hero, .winter-hero):first-child) .site-nav a,
html.is-scrolled .site-head:has(+ main > :is(.hero, .winter-hero):first-child) .menu-toggle,
.site-head.menu-open:has(+ main > :is(.hero, .winter-hero):first-child) .site-nav a,
.site-head.menu-open:has(+ main > :is(.hero, .winter-hero):first-child) .menu-toggle { color: var(--ink); }
html.is-scrolled .site-head:has(+ main > :is(.hero, .winter-hero):first-child) .head-end .btn,
.site-head.menu-open:has(+ main > :is(.hero, .winter-hero):first-child) .head-end .btn { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.winter-hero .wrap { padding-top: calc(var(--head-h) + clamp(72px, 10vw, 140px)); }
.cta-band .eyebrow { color: inherit; opacity: .85; }

/* Mobile menu (button injected by site.js) */
.menu-toggle { display: none; align-items: center; gap: 10px; min-height: 44px; padding: 0 4px; background: none; border: 0; cursor: pointer; color: var(--ink); font: 500 var(--step--1)/1 var(--body); letter-spacing: .16em; text-transform: uppercase; }
.menu-toggle i { display: grid; gap: 5px; width: 20px; }
.menu-toggle i::before, .menu-toggle i::after { content: ""; height: 1px; background: currentColor; transition: transform .25s var(--ease); }
.menu-open .menu-toggle i::before { transform: translateY(3px) rotate(45deg); }
.menu-open .menu-toggle i::after { transform: translateY(-3px) rotate(-45deg); }
@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }
  .head-end { gap: 12px; }
  .site-head.menu-open .site-nav {
    display: grid; position: absolute; top: 100%; left: 0; right: 0; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px max(16px, env(safe-area-inset-left, 0px)) 20px;
    box-shadow: 0 18px 30px rgba(59, 58, 59, .08);
  }
  .site-head.menu-open .site-nav a { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: .85rem; }
}
/* Gifts sits beside Book at every width (extras.css): over a photo hero it takes the photo ink like the nav */
.site-head:has(+ main > :is(.hero, .winter-hero):first-child) .head-gifts { color: var(--photo-ink); }
html.is-scrolled .site-head:has(+ main > :is(.hero, .winter-hero):first-child) .head-gifts,
.site-head.menu-open:has(+ main > :is(.hero, .winter-hero):first-child) .head-gifts { color: var(--ink); }
@media (max-width: 900px) { .head-end .head-gifts { margin-right: 0; } }
/* Phones: wordmark + Menu + Gifts + Book don't fit, so the menu keeps its icon and the word is hidden visually */
@media (max-width: 520px) {
  .menu-toggle { min-width: 44px; justify-content: center; }
  .menu-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
@media (max-width: 360px) {
  .site-head .wrap { gap: 8px; }
  .site-head .wordmark { width: 104px; }
  .head-end { gap: 4px; }
  .head-end .btn { padding: 12px 12px; }
}


.intro h1 { font-size: var(--step-3); max-width: 22ch; }
.hero h1, .hero .lede, .winter-hero h1 { text-shadow: 0 1px 28px rgba(20, 24, 28, .35); }
/* Phones: the copy covers most of a photo hero, so the scrim holds through the middle (the bright City pool photo) */
@media (max-width: 700px) {
  .hero:not(.hero-video)::after { background: linear-gradient(180deg, rgba(20,24,28,.46) 0%, rgba(20,24,28,.34) 40%, rgba(20,24,28,.62) 100%); }
}

/* Spa transitions: a spa's card photo grows into its page hero; spa pages crossfade */
@view-transition { navigation: auto; }
.site-head { view-transition-name: site-head; }
.card-img img[src$="mayfair-room.jpg"], .hero:has(> img[src$="mayfair-room.jpg"]) { view-transition-name: spa-mayfair; view-transition-class: spa; }
.card-img img[src$="east-pool.jpg"], .hero:has(> img[src$="east-pool.jpg"]) { view-transition-name: spa-east; view-transition-class: spa; }
.card-img img[src$="rlh-pool.jpg"], .hero:has(> img[src$="rlh-pool.jpg"]) { view-transition-name: spa-rlh; view-transition-class: spa; }
::view-transition-group(*) { animation-duration: .7s; animation-timing-function: var(--ease); }
::view-transition-old(*.spa), ::view-transition-new(*.spa) { height: 100%; object-fit: cover; }
::view-transition-old(root) { animation: .35s var(--ease) both vt-out; }
::view-transition-new(root) { animation: .55s var(--ease) .12s both vt-in; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }
/* Booking panel: the experience list eases in when the spa changes */
.exp-choice.enter, .item-choice.enter { animation: vt-in .45s var(--ease) both; }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .exp-choice.enter, .item-choice.enter { animation: none; }
}

/* In winter the gift block sits on the page colour, like the rituals below it: stop the two paddings stacking into one big gap */
.winter-list + .gift .wrap { padding-block: clamp(64px, 7vw, 96px) clamp(40px, 5vw, 64px); }
.winter-list + .gift + .rituals .wrap { padding-top: clamp(48px, 6vw, 72px); }

/* A block's own padding and its .wrap padding were stacking (120px + 80px on each side of the FAQ and the winter fold):
   one source each, and the block before the FAQ gives way so the pair reads like any other two blocks */
.section.faq-quiet, .section.winter-page { padding-block: 0; }
.section.winter-page > .wrap { padding-bottom: clamp(40px, 5vw, 64px); }
.rituals:has(+ .faq-quiet) .wrap, .section:has(+ .faq-quiet) { padding-bottom: clamp(32px, 4vw, 56px); }
/* Out of season the hidden winter blocks leave their neighbours' paddings back to back on one colour */
.section.tint:has(+ [hidden] + .offers) { padding-bottom: 0; }
.partners-line:has(+ [hidden]) .wrap { padding-bottom: clamp(24px, 3vw, 40px); }

/* Centred intro copy: wide enough on desktop that a sentence is not left with a stray word or two on its last line,
   and balanced wherever it still has to wrap */
.quiet-head .tiers { max-width: 70ch; }
.statement p { max-width: 52ch; }
.winter-hero .lede { max-width: 60ch; }
.gift p { max-width: 56ch; }
.statement p, .quiet-head p, .gift p, .winter-hero .lede, .cta-band p, .winter-banner p, .stage-intro, .card .facilities { text-wrap: balance; }

/* Blocks that sit side by side keep their parts in line (title with title, text with text, links with links) however the copy wraps:
   each block borrows its rows from the row it sits in (subgrid). Without subgrid support the blocks simply flow as before. */
@media (min-width: 901px) {
  .cards { row-gap: 8px; }
  .card { grid-row: span 7; grid-template-rows: subgrid; }
  .split > div { grid-row: span 4; grid-template-rows: subgrid; }
}
.split h3 { font-size: clamp(1.7rem, 3vw, 2.4rem); }   /* "YĀTRĀ Spa, Shoreditch" stays on one line, like the card beside it */
.site-foot .wrap > div { display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: 14px; align-items: start; }
.site-foot .wrap .foot-head { align-self: center; margin: 0; }
.site-foot .small { margin-top: 0; }

/* Cookie choice: a quiet bar at the foot of the window until the visitor decides. Accept and Reject look the same on purpose. */
.consent { position: fixed; inset: auto 0 0; z-index: 40; display: grid; gap: 6px 20px; justify-items: start; padding: 6px clamp(16px, 4vw, 40px) calc(6px + env(safe-area-inset-bottom, 0px)); background: var(--bg); border-top: 1px solid var(--line); box-shadow: 0 -8px 30px rgba(59, 58, 59, .08); }
.consent p { max-width: 90ch; color: var(--ink-soft); font-size: .85rem; line-height: 1.45; }
.consent-opts { display: grid; gap: 4px; font-size: .85rem; }
.consent-opts label { display: flex; gap: 10px; align-items: baseline; cursor: pointer; }
.consent-opts input { accent-color: var(--accent); }
.consent-actions { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.consent .btn { padding: 7px 12px; min-height: 32px; font-size: .68rem; letter-spacing: .14em; }
.consent button.text-link { background: none; border: 0; padding: 0; color: var(--ink); font-family: inherit; font-size: .68rem; min-height: 32px; cursor: pointer; }
@media (min-width: 640px) {
  .consent { grid-template-columns: 1fr auto; align-items: center; }
  .consent-opts { grid-row: 2; }
  .consent-actions { grid-column: 2; grid-row: 1; }
}

/* Cookies and privacy: one quiet column of text */
.legal { padding-block: clamp(48px, 7vw, 96px); }
.legal .wrap { display: grid; gap: 16px; }
.legal h1 { font-size: var(--step-3); }
.legal .lede { font-size: 1.15rem; color: var(--ink-soft); }
.legal h2 { font-size: var(--step-1); margin-top: 26px; }
.legal ul { margin: 0; padding-left: 1.2em; display: grid; gap: 10px; }
.legal code { font: inherit; font-size: .92em; background: var(--surface); padding: 1px 5px; border-radius: 3px; overflow-wrap: anywhere; }
.legal .btn { justify-self: start; }
.consent p a { color: inherit; }
