@import url("fonts.css");

/* ============================================================
   Plumbing only. Nothing here is a design decision — no colour,
   no typeface, no layout. Each site writes its own visual system
   on top; this file only carries the things that must be right
   on every site and are invisible when they are.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* A sideways-scrollable page drags position:fixed elements out of view on
     phones. Clip rather than scroll. (clip, not hidden: hidden would make html
     a scroll container and break scroll-padding and sticky.) */
  overflow-x: clip;
}

body { margin: 0; }
/* Lock scrolling on the ROOT, not on body. html already has overflow-x:clip,
   so overflow:hidden on body turns body into its own scroll container — a
   position:sticky header then sticks to body and is thrown off-screen (with
   its close button) when the menu opens after scrolling. site.js puts
   .is-locked on <html> directly; a :has() selector was tried first and its
   style invalidation visibly lagged behind the menu opening. */
html.is-locked { overflow: hidden; }
/* [hidden] must win. A rule like `.gallery-more { display:flex }` outranks the
   browser's own `[hidden] { display:none }`, which left an empty "Show 0 more"
   button on screen whenever a gallery had nothing further to reveal. */
[hidden] { display: none !important; }

img, svg, video { max-width: 100%; height: auto; display: block; }
button { font: inherit; color: inherit; }
/* A <button> inherits the user agent's grey `buttonface` unless something says
   otherwise. An outline/ghost button that sets only border-color and color then
   renders as light-grey with (often white) text on it — invisible. Reset here;
   any variant that wants a fill sets one and wins on specificity. */
button { background: transparent; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4, h5, h6 { margin: 0; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

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

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Reveal-on-scroll. The JS failsafe shows everything if the observer
   never runs, so content can never be stranded invisible. */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease, ease), transform .7s var(--ease, ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

@media print {
  .site-header, .lightbox, .skip-link, .gallery-more, .filters, .map-consent, .callbar { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  body { background: #fff !important; color: #000 !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .75em; color: #555; }
}

/* =====================================================================
   8kto Guest House — "The house in section"
   Paper and birch (the rooms' plywood joinery), graphite for the white
   logo, one teal accent from the bathrooms' tinted glass. Round door
   numbers from the figure 8 in the logo. Didact Gothic + Ysabeau Infant.
   ===================================================================== */
:root {
  --paper: #f8f5ef;
  --paper-2: #f1ebe0;
  --birch: #e8dcc7;
  --birch-2: #d8b98c;
  --birch-line: #cdb895;
  --ink: #1f2421;
  --muted: #555c57;
  --line: #ddd4c4;
  --graphite: #232926;
  --graphite-2: #2e3531;
  --on-dark: #eef0ec;
  --on-dark-muted: #b9c0bb;
  --teal: #2f6a66;
  --teal-d: #234f4c;
  --teal-tint: #dde8e4;
  --display: "Didact Gothic", "Century Gothic", "Avenir Next", sans-serif;
  --text: "Ysabeau Infant", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 5rem;
  --radius: 14px;
}

html { font-size: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
html.is-larger { font-size: 125%; }
body { font: 400 1.125rem/1.65 var(--text); color: var(--ink); background: var(--paper); font-feature-settings: "lnum"; }
main:focus { outline: none; }
.wrap { width: min(1240px, 100% - 2 * clamp(1.25rem, 4vw, 3rem)); margin-inline: auto; }
/* Keep text clear of the accessibility buttons on the left edge. */
@media (min-width: 901px) { .wrap { width: min(1240px, 100% - 2 * max(3.75rem, 4vw)); } }
a { color: var(--teal); text-underline-offset: .2em; text-decoration-thickness: .07em; }
a:hover { color: var(--teal-d); text-decoration-thickness: .14em; }
a[href^="tel:"] { white-space: nowrap; }
.ico { width: 1.2rem; height: 1.2rem; flex: none; }
em { font-style: normal; }

/* Focus: a teal ring with a white halo, visible on paper, photos and graphite. */
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; box-shadow: 0 0 0 6px #fff; border-radius: 4px; }
.site-header :focus-visible, .site-footer :focus-visible { outline-color: #fff; box-shadow: 0 0 0 6px var(--graphite); }

.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 200; padding: .8rem 1.3rem; background: #fff; color: var(--ink); font-weight: 700; border-radius: 8px; }
.skip-link:focus { top: 1rem; }

/* ---------- Type ---------- */
.display, .hero-title, .page-title { font-family: var(--display); font-weight: 400; letter-spacing: -.015em; line-height: 1.08; text-wrap: balance; }
.display { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem); }
.display em, .hero-title em, .page-title em { color: var(--teal); }
.eyebrow { margin: 0 0 1rem; font: 700 .8125rem/1.3 var(--text); letter-spacing: .16em; text-transform: uppercase; color: var(--teal); }
.eyebrow::before { content: ""; display: inline-block; width: .6rem; height: .6rem; margin-right: .6rem; border: 2px solid currentColor; border-radius: 50%; vertical-align: .02em; }
.lede { font-size: clamp(1.15rem, 1.05rem + .4vw, 1.35rem); line-height: 1.55; max-width: 36rem; }
.muted { color: var(--muted); }
.sec-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.sec-head .display + p { margin-top: 1rem; }
.sec-head-row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; max-width: none; }
.text-link { display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: .1rem; min-height: 44px; }
.text-link:hover { border-bottom-width: 3px; }
.text-link .ico { width: 1.05rem; height: 1.05rem; transition: transform .2s var(--ease); }
.text-link:hover .ico { transform: translateX(3px); }

/* ---------- Buttons: rounded, like the circles of the 8 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 3rem; padding: .7rem 1.4rem; border: 2px solid transparent; border-radius: 999px; font: 700 1.0625rem/1.2 var(--text); text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.btn .ico { width: 1.05rem; height: 1.05rem; }
.btn-lg { min-height: 3.4rem; padding: .8rem 1.7rem; font-size: 1.125rem; }
.btn-sm { min-height: 2.75rem; padding: .5rem 1.1rem; font-size: 1rem; }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-d); color: #fff; }
.btn-birch { background: var(--birch-2); color: var(--ink); }
.btn-birch:hover { background: #e7cfa9; color: var(--ink); }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }

/* ---------- Accessibility tools (left edge; in the header on phones) ---------- */
.a11y-tools { position: fixed; left: 0; top: 50%; z-index: 60; display: flex; flex-direction: column; gap: 4px; transform: translateY(-50%); }
.a11y-tools button { display: grid; place-items: center; width: 46px; height: 46px; padding: 0; background: #fff; color: var(--ink); border: 2px solid var(--ink); border-left: 0; border-radius: 0 12px 12px 0; cursor: pointer; box-shadow: 0 2px 10px rgba(31, 36, 33, .28); }
.a11y-tools button .ico { width: 22px; height: 22px; }
.a11y-tools button:hover { background: var(--birch); }
.a11y-tools button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: #fff; }
.a11y-tools button:focus-visible { outline-color: var(--teal); box-shadow: 0 0 0 6px #fff; }

/* ---------- Header (graphite, for the white logo) ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--graphite); color: var(--on-dark); }
.header-inner { display: flex; align-items: center; gap: 1rem 2rem; min-height: var(--header-h); padding: .6rem max(3.75rem, 4vw); }
.brand { flex: none; display: block; padding: .3rem 0; }
.brand img { width: clamp(170px, 16vw, 230px); }
.nav { margin-left: auto; }
.nav-list { list-style: none; display: flex; gap: .25rem; }
.nav-list a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .9rem; color: var(--on-dark); text-decoration: none; font: 400 1.0625rem/1 var(--display); letter-spacing: .01em; border-radius: 999px; }
.nav-list a:hover { background: var(--graphite-2); color: #fff; }
.nav-list a[aria-current="page"] { box-shadow: inset 0 0 0 2px var(--birch-2); color: #fff; }
.header-actions { display: flex; align-items: center; gap: .5rem; }
.book-short { display: none; }
.lang { display: inline-grid; place-items: center; min-width: 46px; min-height: 46px; color: #fff; text-decoration: none; font: 700 .95rem/1 var(--text); letter-spacing: .06em; border: 2px solid rgba(255, 255, 255, .45); border-radius: 50%; }
.lang:hover { border-color: #fff; color: #fff; background: var(--graphite-2); }
.nav-toggle { display: none; width: 46px; height: 46px; padding: 0; border: 2px solid rgba(255, 255, 255, .45); border-radius: 50%; cursor: pointer; color: #fff; }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { display: block; width: 18px; height: 2px; margin: auto; background: currentColor; border-radius: 2px; transition: transform .25s var(--ease), background-color .2s; }
.nav-toggle .bars { position: relative; }
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle .bars::before { top: -6px; }
.nav-toggle .bars::after { top: 6px; }
.site-header.is-open .nav-toggle .bars { background: transparent; }
.site-header.is-open .nav-toggle .bars::before { transform: translateY(6px) rotate(45deg); }
.site-header.is-open .nav-toggle .bars::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Crumbs ---------- */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: 1.5rem; font-size: .95rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: .3rem; color: var(--birch-line); }
.crumbs a { color: var(--muted); }

/* ---------- The 8 (two circles, from the logo) ---------- */
.eight { fill: none; stroke: currentColor; stroke-width: 1.6; }

/* ---------- Home: hero (text on paper, the lounge photo, the 8 on the seam) ---------- */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 40fr) minmax(0, 60fr); min-height: clamp(34rem, calc(100svh - var(--header-h)), 52rem); }
.hero-text { position: relative; z-index: 2; align-self: center; padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 4vw, 4rem) clamp(2.5rem, 6vw, 5rem) max(3.75rem, 6vw); }
.hero-title { font-size: clamp(2.6rem, 1.4rem + 3.8vw, 4.75rem); margin-bottom: 1.4rem; }
.hero-title em { display: block; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 2rem 0 0; }
.facts { list-style: none; display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 1.25rem 2rem; margin-top: clamp(2rem, 5vh, 3.25rem); padding-top: 1.5rem; border-top: 1px solid var(--line); }
.facts strong { display: block; font: 400 1.75rem/1.1 var(--display); color: var(--ink); }
.facts span { font-size: .95rem; color: var(--muted); }
.hero-photo { position: relative; margin: 0; overflow: hidden; border-radius: 0 0 0 clamp(60px, 10vw, 160px); }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.hero > .eight { position: absolute; z-index: 1; left: 40%; bottom: clamp(1.5rem, 6vh, 4rem); width: clamp(70px, 8vw, 118px); height: auto; margin-left: calc(-1 * clamp(35px, 4vw, 59px)); color: var(--birch-2); stroke-width: 2.4; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .06)); }

/* ---------- Home: story ---------- */
.story { padding: clamp(4.5rem, 10vw, 8rem) 0 clamp(3.5rem, 8vw, 6rem); }
.story-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) minmax(0, 4fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.story-photo { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4.2; }
.story-photo img { width: 100%; height: 100%; object-fit: cover; }
.story-text { padding-top: clamp(0rem, 4vw, 3rem); }
.story-text .display { margin-bottom: 1.4rem; }
.story-text p { max-width: 34rem; }
.name-card { align-self: end; padding: 1.75rem; background: var(--birch); border-radius: var(--radius); }
.name-h { font: 700 1rem/1.3 var(--text); letter-spacing: .06em; text-transform: uppercase; margin-bottom: .9rem; }
.name-eq { font: 400 clamp(1.3rem, 1rem + .8vw, 1.6rem)/1.4 var(--display); margin-bottom: 1rem; }
.name-eq span { white-space: nowrap; }

/* ---------- Home: the house in section ---------- */
.house { padding: clamp(4rem, 9vw, 7rem) 0; background: var(--paper-2); border-block: 1px solid var(--line); }
.house-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: stretch; }
.section { list-style: none; position: relative; display: grid; gap: 0; padding: 0 0 0; border: 2px solid var(--ink); border-top: 0; border-radius: 0 0 6px 6px; background: var(--paper); }
.section::before { content: ""; position: absolute; left: -2px; right: -2px; top: -2px; height: 2px; background: var(--ink); }
.floor { position: relative; display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); align-items: center; gap: 1rem; min-height: 6.25rem; padding: .9rem 1.25rem; border-top: 1px solid var(--birch-line); }
.floor:first-child { border-top: 0; }
.floor-name { font: 700 .8125rem/1.3 var(--text); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.floor-roof { min-height: 4.5rem; background: var(--teal-tint); background-image: repeating-linear-gradient(90deg, transparent 0 34px, rgba(47, 106, 102, .22) 34px 36px); }
.floor-roof .floor-name { color: var(--teal-d); }
.roof-note { font-size: .98rem; color: var(--teal-d); }
.floor-0 { background: var(--birch); }
.doors { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.door { display: inline-grid; place-items: center; width: 3.6rem; height: 3.6rem; border: 2px solid var(--ink); border-radius: 50%; background: #fff; color: var(--ink); text-decoration: none; font: 400 1.6rem/1 var(--display); transition: background-color .18s, color .18s, transform .18s var(--ease); }
.door:hover { background: var(--birch); color: var(--ink); transform: translateY(-2px); }
.door[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: #fff; }
.floor-common { display: inline-flex; align-items: center; min-height: 3.6rem; padding: 0 1.2rem; border: 2px dashed var(--birch-line); border-radius: 999px; font-size: 1rem; color: var(--muted); }
.house-preview { position: relative; }
.preview { margin: 0; height: 100%; display: grid; grid-template-rows: minmax(16rem, 1fr) auto; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 0 var(--line), 0 20px 40px -24px rgba(31, 36, 33, .35); }
.preview img { width: 100%; height: 100%; object-fit: cover; }
.preview figcaption { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .35rem 1rem; align-items: center; padding: 1.25rem 1.4rem 1.4rem; }
.preview-n { display: grid; place-items: center; width: 3.25rem; height: 3.25rem; border-radius: 50%; background: var(--teal); color: #fff; font: 400 1.5rem/1 var(--display); }
.preview-text strong { display: block; font: 400 1.4rem/1.2 var(--display); }
.preview-text span { color: var(--muted); font-size: 1rem; }
.preview .text-link { grid-column: 1 / -1; justify-self: start; }

/* ---------- Home: in every room ---------- */
.every { padding: clamp(4.5rem, 10vw, 8rem) 0 clamp(3rem, 7vw, 5rem); }
.every-list { list-style: none; display: grid; grid-template-columns: 1.15fr .85fr 1fr; gap: clamp(1.25rem, 3vw, 2.5rem); align-items: start; }
.every-item:nth-child(2) { margin-top: clamp(2rem, 6vw, 5rem); }
.every-photo { margin: 0 0 1.25rem; border-radius: var(--radius); overflow: hidden; }
.every-item:nth-child(1) .every-photo { aspect-ratio: 4 / 3.1; }
.every-item:nth-child(2) .every-photo { aspect-ratio: 3 / 4; }
.every-item:nth-child(3) .every-photo { aspect-ratio: 1 / 1; }
.every-photo img { width: 100%; height: 100%; object-fit: cover; }
.every-item h3 { display: flex; align-items: center; gap: .6rem; margin-bottom: .45rem; font: 400 1.45rem/1.2 var(--display); }
.every-item h3 .ico { width: 1.5rem; height: 1.5rem; color: var(--teal); }
.every-item p { color: var(--muted); max-width: 26rem; }

/* ---------- Home: roof garden ---------- */
.roof { position: relative; display: grid; min-height: clamp(30rem, 72vh, 46rem); margin-top: clamp(1rem, 3vw, 2rem); }
.roof-photo { position: absolute; inset: 0; margin: 0; }
.roof-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.roof-inner { position: relative; display: flex; align-items: end; justify-content: flex-end; padding-block: clamp(1.5rem, 4vw, 3rem); }
.roof-card { max-width: 30rem; padding: clamp(1.5rem, 3vw, 2.5rem); background: var(--paper); border-radius: var(--radius); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .45); }
.roof-card .display { margin-bottom: 1rem; }

/* ---------- Home: location with a walking-distance scale ---------- */
.where { padding: clamp(4.5rem, 10vw, 8rem) 0; }
.where-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(1.5rem, 4vw, 4rem); }
.where-text .display { margin-bottom: 1.25rem; }
.where-text p { max-width: 38rem; }
.where-addr { display: flex; gap: .6rem; align-items: flex-start; font-weight: 600; }
.where-addr .ico { margin-top: .25rem; color: var(--teal); }
.where-photo { margin: 0; grid-row: span 2; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4.3; }
.where-photo img { width: 100%; height: 100%; object-fit: cover; }
.scale { align-self: end; padding: 1.75rem clamp(1.25rem, 3vw, 2.25rem) 2rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.scale-h { margin-bottom: 1.5rem; font: 700 .8125rem/1.3 var(--text); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
/* One row per place; the dot sits on a log scale from 40 m to 4 km (house at the left end). */
.scale-list { list-style: none; display: grid; gap: .35rem; }
.scale-list li { display: grid; grid-template-columns: minmax(8.5rem, 11rem) minmax(0, 1fr) 4.5rem; align-items: center; gap: 1rem; min-height: 2.4rem; }
.stop-n { font-size: 1rem; line-height: 1.25; }
.stop-d { font: 400 1.1rem/1.1 var(--display); text-align: right; white-space: nowrap; }
.stop-track { position: relative; height: 2px; background: var(--line); }
.stop-track::before { content: ""; position: absolute; left: -5px; top: -5px; width: 12px; height: 12px; border-radius: 50%; background: var(--teal); }
.stop-dot { position: absolute; top: -7px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); }
.stop-track { background: linear-gradient(90deg, var(--ink) 0 var(--w, 0%), var(--line) var(--w, 0%)); }
.scale-list li:nth-child(1) { --w: 15%; }
.scale-list li:nth-child(2) { --w: 43.8%; }
.scale-list li:nth-child(3) { --w: 47.1%; }
.scale-list li:nth-child(4) { --w: 50%; }
.scale-list li:nth-child(5) { --w: 84.9%; }
.scale-list li:nth-child(6) { --w: 96.5%; }
.stop-dot { left: var(--w); }

/* ---------- Stay @ 8kto band ---------- */
.stay { background: var(--teal-tint); padding: clamp(3.5rem, 8vw, 5.5rem) 0; overflow: hidden; }
.stay-inner { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.stay .eight { width: clamp(56px, 7vw, 92px); color: var(--teal); stroke-width: 2.4; }
.stay-text p { margin-top: .6rem; max-width: 34rem; }
.stay-actions { list-style: none; display: grid; gap: .5rem; justify-items: start; }
.stay-link { display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; font-weight: 700; color: var(--teal-d); }
.stay-link .ico { color: var(--teal); }

/* ---------- Inner page head: text on paper, photo with one round corner ---------- */
.page-head { display: grid; grid-template-columns: minmax(0, 45fr) minmax(0, 55fr); min-height: clamp(24rem, 62vh, 36rem); }
.page-head-text { align-self: center; padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 4rem) clamp(2.5rem, 6vw, 4.5rem) max(3.75rem, 6vw); }
.page-title { font-size: clamp(2.4rem, 1.4rem + 3.2vw, 4.25rem); margin-bottom: 1.25rem; }
.page-head-photo { position: relative; margin: 0; overflow: hidden; border-radius: 0 0 0 clamp(60px, 10vw, 160px); }
.page-head-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Rooms ---------- */
.rooms-wrap { padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(4rem, 9vw, 7rem); }
.room-jump { position: sticky; top: calc(var(--header-h) + .75rem); z-index: 20; display: flex; justify-content: center; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.room-jump ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; padding: .5rem .75rem; background: rgba(248, 245, 239, .94); border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 10px 30px -18px rgba(31, 36, 33, .4); }
.door-sm { width: 2.9rem; height: 2.9rem; font-size: 1.25rem; }
.floor-block + .floor-block { margin-top: clamp(3.5rem, 8vw, 6rem); }
.floor-h { display: flex; align-items: center; gap: 1rem; margin-bottom: clamp(1.5rem, 3vw, 2.25rem); font: 700 .875rem/1.3 var(--text); letter-spacing: .16em; text-transform: uppercase; color: var(--teal); }
.floor-h::after { content: ""; flex: 1; height: 1px; background: var(--birch-line); }
.room-list { display: grid; gap: clamp(2.5rem, 6vw, 4.5rem); }
.room { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; scroll-margin-top: calc(var(--header-h) + 6rem); }
.room:nth-child(even) { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.room:nth-child(even) .room-main { order: 2; }
.room-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.room-n { display: grid; place-items: center; width: 4.25rem; height: 4.25rem; border-radius: 50%; border: 2px solid var(--ink); font: 400 2rem/1 var(--display); }
.room-h { font: 400 clamp(1.8rem, 1.4rem + 1.2vw, 2.4rem)/1.1 var(--display); }
.room-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 1.5rem; border-block: 1px solid var(--line); }
.room-facts div { padding: .9rem .75rem .9rem 0; }
.room-facts div + div { padding-left: .9rem; border-left: 1px solid var(--line); }
.room-facts dt { font: 700 .75rem/1.3 var(--text); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.room-facts dd { margin: .2rem 0 0; font: 400 1.2rem/1.3 var(--display); }
.room-facts dt, .room-facts dd { overflow-wrap: anywhere; }
@media (max-width: 400px) { .room-facts dt { letter-spacing: .04em; } .room-facts div + div { padding-left: .6rem; } }
.room-thumbs { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .5rem; margin-bottom: 1.5rem; }

/* ---------- Tiles + lightbox ---------- */
.tile { display: block; width: 100%; padding: 0; border: 0; border-radius: 10px; overflow: hidden; cursor: zoom-in; background: var(--birch); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease), opacity .3s; }
.tile:hover img { transform: scale(1.03); }
.tile-main { aspect-ratio: 4 / 3; border-radius: var(--radius); }
.tile-thumb { aspect-ratio: 1; border-radius: 8px; }
.tile-route { background: #fff; border: 1px solid var(--line); }
.tile-route img { object-fit: contain; }
.lightbox { position: fixed; inset: 0; z-index: 300; display: none; background: rgba(24, 28, 26, .96); opacity: 0; transition: opacity .26s; }
.lightbox.is-open { display: block; }
.lightbox.is-visible { opacity: 1; }
.lb-stage { position: absolute; inset: 4.5rem 4.5rem 4rem; display: grid; place-items: center; }
.lb-figure { margin: 0; display: grid; justify-items: center; gap: .8rem; max-height: 100%; }
.lb-img { max-width: 100%; max-height: calc(100vh - 11rem); width: auto; height: auto; border-radius: 10px; transition: opacity .2s; }
.lb-img.is-loading { opacity: .3; }
.lb-caption { font-size: 1rem; color: #e6e9e6; text-align: center; }
.lb-counter { position: absolute; left: 1.4rem; top: 1.4rem; margin: 0; font: 700 .9rem/1 var(--text); letter-spacing: .1em; color: #e6e9e6; }
.lb-btn { position: absolute; display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .5); background: rgba(35, 41, 38, .9); color: #fff; cursor: pointer; }
.lb-btn:hover { background: var(--birch-2); color: var(--ink); border-color: var(--birch-2); }
.lb-btn:focus-visible { outline-color: #fff; box-shadow: 0 0 0 6px var(--graphite); }
.lb-btn svg { width: 1.3rem; height: 1.3rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lb-btn:disabled { display: none; }
.lb-prev { left: 1rem; top: 50%; margin-top: -1.5rem; }
.lb-next { right: 1rem; top: 50%; margin-top: -1.5rem; }
.lb-close { right: 1rem; top: 1rem; }

/* ---------- Gallery ---------- */
.gallery { padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(4rem, 9vw, 7rem); }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.filter { min-height: 46px; padding: .5rem 1.25rem; border: 2px solid var(--ink); border-radius: 999px; font: 700 1rem/1.2 var(--text); color: var(--ink); cursor: pointer; }
.filter:hover { background: var(--birch); }
.filter[aria-pressed="true"] { background: var(--ink); color: #fff; }
.gallery-grid { columns: 3 18rem; column-gap: 1rem; }
.gallery-grid .tile { break-inside: avoid; margin-bottom: 1rem; }
.gallery-grid .tile.is-entering { animation: tile-in .45s var(--ease) both; }
@keyframes tile-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Contact ---------- */
.contact { padding: clamp(3rem, 7vw, 5rem) 0; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.contact-card { padding: clamp(1.5rem, 3.5vw, 2.75rem); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.card-h { font: 400 1.75rem/1.2 var(--display); margin-bottom: 1.25rem; }
.contact-list { display: grid; margin: 0; }
.contact-list > div { display: grid; grid-template-columns: 2rem minmax(0, 1fr); column-gap: .75rem; padding: 1.1rem 0; border-top: 1px solid var(--line); }
.contact-list > div:first-child { border-top: 0; padding-top: 0; }
.contact-list .ico { grid-row: span 2; width: 1.4rem; height: 1.4rem; margin-top: .15rem; color: var(--teal); }
.contact-list dt { font: 700 .75rem/1.3 var(--text); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.contact-list dd { margin: .25rem 0 0; min-width: 0; }
.contact-list .text-link { display: inline; overflow-wrap: anywhere; }
.big-link { font: 400 clamp(1.3rem, 1.1rem + .8vw, 1.7rem)/1.3 var(--display); overflow-wrap: anywhere; }
.card-social { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.social { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .4rem 1rem; border: 2px solid rgba(255, 255, 255, .4); border-radius: 999px; color: #fff; text-decoration: none; font-weight: 700; }
.social:hover { border-color: #fff; color: #fff; }
.social-dark { border-color: var(--line); color: var(--ink); }
.social-dark:hover { border-color: var(--ink); color: var(--ink); }
.contact-side { display: grid; gap: 1rem; }
.contact-side .contact-card { padding: clamp(1.4rem, 3vw, 2rem); }
/* ---------- Contact form ---------- */
.form-card { padding: clamp(1.5rem, 3.5vw, 2.75rem); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); scroll-margin-top: calc(var(--header-h) + 1rem); }
.form-intro { color: var(--muted); max-width: 38rem; }
.contact-form { display: grid; gap: 1.25rem; margin-top: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; align-items: end; }
.field { display: grid; gap: .35rem; align-content: start; }
.field label { font-weight: 700; }
.hint { margin: 0; font-size: .95rem; color: var(--muted); }
.field input, .field textarea { width: 100%; min-height: 3.1rem; padding: .7rem .95rem; font: 400 1.0625rem/1.4 var(--text); color: var(--ink); background: var(--paper); border: 2px solid #8a918c; border-radius: 10px; }
.field textarea { resize: vertical; min-height: 10rem; }
.field input:hover, .field textarea:hover { border-color: var(--ink); }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; box-shadow: none; border-color: var(--ink); background: #fff; }
.field [aria-invalid="true"] { border-color: #b3261e; }
.field-error { display: flex; gap: .45rem; align-items: center; margin: .1rem 0 0; font-size: .98rem; font-weight: 700; color: #b3261e; }
.field-error .ico { width: 1.1rem; height: 1.1rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin: 0; font-size: .95rem; color: var(--muted); }
.btn-submit { justify-self: start; }
.btn-submit:disabled { opacity: .65; cursor: progress; }
.form-status { margin: 0; font-weight: 700; }
.form-status:empty { display: none; }
.form-status[data-kind="ok"] { color: #1f6b3a; }
.form-status[data-kind="error"] { color: #b3261e; }
.times { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.times li { display: grid; gap: .2rem; padding: 1.4rem; background: var(--birch); border-radius: var(--radius); }
.times .ico { color: var(--teal-d); margin-bottom: .4rem; }
.times-l { font: 700 .75rem/1.3 var(--text); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.times strong { font: 400 1.6rem/1.15 var(--display); }
.rules { padding: clamp(1.5rem, 3vw, 2rem); background: var(--paper-2); border-radius: var(--radius); border: 1px solid var(--line); }
.rule-list { list-style: none; display: grid; gap: .75rem; }
.rule-list li { display: grid; grid-template-columns: 1.4rem minmax(0, 1fr); gap: .6rem; }
.rule-list .ico { margin-top: .3rem; color: var(--teal); }
.find { padding: 0 0 clamp(4rem, 9vw, 7rem); }
.find-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(1.25rem, 3vw, 2rem); }
.map-frame { position: relative; min-height: 28rem; border-radius: var(--radius); overflow: hidden; background: var(--teal-tint); }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-consent { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: .4rem; padding: 1.5rem; text-align: center; }
.map-consent p { max-width: 26rem; margin: 0; }
.map-ico { width: 2.5rem; height: 2.5rem; color: var(--teal); }
.route { margin: 0; }
.route figcaption { margin-top: .75rem; font-size: .98rem; color: var(--muted); }

/* ---------- Footer (graphite) ---------- */
.site-footer { background: var(--graphite); color: var(--on-dark); padding: clamp(3.5rem, 7vw, 5rem) 0 1.5rem; }
.site-footer a:not(.btn):not(.social) { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr .8fr; gap: 2rem clamp(1.5rem, 4vw, 3rem); }
.footer-brand img { width: 230px; margin-bottom: 1.5rem; }
.footer-social { display: flex; flex-wrap: wrap; gap: .5rem; }
.footer-h { margin-bottom: .9rem; font: 700 .8125rem/1.3 var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--birch-2); }
.footer-links { list-style: none; display: grid; gap: .1rem; }
.footer-links a { display: inline-flex; align-items: center; min-height: 40px; }
.colophon { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: 1.25rem; border-top: 1px solid #3c443f; font-size: .95rem; color: var(--on-dark-muted); }
.colophon p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .story-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .name-card { grid-column: 2; }
  .facts { grid-template-columns: repeat(2, auto); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1060px) {
  .book-long { display: none; }
  .book-short { display: inline; }
  .nav-list a { padding: 0 .65rem; }
}
@media (max-width: 900px) {
  :root { --header-h: 4.25rem; }
  .header-inner { flex-wrap: wrap; padding: .5rem clamp(1rem, 4vw, 1.5rem); gap: .5rem .75rem; }
  .brand img { width: 160px; }
  .nav-toggle { display: grid; place-items: center; }
  .header-actions { margin-left: auto; }
  /* Phones: the header scrolls away with the page (as on Skiathos Sound Lights) so the second
     row with the accessibility tools doesn't cover the content; the menu drops below it. */
  html { scroll-padding-top: 1rem; }
  .site-header { position: relative; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; height: 100vh; height: 100dvh; z-index: 40; display: none; margin: 0; padding: 1.5rem clamp(1rem, 4vw, 1.5rem) 3rem; background: var(--graphite); overflow-y: auto; border-top: 1px solid #3c443f; }
  .site-header.is-open .nav { display: block; }
  .nav-list { flex-direction: column; gap: .25rem; }
  .nav-list a { width: 100%; min-height: 3.5rem; padding: 0 1.25rem; font-size: 1.5rem; }
  .a11y-tools { position: static; flex-direction: row; gap: .5rem; transform: none; padding: 0 clamp(1rem, 4vw, 1.5rem) .6rem; }
  .a11y-tools button { width: 44px; height: 44px; border: 2px solid rgba(255, 255, 255, .6); border-radius: 50%; background: transparent; color: #fff; box-shadow: none; }
  .a11y-tools button:hover { background: var(--graphite-2); }
  .a11y-tools button[aria-pressed="true"] { background: #fff; color: var(--ink); border-color: #fff; }
  .a11y-tools button:focus-visible { outline-color: #fff; box-shadow: 0 0 0 6px var(--graphite); }
  .site-header { display: flex; flex-wrap: wrap; align-items: center; }
  .header-inner { flex: 1 1 auto; }
  .site-header .a11y-tools { order: 2; flex-basis: 100%; }
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; max-height: none; }
  .hero-photo { order: -1; height: min(62vh, 30rem); border-radius: 0 0 0 80px; }
  .hero-text { padding: 2.25rem clamp(1.25rem, 5vw, 2rem) 3rem; }
  .hero > .eight { display: none; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story-grid, .house-grid, .where-grid, .contact-grid, .find-grid, .room, .room:nth-child(even) { grid-template-columns: minmax(0, 1fr); }
  .room:nth-child(even) .room-main { order: 0; }
  .story-photo { max-width: 26rem; aspect-ratio: 4 / 4.6; }
  .name-card { grid-column: auto; }
  .preview { grid-template-rows: 15rem auto; }
  .every-list { grid-template-columns: minmax(0, 1fr); }
  .every-item:nth-child(2) { margin-top: 0; }
  .every-item .every-photo { aspect-ratio: 4 / 3 !important; }
  .roof { min-height: 0; display: block; }
  .roof-photo { position: static; height: 20rem; }
  .roof-inner { display: block; margin-top: -4rem; padding-top: 0; }
  .where-photo { grid-row: auto; aspect-ratio: 4 / 3; border-radius: var(--radius); }
  .page-head { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .page-head-photo { order: -1; height: 16rem; border-radius: 0 0 0 70px; }
  .page-head-text { padding: 2rem clamp(1.25rem, 5vw, 2rem) 2.5rem; }
  .stay-inner { grid-template-columns: auto minmax(0, 1fr); }
  .stay-actions { grid-column: 1 / -1; }
  .map-frame { min-height: 22rem; }
  .room-jump { top: .5rem; }
}
@media (max-width: 640px) {
  .floor { grid-template-columns: minmax(0, 1fr); gap: .6rem; padding: 1rem; min-height: 0; }
  .door { width: 3.2rem; height: 3.2rem; font-size: 1.4rem; }
  .floor-common { min-height: 3.2rem; }
  .scale-list li { grid-template-columns: minmax(0, 1fr) 4.5rem; gap: .25rem 1rem; }
  .stop-track { grid-column: 1 / -1; grid-row: 2; }
  .times { grid-template-columns: minmax(0, 1fr); }
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .room-facts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); }
  .room-facts dd { font-size: 1.05rem; }
  .room-thumbs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .room-thumbs li:nth-child(n+4) { display: none; }
  .gallery-grid { columns: 2; column-gap: .6rem; }
  .gallery-grid .tile { margin-bottom: .6rem; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .stay-inner { grid-template-columns: minmax(0, 1fr); }
  .stay .eight { display: none; }
  .lb-stage { inset: 4rem .5rem 5rem; }
  .lb-prev, .lb-next { top: auto; bottom: 1rem; margin: 0; }
  .lb-prev { left: calc(50% - 3.6rem); }
  .lb-next { right: calc(50% - 3.6rem); }
}
@media (max-width: 480px) {
  .header-inner { gap: .5rem; }
  .brand img { width: 128px; }
  .header-actions { gap: .35rem; }
  .btn-book { min-height: 44px; padding: .5rem .85rem; font-size: 1rem; }
  .lang, .nav-toggle { min-width: 44px; width: 44px; height: 44px; min-height: 44px; }
}
@media (max-width: 420px) {
  .brand img { width: 118px; }
  .btn-book .ico { display: none; }
}
@media (max-width: 350px) {
  .header-inner { padding-inline: .6rem; gap: .35rem; }
  .brand img { width: 96px; }
  .header-actions { gap: .25rem; }
  .btn-book { padding-inline: .6rem; font-size: .9375rem; }
}
/* Larger text: give the header and the grids more room before they wrap. */
@media (max-width: 1400px) and (min-width: 901px) {
  html.is-larger .book-long { display: none; }
  html.is-larger .book-short { display: inline; }
  html.is-larger .nav-list a { padding: 0 .55rem; font-size: 1rem; }
  html.is-larger .brand img { width: 150px; }
  html.is-larger .header-inner { gap: 1rem; padding-inline: max(3.5rem, 3vw); }
  html.is-larger .header-actions { gap: .35rem; }
  html.is-larger .facts { grid-template-columns: repeat(2, auto); }
}

/* =====================================================================
   High contrast (the "High contrast" button): black, white and yellow.
   ===================================================================== */
html.is-contrast, html.is-contrast body, html.is-contrast main { background: #000 !important; }
html.is-contrast *:not(svg):not(svg *) { background-color: #000 !important; color: #fff !important; border-color: #fff !important; text-shadow: none !important; box-shadow: none !important; }
html.is-contrast *::before, html.is-contrast *::after { background-image: none !important; }
html.is-contrast .site-header { border-bottom: 2px solid #fff !important; }
html.is-contrast .floor-roof { background-image: none !important; }
html.is-contrast a, html.is-contrast a *:not(svg):not(svg *), html.is-contrast button, html.is-contrast button *:not(svg):not(svg *) { color: #ff0 !important; }
html.is-contrast a svg, html.is-contrast button svg { color: #ff0 !important; }
html.is-contrast a { text-decoration: underline !important; }
html.is-contrast .btn, html.is-contrast .lang, html.is-contrast .nav-toggle, html.is-contrast .door, html.is-contrast .filter,
html.is-contrast .social, html.is-contrast .lb-btn, html.is-contrast .a11y-tools button { border: 2px solid #ff0 !important; }
html.is-contrast .door, html.is-contrast .btn, html.is-contrast .filter, html.is-contrast .lang { text-decoration: none !important; }
html.is-contrast .a11y-tools button[aria-pressed="true"], html.is-contrast .a11y-tools button[aria-pressed="true"] *,
html.is-contrast .door[aria-pressed="true"], html.is-contrast .door[aria-pressed="true"] *,
html.is-contrast .filter[aria-pressed="true"] { background-color: #ff0 !important; color: #000 !important; }
html.is-contrast .nav-list a[aria-current="page"] { outline: 2px solid #ff0; }
html.is-contrast .nav-toggle .bars, html.is-contrast .nav-toggle .bars::before, html.is-contrast .nav-toggle .bars::after { background-color: #ff0 !important; }
html.is-contrast .site-header.is-open .nav-toggle .bars { background-color: transparent !important; }
html.is-contrast .eight { color: #fff !important; }
html.is-contrast .section, html.is-contrast .floor, html.is-contrast .contact-card, html.is-contrast .rules, html.is-contrast .times li,
html.is-contrast .name-card, html.is-contrast .scale, html.is-contrast .preview, html.is-contrast .roof-card, html.is-contrast .room-jump ul { border: 2px solid #fff !important; }
html.is-contrast .stop-track { background: #fff !important; }
html.is-contrast .stop-track::before, html.is-contrast .preview-n { background: #ff0 !important; color: #000 !important; }
html.is-contrast .stop-dot { background: #ff0 !important; border-color: #ff0 !important; }
html.is-contrast .display em, html.is-contrast .hero-title em, html.is-contrast .page-title em, html.is-contrast .eyebrow { color: #ff0 !important; }
html.is-contrast :focus-visible { outline-color: #ff0 !important; box-shadow: 0 0 0 6px #000 !important; }
html.is-contrast .tile img, html.is-contrast .hero-photo img, html.is-contrast .page-head-photo img, html.is-contrast .roof-photo img { opacity: .85; }
html.is-contrast .tile-route img { opacity: 1; }
