/* ============================================================
   Standalone content pages — destinations, long stays, FAQ,
   arrival guide, house rules, experiences, why book direct,
   our story, property owners, accessibility, careers.

   Deliberately quieter than the homepage. A guest arrives here
   with a question, not to be sold to, so the page is a column of
   readable text with a clear way back to the collection and a
   clear way to reach a person.

   Inherits the site's tokens where they exist and falls back to
   literals where they may not, because an undefined custom
   property renders as nothing at all.
   ============================================================ */

.page {
  background: var(--bone, #faf7f1);
  color: var(--ink, #1f2937);
}

.wrap--narrow {
  max-width: 52rem;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

/* ── HEADER ───────────────────────────────────────────────
   SCOPED TO body.page ON PURPOSE — DO NOT UNSCOPE.

   ".page-head" is two different components in this codebase. Here it is the
   dark site header of a content page. In main.css it is the TITLE BLOCK of the
   collection and property pages — no background, dark text on the light page.

   Unscoped, this file's background reached that title block the moment the core
   pages started loading pages.css: the collection page grew a dark banner while
   its lede kept the light-surface muted grey, measured at 2.63:1 against a
   4.5:1 requirement. Nobody had changed either component; a class name simply
   collided.
   ───────────────────────────────────────────────────────── */

.page .page-head {
  background: var(--ink, #1f2937);
  color: var(--bone, #faf7f1);
  padding: 1rem 0;
}
.page .page-head__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.page .page-head__brand {
  font-family: var(--serif, "Cormorant Garamond", Georgia, serif);
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  color: inherit;
  text-decoration: none;
}
.page .page-head__nav {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  font-size: 0.875rem;
}
.page .page-head__nav a {
  color: inherit;
  text-decoration: none;
  opacity: 0.85;
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
}
.page .page-head__nav a:hover,
.page .page-head__nav a:focus-visible { opacity: 1; border-bottom-color: currentColor; }

/* ── BODY ─────────────────────────────────────────────────── */

.page-main { padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(3rem, 8vw, 6rem); }

.page-eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted, #6b7280);
}

.page-title {
  margin: 0 0 1rem;
  font-family: var(--serif, "Cormorant Garamond", Georgia, serif);
  font-weight: 300;
  font-size: clamp(2rem, 6vw, 3.25rem);
  line-height: 1.1;
}

.page-lede {
  margin: 0 0 2.5rem;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  line-height: 1.6;
  color: var(--muted, #4b5563);
  max-width: 40rem;
}

.page-prose {
  margin: 0 0 1.25rem;
  line-height: 1.75;
  max-width: 38rem;
}

.page-inline-link {
  font-weight: 600;
  color: var(--accent, #5b4b3a);
}

/* ── CARDS ────────────────────────────────────────────────── */

.page-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 0 0 2.5rem;
}
@media (min-width: 40rem) {
  .page-cards { grid-template-columns: repeat(2, 1fr); }
}

.page-card {
  position: relative;
  display: block;
  padding: 1.25rem 1.4rem;
  background: var(--surface, #fff);
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
}
a.page-card:hover,
a.page-card:focus-visible {
  border-color: var(--accent, #5b4b3a);
  transform: translateY(-2px);
}
a.page-card { transition: transform 0.18s ease, border-color 0.18s ease; }

.page-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 600;
}
.page-card p { margin: 0; font-size: 0.9375rem; line-height: 1.6; color: var(--muted, #4b5563); }

.page-card__go {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  color: var(--accent, #5b4b3a);
  opacity: 0;
  transition: opacity 0.18s ease;
}
a.page-card:hover .page-card__go,
a.page-card:focus-visible .page-card__go { opacity: 1; }

/* ── FAQ ──────────────────────────────────────────────────── */

.page-faq { margin: 0 0 2.5rem; }
.page-faq dt {
  margin: 1.5rem 0 0.4rem;
  font-weight: 600;
  font-size: 1.05rem;
}
.page-faq dt:first-child { margin-top: 0; }
.page-faq dd {
  margin: 0;
  padding: 0 0 1.25rem;
  border-bottom: 1px solid var(--line, #e5e7eb);
  line-height: 1.7;
  color: var(--muted, #4b5563);
}
.page-faq dd:last-child { border-bottom: 0; }
.page-faq a { color: var(--accent, #5b4b3a); }

/* ── COMING SOON ──────────────────────────────────────────── */

/* Says so plainly rather than padding the page. A section that admits it is
   unfinished is more trustworthy than three paragraphs pretending otherwise. */
.page-soon {
  margin: 0 0 2.5rem;
  padding: 1.25rem 1.4rem;
  background: rgba(91, 75, 58, 0.06);
  border-left: 3px solid var(--accent, #5b4b3a);
  border-radius: 8px;
}
.page-soon__badge {
  margin: 0 0 0.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent, #5b4b3a);
}
.page-soon p:last-child { margin: 0; line-height: 1.7; }

/* ── CALL TO ACTION ───────────────────────────────────────── */

.page-cta {
  margin: 3rem 0 0;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  background: var(--surface, #fff);
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 14px;
}
.page-cta > p:first-child {
  margin: 0 0 1.25rem;
  font-size: 1.05rem;
  line-height: 1.6;
}
.page-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0 0 1rem;
}
.page-cta__actions .btn { min-height: 2.75rem; }
.page-cta__email { margin: 0; font-size: 0.875rem; color: var(--muted, #6b7280); }
.page-cta__email a { color: var(--accent, #5b4b3a); }

/* ── FOOTER ───────────────────────────────────────────────── */

.page-foot {
  background: var(--ink, #1f2937);
  color: var(--bone, #faf7f1);
  padding: clamp(2.5rem, 6vw, 4rem) 0 2rem;
}
.page-foot__cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 44rem) {
  .page-foot__cols { grid-template-columns: repeat(3, 1fr); }
}
.page-foot h2 {
  margin: 0 0 0.85rem;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0.7;
}
.page-foot nav { display: grid; gap: 0.55rem; }
.page-foot nav a {
  color: inherit;
  text-decoration: none;
  font-size: 0.9375rem;
  opacity: 0.88;
  width: fit-content;
  border-bottom: 1px solid transparent;
}
.page-foot nav a:hover,
.page-foot nav a:focus-visible { opacity: 1; border-bottom-color: currentColor; }

.page-foot__legal {
  margin: 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(250, 247, 241, 0.15);
  font-size: 0.8125rem;
  opacity: 0.75;
}
.page-foot__legal a { color: inherit; }
.page-foot__policies {
  margin: 1rem 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem 1.25rem;
  font-size: 0.75rem;
  color: rgba(250, 247, 241, 0.72);
}
/* WCAG 2.2 AA 2.5.8 — ONE RULE FOR EVERY FOOTER UTILITY LINK.
 *
 * These sat at 22 CSS pixels tall: two short of the 24×24 the criterion asks
 * for. They passed only through the SPACING exception, which holds while no
 * other target's centre comes within 24px — a property of the current layout,
 * not of the component. One reflow at an untested width and a link that was
 * never changed starts failing.
 *
 * inline-flex with a min-height grows the hit area without moving the text or
 * changing the type scale, so nothing shifts visually at any breakpoint. It is
 * declared once, on the shared footer utilities, rather than three times — the
 * policy row, the Concierge row and the Team row are the same component in
 * three places, and a per-page fix is how one of them silently regresses.
 *
 * tests/footer-target-size.test.js asserts the rule stays; the browser audit
 * measures the result. */
.page-foot__policies a,
.page-foot__concierge a,
.page-foot__team a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
}

.page-foot__policies-label { flex-basis: 100%; text-align: right; opacity: 0.82; }
.page-foot__policies a { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; }
.page-foot__policies a:hover,
.page-foot__policies a:focus-visible { color: var(--bone, #faf7f1); border-bottom-color: currentColor; }
.page-foot__team {
  margin: 1rem 0 0;
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: rgba(250, 247, 241, 0.78);
}
.page-foot__team-label { opacity: 0.72; }
.page-foot__team a { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; }
.page-foot__team a:hover,
.page-foot__team a:focus-visible { color: var(--bone, #faf7f1); border-bottom-color: currentColor; }

/* AI Concierge entry — see the note in main.css. A footer utility, not a call
   to action, because the feature is not built yet. */
.page-foot__concierge {
  margin: 1rem 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: rgba(250, 247, 241, 0.78);
}
.page-foot__concierge a { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; }
.page-foot__concierge a:hover,
.page-foot__concierge a:focus-visible { color: var(--bone, #faf7f1); border-bottom-color: currentColor; }
.page-foot__concierge a:focus-visible { outline: 2px solid var(--bone, #faf7f1); outline-offset: 3px; }
.page-foot__concierge-soon {
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.66;
}

/* ── LEGAL PLACEHOLDERS ──────────────────────────────────── */

.legal-placeholder__notice,
.legal-placeholder__assistance {
  margin: 0 0 2rem;
  padding: 1.25rem 1.4rem;
  border-left: 3px solid var(--accent, #5b4b3a);
  background: rgba(91, 75, 58, 0.06);
}
.legal-placeholder__notice h2 { margin: 0 0 0.75rem; font-size: 1.1rem; }
.legal-placeholder__notice p { margin: 0.5rem 0 0; line-height: 1.7; }
.legal-placeholder__assistance { line-height: 1.7; }
.legal-placeholder__sections { border-top: 1px solid var(--line, #e5e7eb); }
.legal-placeholder__section { padding: 1.25rem 0; border-bottom: 1px solid var(--line, #e5e7eb); }
.legal-placeholder__section h2 { margin: 0 0 0.35rem; font-size: 1.05rem; line-height: 1.4; }
.legal-placeholder__section p { margin: 0; color: var(--muted, #4b5563); }
.legal-placeholder__actions { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; margin-top: 2rem; }
.legal-placeholder__actions a { color: var(--accent, #5b4b3a); font-weight: 600; }

/* ── FOCUS ────────────────────────────────────────────────── */

.page a:focus-visible,
.page button:focus-visible {
  outline: 3px solid var(--accent, #5b4b3a);
  outline-offset: 2px;
  border-radius: 2px;
}
/* Scoped for the same reason as the header block above: a light focus ring is
   correct on the content page's dark header, and wrong on the collection page's
   title block, which is dark text on a light surface. */
.page .page-head a:focus-visible,
.page .page-foot a:focus-visible {
  outline-color: var(--bone, #faf7f1);
}

@media (prefers-reduced-motion: reduce) {
  a.page-card { transition: none; }
  a.page-card:hover, a.page-card:focus-visible { transform: none; }
}

@media (prefers-color-scheme: dark) {
  .page { background: #111827; color: #f3f4f6; }
  .page-card, .page-cta { background: #1f2937; border-color: #374151; }
  .page-card p, .page-faq dd, .page-lede, .page-prose { color: #d1d5db; }
  /* The remaining muted greys. These were left on their light-surface values,
     which measure 3.67:1 (#6b7280) and 2.12:1 (#4b5563) against #111827 — below
     the 4.5:1 requirement, and invisible to anyone reviewing on a light
     machine. #d1d5db measures 11.4:1 here. */
  .page-eyebrow, .page-cta__email, .page-card__go, .nl-detail, .nl-help { color: #d1d5db; }
  .page-faq dd { border-bottom-color: #374151; }
  .page-soon { background: rgba(255, 255, 255, 0.06); }
}

/* ── NEWSLETTER STATE PAGES ───────────────────────────────────
   /newsletter/confirm/, /unsubscribe/, /preferences/

   Every state renders as an explanation with a way onward — never
   as an error page. A guest reaching one of these followed a link
   we sent them; if something is wrong, it is our fault, and the
   page should read that way.
   ─────────────────────────────────────────────────────────── */

.nl-state {
  margin: 0 0 1.5rem;
  padding: clamp(1.25rem, 4vw, 2rem);
  background: var(--surface, #fff);
  border: 1px solid var(--line, #e5e7eb);
  border-left-width: 4px;
  border-radius: 12px;
}
.nl-state .page-lede { margin: 0; }

/* Colour carries the tone, wording carries the meaning. Colour alone would
   exclude anyone who cannot distinguish these hues, and this page is the last
   step of a flow people need to trust. */
.nl-state--ok   { border-left-color: #059669; }
.nl-state--warn { border-left-color: #d97706; }
.nl-state--info { border-left-color: var(--accent, #5b4b3a); }

.nl-detail {
  margin: 1rem 0 0;
  font-size: 0.9375rem;
  color: var(--muted, #4b5563);
}

.nl-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
.nl-actions[hidden] { display: none; }
.nl-actions .btn { min-height: 2.75rem; }
.nl-actions .btn[disabled] { opacity: 0.6; cursor: progress; }

.nl-help {
  flex-basis: 100%;
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  color: var(--muted, #6b7280);
}
.nl-help a { color: var(--accent, #5b4b3a); }

@media (prefers-color-scheme: dark) {
  .nl-state { background: #1f2937; border-color: #374151; }
}

/* The resend email prompt, shown when a link carried no token at all and the
   subscriber therefore cannot be identified from it. */
.nl-resend { margin: 0 0 1rem; max-width: 24rem; }
.nl-resend input {
  width: 100%;
  padding: 0.7rem 0.85rem;
  min-height: 2.75rem;
  border: 1px solid var(--line, #d1d5db);
  border-radius: 8px;
  background: var(--surface, #fff);
  color: inherit;
  font: inherit;
}
.nl-resend input[aria-invalid="true"] { border-color: #dc2626; background: #fef2f2; }
.nl-resend input:focus-visible { outline: 3px solid var(--accent, #5b4b3a); outline-offset: 2px; }

@media (prefers-color-scheme: dark) {
  .nl-resend input { background: #111827; border-color: #374151; color: #f3f4f6; }
  .nl-resend input[aria-invalid="true"] { background: #3f1d1d; border-color: #f87171; }
}

/* The language switcher in the content-page header.
   core.js mounts it into [data-mr-locale-switcher]; without a home it fell back
   to a `.nav__tools` element only the five main pages have, so every content
   page shipped without one. */
.page .page-head__locale { display: flex; align-items: center; }
.page .page-head__locale select {
  background: transparent;
  color: inherit;
  border: 1px solid rgba(250, 247, 241, 0.35);
  border-radius: 6px;
  padding: 0.35rem 0.5rem;
  min-height: 44px;
  font: inherit;
  font-size: 0.8125rem;
}
.page .page-head__locale select option { color: #18201c; }
