/*
 * The Sultanate Hotels — brand design system
 * Implements SULTANATE_BRAND_GUIDELINE.pdf, Edition One, 2026.
 *
 * The governing rule of that document: Ivory Cream is the default ground and
 * "most of the brand is this colour". Ink Black is body text and the REVERSED
 * ground for ceremony moments only. Sultanate Gold is an accent — rules, small
 * caps, the emblem — and is "never a large fill".
 *
 * Restraint is the house style. When in doubt, do less.
 *
 * This file is byte-identical across every Sultanate marketing site. Change it
 * here and copy; never fork it per property.
 */

:root {
  /* --- Primary palette (approved) ------------------------------------ */
  --ivory: #F9F5F1;        /* the default ground */
  --ink: #1A1A1A;          /* body text; reversed ground for ceremony */
  --gold: #C8AA62;         /* accent only — never a large fill */
  --gold-tint: #D9C493;    /* hairlines and pattern, low contrast */

  /* DEVIATION, flagged to the brand custodian.
     The guideline sets small caps in Sultanate Gold. On the Ivory Cream ground
     that measures 2.06:1 — well under the 4.5:1 minimum for small text, and the
     small caps are specified at 10px. This is a darkened member of the same gold
     family used ONLY where gold sets small type on a light ground: 5.16:1 on
     Ivory Cream, 4.77:1 on the alternating band.
     On the Ink Black ceremony ground the true Sultanate Gold is 7.78:1 and is
     used unchanged. Rules, hairlines and the emblem always use --gold. */
  --gold-ink: #7E6430;

  /* The secondary palette (Lagoon Deep, Warm Sand, Royal Blue) is marked
     "PROPOSED, FOR REVIEW" in the guideline and is deliberately not used. */

  /* --- Derived neutrals ---------------------------------------------- */
  /* Ivory warmed or cooled a step, so alternating bands read as one family
     rather than as new colours. */
  --ivory-deep: #F2ECE4;   /* alternating band on ivory */
  --ivory-edge: #EAE2D6;   /* card edges, dividers on ivory */
  --ink-soft: rgba(26, 26, 26, 0.62);   /* secondary text on ivory */
  --ink-faint: rgba(26, 26, 26, 0.12);  /* hairlines on ivory */
  --on-ink: #F3EEE7;       /* text on the reversed ground */
  --on-ink-soft: rgba(243, 238, 231, 0.66);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  --ease-cinematic: cubic-bezier(0.22, 1, 0.36, 1);
  --max-w: 1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--gold); color: var(--ink); }

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

a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--gold); }
a:hover { color: var(--gold); }

/* ---------- typography ----------
 * Display is Cormorant Garamond Light. The guideline: "Never bolder than
 * Medium; never below 16px." Inter never sets a headline. */

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.05;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); letter-spacing: 0.005em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.875rem); line-height: 1.09; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.7rem); }

/* Tracked small caps — Inter 500, 0.3em. The guideline's only use of Inter
   above body weight. */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin: 0 0 1.1rem;
}

.lede {
  font-size: clamp(1.02rem, 2vw, 1.18rem);
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 40em;
  font-weight: 300;
}

/* Pull quote — Cormorant 300 italic. */
.pull {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.35rem, 2.6vw, 1.5rem);
  line-height: 1.5;
  color: var(--ink);
  max-width: 24em;
  margin: 2.4rem 0 0;
}

/* ---------- layout ---------- */

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
}

section { padding: clamp(3.5rem, 9vw, 7rem) 0; }

/* The header is sticky, so anchored sections must clear it when jumped to. */
section[id], [id].island-map { scroll-margin-top: 6.5rem; }
@media (max-width: 720px) { section[id], [id].island-map { scroll-margin-top: 8.5rem; } }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 1.1rem 0;
  background: rgba(249, 245, 241, 0.93);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--ink-faint);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.25rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
  border-bottom: 0;
}

.brand small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--gold-ink);
  margin-top: 0.15rem;
}

/* Tighter than the old nav: brand small caps carry 0.3em tracking, which makes
   every item wider, so the gap gives the width back and keeps one row. */
nav.main-nav { display: flex; gap: clamp(0.85rem, 2.1vw, 1.6rem); flex-wrap: wrap; }
/* Tracking adds a trailing space after the last letter; pull it back so items
   sit optically evenly. */
nav.main-nav a { margin-right: -0.3em; }

nav.main-nav a {
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-bottom: 0;
  transition: color 0.3s var(--ease-cinematic);
}
nav.main-nav a:hover { color: var(--gold); }

/* ---------- hero ----------
 * Ivory ground. The old obsidian gradient is retired: an ivory brand does not
 * open on navy. Where a photograph is set it fills the hero; the art below is
 * a quiet warm wash, not a picture of the sea. */

.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  padding: 3rem 0 clamp(3rem, 8vw, 6rem);
  overflow: hidden;
  isolation: isolate;
  background: var(--ivory);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(ellipse 80% 50% at 72% 12%, rgba(200, 170, 98, 0.10), transparent 66%),
    radial-gradient(ellipse 70% 45% at 18% 88%, rgba(217, 196, 147, 0.14), transparent 62%),
    linear-gradient(180deg, #FBF8F5 0%, var(--ivory) 100%);
}

.hero::after {
  /* faint atoll ring — a hairline, per the pattern rule */
  content: '';
  position: absolute;
  z-index: -1;
  width: 60vmin;
  height: 60vmin;
  right: -10vmin;
  top: 8vmin;
  border-radius: 50%;
  border: 1px solid rgba(200, 170, 98, 0.28);
}

.hero .eyebrow { margin-bottom: 1.4rem; }
.hero h1 { max-width: 12em; }
.hero .lede { margin-top: 1.6rem; }

.hero-meta {
  margin-top: 2.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2.2rem;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.hero-meta span::before { content: '◆'; color: var(--gold); font-size: 0.5rem; margin-right: 0.7rem; vertical-align: 2px; }

/* ---------- gold rule ---------- */

.rule {
  width: 64px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  border: 0;
  margin: 1.6rem 0 0;
}

/* ---------- property grid (brand home) ---------- */

.props {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.4rem;
  margin-top: 3rem;
}

.prop-card {
  position: relative;
  display: block;
  padding: 2.2rem 1.9rem 1.9rem;
  border: 1px solid var(--ivory-edge);
  background: #FDFBF9;
  color: var(--ink);
  transition: border-color 0.4s var(--ease-cinematic), transform 0.4s var(--ease-cinematic);
}

.prop-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  color: var(--ink);
}

.prop-card .atoll {
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-ink);
}

.prop-card h3 { margin: 0.7rem 0 0.6rem; }

.prop-card p { color: var(--ink-soft); font-size: 0.92rem; margin: 0; font-weight: 300; }

.prop-card .go {
  display: block;
  width: fit-content;
  margin-top: 1.4rem;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--gold);
}
.prop-card .go::after { content: ' →'; }
/* Second CTA sits tight under Visit website. */
.prop-card .go + .go { margin-top: 0.55rem; }
a.prop-card .go, .prop-card a.go { text-decoration: none; }
.prop-card a.go:hover { color: var(--gold); }

/* ---------- alternating band ----------
 * A warmer step of the same ivory, not a second colour. */

.section-sand {
  background: var(--ivory-deep);
  color: var(--ink);
}
.section-sand h2, .section-sand h3 { color: var(--ink); }
.section-sand .lede, .section-sand p { color: var(--ink-soft); }
.section-sand .eyebrow { color: var(--gold-ink); }

/* ---------- ceremony band ----------
 * The guideline's "reversed ground for ceremony moments". Use sparingly — a
 * closing statement, a single quote. Never for a whole page. */

.section-ink {
  background: var(--ink);
  color: var(--on-ink);
}
.section-ink h1, .section-ink h2, .section-ink h3 { color: var(--on-ink); }
.section-ink .lede, .section-ink p { color: var(--on-ink-soft); }
.section-ink .eyebrow, .section-ink .atoll, .section-ink .facts .k { color: var(--gold); }
.section-ink a { color: var(--on-ink); border-bottom-color: var(--gold); }
.section-ink a:hover { color: var(--gold); }
.section-ink .facts li { border-color: rgba(243, 238, 231, 0.16); }
.section-ink .pull { color: var(--on-ink); }

.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

/* ---------- facts / detail lists ---------- */

.facts {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.facts li {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--ink-faint);
  font-size: 0.92rem;
}

.facts .k {
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 0.625rem;
  font-weight: 500;
  color: var(--gold-ink);
  padding-top: 0.35rem;
  white-space: nowrap;
}

.facts .v { text-align: right; font-weight: 300; }

.tbc {
  font-style: italic;
  opacity: 0.6;
}

/* ---------- experiences ---------- */

.exp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.2rem;
  margin-top: 2.6rem;
}

.exp {
  padding: 1.6rem 1.5rem;
  border: 1px solid var(--ivory-edge);
  background: #FDFBF9;
}
.section-sand .exp { background: rgba(255, 255, 255, 0.6); }
.section-ink .exp { background: rgba(255, 255, 255, 0.04); border-color: rgba(243, 238, 231, 0.16); }

.exp h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.exp p { font-size: 0.88rem; margin: 0; color: var(--ink-soft); font-weight: 300; }
.section-ink .exp p { color: var(--on-ink-soft); }

/* ---------- CTA ---------- */

.btn {
  display: inline-block;
  margin-top: 2.2rem;
  padding: 0.95rem 2.4rem;
  border: 1px solid var(--gold);
  color: var(--ink);
  background: none;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  transition: background 0.35s var(--ease-cinematic), color 0.35s var(--ease-cinematic);
}
.btn:hover { background: var(--gold); color: var(--ink); }
.section-ink .btn { color: var(--on-ink); }
.section-ink .btn:hover { background: var(--gold); color: var(--ink); }

/* ---------- footer ---------- */

footer {
  border-top: 1px solid var(--ink-faint);
  padding: 3rem 0 3.5rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem 3rem;
}

footer nav { display: flex; flex-direction: column; gap: 0.45rem; }
footer nav a { color: var(--ink-soft); border-bottom: 0; }
footer nav a:hover { color: var(--gold); }

footer .foot-brand { max-width: 22em; }
footer .foot-brand .brand { font-size: 1.05rem; }

/* ---------- property hero variants ----------
 * Each island gets a different quiet warm wash, not a different colour. */

.hero.h-fulhadhoo::before {
  background:
    radial-gradient(ellipse 85% 50% at 30% 18%, rgba(217, 196, 147, 0.20), transparent 62%),
    radial-gradient(ellipse 70% 45% at 82% 78%, rgba(200, 170, 98, 0.10), transparent 62%),
    linear-gradient(180deg, #FCF9F6 0%, var(--ivory) 100%);
}
.hero.h-edge::before {
  background:
    radial-gradient(ellipse 80% 55% at 76% 10%, rgba(200, 170, 98, 0.13), transparent 66%),
    radial-gradient(ellipse 55% 40% at 14% 86%, rgba(217, 196, 147, 0.16), transparent 62%),
    linear-gradient(180deg, #FBF8F4 0%, var(--ivory) 100%);
}
.hero.h-courtyard::before {
  background:
    radial-gradient(ellipse 75% 50% at 50% 0%, rgba(200, 170, 98, 0.15), transparent 62%),
    radial-gradient(ellipse 60% 45% at 86% 82%, rgba(217, 196, 147, 0.13), transparent 66%),
    linear-gradient(180deg, #FCFAF7 0%, var(--ivory) 100%);
}
.hero.h-beach::before {
  background:
    radial-gradient(ellipse 90% 55% at 24% 14%, rgba(217, 196, 147, 0.22), transparent 62%),
    radial-gradient(ellipse 60% 40% at 82% 86%, rgba(200, 170, 98, 0.09), transparent 62%),
    linear-gradient(180deg, #FCF9F6 0%, var(--ivory) 100%);
}
.hero.h-laamu::before {
  background:
    radial-gradient(ellipse 85% 55% at 70% 18%, rgba(200, 170, 98, 0.12), transparent 66%),
    radial-gradient(ellipse 65% 45% at 18% 82%, rgba(217, 196, 147, 0.18), transparent 62%),
    linear-gradient(180deg, #FBF8F4 0%, var(--ivory) 100%);
}

/* property page heroes are shorter */
.hero.prop-hero { min-height: 62vh; }

.crumb {
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 1.2rem;
}
.crumb a { color: var(--ink-soft); border-bottom: 0; }
.crumb a:hover { color: var(--gold); }

/* ---------- notice ---------- */

.notice {
  margin-top: 3rem;
  padding: 1.1rem 1.4rem;
  border-left: 2px solid var(--gold);
  background: rgba(200, 170, 98, 0.07);
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.section-ink .notice { background: rgba(200, 170, 98, 0.10); color: var(--on-ink-soft); }

@media (max-width: 640px) {
  .facts li { flex-direction: column; gap: 0.15rem; }
  .facts .v { text-align: left; }
  .hero { min-height: 84vh; }
}

footer .legal {
  margin-top: 0.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  opacity: 0.75;
}

/* ---------- lattice divider ----------
 * The pattern from the guideline, used the way the guideline allows it: on a
 * surface that would otherwise be empty, as a quiet interlude between sections.
 *
 * Three rules govern it and all three are enforced here:
 *   - never above 12% opacity;
 *   - never behind body copy or a lockup — this band carries neither;
 *   - never cropped mid-motif on a visible edge. A hard-edged band would slice
 *     rosettes along all four sides, so the tile is masked to dissolve before it
 *     reaches any edge. Nothing is cut; it fades out.
 */
.divider {
  height: clamp(96px, 11vw, 150px);
  background-image: url(pattern.svg?v=20260906c);
  background-repeat: repeat;
  background-size: 232px auto;
  background-position: center center;
  opacity: 0.12;
  /* Dissolve on both axes. Two mask layers intersected: without the composite
     the second layer would simply replace the first. */
  -webkit-mask-image:
    linear-gradient(to bottom, transparent 0%, #000 38%, #000 62%, transparent 100%),
    linear-gradient(to right, transparent 0%, #000 22%, #000 78%, transparent 100%);
  mask-image:
    linear-gradient(to bottom, transparent 0%, #000 38%, #000 62%, transparent 100%),
    linear-gradient(to right, transparent 0%, #000 22%, #000 78%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
  pointer-events: none;
}

/* Where masks are unavailable the band would show hard-cropped motifs, which the
   guideline forbids outright — so it simply does not render. */
@supports not ((mask-composite: intersect) or (-webkit-mask-composite: source-in)) {
  .divider { display: none; }
}

/* ---------- island map ---------- */
.island-map {
  height: 440px;
  margin-top: 2.4rem;
  border: 1px solid var(--ivory-edge);
  z-index: 0;
}
.island-map .leaflet-popup-content { font-family: var(--font-body); font-size: 0.85rem; }
.atoll-facts { margin-top: 2rem; display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

/* ---------- mobile header stacking ---------- */
@media (max-width: 720px) {
  .site-header .wrap { flex-direction: column; align-items: flex-start; gap: 0.55rem; }
  nav.main-nav { gap: 0.5rem 1.1rem; }
}

/* ---------- scoped typography (survives app-level CSS resets) ---------- */
.bs h1, .bs h2, .bs h3,
.hero h1, section h2, section h3 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.05;
  margin: 0;
}
.bs h1, .hero h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); letter-spacing: 0.005em; color: var(--ink); }
.bs h2, section h2 { font-size: clamp(1.9rem, 4vw, 2.875rem); color: var(--ink); }
.bs h3, section h3 { font-size: clamp(1.3rem, 2.5vw, 1.7rem); color: var(--ink); }
.bs .exp h3, section .exp h3 { font-size: 1.15rem; }
.bs .prop-card h3 { font-size: clamp(1.3rem, 2.5vw, 1.7rem); }
.bs .section-ink h1, .bs .section-ink h2, .bs .section-ink h3,
.section-ink h2, .section-ink h3 { color: var(--on-ink); }
.bs a { color: var(--ink); text-decoration: none; }
.bs a:hover { color: var(--gold); }
.bs .facts, .bs ul.facts { list-style: none; }
.bs section, .bs .hero { box-sizing: border-box; }

/* ---------- editable photos (admin-managed) ---------- */
/* Sits above the gradient art (::before, -3) and below the atoll ring (::after, -1),
   so a real photo replaces the art entirely instead of being dimmed behind it. */
.hero-photo { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; }

/* Legibility scrim — only painted once a photo is actually set. Weighted to the
   bottom, where the hero copy sits (.hero uses align-items: flex-end). A
   photographic hero is a ceremony moment, so its copy reverses to ivory. */
.hero-photo[style*="background-image"]::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26, 26, 26, 0.12) 0%, rgba(26, 26, 26, 0.46) 45%, rgba(26, 26, 26, 0.84) 100%);
}
.hero:has(.hero-photo[style*="background-image"]) h1,
.hero:has(.hero-photo[style*="background-image"]) .crumb { color: var(--on-ink); }
.hero:has(.hero-photo[style*="background-image"]) .lede,
.hero:has(.hero-photo[style*="background-image"]) .hero-meta { color: var(--on-ink-soft); }
/* A photographic hero is a dark ground, so the small caps revert to true
   Sultanate Gold — 7.78:1 there, where the darkened gold would disappear. */
.hero:has(.hero-photo[style*="background-image"]) .eyebrow,
.hero:has(.hero-photo[style*="background-image"]) .hero-meta span::before { color: var(--gold); }

.island-photo { display: none; margin-top: 1.8rem; aspect-ratio: 4 / 3; background-size: cover; background-position: center; border: 1px solid var(--ivory-edge); }
.island-photo[style*="background-image"] { display: block; }

/* ---------- gallery ---------- */

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; margin-top: 2.4rem; }
.gallery-grid img { width: 100%; height: 260px; object-fit: cover; border: 1px solid var(--ivory-edge); display: block; }

/* ---------- accessibility ---------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.85rem 1.4rem;
  background: var(--ink);
  color: var(--ivory);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  border-bottom: 0;
}
.skip-link:focus { left: 0; color: var(--ivory); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

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

/* --- Brand logo (emblem + wordmark lockup) -------------------------------
 * The master artwork is never recoloured. On the ivory ground the full-colour
 * lockup is the approved form; the reversed ceremony band uses the white one. */
.brand-logo {
  display: block;
  height: clamp(58px, 6.4vw, 82px);
  width: auto;
}
.brand:has(.brand-logo) { line-height: 0; }
.brand .brand-logo + small { margin-top: 0.45rem; }
.foot-brand .brand-logo { height: 56px; }

/* Coming-soon lockup carries an extra line, so lift it slightly to keep the
   wordmark optically the same size as on the open houses. */
.brand-logo.is-soon { height: clamp(63px, 7vw, 90px); }


/* =====================================================================
 * Edition One · shared primitives for the 2026-09 hub redesign
 * ---------------------------------------------------------------------
 * ADDITIVE ONLY. Every selector below is namespaced `sx-` (or `[data-reveal]`),
 * so nothing above this line changes for the four property sites. This file is
 * still byte-identical across all five repos: copy it, never fork it.
 * Hub-only layout lives in hub.css, not here.
 * ===================================================================== */

:root {
  --card: #FDFBF9;              /* raised surface on ivory */
  --avail: #3E7A52;             /* availability green — booking only */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --sx-pad: clamp(20px, 4vw, 48px);
  --sx-max: 1280px; /* 1184px of content plus 48px padding each side (border-box), as in the design */
}

.sx-wrap { max-width: var(--sx-max); margin: 0 auto; padding: 0 var(--sx-pad); }
section.sx-sec { padding: clamp(72px, 9vw, 120px) 0; }
section.sx-sec--tight { padding: clamp(56px, 7vw, 96px) 0; }
.sx-band { background: var(--ivory-deep); }
.sx-ceremony { background: var(--ink); color: var(--on-ink); }

/* Type */
.sx-h1 { font-size: clamp(44px, 6.8vw, 90px); line-height: 1.02; letter-spacing: 0.005em; max-width: 11em; }
.sx-h2 { font-size: clamp(34px, 4vw, 52px); line-height: 1.06; }
.sx-h3 { font-size: clamp(26px, 2.4vw, 34px); line-height: 1.1; }
.sx-ceremony h1, .sx-ceremony h2, .sx-ceremony h3 { color: var(--on-ink); }
.sx-eyebrow { font: 500 10px/1.4 var(--font-body); letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold-ink); margin: 0 0 18px; }
.sx-eyebrow--gold, .sx-ceremony .sx-eyebrow { color: var(--gold); }
.sx-rule { display: block; width: 64px; height: 1px; margin-top: 26px; background: linear-gradient(90deg, var(--gold), transparent); }
.sx-body { font-weight: 300; font-size: 15px; line-height: 1.8; color: var(--ink-soft); }
.sx-lede { font-weight: 300; font-size: clamp(16px, 1.5vw, 18px); line-height: 1.75; color: var(--ink-soft); }
.sx-pull { font-family: var(--font-display); font-style: italic; font-weight: 300; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.45; }

/* Buttons: primary is an ink fill; secondary a gold hairline. Gold only fills on hover. */
.sx-btn, .sx-btn--ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 36px; cursor: pointer;
  font: 500 10px/1 var(--font-body); letter-spacing: 0.3em; text-transform: uppercase;
  border: 1px solid var(--ink); background: var(--ink); color: var(--on-ink);
  transition: background 0.35s var(--ease-cinematic), color 0.35s var(--ease-cinematic), border-color 0.35s var(--ease-cinematic);
}
.sx-btn--ghost { background: transparent; color: var(--ink); border-color: var(--gold); }
.sx-btn:hover, .sx-btn--ghost:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.sx-ceremony .sx-btn--ghost { color: var(--on-ink); }
.sx-ceremony .sx-btn--ghost:hover { color: var(--ink); }
.sx-btn[disabled], .sx-btn[aria-disabled="true"] { opacity: 0.35; cursor: not-allowed; pointer-events: none; }
.sx-link {
  position: relative; display: inline-block; padding-bottom: 5px; border-bottom: 1px solid var(--gold);
  font: 500 10px/1.3 var(--font-body); letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink);
}
.sx-link:hover { color: var(--gold-ink); }
/* The underline hugs the text; the hit area is enlarged to 44px+ without moving it. */
.sx-link::before { content: ""; position: absolute; left: -8px; right: -8px; top: -16px; bottom: -14px; }
.sx-ceremony .sx-link { color: var(--on-ink); }
.sx-ceremony .sx-link:hover { color: var(--gold); }

/* Key / value rows (facts, contact) */
.sx-facts { margin: 0; border-top: 1px solid var(--ink-faint); }
.sx-facts > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding: 18px 0; border-bottom: 1px solid var(--ink-faint); }
.sx-facts dt { font: 500 10px/2.2 var(--font-body); letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold-ink); }
.sx-facts dd { margin: 0; font-family: var(--font-display); font-size: 21px; }
.sx-facts a { position: relative; border-bottom: 1px solid var(--gold); }
/* Same 44px+ hit area as .sx-link, without moving the underline. */
.sx-facts a::before { content: ""; position: absolute; left: -8px; right: -8px; top: -10px; bottom: -10px; }

/* Photography placeholder — clearly marked until licensed images exist */
.sx-ph {
  position: relative; display: flex; align-items: flex-end; width: 100%; height: 100%; min-height: 160px;
  background: repeating-linear-gradient(135deg, var(--ivory-deep) 0 14px, var(--ivory-edge) 14px 15px);
  border: 1px solid var(--ivory-edge); overflow: hidden;
}
.sx-ph > span { position: relative; margin: 16px; padding: 6px 10px; background: rgba(249, 245, 241, 0.94); font: 500 10px/1.4 var(--font-body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-ink); }
.sx-ph > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Header — desktop 3-column; below 760px a bar with a hamburger that opens a :target panel (works without JS) */
.sx-header { position: relative; z-index: 30; color: var(--ink-soft); font-family: var(--font-body); }
.sx-header--over { position: absolute; top: 0; left: 0; right: 0; color: rgba(243, 238, 231, 0.86); }
.sx-header--light { border-bottom: 1px solid var(--ink-faint); background: var(--ivory); }
.sx-header a { border-bottom: 0; color: inherit; }
.sx-header__wide { display: none; }
.sx-header__narrow { display: block; }
.sx-header__grid { max-width: var(--sx-max); margin: 0 auto; padding: 22px 48px; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 32px; }
.sx-nav { display: flex; flex-wrap: wrap; gap: 0 24px; align-items: center; }
.sx-nav--end { justify-content: flex-end; gap: 0 24px; }
.sx-nav a { display: inline-flex; align-items: center; min-height: 44px; font: 500 10px/1.4 var(--font-body); letter-spacing: 0.3em; text-transform: uppercase; }
.sx-nav a:hover, .sx-nav a[aria-current="page"] { color: var(--gold); }
/* Gold is 2:1 on ivory; small caps on the light header use the darkened gold-ink. */
.sx-header--light .sx-nav a:hover, .sx-header--light .sx-nav a[aria-current="page"], .sx-header--light a.sx-book:hover { color: var(--gold-ink); }
.sx-header--light a.sx-book:hover { color: var(--ink); }
.sx-header .sx-nav a.sx-phone { font: 400 13px/1 var(--font-body); letter-spacing: 0; text-transform: none; }
.sx-logo { display: block; line-height: 0; }
.sx-logo img { height: 60px; width: auto; }
.sx-header a.sx-book { border: 1px solid var(--gold); padding: 0 26px; min-height: 44px; display: inline-flex; align-items: center; font: 500 10px/1 var(--font-body); letter-spacing: 0.3em; text-transform: uppercase; transition: background 0.35s var(--ease-cinematic), color 0.35s var(--ease-cinematic); }
.sx-header a.sx-book:hover { background: var(--gold); color: var(--ink); }
.sx-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; }
.sx-header__bar .sx-logo { display: flex; align-items: center; min-height: 44px; }
.sx-header__bar .sx-logo img { height: 42px; }
.sx-header__actions { display: flex; align-items: center; gap: 6px; }
.sx-header__actions a.sx-book { padding: 0 16px; min-height: 44px; display: inline-flex; align-items: center; }
.sx-menu-btn { width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer; color: inherit; }
.sx-panel { display: none; position: absolute; top: 0; left: 0; right: 0; z-index: 60; background: var(--ivory); color: var(--ink); padding: 16px 20px 32px; box-shadow: 0 30px 60px -30px rgba(26, 26, 26, 0.4); }
.sx-panel:target { display: block; }
.sx-panel__top { display: flex; align-items: center; justify-content: space-between; }
.sx-panel__top img { height: 42px; width: auto; }
.sx-panel__close { width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.sx-panel nav { display: flex; flex-direction: column; margin-top: 24px; border-top: 1px solid var(--ink-faint); }
.sx-panel nav a { font-family: var(--font-display); font-weight: 300; font-size: 28px; padding: 14px 0; border-bottom: 1px solid var(--ink-faint); color: var(--ink); }
.sx-panel a.sx-btn { width: 100%; margin-top: 28px; min-height: 52px; color: var(--on-ink); }
.sx-panel p { margin: 20px 0 0; font-weight: 300; font-size: 13px; line-height: 1.7; color: var(--ink-soft); }
@media (min-width: 760px) {
  .sx-header__wide { display: block; }
  .sx-header__narrow { display: none; }
}
/* Narrow desktops: keep the three-column bar on one line by tightening tracking, then dropping the phone number. */
@media (min-width: 760px) and (max-width: 1119px) {
  .sx-header__grid { padding: 18px 24px; gap: 16px; }
  .sx-nav, .sx-nav--end { gap: 0 16px; }
  .sx-nav a { letter-spacing: 0.2em; }
  .sx-header a.sx-book { letter-spacing: 0.2em; padding: 0 18px; }
}
@media (min-width: 760px) and (max-width: 939px) {
  .sx-header .sx-nav a.sx-phone { display: none; }
}
/* The full 48px / 32px bar needs about 1200px to stay on one line; just below that, ease it slightly. */
@media (min-width: 1120px) and (max-width: 1199px) {
  .sx-header__grid { padding: 22px 40px; gap: 24px; }
}

/* Footer — lattice divider, four auto-fit columns, legal row */
footer.sx-footer { border-top: 1px solid var(--ink-faint); padding: 0; font-size: 13px; color: var(--ink); background: var(--ivory); }
.sx-footer .sx-divider { height: 120px; }
.sx-footer__grid { max-width: var(--sx-max); margin: 0 auto; padding: 24px var(--sx-pad) 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px 48px; }
.sx-footer__col { display: flex; flex-direction: column; gap: 0; font-weight: 300; line-height: 1.5; }
.sx-footer__col .sx-eyebrow { margin: 0 0 6px; }
.sx-footer__col a { display: flex; align-items: center; min-height: 44px; color: var(--ink-soft); border-bottom: 0; }
.sx-footer__col a:hover { color: var(--gold-ink); }
.sx-footer__brand p { margin: 20px 0 0; font-weight: 300; line-height: 1.7; color: var(--ink-soft); max-width: 22em; }
.sx-footer__brand img { height: 58px; width: auto; }
.sx-footer__legal { max-width: var(--sx-max); margin: 48px auto 0; padding: 22px var(--sx-pad) 36px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; border-top: 1px solid var(--ink-faint); font-weight: 300; font-size: 12px; letter-spacing: 0.06em; color: var(--ink-soft); }

/* Motion — off under prefers-reduced-motion. Elements are only hidden once JS
   has marked <html class="js">, so a script failure never hides content. */
@keyframes sx-kb { from { transform: scale(1); } to { transform: scale(1.09); } }
.sx-kb { animation: sx-kb 32s var(--ease-out) infinite alternate; transform-origin: 60% 40%; }
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1.2s var(--ease-out), transform 1.2s var(--ease-out); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .sx-kb { animation: none; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
}
