:root {
  /* color — 60/30/10 */
  --c-ground: #F7F3EA;      /* 60 — warm ivory base */
  --c-ground-alt: #EFE7D8;  /* ivory shade for section banding */
  --c-ink: #6E2A20;         /* 30 — deep wine-oxblood, refined from #863B2E */
  --c-ink-soft: #8A4438;    /* body text on ivory where full ink is too heavy */
  --c-accent: #B98A3E;      /* 10 — muted brass/ochre, CTA-only, never decorative */
  --c-accent-hover: #A47730;
  --c-white: #FFFFFF;

  /* spacing (8px base) */
  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 32px;
  --sp-6: 48px;
  --sp-8: 64px;
  --sp-12: 96px;

  /* radius */
  --r-sm: 2px;
  --r-md: 4px;

  /* shadow — flat editorial, no drop-shadow soup */
  --shadow-card: 0 1px 3px rgba(110, 42, 32, 0.12);
}

/* ---- reset / base ---- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--c-ground);
  color: var(--c-ink);
  font-family: "PT Sans", sans-serif;
  font-size: 1.0625rem; /* 17px — doctrine body 17–18px */
  line-height: 1.6;
  overflow-x: hidden;
}
::selection { background: var(--c-ink); color: var(--c-ground); }
img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, .host__note, .host__signoff {
  font-family: "Playfair Display", serif;
  line-height: 1.15;
  margin: 0;
}
/* modular scale 1.25: 20→25→31→39px, clamp() for smooth desktop bump */
h1 { font-size: clamp(1.9375rem, 1.5rem + 2vw, 2.4375rem); font-weight: 700; } /* 31→39 */
h2 { font-size: clamp(1.5625rem, 1.3rem + 1.1vw, 1.9375rem); font-weight: 600; line-height: 1.2; } /* 25→31 */
h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.2; } /* 20 */

.wrap {
  max-width: 640px;
  margin: 0 auto;
  padding-left: var(--sp-3);
  padding-right: var(--sp-3);
}

/* section banding (no borders) */
.band { padding: var(--sp-12) 0; }
.band--alt { background: var(--c-ground-alt); }
.band--ink { background: var(--c-ink); color: var(--c-ground); }

.eyebrow {
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-ink-soft);
}
.meta { font-size: 0.9375rem; line-height: 1.5; color: var(--c-ink-soft); } /* 15px */
p { margin: 0 0 var(--sp-2); }

/* ---- header ---- */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-2) var(--sp-3);
  background: color-mix(in srgb, var(--c-ground) 92%, transparent);
  backdrop-filter: blur(6px);
}
.header__logo, .hero__mark, .footer__logo { aspect-ratio: 960 / 957; }
.header__logo { height: 36px; width: auto; mix-blend-mode: multiply; }

/* ---- language toggle ---- */
.lang { display: flex; align-items: center; gap: var(--sp-1); }
.lang__btn {
  font-family: "PT Sans", sans-serif;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  padding: 6px 12px;
  border: none;
  background: none;
  color: var(--c-ink-soft);
  opacity: 0.6;
  cursor: pointer;
}
.lang__btn[aria-pressed="true"] { color: var(--c-ink); font-weight: 700; opacity: 1; }
.lang__sep { color: var(--c-ink-soft); opacity: 0.5; }

/* ---- hero ---- */
.hero { padding: var(--sp-8) 0; }
/* mobile: reproduce the old .wrap constraint on each child (stacked, centered) */
.hero__text { max-width: 640px; margin: 0 auto; padding: 0 var(--sp-3); text-align: center; }
.hero__figure { max-width: 640px; margin: var(--sp-3) auto 0; padding: 0 var(--sp-3); }
.hero__mark { width: min(260px, 62vw); height: auto; margin: var(--sp-3) auto var(--sp-2); mix-blend-mode: multiply; }
.hero__tagline {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-weight: 500; /* loaded italic cut is 500-only; h1 default 700 would synth-bold it */
  font-size: clamp(1.9375rem, 1.5rem + 2vw, 2.4375rem); /* 31→39, matches h1 scale */
  line-height: 1.2;
  margin: var(--sp-2) 0;
}
.hero__sub { color: var(--c-ink-soft); font-size: 1.25rem; } /* 20px */
.hero__price { margin-top: var(--sp-2); }

/* swash divider (extracted from logo calligraphy) */
.swash { display: block; width: 150px; height: auto; margin: var(--sp-2) auto; }
.swash path { stroke: var(--c-accent); }
.swash--flip { transform: scaleY(-1); }

/* ---- CTA (accent-only) ---- */
.cta-row { display: flex; flex-wrap: wrap; gap: var(--sp-2); justify-content: center; margin-top: var(--sp-3); }
.btn {
  font-family: "PT Sans", sans-serif;
  font-weight: 700;
  font-size: 0.9375rem;
  padding: 14px 26px;
  border-radius: var(--r-md);
  text-decoration: none;
  display: inline-block;
  transition: transform 100ms ease, opacity 100ms ease, background-color 150ms ease;
}
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--c-accent); color: var(--c-white); }
.btn--primary:hover { background: var(--c-accent-hover); }
.btn--ghost { border: 1px solid var(--c-ink); color: var(--c-ink); }
.band--ink .btn--ghost { border-color: var(--c-ground); color: var(--c-ground); }

/* ---- host welcome (imperfection) ---- */
.host { display: flex; justify-content: flex-end; }
.host__inner { max-width: 480px; text-align: left; }
.host__note {
  font-family: "Cormorant Garamond", "Playfair Display", serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.625rem, 1.4rem + 1vw, 1.9375rem); /* up to 31 on desktop */
  line-height: 1.4;
  margin-bottom: var(--sp-3);
}
.host__signoff { font-style: italic; font-size: 1.0625rem; color: color-mix(in srgb, var(--c-ground) 78%, var(--c-ink)); }

/* ---- rooms ---- */
.section-head { text-align: center; margin-bottom: var(--sp-6); }
.room { margin-bottom: var(--sp-6); }
.room:last-child { margin-bottom: 0; }
.room h3 { margin-bottom: var(--sp-1); }
.room__copy { color: var(--c-ink-soft); }

/* ---- labelled placeholders (until real photography lands) ---- */
.ph {
  background: repeating-linear-gradient(45deg,
    color-mix(in srgb, var(--c-ink) 14%, var(--c-ground)),
    color-mix(in srgb, var(--c-ink) 14%, var(--c-ground)) 10px,
    transparent 10px, transparent 20px);
  border: 1px solid color-mix(in srgb, var(--c-ink) 22%, var(--c-ground));
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--sp-2);
  margin-top: var(--sp-2);
}
.ph--43 { aspect-ratio: 4 / 3; }
.ph--11 { aspect-ratio: 1 / 1; }
.ph__label {
  font-family: "PT Sans", monospace;
  font-size: 0.75rem;
  color: var(--c-ink-soft);
  background: var(--c-ground);
  padding: 4px 8px;
}
.band--alt .ph__label { background: var(--c-ground-alt); }

/* ---- real photos: CSS aspect-ratio reserves space => no CLS ---- */
.feature__figure { margin: var(--sp-3) 0 0; }
.hero__photo, .feature__photo, .room__photo, .map__photo {
  width: 100%; height: auto; display: block;
  object-fit: cover; border-radius: var(--r-sm);
}
.hero__photo { aspect-ratio: 3 / 2; margin-top: var(--sp-3); }
.feature__photo { aspect-ratio: 3 / 2; }
.room__photo { aspect-ratio: 4 / 3; margin-top: var(--sp-2); }
.map__photo { aspect-ratio: 1 / 1; margin: var(--sp-3) 0; }
.feature__cap { margin-top: var(--sp-1); }
.feature__cap, .gallery__cap { font-family: "PT Sans", sans-serif; font-size: 0.9375rem; color: var(--c-ink-soft); } /* 15px */

.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2); margin-top: var(--sp-3); }
.gallery__item { margin: 0; }
.gallery__item--wide { grid-column: span 2; }
.gallery__item img {
  width: 100%; height: auto; display: block;
  aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-sm);
}
.gallery__cap { margin-top: var(--sp-1); }

/* ---- location ---- */
.nap { font-size: 1rem; line-height: 1.8; margin: var(--sp-3) 0; } /* 16px */

/* ---- booking strip ---- */
.booking { text-align: center; }
.booking h2 { font-style: italic; font-weight: 500; margin-bottom: var(--sp-1); }
.booking .meta { color: color-mix(in srgb, var(--c-ground) 78%, var(--c-ink)); margin-bottom: var(--sp-4); }

/* ---- footer ---- */
.footer { text-align: center; padding: var(--sp-6) var(--sp-3) calc(var(--sp-8) + 64px); }
.footer__logo { height: 52px; width: auto; mix-blend-mode: multiply; margin: 0 auto var(--sp-2); }
.footer a { text-decoration: underline; text-underline-offset: 3px; }

/* ---- sticky mobile conversion bar ---- */
.stickybar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  display: flex;
  gap: var(--sp-1);
  padding: var(--sp-1) var(--sp-2) calc(var(--sp-1) + env(safe-area-inset-bottom, 0px));
  background: color-mix(in srgb, var(--c-ground) 94%, transparent);
  backdrop-filter: blur(6px);
  border-top: 1px solid color-mix(in srgb, var(--c-ink) 15%, var(--c-ground));
}
.stickybar .btn { flex: 1; text-align: center; padding: 12px 8px; }

/* ---- scroll to top ---- */
.totop {
  position: fixed;
  right: var(--sp-2);
  bottom: calc(64px + var(--sp-2) + env(safe-area-inset-bottom, 0px)); /* clears .stickybar height */
  z-index: 45;
  width: 48px;
  height: 48px;
  border: 1px solid color-mix(in srgb, var(--c-ink) 20%, var(--c-ground));
  border-radius: 50%;
  background: var(--c-ground);
  color: var(--c-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.totop.is-visible { opacity: 1; visibility: visible; pointer-events: auto; }
@media (prefers-reduced-motion: no-preference) {
  .totop { transition: opacity 200ms ease-out; }
}

@media (min-width: 720px) {
  .totop { bottom: var(--sp-3); }
}

/* ---- motion: section-head reveal only (respect reduced-motion) ---- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 200ms ease-out, transform 200ms ease-out; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---- desktop: hide mobile sticky bar (booking strip covers it) ---- */
@media (min-width: 720px) {
  .stickybar { display: none; }
  .footer { padding-bottom: var(--sp-8); }
}

/* ===== desktop ≥900: asymmetric hero + feature breakout, wide gallery ===== */
@media (min-width: 900px) {
  /* hero → two-column, photo breaks out and bleeds to the right viewport edge */
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) min(800px, 46vw);
    align-items: center;
    gap: var(--sp-8);
    padding: var(--sp-12) 0;
    padding-left: max(var(--sp-6), calc((100vw - 1200px) / 2 + var(--sp-3)));
  }
  .hero__text { text-align: left; max-width: 520px; margin: 0; padding: 0; }
  .hero__mark { margin: 0 0 var(--sp-2); }
  .hero .swash { margin-left: 0; margin-right: auto; }
  .hero__text .cta-row { justify-content: flex-start; }
  .hero__figure { max-width: none; margin: 0; padding: 0; }
  .hero__photo {
    aspect-ratio: 4 / 3;
    max-height: 78vh;
    border: 1px solid color-mix(in srgb, var(--c-ink) 15%, transparent);
  }

  /* feature/terrace: break out of wrap, anchor to left edge, asymmetric right margin (DDR K9) */
  .feature .wrap { max-width: none; margin: 0; padding: 0; }
  .feature__figure { width: min(820px, 68vw); margin: 0; }
  .feature__photo {
    aspect-ratio: 3 / 2;
    border: 1px solid color-mix(in srgb, var(--c-ink) 15%, transparent);
  }
  .feature__cap { padding-left: var(--sp-3); }

  /* gallery: own wider container + 3-column grid */
  .gallery-wrap { max-width: 1100px; }
  .gallery { grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
  .gallery__item--wide { grid-column: span 2; }
}

/* ===== gallery button + hover (accent hairline + caption underline, no scale) ===== */
.gallery__btn {
  display: block; width: 100%; padding: 0; margin: 0;
  border: 0; background: none; cursor: pointer;
  border-radius: var(--r-sm);
}
.gallery__btn img { border: 1px solid transparent; } /* baseline: no layout shift on hover */
@media (prefers-reduced-motion: no-preference) {
  .gallery__btn img { transition: border-color 150ms ease; }
}
@media (hover: hover) {
  .gallery__btn:hover img { border-color: var(--c-accent); }
  .gallery__item:hover .gallery__cap { text-decoration: underline; text-underline-offset: 2px; }
}
.gallery__btn:focus-visible img { border-color: var(--c-accent); outline: none; }
.gallery__btn:focus-visible + .gallery__cap { text-decoration: underline; text-underline-offset: 2px; }

/* ===== lightbox (native <dialog>) ===== */
.lightbox {
  border: none; padding: 0; margin: auto;
  width: min(1100px, 92vw); max-width: 92vw; max-height: 100vh;
  background: transparent; color: var(--c-ground); overflow: visible;
}
.lightbox::backdrop { background: rgba(30, 12, 8, 0.88); }
.lightbox__figure { margin: 0; }
.lightbox__img {
  display: block; width: 100%; height: auto; max-height: 82vh;
  object-fit: contain; margin: 0 auto; background: var(--c-ink);
  border-radius: var(--r-sm);
}
.lightbox__cap {
  text-align: center; padding: var(--sp-2) var(--sp-2) 0;
  font-family: "PT Sans", sans-serif; font-size: 0.9375rem; color: var(--c-ground);
}
.lightbox__close, .lightbox__nav {
  position: fixed; z-index: 1;
  width: 48px; height: 48px; border: none; border-radius: 50%; cursor: pointer;
  background: color-mix(in srgb, var(--c-ink) 72%, transparent);
  color: var(--c-ground);
  display: flex; align-items: center; justify-content: center;
}
.lightbox__close { top: var(--sp-3); right: var(--sp-3); }
.lightbox__prev { left: var(--sp-2); top: 50%; transform: translateY(-50%); }
.lightbox__next { right: var(--sp-2); top: 50%; transform: translateY(-50%); }
html.lb-open, body.lb-open { overflow: hidden; } /* scroll-lock only while open */
@media (prefers-reduced-motion: no-preference) {
  .lightbox[open] { animation: lb-fade 200ms ease; }
  @keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }
}

/* ===== hero entrance: pure CSS, auto-plays on load; reduced-motion => no animation, stays visible ===== */
@media (prefers-reduced-motion: no-preference) {
  .hero__text { animation: hero-enter 700ms ease both; }
  @keyframes hero-enter {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: none; }
  }
}

/* ===== header scroll border ===== */
.header { border-bottom: 1px solid transparent; }
.header.is-scrolled { border-bottom-color: color-mix(in srgb, var(--c-ink) 12%, transparent); }
@media (prefers-reduced-motion: no-preference) {
  .header { transition: border-color 200ms ease; }
}
