/* Pools in the Peaks — Quiet Gallery design system
   Locked 11 Jul 2026 per Izzy's verdict. Tokens match DESIGN.md exactly.
   Portable as-is into Astro/Vite components later; no framework needed yet. */

:root {
  --paper: oklch(99% 0.004 95);
  --ink: oklch(20% 0.012 250);
  --ink-2: oklch(46% 0.012 250);
  --hair: oklch(91% 0.008 95);
  --accent: oklch(42% 0.05 220);
  --shot-tint: oklch(36% 0.05 220);
  /* Photo-status flag red. Deep brick/crimson, deliberately not a fluorescent
     alert red: it has to shout inside a restrained palette without leaving it. */
  --flag: oklch(41% 0.135 28);
  --flag-edge: oklch(52% 0.145 28);
  --flag-ink: oklch(97% 0.012 60);
}
/* Dark mode deliberately removed 14 Jul 2026: Teddy + Izzy prefer the cream
   "Quiet Gallery" look everywhere, regardless of the visitor's OS theme. */
:root { color-scheme: light; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "EB Garamond", Georgia, serif;
  line-height: 1.6;
  font-size: 18px;
}
a { color: inherit; }
.sans { font-family: "Montserrat", "Avenir Next", system-ui, sans-serif; }
img { max-width: 100%; display: block; }

/* photo placeholder device — replace with real photography, keep the caption pattern */
.shot {
  position: relative;
  overflow: hidden;
  background: var(--shot-tint);
}
.shot::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.045) 0 2px, transparent 2px 9px);
}

/* real photography inside a .shot: image fills the frame, hatch removed, caption kept legible */
.shot.has-photo::before { background-image: none; background: linear-gradient(to top, oklch(20% 0.02 250 / .55), transparent 42%); z-index: 1; }
.shot.has-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.shot .cap { z-index: 2; }

/* ---------------------------------------------------------------------------
   Photo-status flags. Two related states, both meaning "needs attention":
     .provisional     an image is on the page but Izzy has not signed it off
     .awaiting-photo  there is no usable image yet, the frame is a known gap
   Filled deep brick red as of 11 Aug 2026 (Bazz). The old hairline-outline
   treatment was too easy to miss at a glance, which is the whole point of it.
   The higher-specificity selectors are needed because `.shot .cap b` (0,2,1)
   otherwise wins on font-size and opacity.
   --------------------------------------------------------------------------- */
.provisional,
.awaiting-photo,
.shot .cap b.provisional,
.shot .cap b.awaiting-photo {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: .54rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  background: var(--flag);
  color: var(--flag-ink);
  border: 1px solid var(--flag-edge);
  border-radius: 2px;
  padding: 3px 7px;
  opacity: 1;
  white-space: nowrap;
}

/* a frame with no photograph in it yet: keep the brand hatch placeholder,
   and say plainly inside the frame what is missing */
.shot.awaiting .await-note {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  z-index: 3;
  margin: 0;
  max-width: 36ch;
  font-family: "Montserrat", sans-serif;
  font-size: .68rem;
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: .04em;
  color: oklch(97% 0.01 95);
}

/* editorial gallery: paired large frames with a caption line, never a uniform card grid */
.gallery {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 14px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 24px 40px;
}
.gallery .shot { min-height: 300px; }
.gallery .tall { grid-row: span 2; min-height: 614px; }
.gallery .wide { grid-column: 1 / -1; min-height: 340px; }

/* quiet motion: single page-load fade, nothing continuous */
@media (prefers-reduced-motion: no-preference) {
  body { animation: pageIn .7s ease-out; }
  @keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }
  .shot.has-photo img { transition: transform 3.2s ease; }
  .spread:hover .shot.has-photo img, .gallery .shot.has-photo:hover img { transform: scale(1.025); }
  .btn { transition: background-color .25s ease, color .25s ease, border-color .25s ease; }
}
.btn-primary:hover { background: var(--accent); color: oklch(98% 0.008 95); }
.btn-quiet:hover { border-color: var(--accent); color: var(--accent); }
.shot .cap {
  position: absolute;
  left: 14px;
  bottom: 12px;
  right: 14px;
  color: oklch(97% 0.01 95);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}
.shot .cap em { font-style: italic; opacity: .9; font-size: .9rem; }
.shot .cap b {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: .56rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  opacity: .8;
}

/* site chrome — sticky so the nav is always reachable mid-page */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 30px clamp(20px, 4vw, 44px);
  border-bottom: 1px solid var(--hair);
}
.wm {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: .3em;
  text-decoration: none;
  color: var(--ink);
  text-align: center;
}
.wm small {
  display: block;
  font-size: .62rem;
  letter-spacing: .24em;
  color: var(--ink-2);
  margin-top: 5px;
  font-weight: 500;
}
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  font-family: "Montserrat", sans-serif;
  font-size: .8rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-2);
  font-weight: 500;
  list-style: none;
  margin: 0;
  padding: 0;
  /* equal flex on both sides keeps the wordmark dead centre */
  flex: 1 1 0;
  min-width: 0;
}
.nav-links:last-child { justify-content: flex-end; }
.wm { flex: 0 0 auto; }
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--accent); }

.site-footer {
  border-top: 1px solid var(--hair);
  padding: 40px clamp(20px, 4vw, 40px) 56px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
}
.footer-grid h4 {
  font-family: "Montserrat", sans-serif;
  font-size: .6rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-2);
  font-weight: 600;
  margin: 0 0 12px;
}
.footer-grid p, .footer-grid a { font-size: .95rem; color: var(--ink-2); text-decoration: none; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.newsletter-form { display: flex; gap: 8px; margin-top: 10px; }
.newsletter-form input[type="email"] {
  flex: 1;
  font-family: "EB Garamond", serif;
  font-size: 1rem;
  padding: 9px 12px;
  border: 1px solid var(--hair);
  border-radius: 3px;
  background: var(--paper);
  color: var(--ink);
}
.newsletter-form button {
  font-family: "Montserrat", sans-serif;
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 600;
  background: var(--ink);
  color: var(--paper);
  border: none;
  border-radius: 3px;
  padding: 0 18px;
  cursor: pointer;
}
.gdpr-note { font-size: .78rem; color: var(--ink-2); margin-top: 8px; max-width: 40ch; }
.copyright { text-align: center; font-size: .8rem; color: var(--ink-2); margin-top: 36px; font-family: "Montserrat", sans-serif; letter-spacing: .04em; }

/* hero */
.hero { position: relative; }
.hero .shot { height: min(60vh, 480px); }
.hero .over {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
  color: oklch(98% 0.008 95);
}
.hero .over { background: oklch(22% 0.03 250 / .28); }
.hero .claim {
  font-family: "Montserrat", sans-serif;
  font-size: .78rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-bottom: 20px;
  font-weight: 600;
  max-width: 46ch;
  line-height: 1.7;
  text-shadow: 0 1px 18px oklch(15% 0.04 250 / .85), 0 0 3px oklch(15% 0.04 250 / .6);
}
.hero .rev { text-shadow: 0 1px 14px oklch(15% 0.04 250 / .85); }
.hero h1 {
  font-weight: 500;
  font-size: clamp(2.1rem, 5vw, 3.5rem);
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
  text-shadow: 0 2px 30px oklch(20% 0.05 250 / .45);
}
.hero .rev {
  font-family: "Montserrat", sans-serif;
  margin-top: 22px;
  font-size: .74rem;
  letter-spacing: .06em;
  font-weight: 500;
}
.hero .rev b { font-family: "EB Garamond", serif; font-size: 1.25rem; font-weight: 500; }

/* alternating spreads */
.spread { display: grid; grid-template-columns: 1.15fr 1fr; }
.spread.flip { grid-template-columns: 1fr 1.15fr; }
.spread .shot { min-height: 380px; }
.spread .txt { padding: clamp(30px, 5vw, 48px) clamp(24px, 5vw, 46px); align-self: center; }
.spread.flip .txt { order: -1; }
.eyebrow {
  font-family: "Montserrat", sans-serif;
  font-size: .58rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.spread h2, .page-title { font-weight: 500; font-size: 2.1rem; margin: 10px 0 12px; line-height: 1.12; }
.spread p, .lede { color: var(--ink-2); margin: 0 0 20px; max-width: 44ch; font-size: 1.02rem; }

.facts { display: flex; gap: 28px; border-top: 1px solid var(--hair); padding-top: 14px; flex-wrap: wrap; }
.facts span {
  font-family: "Montserrat", sans-serif;
  display: block;
  font-size: .54rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 3px;
  font-weight: 600;
}
.facts b { font-weight: 500; font-size: 1rem; }

.book-line { text-align: center; padding: 32px; border-top: 1px solid var(--hair); }
.book-line a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 3px;
  font-size: 1.15rem;
  font-style: italic;
}

/* property page: Introduction / Inside / Outside */
.intro-block { max-width: 700px; margin: 0 auto; padding: 48px 24px 8px; }
.triptych { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; max-width: 1100px; margin: 0 auto; padding: 20px 24px 50px; }
.triptych h3 {
  font-family: "Montserrat", sans-serif;
  font-size: .62rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 10px;
}
.triptych p { color: var(--ink-2); margin: 0; font-size: .98rem; }

.cta-row { display: flex; gap: 14px; justify-content: center; padding: 10px 24px 50px; flex-wrap: wrap; }
.btn {
  font-family: "Montserrat", sans-serif;
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 600;
  text-decoration: none;
  padding: 14px 30px;
  border-radius: 2px;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-quiet { border: 1px solid var(--hair); color: var(--ink); }

.todo-banner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 24px;
  font-family: "Montserrat", sans-serif;
  font-size: .78rem;
  color: var(--ink-2);
  background: var(--hair);
  border-radius: 6px;
}

@media (max-width: 760px) {
  .spread { grid-template-columns: 1fr; }
  .spread.flip .txt { order: 0; }
  .hero .rev { display: none; }
  /* stacked header is tall; sticky would eat a phone screen */
  .site-header { position: static; flex-direction: column; gap: 12px; padding: 20px 20px 16px; }
  .wm { order: -1; font-size: 1.05rem; }
  .nav-links { flex-wrap: wrap; justify-content: center; gap: 10px 18px; max-width: none; font-size: .72rem; }
  .nav-links:last-child { justify-content: center; }
  .hero .shot { height: 320px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .triptych { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .gallery .tall { grid-row: auto; min-height: 300px; }
}

/* ===========================================================================
   BOOK: the call to action, front and centre
   =========================================================================== */

/* the primary Book affordance. Accent-filled so it reads as the one thing
   to press, without a gradient or a shadow. */
.btn-book {
  background: var(--accent);
  color: oklch(98% 0.008 95);
  border: 1px solid var(--accent);
  cursor: pointer;
}
.btn-book:hover { background: var(--ink); border-color: var(--ink); color: oklch(98% 0.008 95); }
.btn-lg { font-size: .78rem; padding: 17px 40px; }

/* small filled chip in the header so Book is reachable from any scroll point,
   while the large one lives in the hero and in each cottage row */
.nav-book {
  background: var(--accent);
  color: oklch(98% 0.008 95) !important;
  padding: 8px 15px;
  border-radius: 2px;
  font-weight: 600;
}
.nav-book:hover { background: var(--ink); color: oklch(98% 0.008 95) !important; }

.hero-cta { margin-top: 26px; display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* row-level actions on the home page: one Book per cottage, plus a quiet link */
.row-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 20px; }
.row-actions .quiet-link {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  font-size: 1rem;
}

/* ===========================================================================
   RING OR WHATSAPP
   Izzy asked for the wording "Ring or WhatsApp 07870 171 872" so guests stop
   defaulting to a phone call. Both words are real, separate links: "Ring"
   dials, "WhatsApp" opens a pre-filled chat. tel: is never removed.
   =========================================================================== */
.btn-contact {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--hair);
  color: var(--ink);
  cursor: default;
  white-space: nowrap;
}
.btn-contact a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
}
.btn-contact a:hover { color: var(--accent); }
.btn-contact .num { letter-spacing: .1em; }
.wa-mark { width: 13px; height: 13px; fill: currentColor; flex: 0 0 auto; margin-left: 4px; }

/* the same pattern in running prose (footers, the home page book line) */
.contact-line .wa-mark { width: 12px; height: 12px; position: relative; top: 1px; }

/* ===========================================================================
   BOOKING MODAL
   Injected by assets/booking.js. Quiet Gallery rules apply: paper ground,
   hairline borders, Montserrat labels, EB Garamond values, no gradients.
   =========================================================================== */
.bk-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: oklch(20% 0.02 250 / .55);
  padding: 18px;
  overflow-y: auto;
  /* align-items:flex-start so a tall dialog scrolls rather than clipping */
  align-items: flex-start;
  justify-content: center;
}
.bk-backdrop.open { display: flex; }
body.bk-locked { overflow: hidden; }

.bk-dialog {
  position: relative;
  width: min(560px, 100%);
  /* horizontal auto only: a vertical auto margin clips the top of a dialog
     taller than the viewport, which is exactly what happens on a phone */
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--hair);
  border-radius: 4px;
  padding: 34px clamp(20px, 4vw, 38px) 30px;
}
.bk-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: none;
  border: 1px solid var(--hair);
  border-radius: 2px;
  color: var(--ink-2);
  cursor: pointer;
  padding: 0;
}
.bk-close:hover { color: var(--ink); border-color: var(--ink-2); }
.bk-close svg { width: 13px; height: 13px; stroke: currentColor; stroke-width: 1.5; }

.bk-dialog h2 { font-weight: 500; font-size: 1.75rem; margin: 8px 0 10px; line-height: 1.15; }
.bk-honesty {
  color: var(--ink-2);
  font-size: .97rem;
  margin: 0 0 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--hair);
}

.bk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.bk-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.bk-field.full { grid-column: 1 / -1; }
.bk-field label, .bk-legend {
  font-family: "Montserrat", sans-serif;
  font-size: .55rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-2);
  font-weight: 600;
}
.bk-field input, .bk-field select, .bk-field textarea {
  font-family: "EB Garamond", Georgia, serif;
  font-size: 1rem;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--hair);
  border-radius: 3px;
  background: var(--paper);
  color: var(--ink);
}
.bk-field textarea { resize: vertical; min-height: 74px; }
.bk-field input:focus-visible, .bk-field select:focus-visible, .bk-field textarea:focus-visible,
.bk-close:focus-visible, .bk-dialog .btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.bk-hint { font-size: .84rem; color: var(--ink-2); margin: 2px 0 0; }
/* a checkbox label is running text, not a micro-label: undo `.bk-field label` */
.bk-check, .bk-field label.bk-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-family: "EB Garamond", Georgia, serif;
  font-size: .95rem;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  color: var(--ink-2);
}
.bk-check input { width: auto; margin-top: 4px; }

.bk-summary {
  margin: 20px 0 4px;
  border-top: 1px solid var(--hair);
  padding-top: 16px;
  font-size: 1rem;
  color: var(--ink);
}
.bk-summary .bk-summary-label {
  font-family: "Montserrat", sans-serif;
  font-size: .55rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-2);
  font-weight: 600;
  display: block;
  margin-bottom: 7px;
}
.bk-summary p { margin: 0; }
.bk-error {
  color: var(--flag);
  font-size: .92rem;
  margin: 10px 0 0;
  font-family: "Montserrat", sans-serif;
}
.bk-error:empty { display: none; }

.bk-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.bk-actions .btn { border: 1px solid transparent; cursor: pointer; font-family: "Montserrat", sans-serif; }
.bk-actions .btn-quiet { border-color: var(--hair); background: none; }
.bk-foot { font-size: .86rem; color: var(--ink-2); margin: 18px 0 0; }
.bk-foot a { color: var(--accent); }

@media (max-width: 760px) {
  .bk-backdrop { padding: 10px; }
  .bk-dialog { padding: 30px 18px 24px; border-radius: 3px; }
  .bk-dialog h2 { font-size: 1.5rem; }
  .bk-grid { grid-template-columns: 1fr; }
  .bk-actions .btn { flex: 1 1 100%; text-align: center; }
  /* the header is stacked on a phone; keep Book obviously tappable */
  .nav-book { padding: 9px 18px; }
  .hero-cta { margin-top: 20px; }
  .btn-lg { padding: 15px 30px; }
  .btn-contact { white-space: normal; max-width: 100%; }
  .row-actions { gap: 14px; }
}

/* ===========================================================================
   PHOTO LIGHTBOX
   Injected by assets/gallery.js onto any [data-lb-group] shot. Guest clicks a
   thumbnail, arrows step through every photo in that group, one at a time.
   Never auto-advances — Izzy was explicit she finds auto-rotating galleries
   irritating (21 Aug 2026 call), so there is no timer anywhere in this file.
   =========================================================================== */
[data-lb-group] { cursor: pointer; }
/* extra photos that only exist to widen a lightbox group beyond the visible
   grid — never part of page layout, harvested by gallery.js on load */
.lb-only { display: none; }

.lb-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  background: oklch(14% 0.02 250 / .92);
  opacity: 0;
  transition: opacity .2s ease;
}
.lb-backdrop.open { display: flex; opacity: 1; }
body.lb-locked { overflow: hidden; }

.lb-figure {
  margin: 0;
  position: absolute;
  inset: 64px 84px 76px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.lb-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 2px;
}
.lb-caption {
  margin-top: 16px;
  color: oklch(97% 0.01 95);
  font-style: italic;
  font-size: 1.02rem;
  text-align: center;
  max-width: 60ch;
}
.lb-count {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  font-family: "Montserrat", sans-serif;
  font-size: .68rem;
  letter-spacing: .14em;
  color: oklch(85% 0.01 95);
}
.lb-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: none;
  border: 1px solid oklch(97% 0.01 95 / .35);
  border-radius: 2px;
  color: oklch(97% 0.01 95);
  cursor: pointer;
}
.lb-close:hover { border-color: oklch(97% 0.01 95 / .8); }
.lb-close svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 1.5; }

.lb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: none;
  border: 1px solid oklch(97% 0.01 95 / .35);
  border-radius: 50%;
  color: oklch(97% 0.01 95);
  cursor: pointer;
}
.lb-arrow:hover { border-color: oklch(97% 0.01 95 / .8); background: oklch(97% 0.01 95 / .08); }
.lb-arrow:disabled { opacity: .25; cursor: default; }
.lb-arrow:disabled:hover { background: none; border-color: oklch(97% 0.01 95 / .35); }
.lb-arrow svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 1.6; fill: none; }
.lb-prev { left: 18px; }
.lb-next { right: 18px; }

@media (max-width: 760px) {
  .lb-figure { inset: 56px 20px 96px; }
  .lb-arrow { width: 44px; height: 44px; }
  .lb-prev { left: 6px; }
  .lb-next { right: 6px; }
  .lb-close { top: 12px; right: 12px; }
  .lb-count { bottom: 18px; }
}
