/* ============================================================
   Manoir de Kermarquer — Lézardrieux, Côtes-d'Armor
   Design system + components. No build step, no dependencies.
   Palette derived from the armorial shield (or & argent) and
   from the house itself: plaster walls, petrol-blue bedrooms,
   madder velvet, granite, oak.
   ============================================================ */

/* ---------- 1. Fonts (self-hosted, OFL) ---------- */
@font-face {
  font-family: 'Instrument Serif';
  src: url('../fonts/InstrumentSerif-Regular.ttf') format('truetype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('../fonts/InstrumentSerif-Italic.ttf') format('truetype');
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('../fonts/InstrumentSans-Regular.ttf') format('truetype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('../fonts/InstrumentSans-Italic.ttf') format('truetype');
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('../fonts/InstrumentSans-Bold.ttf') format('truetype');
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ---------- 2. Tokens ---------- */
:root {
  /* Brand — sampled from KErmarquer shield.png */
  --gold:         #B3893C;   /* decorative / rules / dark grounds only — 2.8:1 on light */
  --gold-light:   #C9A15C;   /* AA on petrol (4.95) */
  --gold-text:    #7A5D28;   /* AA on plaster (5.36) — small gold text */
  --argent:       #EDEDED;

  /* House */
  --plaster:      #F4EFE8;
  --plaster-deep: #E8E0D5;
  --ink:          #1B1A17;
  --ink-soft:     #3D3A34;
  --petrol:       #1E3A4C;
  --petrol-deep:  #14262F;
  --madder:       #8B3A32;
  --stone:        #A9A197;

  /* Semantic */
  --bg:           var(--plaster);
  --fg:           var(--ink);
  --fg-muted:     var(--ink-soft);
  --rule:         rgba(27, 26, 23, 0.14);
  --rule-gold:    rgba(179, 137, 60, 0.55);

  /* Spacious scale (density 3/10) */
  --s-1: 8px;  --s-2: 16px; --s-3: 24px; --s-4: 32px;
  --s-5: 48px; --s-6: 64px; --s-7: 96px; --s-8: 144px;

  --measure: 68ch;
  --page: 1440px;
  --gutter: clamp(20px, 5vw, 72px);

  --serif: 'Instrument Serif', 'Hoefler Text', Georgia, serif;
  --sans:  'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 260ms;
}

/* ---------- 3. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
/* NB: never put overflow-x on <body> — it makes body its own scroll container
   and the document stops scrolling past the first viewport. Nothing here
   overflows horizontally, so no clipping is needed at all. */

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.9rem, 7.5vw, 6.4rem); }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.9rem); }
h3 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); }
h4 { font-size: 1.24rem; }
p  { margin: 0 0 1.1em; max-width: var(--measure); text-wrap: pretty; }
em { font-style: italic; }

/* Skip link */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: var(--plaster);
  padding: 14px 22px; font-size: 0.85rem;
  letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none;
}
.skip:focus { left: 12px; top: 12px; }

/* Focus — never removed, always visible */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 1px;
}

/* ---------- 4. Layout ---------- */
.wrap { max-width: var(--page); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: 900px; margin-inline: auto; padding-inline: var(--gutter); }
section { position: relative; }
.section { padding-block: clamp(72px, 11vw, 160px); }
.section--tight { padding-block: clamp(52px, 7vw, 96px); }

.dark {
  background: var(--petrol);
  color: var(--plaster);
  --fg: var(--plaster);
  --fg-muted: rgba(244, 239, 232, 0.76);
  --rule: rgba(244, 239, 232, 0.20);
}
.deep { background: var(--petrol-deep); color: var(--plaster);
  --fg: var(--plaster); --fg-muted: rgba(244,239,232,.76); --rule: rgba(244,239,232,.18); }

/* ---------- 5. Typographic devices ---------- */
.eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin: 0 0 var(--s-3);
  display: flex; align-items: center; gap: 12px;
  font-weight: 400;
}
.eyebrow::before {
  content: ''; width: 34px; height: 1px;
  background: var(--gold); flex: none;
}
.dark .eyebrow, .deep .eyebrow { color: var(--gold-light); }

.lede { font-size: clamp(1.12rem, 1.7vw, 1.42rem); line-height: 1.55; color: var(--fg-muted); }
.serif-accent { font-family: var(--serif); font-style: italic; }
.rule { height: 1px; background: var(--rule); border: 0; margin: 0; }
.rule-gold { height: 1px; background: var(--rule-gold); border: 0; width: 56px; margin: var(--s-3) 0; }

/* Vertical hairline — the Supreme Luxury motif, reused as a scroll cue */
.vrule { width: 1px; height: 68px; background: linear-gradient(var(--gold), transparent); margin-inline: auto; }

/* ---------- 6. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 14px 30px;
  font-family: var(--sans); font-size: 0.76rem;
  letter-spacing: 0.19em; text-transform: uppercase; text-decoration: none;
  border: 1px solid currentColor; background: transparent; color: var(--fg);
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.btn:hover { background: var(--fg); color: var(--bg); }
.dark .btn:hover, .deep .btn:hover { background: var(--plaster); color: var(--petrol); }

/* Gold fill uses INK text — white on gold is only 3.2:1 */
.btn--gold {
  background: var(--gold); border-color: var(--gold); color: var(--ink);
}
.btn--gold:hover { background: var(--ink); border-color: var(--ink); color: var(--plaster); }

.btn--sm { min-height: 44px; padding: 11px 22px; font-size: 0.7rem; }

/* Outline buttons sitting directly on photography carry their own ground,
   so legibility never depends on what happens to be behind them. */
.hero .btn:not(.btn--gold),
.phero .btn:not(.btn--gold),
.band .btn:not(.btn--gold) {
  background: rgba(20, 38, 47, 0.46);
  border-color: rgba(244, 239, 232, 0.78);
  color: #fff;
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.hero .btn:not(.btn--gold):hover,
.phero .btn:not(.btn--gold):hover,
.band .btn:not(.btn--gold):hover {
  background: var(--plaster); border-color: var(--plaster); color: var(--petrol);
}

/* Text link with animated rule */
.tlink {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.74rem; letter-spacing: 0.19em; text-transform: uppercase;
  text-decoration: none; color: inherit; padding-block: 6px;
  min-height: 44px; align-content: center;
}
.tlink span { position: relative; }
.tlink span::after {
  content: ''; position: absolute; left: 0; bottom: -5px; height: 1px; width: 100%;
  background: currentColor; transform: scaleX(1); transform-origin: right;
  transition: transform var(--dur) var(--ease);
}
.tlink:hover span::after { transform: scaleX(0); }
.tlink::after { content: '→'; font-size: 1rem; letter-spacing: 0; transition: transform var(--dur) var(--ease); }
.tlink:hover::after { transform: translateX(5px); }

/* ---------- 7. Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: var(--s-2);
  padding: var(--s-3) var(--gutter);
  color: var(--plaster);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              padding var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.header--solid {
  background: var(--plaster); color: var(--ink);
  padding-block: 14px;
  box-shadow: 0 1px 0 var(--rule);
}
.header__brand {
  grid-column: 2; display: flex; flex-direction: column; align-items: center;
  gap: 6px; text-decoration: none; color: inherit; line-height: 1;
}
.header__brand img { width: 26px; height: auto; transition: width var(--dur) var(--ease); }
.header--solid .header__brand img { width: 22px; }
.header__name {
  font-family: var(--serif);
  font-size: clamp(0.86rem, 1.9vw, 1.32rem);
  letter-spacing: 0.13em; text-transform: uppercase; white-space: nowrap;
}
.header__place { font-size: 0.53rem; letter-spacing: 0.3em; text-transform: uppercase; opacity: 0.72; }

.header__left { grid-column: 1; display: flex; align-items: center; gap: var(--s-3); }
.header__right { grid-column: 3; display: flex; align-items: center; justify-content: flex-end; gap: var(--s-3); }

/* Menu toggle */
.menu-btn {
  display: inline-flex; align-items: center; gap: 11px;
  background: none; border: 0; color: inherit; cursor: pointer;
  font-family: var(--sans); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
  min-height: 44px; padding: 0 4px;
}
.menu-btn__bars { display: block; width: 24px; height: 9px; position: relative; }
.menu-btn__bars::before, .menu-btn__bars::after {
  content: ''; position: absolute; left: 0; width: 100%; height: 1px; background: currentColor;
  transition: transform var(--dur) var(--ease), top var(--dur) var(--ease);
}
.menu-btn__bars::before { top: 0; }
.menu-btn__bars::after  { top: 8px; }
[aria-expanded='true'] .menu-btn__bars::before { top: 4px; transform: rotate(45deg); }
[aria-expanded='true'] .menu-btn__bars::after  { top: 4px; transform: rotate(-45deg); }

/* Language switch */
.lang { display: inline-flex; align-items: center; border: 1px solid currentColor; }
.lang button {
  background: none; border: 0; color: inherit; cursor: pointer;
  font-family: var(--sans); font-size: 0.66rem; letter-spacing: 0.14em;
  padding: 0 12px; min-height: 44px; min-width: 44px;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
/* Gold fill + ink label reads at 5.44:1 on both header states */
.lang button[aria-pressed='true'] { background: var(--gold); color: var(--ink); }
.lang button:hover:not([aria-pressed='true']) { background: rgba(179,137,60,.22); }

/* ---------- 8. Nav overlay ---------- */
.nav {
  position: fixed; inset: 0; z-index: 99;
  background: var(--petrol-deep); color: var(--plaster);
  display: grid; grid-template-rows: auto 1fr auto;
  padding: calc(var(--s-7) + 20px) var(--gutter) var(--s-5);
  opacity: 0; visibility: hidden;
  /* visibility must flip INSTANTLY on open (a transitioned visibility keeps the
     panel unfocusable for the whole duration) and only be delayed on close,
     so the fade-out still plays. */
  transition: opacity 380ms var(--ease), visibility 0s linear 380ms;
}
.nav[data-open='true'] {
  opacity: 1; visibility: visible;
  transition: opacity 380ms var(--ease), visibility 0s linear 0s;
}
.nav__list { list-style: none; margin: 0; padding: 0; align-self: center; }
.nav__list li { overflow: hidden; }
.nav__list a {
  display: block; text-decoration: none;
  font-family: var(--serif); font-size: clamp(1.3rem, 2.6vw, 2rem);
  line-height: 1.5; letter-spacing: -0.005em;
  transform: translateY(105%);
  transition: transform 520ms var(--ease), color var(--dur) var(--ease);
}
.nav[data-open='true'] .nav__list a { transform: translateY(0); }
.nav__list a:hover { color: var(--gold-light); }
.nav__list li:nth-child(1) a { transition-delay: 60ms; }
.nav__list li:nth-child(2) a { transition-delay: 105ms; }
.nav__list li:nth-child(3) a { transition-delay: 150ms; }
.nav__list li:nth-child(4) a { transition-delay: 195ms; }
.nav__list li:nth-child(5) a { transition-delay: 240ms; }
.nav__list li:nth-child(6) a { transition-delay: 285ms; }
.nav__list li:nth-child(7) a { transition-delay: 330ms; }
.nav__list li:nth-child(8) a { transition-delay: 375ms; }
.nav__foot {
  display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5);
  justify-content: space-between; align-items: end;
  border-top: 1px solid rgba(244,239,232,.2); padding-top: var(--s-3);
  font-size: 0.82rem; color: rgba(244,239,232,.78);
}
.nav__foot a { text-decoration: none; }
.nav__foot a:hover { color: var(--gold-light); }

body[data-nav='open'] { overflow: hidden; }

/* ---------- 9. Hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
/* The manor is centred in frame; the headline stays low-left over the lawn.
   The source image is pre-straightened (rotated 0.6° CW and re-cropped). */
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  /* The lower ramp has to carry the outline button over bright grass */
  background:
    linear-gradient(180deg, rgba(20,38,47,.62) 0%, rgba(20,38,47,.10) 30%,
                            rgba(20,38,47,.55) 68%, rgba(20,38,47,.88) 100%);
}
.hero__inner { padding: 0 var(--gutter) clamp(56px, 8vh, 104px); color: var(--plaster); width: 100%; }
/* The façade sits centre-frame, so the headline is kept low and compact —
   two lines over the lawn rather than three across the house. */
.hero__title {
  font-size: clamp(2rem, 3.5vw, 3.3rem);
  line-height: 1.1;
  max-width: 19ch;
}
@media (max-width: 700px) { .hero__title { font-size: clamp(1.9rem, 7vw, 2.6rem); max-width: 16ch; } }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4);
  margin-top: var(--s-4); padding-top: var(--s-3);
  border-top: 1px solid rgba(244,239,232,.28);
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
}
/* Sits in the right gutter so it never collides with the hero CTAs */
.hero__scroll {
  position: absolute; right: var(--gutter);
  bottom: clamp(56px, 8vh, 104px);
  display: grid; justify-items: center; gap: 10px;
  font-size: 0.6rem; letter-spacing: 0.26em; text-transform: uppercase;
  color: rgba(244,239,232,.82); text-decoration: none;
  writing-mode: vertical-rl;
}
.hero__scroll .vrule { writing-mode: horizontal-tb; }
@media (max-width: 900px) { .hero__scroll { display: none; } }

/* Page hero (interior pages) */
.phero { position: relative; min-height: 62svh; display: grid; align-items: end; isolation: isolate; }
.phero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.phero__media img { width: 100%; height: 100%; object-fit: cover; }
/* Estate page: drop the framing so the lawn under the beeches is visible. */
.phero--lawn .phero__media img { object-position: center 78%; }
.phero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(20,38,47,.66) 0%, rgba(20,38,47,.20) 45%, rgba(20,38,47,.70) 100%);
}
.phero__inner { padding: 0 var(--gutter) clamp(40px, 6vh, 72px); color: var(--plaster); }

/* ---------- 10. Editorial blocks ---------- */
.split {
  display: grid; gap: clamp(32px, 5vw, 80px);
  grid-template-columns: 1fr; align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--wide-left  { grid-template-columns: 1.25fr 1fr; }
  .split--wide-right { grid-template-columns: 1fr 1.25fr; }
  .split--flip > :first-child { order: 2; }
}
.split__body > :last-child { margin-bottom: 0; }

figure { margin: 0; }
figcaption {
  margin-top: 12px; font-size: 0.74rem; letter-spacing: 0.1em;
  color: var(--fg-muted); text-transform: uppercase;
}

.figure-tall img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.figure-wide img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.figure-sq img   { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }
/* Matches the re-cropped façade (2400x1242) so the house is shown whole
   and centred, rather than sliced by a portrait frame. */
.figure-pano img { aspect-ratio: 2400 / 1242; object-fit: cover; object-position: center; width: 100%; }

/* Full-bleed band */
.band { position: relative; min-height: 78svh; display: grid; align-items: center; isolation: isolate; }
.band__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.band__media img { width: 100%; height: 100%; object-fit: cover; }
.band::after { content: ''; position: absolute; inset: 0; z-index: -1; background: rgba(20,38,47,.56); }
.band { padding-block: clamp(64px, 9vw, 120px); }
.band__inner { color: var(--plaster); text-align: center; padding-inline: var(--gutter); }
.band__inner p { margin-inline: auto; }
/* Narrative band (history) — a short summary in plain white over the photo */
.band__story { max-width: 56ch; margin-inline: auto; color: #fff; }
.band__story h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); color: #fff; }
.band__story .lede { color: #fff; }
.band__story .eyebrow { color: #fff; }
.band__story .eyebrow::before { display: none; }

/* ---------- 11. Offer cards ---------- */
.cards { display: grid; gap: var(--s-4); grid-template-columns: 1fr; }
@media (min-width: 760px)  { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  background: transparent;
}
.card__media { overflow: hidden; margin-bottom: var(--s-3); }
.card__media img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  transition: transform 720ms var(--ease);
}
.card:hover .card__media img, .card:focus-visible .card__media img { transform: scale(1.045); }
.card__title { margin-bottom: 10px; }
.card__body { color: var(--fg-muted); font-size: 0.97rem; margin-bottom: var(--s-3); flex: 1; }
.card .tlink { margin-top: auto; }

/* ---------- 11b. Numbered steps (no imagery) ----------
   Used for the wedding day sequence, where a photo per step would
   repeat the gallery without adding anything. The numeral carries
   the rhythm instead. */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: var(--s-4);
  grid-template-columns: 1fr;
  counter-reset: step;
}
@media (min-width: 700px)  { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .steps { grid-template-columns: repeat(4, 1fr); } }

.step { padding-top: var(--s-3); border-top: 1px solid var(--rule); }
.step__n {
  display: block; font-family: var(--serif);
  font-size: 2.2rem; line-height: 1; color: var(--gold);
  margin-bottom: var(--s-2);
}
.dark .step__n, .deep .step__n { color: var(--gold-light); }
.step__t { font-size: 1.32rem; margin-bottom: 8px; }
.step__b { font-size: 0.97rem; color: var(--fg-muted); margin: 0; }

/* ---------- 12. Facts ---------- */
.facts {
  display: grid; gap: var(--s-4);
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--rule); padding-top: var(--s-4);
}
@media (min-width: 860px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.fact__n { font-family: var(--serif); font-size: clamp(2.4rem, 4vw, 3.4rem); line-height: 1; }
.fact__l {
  margin-top: 10px; font-size: 0.7rem; letter-spacing: 0.19em;
  text-transform: uppercase; color: var(--fg-muted);
}

/* ---------- 13. Room / spec list ---------- */
.speclist { list-style: none; margin: 0; padding: 0; }
.speclist li {
  display: flex; justify-content: space-between; gap: var(--s-3);
  padding: 15px 0; border-bottom: 1px solid var(--rule);
  font-size: 0.95rem;
}
.speclist li > span:first-child { color: var(--fg-muted); }
.speclist li > span:last-child { text-align: right; }

/* ---------- 14. Gallery ---------- */
.gallery { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px)  { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery button {
  padding: 0; border: 0; background: none; cursor: pointer; display: block;
  overflow: hidden; width: 100%;
}
.gallery img { width: 100%; aspect-ratio: 1/1; object-fit: cover; transition: transform 640ms var(--ease), opacity var(--dur); }
.gallery button:hover img { transform: scale(1.05); }
.gallery .span-2 { grid-column: span 2; }
.gallery .span-2 img { aspect-ratio: 2/1; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  background: rgba(20,38,47,.96); padding: var(--gutter);
  opacity: 0; visibility: hidden;
  transition: opacity 300ms var(--ease), visibility 0s linear 300ms;
}
.lightbox[data-open='true'] {
  opacity: 1; visibility: visible;
  transition: opacity 300ms var(--ease), visibility 0s linear 0s;
}
.lightbox img { max-width: min(1200px, 92vw); max-height: 82vh; object-fit: contain; width: auto; }
.lightbox__close, .lightbox__nav {
  position: absolute; background: none; border: 1px solid rgba(244,239,232,.4);
  color: var(--plaster); cursor: pointer; min-width: 48px; min-height: 48px;
  font-size: 1.1rem; transition: background var(--dur), border-color var(--dur);
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(244,239,232,.14); border-color: var(--plaster); }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__nav--prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__count {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  color: rgba(244,239,232,.8); font-size: 0.72rem; letter-spacing: 0.2em;
}

/* ---------- 14b. Photo credits ----------
   Deliberately quiet: the CC BY / CC BY-SA licences require visible
   attribution, but it should not compete with the content. */
/* One quiet line, not a section: the licences require attribution,
   they do not require prominence. */
.credits {
  margin: 0; max-width: none;
  font-size: 0.72rem; line-height: 1.6;
  color: color-mix(in srgb, var(--fg) 45%, transparent);
}
.credits a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.credits a:hover { color: var(--gold-text); }
@supports not (color: color-mix(in srgb, red, blue)) {
  .credits { color: var(--stone); }
}

/* ---------- 15. Quote ---------- */
.quote { text-align: center; max-width: 20ch; margin-inline: auto; }
.quote blockquote {
  margin: 0; font-family: var(--serif); font-style: italic;
  font-size: clamp(1.7rem, 3.4vw, 2.9rem); line-height: 1.24;
  max-width: none;
}
.quote figcaption {
  margin-top: var(--s-3); font-style: normal; letter-spacing: 0.2em;
}

/* ---------- 16. Forms ---------- */
.form { display: grid; gap: var(--s-3); }
@media (min-width: 720px) {
  .form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
  .form__row--3 { grid-template-columns: 1fr 1fr 0.8fr; }
}
/* Native date pickers: normalise height and keep the calendar icon visible
   against the plaster ground rather than the browser's default white. */
.field input[type='date'] { appearance: none; -webkit-appearance: none; }
.field input[type='date']::-webkit-calendar-picker-indicator {
  cursor: pointer; opacity: 0.55; transition: opacity var(--dur) var(--ease);
}
.field input[type='date']:hover::-webkit-calendar-picker-indicator { opacity: 1; }
.field { display: grid; gap: 7px; }
.field label {
  font-size: 0.7rem; letter-spacing: 0.17em; text-transform: uppercase; color: var(--fg-muted);
}
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: 1rem; color: var(--fg);
  background: transparent; border: 0; border-bottom: 1px solid var(--rule);
  padding: 12px 2px; min-height: 48px; width: 100%;
  transition: border-color var(--dur) var(--ease);
}
.field textarea { min-height: 132px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-bottom-color: var(--gold);
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 3px;
}
.field__help { font-size: 0.8rem; color: var(--fg-muted); }
.field__err { font-size: 0.82rem; color: var(--madder); display: none; }
.dark .field__err, .deep .field__err { color: #E9A9A2; }
.field[data-invalid='true'] .field__err { display: block; }
.field[data-invalid='true'] input,
.field[data-invalid='true'] select,
.field[data-invalid='true'] textarea { border-bottom-color: var(--madder); }
.form__status { font-size: 0.92rem; }

/* ---------- 17. Footer ---------- */
.footer { background: var(--petrol-deep); color: var(--plaster); padding-block: var(--s-6) var(--s-4); }
.footer a { text-decoration: none; color: rgba(244,239,232,.82); }
.footer a:hover { color: var(--gold-light); }
.footer__grid {
  display: grid; gap: var(--s-5); grid-template-columns: 1fr;
  padding-bottom: var(--s-5); border-bottom: 1px solid rgba(244,239,232,.18);
}
@media (min-width: 780px)  { .footer__grid { grid-template-columns: 1.5fr 1fr 1fr; } }
.footer__brand img { width: 44px; margin-bottom: var(--s-2); }
.footer h4 {
  font-family: var(--sans); font-size: 0.7rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold-light); margin-bottom: var(--s-2);
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 0.94rem; }
.footer__base {
  display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); justify-content: space-between;
  padding-top: var(--s-3); font-size: 0.78rem; color: rgba(244,239,232,.6);
}

/* ---------- 18. Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity 760ms var(--ease), transform 760ms var(--ease);
}
.reveal-stagger > * { opacity: 0; transform: translateY(18px); }
.reveal-stagger.is-in > * {
  opacity: 1; transform: none;
  transition: opacity 640ms var(--ease), transform 640ms var(--ease);
}
.reveal-stagger.is-in > *:nth-child(2) { transition-delay: 90ms; }
.reveal-stagger.is-in > *:nth-child(3) { transition-delay: 180ms; }
.reveal-stagger.is-in > *:nth-child(4) { transition-delay: 270ms; }
.reveal-stagger.is-in > *:nth-child(5) { transition-delay: 360ms; }
.reveal-stagger.is-in > *:nth-child(6) { transition-delay: 450ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * { opacity: 1 !important; transform: none !important; }
  .nav__list a { transform: none !important; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important; scroll-behavior: auto !important;
  }
}

/* ---------- 19. Placeholders ----------
   Facts we could not know (bed counts, capacity, rates, contact
   details) are wrapped in .todo so they are impossible to publish
   by accident. Search the project for "todo" — see CONTENT-TODO.md.
   Delete this rule once every placeholder is filled in.          */
.todo {
  background: rgba(179, 137, 60, 0.22);
  box-shadow: inset 0 -2px 0 var(--gold);
  padding: 0 4px; border-radius: 2px;
  font-style: normal;
}

/* ---------- 20. Utilities ---------- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.center { text-align: center; }
.center p { margin-inline: auto; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.stack-2 > * + * { margin-top: var(--s-2); }
.stack-3 > * + * { margin-top: var(--s-3); }
.stack-4 > * + * { margin-top: var(--s-4); }
.actions { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-4); }

@media (max-width: 640px) {
  .header__place { display: none; }
  .menu-btn span:not(.menu-btn__bars) { display: none; }
  .hero__meta { gap: 10px var(--s-3); font-size: 0.64rem; }
}
