/* ============================================================
   THE GULLY NANNUP, design system v43
   Charred timber ground, rammed earth panels, bone for anything
   that sits on top of them.
   Two typefaces and nothing else: Newsreader Light for anything
   titled or spoken (headings, and guest words in its italic),
   Hanken Grotesk for anything read or clicked. The script is
   only ever the logo.
   ============================================================ */

@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 300 400; font-display: swap;
  src: url("fonts/newsreader-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 300 400; font-display: swap;
  src: url("fonts/newsreader-latin-300-italic.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2"); }

:root {
  /* ---------- type: five display sizes in the serif, four text sizes in the sans ---------- */
  --serif: "Newsreader", Georgia, serif;
  --sans: "Hanken Grotesk", -apple-system, "Segoe UI", sans-serif;
  --d1: clamp(2.45rem, 5vw, 4.6rem);      /* page titles */
  --d2: clamp(2rem, 3.4vw, 3.1rem);       /* section and closing titles, the architect's words, the rating */
  --d3: clamp(1.6rem, 2.4vw, 2.2rem);     /* smaller section titles, statements, pull quotes */
  --d4: clamp(1.3rem, 1.7vw, 1.55rem);    /* card titles, credits, the line under the name */
  --d5: clamp(1.15rem, 1.35vw, 1.25rem);  /* guest reviews, questions */
  --t-lede: clamp(1.125rem, 1.35vw, 1.25rem);
  --t-body: 1.0625rem;
  --t-ui: 0.9375rem;                      /* navigation, buttons, short text in columns, lists */
  --t-small: 0.8125rem;                   /* captions, bylines, fine print */

  /* ---------- space ---------- */
  --pad: clamp(1.25rem, 5vw, 4rem);
  --gut: clamp(1rem, 2vw, 1.5rem);
  --col: 5.6rem;
  --maxc: calc(12 * var(--col) + 11 * var(--gut));
  --sp: clamp(4.2rem, 8.4vw, 8rem);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  /* ---------- colour, taken from the materials of the house ---------- */
  /* the ground: charred timber */
  --bg: #191612; --bg-rgb: 25 22 18;
  --deep: #110F0C; --deep-rgb: 17 15 12;
  /* bone: words on the ground and on photographs, solid buttons, the booking card */
  --bone: #F0E9DD;
  /* three text tones on the ground */
  --head: var(--bone);  /* titles and the opening line of a section */
  --paper: #D3C9B9;     /* reading text */
  --bark: #9D917F;      /* captions, bylines, small print */
  --line: rgba(240, 233, 221, 0.15);
  /* honey ply, the one warm accent: the sun, list markers, focus */
  --accent: #D8A466; --accent-rgb: 216 164 102;
  /* rammed earth: the light panels, with their own text tones */
  --earth: #CDBFA7; --earth-head: #1C1814; --earth-paper: #3A3128; --earth-bark: #554A3C; --earth-line: rgba(28, 24, 20, 0.18);
  /* clay, from the logo */
  --clay: #8E4E2E;
  --scroll: #4A4136;

  /* buttons follow the surface they sit on */
  --btn-fg: var(--head);
  --btn-line: color-mix(in srgb, var(--head) 42%, transparent);
  --btn-hover: color-mix(in srgb, var(--head) 8%, transparent);
  --solid-bg: var(--bone);
  --solid-fg: var(--bg);
}

/* ---------- surfaces ---------- */
/* a rammed earth panel, inset from the page edge, with the strata of the walls in it */
.mist { position: relative; isolation: isolate; margin-block: clamp(0.4rem, 1.6vw, 1.4rem); color: var(--earth-paper);
  --head: var(--earth-head); --paper: var(--earth-paper); --bark: var(--earth-bark); --line: var(--earth-line);
  --btn-fg: var(--earth-head); --btn-line: color-mix(in srgb, var(--earth-head) 42%, transparent); --btn-hover: color-mix(in srgb, var(--earth-head) 8%, transparent);
  --solid-bg: var(--earth-head); --solid-fg: var(--earth); }
.mist::before { content: ""; position: absolute; inset: 0 clamp(10px, 2.2vw, 36px); z-index: -1; border-radius: 2px;
  background: var(--earth) url("earth.webp?v=43") 0 0 / 1200px auto repeat; }
/* a section that sinks into the deeper ground and back out again */
.under { background: linear-gradient(to bottom, var(--bg) 0, var(--deep) clamp(90px, 12vw, 200px), var(--deep) calc(100% - clamp(90px, 12vw, 200px)), var(--bg) 100%); }

/* ---------- base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; scroll-padding-top: 88px; scrollbar-color: var(--scroll) var(--deep); }
body { background: var(--bg); color: var(--paper); font: 400 var(--t-body)/1.72 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--clay); color: var(--bone); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; top: -100px; left: 1rem; z-index: 500; background: var(--bone); color: var(--bg); padding: 0.7rem 1.2rem; font-size: var(--t-ui); font-weight: 500; text-decoration: none; }
.skip-link:focus-visible { top: 1rem; }
@view-transition { navigation: auto; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 300; color: var(--head); text-wrap: balance; }
h1 { font-size: var(--d1); line-height: 1.02; letter-spacing: -0.02em; }
h2 { font-size: var(--d2); line-height: 1.08; letter-spacing: -0.015em; }
.h2--sm { font-size: var(--d3); line-height: 1.08; letter-spacing: -0.01em; }
h3 { font-size: var(--d4); line-height: 1.15; letter-spacing: -0.005em; }
.statement { font-family: var(--serif); font-size: var(--d3); line-height: 1.16; letter-spacing: -0.01em; color: var(--head); text-wrap: balance; max-width: 23em; }
.lede { font-size: var(--t-lede); line-height: 1.6; color: var(--head); }
.small { font-size: var(--t-small); line-height: 1.6; letter-spacing: 0.01em; color: var(--bark); }
p, li, dd { text-wrap: pretty; }
p + p { margin-top: 1em; }
em { font-style: italic; }
strong { font-weight: 600; color: var(--head); }
.link { color: var(--head); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.38em; transition: text-decoration-color 0.3s var(--ease); }
.link:hover { text-decoration-color: var(--accent); }
/* a block of words beside a photo: the gap after a heading is the same everywhere */
.flow > .h2--sm + *, .flow > h2 + * { margin-top: 1.25rem; }
.flow > .more, .more { margin-top: 1.6rem; }
.measure { max-width: 40ch; }
.align-end { align-self: end; }
.align-center { align-self: center; }

/* ---------- grid ---------- */
.g { --c: 2 / 14; display: grid; grid-template-columns: minmax(var(--pad), 1fr) repeat(12, minmax(0, var(--col))) minmax(var(--pad), 1fr); column-gap: var(--gut); row-gap: clamp(2.5rem, 5vw, 4.5rem); }
.g > * { grid-column: var(--c); min-width: 0; }
/* vertical rhythm: every section carries half the gap above and half below, so any two neighbours
   sit exactly one gap apart; sections with their own ground (earth panels, deep ground) pad fully inside */
.s, .s--tight { padding-block: calc(var(--sp) * 0.5); }
.s.under, .s.mist { padding-block: var(--sp); }
.s--flush-b { padding-bottom: 0; }
@media (max-width: 899px) {
  .g { grid-template-columns: var(--pad) repeat(12, minmax(0, 1fr)) var(--pad); column-gap: 0; row-gap: 2.4rem; }
  .g > * { grid-column: 2 / 14; }
  .g > .bleed-sm { grid-column: 1 / -1; }
}

/* ---------- header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 100; color: var(--bone); transition: background 0.4s var(--ease), transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.site-header.is-scrolled { color: var(--head); background: rgb(var(--deep-rgb) / 0.92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header__in { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-block: 1.05rem; padding-inline: max(calc(var(--pad) + var(--gut)), calc((100% - var(--maxc)) / 2)); }
.logo { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; white-space: nowrap; }
.logo img { display: block; width: auto; }
.logo__tree { height: 38px; }
.logo__script { height: 31px; margin-top: 4px; transition: opacity 0.4s var(--ease); }
/* on the home page the name is already huge in the opening photo, so the header shows only the tree until you scroll */
.home .site-header:not(.is-scrolled) .logo__script { opacity: 0; }
.text-top .site-header:not(.is-scrolled) { color: var(--head); }
.nav { display: flex; gap: 1.9rem; align-items: center; }
.nav a:not(.btn) { font-size: var(--t-ui); text-decoration: none; opacity: 0.86; padding-block: 0.3rem; border-bottom: 1px solid transparent; transition: opacity 0.3s, border-color 0.3s; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { opacity: 1; border-bottom-color: currentColor; }
.nav-toggle { display: none; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; font: 500 var(--t-ui)/1 var(--sans); letter-spacing: 0.01em; text-decoration: none; padding: 1.05rem 1.6rem; border-radius: 2px; border: 1px solid var(--btn-line); color: var(--btn-fg); background: transparent; cursor: pointer; transition: background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease); }
.btn:hover { background: var(--btn-hover); border-color: var(--btn-fg); }
.btn:active { transform: translateY(1px); }
.btn--solid { background: var(--solid-bg); border-color: var(--solid-bg); color: var(--solid-fg); }
.btn--solid:hover { background: var(--solid-bg); border-color: var(--solid-bg); filter: brightness(1.08); }
.btn--nav { padding: 0.72rem 1.1rem; color: inherit; border-color: color-mix(in srgb, currentColor 50%, transparent); }
.btn--nav:hover { border-color: currentColor; background: color-mix(in srgb, currentColor 8%, transparent); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem 1.8rem; }

/* ---------- hero: one photograph, one name ---------- */
.hero { position: relative; height: min(90svh, 1080px); min-height: 520px; background: var(--deep); }
.hero__frame { position: absolute; inset: 0; overflow: hidden; opacity: calc(1 - var(--hp, 0) * 0.55); }
.hero__frame img { width: 100%; height: 100%; object-fit: cover; translate: 0 calc(var(--hp, 0) * 9%); }
.hero__frame::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(to bottom, rgb(var(--deep-rgb) / 0.5) 0%, rgb(var(--deep-rgb) / 0) 20%, rgb(var(--bg-rgb) / 0) 52%, rgb(var(--bg-rgb) / 0.72) 86%, var(--bg) 100%); }
.hero__mark { position: absolute; left: 0; right: 0; bottom: 0; transform: translateY(22%); z-index: 2; row-gap: 0; }
/* the name is the script from the logo, nudged left so its letters line up with the text below */
.wordmark { display: block; font-size: 1rem; line-height: 1; margin-left: calc(clamp(104px, 15vw, 230px) * -0.114); }
.wordmark img { display: block; height: clamp(104px, 15vw, 230px); width: auto; filter: drop-shadow(0 2px 18px rgba(0, 0, 0, 0.35)); }
.hero-after { padding-top: calc(clamp(104px, 15vw, 230px) * 0.22 + clamp(2.5rem, 5vw, 4.5rem)); padding-bottom: clamp(3.5rem, 7vw, 6rem); }

/* the band under the opening photo: one line to feel on the left, one column to act on the right,
   so there is a single thing to read first and everything practical sits together */
.intro { align-items: start; row-gap: clamp(1.8rem, 3vw, 2.6rem); }
.intro::before { content: ""; grid-column: 2 / 14; border-top: 1px solid var(--line); }
.intro__lead .weather { margin-top: 1.5rem; }
.weather { opacity: 0; transition: opacity 1.2s var(--ease); }
.weather.is-live { opacity: 1; }
.intro__aside { display: grid; gap: 1.6rem; justify-items: start; padding-top: 0.35rem; }
.intro__what { color: var(--paper); max-width: 34ch; }
.intro__aside .actions { gap: 1rem 1.6rem; }
/* the rating, used under the opening photo and beside the booking calendar */
.proof { display: grid; grid-template-columns: auto 1fr; column-gap: 0.95rem; align-items: start; text-decoration: none; color: inherit; }
.proof__score { font-family: var(--serif); font-size: var(--d3); line-height: 0.82; letter-spacing: -0.02em; color: var(--head); }
.proof__text { font-size: var(--t-small); line-height: 1.55; letter-spacing: 0.01em; color: var(--bark); max-width: 26ch; white-space: nowrap; padding-top: 0.15rem; transition: color 0.3s var(--ease); }
.proof:hover .proof__text { color: var(--paper); }
.proof__of { font-size: 0.5em; letter-spacing: 0; color: var(--bark); margin-left: 0.18em; }
/* one guest line under the rating and payment note, closing the group */
.stay-quote { grid-column: 1 / -1; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.stay-quote blockquote { max-width: 44ch; text-wrap: balance; }

/* ---------- photographs in the window formats of the house ---------- */
.fig__img { position: relative; overflow: hidden; background: var(--deep); }
.fig__img img { width: 100%; height: 100%; object-fit: cover; }
/* photographs settle into the dark ground with a soft fall off at the edges, rather than a hard cut */
.fig__img::after, .gallery .tile::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 clamp(40px, 5.5vw, 90px) rgb(var(--deep-rgb) / 0.4), inset 0 0 0 1px rgb(var(--deep-rgb) / 0.3); }
.mist .fig__img::after { box-shadow: inset 0 0 0 1px rgb(var(--deep-rgb) / 0.06); }
.fig figcaption { margin-top: 0.85rem; font-size: var(--t-small); letter-spacing: 0.01em; color: var(--bark); }
.r-glass { aspect-ratio: 3 / 4; }   /* floor to ceiling glass */
.r-wide { aspect-ratio: 3 / 2; }
.r-clere { aspect-ratio: 16 / 5; }  /* the clerestory strip */
.fig.bleed-sm .r-clere { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 88%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 88%, transparent 100%); }
.band { height: min(68vh, 740px); min-height: 340px; overflow: hidden; background: var(--bg); -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 9%, #000 91%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 9%, #000 91%, transparent 100%); }
.band img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 46%; }

/* ---------- quotes: guest and host words always in the serif italic ---------- */
.pull, .review { margin: 0; }
.quote { font-family: var(--serif); font-style: italic; font-size: var(--d3); line-height: 1.16; letter-spacing: -0.01em; color: var(--head); text-indent: -0.42ch; text-wrap: balance; }
.quote--xl { font-size: var(--d2); line-height: 1.06; }
.quote-by, .review figcaption { margin-top: 1.1rem; font-size: var(--t-small); line-height: 1.5; letter-spacing: 0.01em; color: var(--bark); }
.review blockquote { font-family: var(--serif); font-style: italic; font-size: var(--d5); line-height: 1.32; color: var(--head); text-indent: -0.42ch; text-wrap: pretty; }
.review--feature blockquote { font-size: var(--d3); line-height: 1.16; letter-spacing: -0.01em; text-wrap: balance; }
.reviews-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(2.4rem, 4vw, 3.5rem) var(--gut); align-items: start; }
.review-list { columns: 3 280px; column-gap: calc(var(--gut) * 1.4); }
.review-list .review { break-inside: avoid; margin-bottom: clamp(2.4rem, 4vw, 3.4rem); }

/* ---------- close ups and the light studies ---------- */
.strip4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.strip4 .fig__img { aspect-ratio: 3 / 4; }
.sun-img { aspect-ratio: 4 / 5; margin: 0 auto 1.5rem; max-width: 360px; }
.sun { width: 100%; height: auto; overflow: visible; display: block; }
.sun .horizon { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.sun .arc { fill: none; stroke: rgb(var(--accent-rgb) / 0.6); stroke-width: 1; stroke-dasharray: 2 6; vector-effect: non-scaling-stroke; }
.sun circle { fill: var(--accent); }
.sun-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gut); text-align: center; margin-top: -0.5rem; }
.sun-cols p { max-width: 31ch; margin: 0.7rem auto 0; font-size: var(--t-ui); }

/* ---------- lists ---------- */
.facts { border-top: 1px solid var(--line); font-size: var(--t-ui); }
.facts > div { display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem; padding: 0.95rem 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--head); }
.facts dd { color: var(--bark); text-align: right; }
.list { list-style: none; font-size: var(--t-ui); }
.list li { padding: 0.45rem 0; break-inside: avoid; }
.cols-2 { columns: 2; column-gap: var(--gut); }
.defs { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(2.6rem, 4.5vw, 4rem) var(--gut); }
.defs h3 { margin-bottom: 0.6rem; }
.defs p { font-size: var(--t-ui); max-width: 38ch; }
.defs .link { display: inline-block; margin-top: 0.9rem; font-size: var(--t-ui); }

/* ---------- gallery: gapless mosaic ---------- */
.gallery { display: grid; gap: 8px; grid-auto-flow: dense; grid-template-columns: repeat(2, 1fr); grid-auto-rows: calc((100vw - 2 * var(--pad) - 8px) / 2 * 0.62); }
.gallery .tile { position: relative; overflow: hidden; cursor: zoom-in; background: var(--deep); }
.gallery .tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease), filter 0.6s var(--ease); }
.gallery .tile:focus-visible { outline-offset: -3px; }
@media (hover: hover) { .gallery .tile:hover img { transform: scale(1.035); filter: brightness(1.06); } }
.g-wide { grid-column: span 2; grid-row: span 2; }
.g-tall { grid-row: span 2; }
@media (min-width: 900px) {
  .gallery { gap: 10px; grid-template-columns: repeat(6, 1fr); grid-auto-rows: clamp(64px, 8.3vw, 122px); }
  .g-wide { grid-column: span 4; grid-row: span 4; }
  .g-tall { grid-column: span 2; grid-row: span 4; }
  .g-half { grid-column: span 2; grid-row: span 2; }
}
.lightbox { position: fixed; inset: 0; z-index: 250; background: rgb(var(--deep-rgb) / 0.96); display: none; align-items: center; justify-content: center; color: var(--bone); }
.lightbox.is-open { display: flex; }
.lightbox__stage { width: min(1280px, 90vw); height: min(78vh, 880px); display: flex; align-items: center; justify-content: center; }
.lightbox__stage img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox__btn { position: absolute; background: none; border: 1px solid color-mix(in srgb, var(--bone) 30%, transparent); color: var(--bone); width: 46px; height: 46px; border-radius: 50%; font-size: 1rem; cursor: pointer; display: grid; place-items: center; transition: border-color 0.3s; }
.lightbox__btn:hover { border-color: color-mix(in srgb, var(--bone) 80%, transparent); }
.lightbox__close { top: 1.2rem; right: 1.2rem; }
.lightbox__prev { left: 1.2rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1.2rem; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; bottom: 1.4rem; left: 50%; transform: translateX(-50%); color: color-mix(in srgb, var(--bone) 60%, transparent); font-size: var(--t-small); }
.lightbox__caption { position: absolute; bottom: 3.1rem; left: 50%; transform: translateX(-50%); color: color-mix(in srgb, var(--bone) 85%, transparent); font-size: var(--t-ui); width: min(80ch, 84vw); text-align: center; }
@media (max-width: 700px) { .lightbox__prev, .lightbox__next { top: auto; bottom: 1rem; transform: none; } .lightbox__count { bottom: 2rem; } .lightbox__caption { bottom: 5.2rem; } }

/* ---------- booking page ---------- */
.stay-top { padding-top: clamp(8.5rem, 13vw, 10.5rem); }
.stay-top .g { row-gap: clamp(2.2rem, 4vw, 3rem); align-items: start; }
.stay-intro .lede { margin-top: 1.4rem; max-width: 40ch; }
/* rating and payment note sit under a hairline, the same way the band under the home photo does */
.stay-assure { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.4rem clamp(1.6rem, 3vw, 2.6rem); align-items: start; padding-top: clamp(1.4rem, 2.4vw, 1.9rem); border-top: 1px solid var(--line); }
.secure { display: flex; gap: 0.7rem; align-items: flex-start; font-size: var(--t-small); line-height: 1.55; letter-spacing: 0.01em; color: var(--bark); max-width: 34ch; }
.secure svg { flex: none; width: 12px; height: 15px; margin-top: 0.12rem; }
/* the calendar card: bone, with a fine keyline around it like a mounted print; the keyline sits on the column edges */
/* the calendar is Hospitable's own panel; the page adds no card around it, so whatever colours are
   set in Hospitable it never sits as a box inside a box. The contact line sits beneath it on the ground. */
.booking-card { color: var(--paper); }
/* Hospitable's iframe needs a container at least 320px wide. The slot holds roughly the
   calendar's height until the iframe arrives, then follows the iframe exactly. */
.widget-slot { min-width: 0; display: grid; min-height: 520px; }
.widget-slot:has(iframe) { min-height: 0; }
.widget-slot.is-loading { height: 520px; overflow: hidden; }
#booking-iframe { display: block; }
.booking-card__foot { margin-top: 1.1rem; font-size: var(--t-small); letter-spacing: 0.01em; line-height: 1.55; color: var(--bark); text-align: center; }
.booking-card a { color: var(--head); text-underline-offset: 0.25em; }
.widget-fallback { margin: 0.6rem 0; font-size: var(--t-small); color: var(--bark); text-align: center; }
.price-line { margin-top: 1rem; text-align: center; font-family: var(--serif); font-size: var(--d5); color: var(--head); }
.stay-photo { margin-bottom: clamp(2.2rem, 4vw, 3rem); }
.stay-details .h2--sm { margin-bottom: 1.2rem; }
.h3--inc { margin: 2.4rem 0 0.8rem; }
@media (min-width: 900px) {
  .stay-intro { grid-row: 1; }
  .stay-assure { grid-row: 2; }
  .booking-card { grid-row: 1 / span 3; }
  .stay-details { grid-row: 3; }
}
/* the calendar stays in view while you read, on screens tall enough to hold it with prices showing */
@media (min-width: 900px) and (min-height: 900px) { .booking-card { position: sticky; top: 5.5rem; } }
.ways3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(2.6rem, 4vw, 3.5rem) var(--gut); }
.ways3 h3 { margin: 1.3rem 0 0.6rem; }
.ways3 p { font-size: var(--t-ui); max-width: 36ch; }
.ways3 .link { display: inline-block; margin-top: 0.9rem; font-size: var(--t-ui); }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 1.25rem 2.6rem 1.25rem 0; font-family: var(--serif); font-size: var(--d5); line-height: 1.25; color: var(--head); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 0.3rem; top: 50%; width: 12px; height: 12px; margin-top: -6px; background: linear-gradient(currentColor, currentColor) center / 12px 1px no-repeat, linear-gradient(currentColor, currentColor) center / 1px 12px no-repeat; opacity: 0.6; transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq__a { padding: 0 0 1.5rem; max-width: 60ch; font-size: var(--t-ui); }

/* ---------- architecture ---------- */
/* colour samples with arched tops, the same soft arch as the doorways */
.palette { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; align-self: start; }
.swatch { aspect-ratio: 2 / 5; background: var(--sw); display: flex; align-items: flex-end; padding: 0.85rem; border-radius: 50% 50% 2px 2px / 20% 20% 2px 2px; }
.swatch span { font-size: var(--t-small); letter-spacing: 0.01em; color: var(--bone); text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35); }
/* credits read like a building's plaque: role on the left, name on the right, one hairline per row */
.credits { border-top: 1px solid var(--line); }
.credits > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 1rem; align-items: baseline; padding: 0.95rem 0; border-bottom: 1px solid var(--line); }
.credits dt { font-size: var(--t-small); letter-spacing: 0.01em; color: var(--bark); }
.credits dd { font-family: var(--serif); font-size: var(--d4); line-height: 1.15; color: var(--head); }

/* ---------- page tops ---------- */
.page-photo { position: relative; height: min(72vh, 780px); min-height: 360px; overflow: hidden; background: var(--deep); }
.page-photo img { width: 100%; height: 100%; object-fit: cover; }
.page-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgb(var(--deep-rgb) / 0.45), rgb(var(--deep-rgb) / 0) 22%, rgb(var(--bg-rgb) / 0) 76%, rgb(var(--bg-rgb) / 0.7) 93%, var(--bg) 100%); }
.page-head { padding-block: clamp(3.5rem, 7vw, 6rem) 0; }
.page-head--text { padding-top: clamp(9rem, 16vw, 12.5rem); }
.page-head .lede { max-width: 46ch; }
.page-head__sub { max-width: 52ch; }
/* a page top with a tall photo down the right */
/* a page top split in two: the words on the left, a full height portrait photograph down the right
   from the very top of the page, so the photo carries the page and the words sit beside it */
.split-head .g { align-items: center; }
.split-head__text { padding-block: 5.5rem 1rem; }
.split-head__text .lede { margin-top: 1.5rem; max-width: 40ch; }
.split-head__sub { margin-top: 1.1rem; max-width: 46ch; }
.split-head__img { height: min(100svh, 1040px); min-height: 600px; }
.split-head__img::before { content: ""; position: absolute; inset: 0 0 auto; height: 11rem; z-index: 1; pointer-events: none; background: linear-gradient(to bottom, rgb(var(--deep-rgb) / 0.72), rgb(var(--deep-rgb) / 0.3) 45%, rgb(var(--deep-rgb) / 0)); }
.prose { max-width: 62ch; }
.prose h2 { font-size: var(--d4); line-height: 1.15; margin: 2.2em 0 0.6em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; margin-block: 0.8em; }
.prose li + li { margin-top: 0.4em; }
.prose ul li::marker { color: var(--accent); }
.prose a { color: var(--head); text-underline-offset: 0.25em; }
.signature { font-family: var(--serif); font-style: italic; font-size: var(--d4); color: var(--head); margin-top: 1.6rem !important; }
.legal-mark { height: 38px; width: auto; margin-bottom: -1rem; opacity: 0.9; }
.legal-date { margin-top: 1.4rem; }

/* ---------- closing photograph ---------- */
.closing { position: relative; min-height: min(82vh, 860px); display: flex; align-items: flex-end; color: var(--bone); background: var(--deep); overflow: hidden; }
.closing__img { position: absolute; inset: 0; }
.closing__img img { width: 100%; height: 100%; object-fit: cover; }
/* fades in from the page above, out to the footer below, and keeps a pool of shade behind the words */
.closing::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(to bottom, var(--bg) 0, rgb(var(--bg-rgb) / 0) 13%, rgb(var(--deep-rgb) / 0) 66%, rgb(var(--deep-rgb) / 0.55) 90%, var(--deep) 100%),
  radial-gradient(ellipse 62% 74% at 4% 100%, rgb(var(--deep-rgb) / 0.66), rgb(var(--deep-rgb) / 0) 72%); }
/* for a photo with a bright band where the words fall, the shade comes up further */
.closing--shade::after { background:
  linear-gradient(to bottom, var(--bg) 0, rgb(var(--bg-rgb) / 0) 13%, rgb(var(--deep-rgb) / 0) 36%, rgb(var(--deep-rgb) / 0.6) 60%, rgb(var(--deep-rgb) / 0.8) 84%, var(--deep) 100%),
  radial-gradient(ellipse 62% 74% at 4% 100%, rgb(var(--deep-rgb) / 0.5), rgb(var(--deep-rgb) / 0) 72%); }
.closing .g { position: relative; z-index: 2; width: 100%; padding-block: clamp(4rem, 8vw, 6.5rem); row-gap: 1.6rem; }
.closing h2 { color: var(--bone); max-width: 16ch; text-shadow: 0 1px 28px rgb(var(--deep-rgb) / 0.5); }
.closing p { max-width: 44ch; color: color-mix(in srgb, var(--bone) 88%, transparent); text-shadow: 0 1px 16px rgb(var(--deep-rgb) / 0.55); }
.closing .btn--solid { background: var(--bone); border-color: var(--bone); color: var(--bg); text-shadow: none; }

/* ---------- footer ---------- */
.site-footer { background: var(--deep); padding-block: clamp(4rem, 8vw, 6rem) 2.2rem; font-size: var(--t-ui); }
.site-footer .g { row-gap: 2.6rem; }
.site-footer p { color: var(--bark); max-width: 40ch; margin-top: 1rem; }
.site-footer ul { list-style: none; }
.site-footer li + li { margin-top: 0.55rem; }
.site-footer a { text-decoration: none; opacity: 0.86; transition: opacity 0.3s; }
.site-footer a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 0.3em; }
.site-footer .handle { opacity: 0.62; margin-left: 0.25em; white-space: nowrap; }
.footer-logo { display: inline-block; margin-bottom: 1.6rem; }
.footer-logo img { height: clamp(130px, 12vw, 170px); width: auto; display: block; }
.footer-ack { font-size: var(--t-small); letter-spacing: 0.01em; }
.footer-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem; border-top: 1px solid var(--line); padding-top: 1.4rem; font-size: var(--t-small); letter-spacing: 0.01em; color: var(--bark); }

/* ---------- phone book bar ---------- */
.book-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: none; align-items: center; justify-content: space-between; gap: 1rem; background: rgb(var(--deep-rgb) / 0.96); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--head); padding: 0.75rem var(--pad); padding-bottom: calc(0.75rem + env(safe-area-inset-bottom)); transform: translateY(110%); transition: transform 0.45s var(--ease); box-shadow: 0 -1px 0 var(--line); }
.book-bar.is-visible { transform: translateY(0); }
.book-bar__label { font-size: var(--t-small); line-height: 1.3; color: var(--bark); }
.book-bar__label strong { display: block; font-family: var(--serif); font-size: var(--d5); font-weight: 400; color: var(--head); }
.book-bar .btn { padding: 0.8rem 1.1rem; flex-shrink: 0; }

/* ---------- motion ---------- */
/* the one arrival moment: the photograph and the name */
.js .hero__frame img { opacity: 0; transform: scale(1.04); }
.js .wordmark { opacity: 0; transform: translateY(0.12em); }
.is-ready .hero__frame img { opacity: 1; transform: none; transition: opacity 1.6s var(--ease), transform 2.8s var(--ease); animation: drift 48s ease-in-out 3s infinite alternate; }
.is-ready .wordmark { opacity: 1; transform: none; transition: opacity 1.3s var(--ease) 0.4s, transform 1.6s var(--ease) 0.4s; }
@keyframes drift { from { scale: 1; } to { scale: 1.06; } }
/* photos and headings settle in as they reach the screen; main.js adds .rv, so without it nothing hides */
.js .rv { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .hero__frame img, .js .wordmark, .js .rv { opacity: 1 !important; transform: none !important; }
}

/* ---------- phones ---------- */
@media (max-width: 899px) {
  .site-header__in { padding-inline: var(--pad); }
  .logo__tree { height: 32px; }
  .logo__script { height: 26px; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 0; background: var(--deep); padding: 0.6rem 0 1.4rem; box-shadow: 0 1px 0 var(--line); }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { width: 100%; padding: 0.85rem var(--pad); font-size: var(--t-lede); border: 0; }
  .nav .btn { margin: 1rem var(--pad) 0; }
  .nav-toggle { display: inline-flex; flex-direction: column; gap: 5px; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; color: inherit; }
  .nav-toggle span { width: 22px; height: 1.5px; background: currentColor; transition: transform 0.3s var(--ease), opacity 0.3s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  /* show the whole subject instead of a tall slice of a wide photo */
  .hero { height: 62svh; min-height: 420px; }
  .hero__frame img { object-position: 14% 50%; }
  .hero-after { padding-bottom: 2.4rem; }
  .intro__aside { padding-top: 0; gap: 1.4rem; }
  .proof__text { max-width: 26ch; }
  .page-photo { height: auto; min-height: 0; aspect-ratio: 1 / 1; }
  .band { height: auto; min-height: 0; aspect-ratio: 1 / 1; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 9%, #000 91%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 9%, #000 91%, transparent 100%); }
  .band img { object-position: 97% 50%; }
  .r-clere { aspect-ratio: 16 / 7; }
  .strip4 { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .sun { display: none; }
  .sun-img { aspect-ratio: 5 / 4; max-width: none; }
  .sun-cols { grid-template-columns: 1fr; gap: 2.6rem; text-align: left; }
  .sun-cols p { margin-left: 0; }
  .split-head__img { order: -1; height: auto; min-height: 0; aspect-ratio: 4 / 5; }
  .split-head__text { padding-block: 0; }
  .defs, .reviews-3, .ways3 { grid-template-columns: 1fr; }
  .reviews-3 { gap: 2.2rem; }
  /* facts become a two column table, so a long answer wraps neatly instead of hugging the right edge */
  .facts > div { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 1rem; }
  .facts dd { text-align: left; }

  /* the closing photo sits above its heading rather than behind it */
  .closing { display: block; min-height: 0; background: var(--deep); }
  .closing::after { display: none; }
  .closing__img { position: relative; inset: auto; aspect-ratio: 4 / 3; }
  .closing__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, var(--bg) 0, rgb(var(--bg-rgb) / 0) 16%, rgb(var(--deep-rgb) / 0) 58%, var(--deep) 100%); }
  .closing .g { margin-top: -2.4rem; padding-top: 0; padding-bottom: 3.2rem; row-gap: 1.2rem; }

  .site-footer { padding-bottom: 6.5rem; }
  .site-footer nav { grid-column: 2 / 8; }
  .site-footer nav + div { grid-column: 8 / 14; }
  .footer-logo img { height: 120px; }
  .site-footer .handle { display: block; margin-left: 0; }
  .book-bar { display: flex; }
}
@media (max-width: 599px) {
  .cols-2 { columns: 1; }
  .stay-assure { grid-template-columns: 1fr; }
}

/* house gallery: on phones the first eight photos show, the rest open with one tap (the lightbox still has all of them) */
.gallery-more { display: none; text-align: center; }
@media (max-width: 899px) {
  .gallery.is-collapsed .tile:nth-child(n+9) { display: none; }
  .gallery.is-collapsed + .gallery-more { display: block; }
}



/* drive times on the Nannup page: one row, the time in the serif, the town beneath */
.distances { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.4rem var(--gut); border-top: 1px solid var(--line); padding-top: clamp(1.4rem, 2.4vw, 2rem); margin-top: clamp(0.5rem, 2vw, 1.5rem); }
.distances div { display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.distances dd { font-family: var(--serif); font-size: var(--d4); line-height: 1.1; color: var(--head); }
.distances dt { margin-top: 0.35rem; font-size: var(--t-small); letter-spacing: 0.01em; color: var(--bark); }
@media (max-width: 899px) { .distances { grid-template-columns: repeat(2, 1fr); row-gap: 1.6rem; } }

/* page tops: the title and its opening words share one row, the words sitting level with the foot of the title */
@media (min-width: 900px) { .page-head__words { align-self: end; padding-bottom: 0.4rem; } }

/* a section that runs into a feathered photo band or a closing photo keeps a shorter tail,
   so the dark ground does not sit as a block between the words and the fade */


/* ---------- layout modules ----------
   Every composition on the site is one of five, always on the same grid lines:
   split   a landscape photo on 7 columns (2/9) and words on 4 (10/14), or mirrored (2/6 and 7/14)
   row     a heading on 5 columns (2/7) and its words on 6 (8/14)
   pair    two photos of the same shape and size side by side across the content width (2/14)
   tiles   three or four equal photos across the content width
   bleed   a single photo edge to edge, feathered into the ground (opening, bands, closing)  */
.pair2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gut); align-items: start; }
.pair2 figure { margin: 0; }
.pair2 figcaption { margin-top: clamp(1.4rem, 2.4vw, 2rem); max-width: 40ch; }
.pair2 figcaption > * + * { margin-top: 0.9rem; }
@media (max-width: 899px) { .pair2 { grid-template-columns: 1fr; row-gap: 2.6rem; } }
.band--clere { height: auto; min-height: 0; aspect-ratio: 16 / 5; }
@media (max-width: 899px) { .band--clere { aspect-ratio: 16 / 8; } }
