/* ============================================================
   Daylight — bright editorial starter theme.
   Paper ground, ink type, a numbered room index set like a
   magazine contents page. Single (light) mode by design.
   ============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  overflow-x: clip;
}
html {
  scroll-behavior: smooth;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
h1,
h2,
h3,
p {
  margin: 0;
}

/* ---------------- tokens ---------------- */
:root {
  --paper-raw: var(--sf-bg, #f8f4ed);
  --surface-raw: var(--sf-surface, #fcfbf7);
  --ink-raw: var(--sf-ink, #201a13);
  --accent-raw: var(--sf-accent, #e8a03d);

  --bg: 38 42% 95%; /* paper — overwritten from --paper-raw by theme.js */
  --surface: 40 50% 98%;
  --ink: 30 25% 10%;
  --accent: var(--accent-raw, #e8a03d);
  --accent-ink: #201a13; /* type on top of the accent fill */
  /* The accent set as type: pulled toward the ink so it reads on the paper,
     whatever accent a studio picks. The fill stays --accent. */
  --accent-text: color-mix(in srgb, var(--accent) 40%, hsl(var(--ink)));

  --radius: 0.125rem;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  --font-display:
    var(--sf-font-display, "Bricolage Grotesque"), ui-sans-serif, system-ui, sans-serif;
  --font-body: var(--sf-font-body, "Archivo"), ui-sans-serif, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}
:root[data-radius="soft"] {
  --radius: 0.375rem;
}
:root[data-radius="round"] {
  --radius: 0.75rem;
}

/* ---------------- base ---------------- */
body {
  margin: 0;
  background-color: hsl(var(--bg));
  color: hsl(var(--ink));
  font-family: var(--font-body);
  font-feature-settings: "cv11", "ss01", "cv02";
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}
/* --accent is a whole colour (`var(--accent-raw, #e8a03d)`), not the HSL
   components --bg and --ink are, so the `hsl(var(--accent) / 1)` version of
   this rule that used to sit above was invalid and dropped by the parser. It
   only ever looked like it worked because this valid copy followed it. */
::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}
.mono {
  font-family: var(--font-mono);
}
.text-balance {
  text-wrap: balance;
}

/* ---------------- type ---------------- */
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-feature-settings: "liga", "kern";
  font-weight: 700;
}

.dl-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: var(--accent-text);
  margin-bottom: 0.85rem;
}
.dl-label::before {
  content: "";
  width: 1.25rem;
  height: 1px;
  background: currentColor;
  display: inline-block;
}

/* ---------------- buttons ---------------- */
.dl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  padding: 0 1.35rem;
  height: 2.75rem;
  border: 1px solid hsl(var(--ink) / 0.85);
  border-radius: var(--radius);
  cursor: pointer;
  transition:
    transform 0.2s var(--ease),
    background-color 0.2s var(--ease),
    color 0.2s var(--ease),
    border-color 0.2s var(--ease);
  white-space: nowrap;
}
.dl-btn--primary {
  background: hsl(var(--ink));
  color: hsl(var(--bg));
}
.dl-btn--primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  transform: translateY(-1px);
}
.dl-btn--outline {
  background: transparent;
  border-color: hsl(var(--ink) / 0.35);
  color: hsl(var(--ink));
}
.dl-btn--outline:hover {
  border-color: hsl(var(--ink));
}
.dl-btn--ghost {
  background: transparent;
  border-color: transparent;
  color: hsl(var(--ink));
  text-decoration: underline;
  text-underline-offset: 4px;
}
.dl-btn--ghost:hover {
  color: var(--accent-text);
}

.dl-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.8125rem;
  color: hsl(var(--ink) / 0.7);
}
.dl-chip a {
  border-bottom: 1px solid hsl(var(--ink) / 0.3);
  color: hsl(var(--ink) / 0.85);
}
.dl-chip a:hover {
  border-color: var(--accent);
  color: var(--accent-text);
}
.dl-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

/* ---------------- reveal ----------------
   Visible-by-default: [data-reveal] renders at full opacity/position with no
   markup/CSS dependency on JS. The shared platform reveal script
   (urls.reveal_script — sf-reveal.js) stamps `.rv-init` on <html> — only
   then does this rule hide reveal targets pending their trigger. Any later
   failure in it reverts the class, so content simply stays visible rather
   than vanishing. */
.rv-init [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.5s var(--ease),
    transform 0.5s var(--ease);
}
.rv-init [data-reveal].in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ---------------- nav ---------------- */
.dl-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: hsl(var(--bg) / 0.92);
  border-bottom: 1px solid hsl(var(--ink) / 0.12);
}
.dl-nav__inner {
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.dl-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.dl-brand__mark {
  color: var(--accent-text);
  font-size: 0.75rem;
}
.dl-brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
}
.dl-brand__logo {
  height: 1.85rem;
  width: auto;
}

.dl-nav__links {
  display: none;
  align-items: center;
  gap: 1.75rem;
}
.dl-nav__links a {
  font-size: 0.8125rem;
  font-weight: 500;
  color: hsl(var(--ink) / 0.7);
  position: relative;
  padding-block: 0.25rem;
}
.dl-nav__links a:hover,
.dl-nav__links a.is-active {
  color: hsl(var(--ink));
}
.dl-nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.dl-nav__links a:hover::after,
.dl-nav__links a.is-active::after {
  transform: scaleX(1);
}

.dl-nav__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.dl-nav__actions .dl-btn {
  display: inline-flex;
  min-height: 44px;
}

.dl-hamburger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 2.5rem;
  height: 2.5rem;
  background: transparent;
  border: 1px solid hsl(var(--ink) / 0.3);
  border-radius: var(--radius);
  cursor: pointer;
}
.dl-hamburger span {
  display: block;
  width: 16px;
  height: 1.5px;
  margin-inline: auto;
  background: hsl(var(--ink));
  transition:
    transform 0.25s var(--ease),
    opacity 0.25s var(--ease);
}
.dl-hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}
.dl-hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.dl-hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

.dl-sheet {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: hsl(var(--bg));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  /* visibility, not opacity alone: a transparent sheet keeps its links in the
     tab order, so a keyboard lands on four invisible menu items. */
  visibility: hidden;
  transition:
    opacity 0.3s var(--ease),
    visibility 0s linear 0.3s;
}
.dl-sheet.is-open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transition:
    opacity 0.3s var(--ease),
    visibility 0s;
}
.dl-sheet__nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.dl-sheet__nav a {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  padding: 0.5rem 1rem;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.3s var(--ease),
    transform 0.3s var(--ease);
}
.dl-sheet.is-open .dl-sheet__nav a {
  opacity: 1;
  transform: translateY(0);
}
.dl-sheet.is-open .dl-sheet__nav a:nth-child(1) {
  transition-delay: 0.05s;
}
.dl-sheet.is-open .dl-sheet__nav a:nth-child(2) {
  transition-delay: 0.1s;
}
.dl-sheet.is-open .dl-sheet__nav a:nth-child(3) {
  transition-delay: 0.15s;
}
.dl-sheet.is-open .dl-sheet__nav a:nth-child(4) {
  transition-delay: 0.2s;
}
.dl-sheet__cta {
  color: var(--accent-text) !important;
}

/* ---------------- hero ---------------- */
.dl-hero {
  padding: 4.5rem 0 3.5rem;
  max-width: 720px;
}
.dl-hero__h1 {
  font-size: clamp(2.5rem, 7vw, 4.25rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}
.dl-hero__sub {
  margin-top: 1.25rem;
  font-size: 1.0625rem;
  color: hsl(var(--ink) / 0.68);
  max-width: 34rem;
}
.dl-hero__row {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.dl-hero__status {
  margin-top: 1.75rem;
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* ---------------- index ---------------- */
.dl-index {
  padding-block: 1.5rem 3.5rem;
  border-top: 1px solid hsl(var(--ink) / 0.12);
}
.dl-index__head {
  padding-block: 2rem 0.5rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.dl-index__heading {
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.01em;
}
.dl-index__count {
  font-size: 0.75rem;
  color: hsl(var(--ink) / 0.7);
}

.dl-index__rows {
  display: flex;
  flex-direction: column;
}
.dl-index__row {
  border-top: 1px solid hsl(var(--ink) / 0.14);
  position: relative;
}
.dl-index__rows .dl-index__row:first-child {
  border-top: none;
}
.dl-index__link {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem 0;
  position: relative;
}
.dl-index__num {
  font-size: 0.8125rem;
  color: hsl(var(--ink) / 0.7);
  width: 2ch;
  flex-shrink: 0;
  transition: color 0.25s var(--ease);
}
.dl-index__row:hover .dl-index__num {
  color: var(--accent-text);
}
.dl-index__main {
  flex: 1;
  min-width: 0;
}
.dl-index__name {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  transition:
    transform 0.3s var(--ease),
    color 0.3s var(--ease);
}
.dl-index__row:hover .dl-index__name {
  transform: translateX(6px);
}
.dl-index__meta {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  color: hsl(var(--ink) / 0.7);
}
.dl-index__arrow {
  flex-shrink: 0;
  color: hsl(var(--ink) / 0.7);
  transition:
    transform 0.25s var(--ease),
    color 0.25s var(--ease);
}
/* class selector on the svg itself (not just a descendant selector) so sizing
   survives even if the wrapping span's class fails to match for any reason —
   the width/height ATTRIBUTES on the element are the real backstop: a
   viewBox-only <svg> with no matching CSS and no size attributes defaults to
   filling its containing block (1:1 from the viewBox), which is how a single
   missed selector turns into a viewport-filling shape. */
.dl-index__arrow-icon {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
}
.dl-index__row:hover .dl-index__arrow {
  transform: translateX(4px);
  color: var(--accent-text);
}

/* photo reveal panel: absolutely positioned to the right, hover-triggered */
.dl-index__reveal {
  position: absolute;
  right: 0;
  top: 50%;
  width: 12rem;
  height: 8rem;
  transform: translateY(-50%) translateX(1rem) scale(0.96);
  opacity: 0;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid hsl(var(--ink) / 0.15);
  pointer-events: none;
  transition:
    opacity 0.35s var(--ease),
    transform 0.35s var(--ease);
  z-index: 2;
  background: hsl(var(--surface));
}
.dl-index__reveal img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dl-index__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsl(var(--surface));
  border: 1px dashed hsl(var(--ink) / 0.3);
}
.dl-index__placeholder span {
  font-size: 1.5rem;
  color: hsl(var(--ink) / 0.7);
}
.dl-index__link:hover .dl-index__reveal,
.dl-index__link:focus-visible .dl-index__reveal {
  opacity: 1;
  transform: translateY(-50%) translateX(0) scale(1);
}

/* ---------------- gear note ---------------- */
.dl-note {
  background: hsl(var(--surface));
  padding-block: 3.5rem;
  border-top: 1px solid hsl(var(--ink) / 0.12);
  border-bottom: 1px solid hsl(var(--ink) / 0.12);
}
.dl-note__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
.dl-note__heading {
  font-size: clamp(1.625rem, 3.5vw, 2.25rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.dl-note__body {
  margin-top: 0.85rem;
  color: hsl(var(--ink) / 0.7);
  max-width: 32rem;
}
.dl-note__strip {
  margin-top: 1.25rem;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: hsl(var(--ink) / 0.7);
}

/* ---------------- find us ---------------- */
.dl-findus {
  padding-block: 3.5rem;
}
.dl-findus__grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
.dl-findus__heading {
  margin-top: 0.5rem;
  font-size: clamp(1.625rem, 3.5vw, 2.25rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.dl-findus__rows {
  margin: 1.25rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.875rem;
  color: hsl(var(--ink) / 0.75);
}
.dl-findus__rows a:hover {
  color: var(--accent-text);
}
.dl-findus__map {
  overflow: hidden;
  height: 280px;
  border-radius: var(--radius);
  border: 1px solid hsl(var(--ink) / 0.15);
}
.dl-findus__iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.3) contrast(1.02);
}
.dl-findus__map-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsl(var(--surface));
}
.dl-findus__map-fallback span {
  color: hsl(var(--ink) / 0.7);
}

/* ---------------- footer ---------------- */
.dl-footer {
  border-top: 1px solid hsl(var(--ink) / 0.15);
  padding-block: 3rem 1.75rem;
}
.dl-footer__inner {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
/* grid-item guard: without min-width:0 a long unbreakable string (an email,
   a room name) can force its column past the track width instead of
   wrapping/eliding — the same class of bug as an unconstrained SVG, just at
   text-layout scale instead of replaced-element scale. */
.dl-footer__col {
  min-width: 0;
}
.dl-footer__brand {
  min-width: 0;
}
.dl-footer__tagline {
  margin-top: 0.75rem;
  color: hsl(var(--ink) / 0.7);
  font-size: 0.9rem;
  max-width: 20rem;
}
.dl-footer__line {
  margin-top: 0.45rem;
  font-size: 0.875rem;
}
.dl-footer__line a:hover {
  color: var(--accent-text);
}
.dl-footer__hours {
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.8125rem;
  color: hsl(var(--ink) / 0.7);
}
.dl-footer__hours li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  max-width: 15rem;
}
.dl-footer__legal {
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid hsl(var(--ink) / 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: hsl(var(--ink) / 0.7);
}
.dl-footer__watermark {
  color: hsl(var(--ink) / 0.7);
}

/* ---------------- room detail ---------------- */
.dl-back {
  padding-top: 1.5rem;
  font-size: 0.8125rem;
  color: hsl(var(--ink) / 0.7);
}
.dl-back a:hover {
  color: var(--accent-text);
}

.dl-roomhead {
  padding-block: 1.5rem 3rem;
}
.dl-roomhead__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
.dl-roomhead__info {
  min-width: 0;
}
.dl-roomhead__photo {
  aspect-ratio: 4 / 3;
  max-height: min(46vh, 460px);
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid hsl(var(--ink) / 0.15);
}
.dl-roomhead__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dl-roomhead__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsl(var(--surface));
  border: 1px dashed hsl(var(--ink) / 0.3);
}
.dl-roomhead__placeholder-code {
  font-size: 2.5rem;
  color: hsl(var(--ink) / 0.7);
  letter-spacing: 0.05em;
}
.dl-roomhead__name {
  font-size: clamp(1.875rem, 5vw, 3rem);
  letter-spacing: -0.025em;
  line-height: 1.02;
}
.dl-roomhead__price {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
}
.dl-roomhead__unit {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 400;
  color: hsl(var(--ink) / 0.7);
}
.dl-roomhead__peak {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 400;
  color: hsl(var(--ink) / 0.7);
  margin-left: 0.35rem;
}
.dl-roomhead__desc {
  margin-top: 1rem;
  color: hsl(var(--ink) / 0.68);
  max-width: 34rem;
}
.dl-roomhead__meta {
  margin-top: 1rem;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: hsl(var(--ink) / 0.7);
}
.dl-roomhead__rates {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
}
.dl-roomhead__rates li {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-top: 1px solid hsl(var(--ink) / 0.14);
  font-size: 0.875rem;
}

.dl-spec {
  padding-block: 1rem 3rem;
}
.dl-spec__grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
.dl-spec__col {
  min-width: 0;
}
.dl-spec__list {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
}
.dl-spec__list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0;
  border-top: 1px solid hsl(var(--ink) / 0.14);
  font-size: 0.875rem;
}
.dl-spec__list li:first-child {
  border-top: none;
}
.dl-spec__idx {
  color: hsl(var(--ink) / 0.7);
  font-size: 0.625rem;
}
.dl-spec__list--plain li {
  padding-left: 0;
}

.dl-book {
  padding-block: 1rem 5rem;
}
.dl-book__head {
  margin-bottom: 1.25rem;
}
.dl-book__heading {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  letter-spacing: -0.02em;
}
.dl-book__embed {
  border-radius: var(--radius);
  border: 1px solid hsl(var(--ink) / 0.15);
  overflow: hidden;
}

/* ---------------- responsive ---------------- */
@media (min-width: 640px) {
  .dl-nav__actions .dl-btn {
    display: inline-flex;
  }
  .dl-index__rows {
    padding-inline: 0;
  }
}
@media (min-width: 768px) {
  .dl-footer__inner {
    grid-template-columns: 1.3fr 1fr 1fr;
  }
  .dl-findus__grid {
    grid-template-columns: 1fr 1.1fr;
  }
  .dl-roomhead__grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
  .dl-spec__grid {
    grid-template-columns: 1fr 1fr;
  }
  .dl-note__grid {
    grid-template-columns: 0.6fr 1fr;
    align-items: start;
  }
}
@media (min-width: 1024px) {
  .dl-nav {
    height: auto;
  }
  .dl-nav__links {
    display: flex;
  }
  .dl-hamburger {
    display: none;
  }
  .dl-index__link {
    padding: 1.85rem 0;
  }
}
@media (max-width: 767px) {
  /* No real hover on touch: the reveal panel becomes a small, always-visible
     thumbnail so photo and no-photo rows both still read as deliberate. */
  .dl-index__reveal {
    position: static;
    width: 3.25rem;
    height: 3.25rem;
    opacity: 1;
    transform: none;
    flex-shrink: 0;
    order: 2;
  }
  .dl-index__link {
    flex-wrap: nowrap;
  }
  .dl-index__placeholder span {
    font-size: 0.875rem;
  }
  .dl-index__arrow {
    display: none;
  }
}

/* ---------------- reduced motion ---------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  [data-reveal] {
    transition: opacity 0.2s linear !important;
    transform: none !important;
    opacity: 1 !important;
  }
  .dl-index__row,
  .dl-index__name,
  .dl-index__num,
  .dl-index__arrow,
  .dl-index__reveal,
  .dl-btn,
  .dl-sheet,
  .dl-sheet__nav a,
  .dl-nav__links a::after {
    transition-duration: 0.01ms !important;
  }
}

/* ---------------- color schemes ----------------
   The engine writes --sf-* per scheme onto the section wrapper. :where() keeps
   this at zero specificity so a section with its own ground still wins. */
:where(.ss-section.color-scheme) {
  background-color: var(--sf-bg);
  color: var(--sf-ink);
}

/* ---------------- menus ---------------- */
.dl-nav__group {
  position: relative;
  display: inline-flex;
}
.dl-nav__sub {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 20;
  display: none;
  min-width: 12rem;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.7rem 0.9rem;
  background: var(--sf-surface, #fcfbf7);
  border: 1px solid hsl(var(--ink) / 0.12);
  border-radius: var(--radius);
}
.dl-nav__group:hover .dl-nav__sub,
.dl-nav__group:focus-within .dl-nav__sub {
  display: flex;
}
.dl-sheet__child {
  padding-left: 1rem;
  font-size: 0.95em;
  opacity: 0.75;
}
.dl-footer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.dl-footer__nav-child {
  padding-left: 0.75rem;
  opacity: 0.75;
}

/* ---------------- platform-owned pages ---------------- */
.dl-page {
  width: 100%;
  margin-inline: auto;
  max-width: 1000px;
  padding: clamp(2.5rem, 6vw, 4.5rem) 1.25rem clamp(3rem, 7vw, 5rem);
}
.dl-page--narrow {
  max-width: 720px;
}
.dl-page--wide {
  max-width: 1240px;
}
.dl-page__head {
  padding-bottom: 1.1rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--accent);
}
.dl-page__title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5.5vw, 3.4rem);
  letter-spacing: -0.03em;
  line-height: 1.02;
}
.dl-page__lead {
  max-width: 52ch;
  margin-bottom: 1.5rem;
  color: hsl(var(--ink) / 0.72);
  font-size: 1.05rem;
}
.dl-page__actions {
  margin-bottom: 2.5rem;
}
.dl-page__body--prose {
  max-width: 68ch;
  line-height: 1.7;
}
.dl-page__body--prose h2,
.dl-page__body--prose h3 {
  margin: 2rem 0 0.6rem;
}
.dl-page__body--prose p,
.dl-page__body--prose ul,
.dl-page__body--prose ol {
  margin-bottom: 1rem;
}
.dl-page__body--prose ul,
.dl-page__body--prose ol {
  padding-left: 1.2rem;
  list-style: revert;
}
.dl-page__body--prose a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* ---------------- room custom fields ---------------- */
.dl-spec__col--fields {
  margin-top: 2.5rem;
}
.dl-fields {
  display: grid;
  gap: 0.6rem;
  margin: 0.9rem 0 0;
}
.dl-fields__row {
  display: grid;
  grid-template-columns: minmax(8rem, 14rem) 1fr;
  gap: 0.75rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid hsl(var(--ink) / 0.1);
}
.dl-fields__label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: hsl(var(--ink) / 0.7);
}
.dl-fields__value {
  margin: 0;
}
.dl-fields__value a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.dl-fields__chip {
  display: inline-block;
  margin: 0 0.35rem 0.35rem 0;
  padding: 0.15rem 0.5rem;
  background: hsl(var(--ink) / 0.06);
  border-radius: var(--radius);
  font-size: 0.85rem;
}
@media (max-width: 640px) {
  .dl-fields__row {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

/* ---------------- room gallery ---------------- */
.dl-gallery {
  padding-block: clamp(2rem, 5vw, 3.5rem) 0;
}
.dl-gallery__grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 0.9rem;
}
.dl-gallery__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

/* ---------------- focus and skip link ----------------
   currentColor rings contrast with whatever ground the element sits on. */
:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
.ss-skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.65rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  background: hsl(var(--surface));
  color: hsl(var(--ink));
  border: 1px solid currentColor;
  border-radius: var(--radius);
}
.ss-skip:focus {
  top: 1rem;
}

/* when the room is next free, from the month feed */
.dl-book__free {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--sf-muted);
}

/* the studio's own published reviews */
.dl-vh {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.dl-reviews__head {
  margin-bottom: 1.25rem;
}
.dl-reviews__summary {
  margin-top: 0.35rem;
  font-size: 0.875rem;
  color: var(--sf-muted);
}
.dl-reviews__list {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}
.dl-reviews__item {
  border: 1px solid var(--sf-line, color-mix(in srgb, var(--sf-ink) 15%, transparent));
  border-radius: var(--sf-radius);
  background: var(--sf-surface);
  padding: 1rem 1.1rem;
}
.dl-reviews__stars {
  margin: 0 0 0.4rem;
  color: var(--sf-accent);
  letter-spacing: 0.08em;
}
.dl-reviews__title {
  margin: 0 0 0.35rem;
  font-weight: 600;
}
.dl-reviews__body {
  margin: 0;
}
.dl-reviews__who {
  margin: 0.6rem 0 0;
  font-size: 0.8125rem;
  color: var(--sf-muted);
}
.dl-reviews__reply {
  margin: 0.75rem 0 0;
  padding-top: 0.6rem;
  border-top: 1px solid color-mix(in srgb, var(--sf-ink) 12%, transparent);
  font-size: 0.875rem;
}
.dl-reviews__replied {
  font-weight: 600;
}

/* the room finder: facets and the list they narrow */
.dl-filter__facets {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1rem 0 1.25rem;
}
.dl-filter__group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}
.dl-filter__label {
  font-size: 0.8125rem;
  color: var(--sf-muted);
}
.dl-filter__chip {
  border: 1px solid color-mix(in srgb, var(--sf-ink) 20%, transparent);
  border-radius: 999px;
  background: transparent;
  color: var(--sf-ink);
  font: inherit;
  font-size: 0.8125rem;
  padding: 0.25rem 0.7rem;
  cursor: pointer;
}
.dl-filter__chip[aria-pressed="true"] {
  background: var(--sf-ink);
  color: var(--sf-bg);
  border-color: var(--sf-ink);
}
.dl-filter__list {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}
.dl-filter__card {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  border: 1px solid color-mix(in srgb, var(--sf-ink) 15%, transparent);
  border-radius: var(--sf-radius);
  background: var(--sf-surface);
  padding: 0.9rem 1rem;
  color: inherit;
  text-decoration: none;
}
.dl-filter__name {
  font-weight: 600;
}
.dl-filter__meta,
.dl-filter__price {
  font-size: 0.8125rem;
  color: var(--sf-muted);
}
.dl-filter__empty {
  margin-top: 1rem;
  color: var(--sf-muted);
}

/* Studio storytelling: merchant-controlled images, copy and session notes. */
.showcase-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 7vw;
  padding: 8vw 6vw;
}
.showcase-story__image img {
  width: 100%;
  aspect-ratio: 1.1;
  object-fit: cover;
}
.showcase-story__copy h2 {
  font-family: var(--sf-font-display);
  font-size: clamp(32px, 4vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin: 20px 0;
}
.showcase-story__copy > p {
  font-size: 16px;
  line-height: 1.8;
  max-width: 480px;
  color: var(--sf-muted);
}
.showcase-story__copy > a {
  display: inline-block;
  margin-top: 28px;
  border-bottom: 1px solid;
  padding-bottom: 8px;
}

.showcase-notes {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 7vw;
  padding: 5vw 6vw 9vw;
  border-top: 1px solid color-mix(in srgb, var(--sf-ink) 20%, transparent);
}
.showcase-notes h2 {
  font-family: var(--sf-font-display);
  font-size: clamp(30px, 4vw, 54px);
  margin-top: 18px;
}
.showcase-notes details {
  border-bottom: 1px solid color-mix(in srgb, var(--sf-ink) 20%, transparent);
  padding: 22px 0;
}
.showcase-notes summary {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
  list-style: none;
  font-weight: 500;
}
.showcase-notes summary::-webkit-details-marker {
  display: none;
}
.showcase-notes details p {
  line-height: 1.8;
  margin-top: 18px;
  max-width: 600px;
  color: var(--sf-muted);
}
.showcase-notes details[open] summary span {
  transform: rotate(45deg);
}
.showcase-hero-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 700px) {
  .showcase-story,
  .showcase-notes {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 50px 22px;
  }
  .showcase-story__image img {
    aspect-ratio: 1.4;
  }
}

.showcase-room-action {
  margin-top: 1.75rem;
}
.showcase-room-action a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  min-height: 48px;
}
@media (max-width: 640px) {
  .showcase-room-action a {
    width: 100%;
  }
}

/* Black or white on the accent fill, by the accent lightness. A fixed ink
   turns a merchant pale accent into invisible button text. */
@supports (color: oklch(from white l c h)) {
  :root {
    --accent-ink: oklch(from var(--accent) clamp(0, (0.62 - l) * 100, 1) 0 0);
  }
}
