/* ============================================================
   702 with the View — design system
   White, black, gold, dark turquoise, and emerald green palette.
   Dependency-free: system fonts only (constitution Principle 7).
   ============================================================ */

/* ------------------------------------------------------------------
   Colour tokens.

   Light mode: white background with black text, gold accents, and
   turquoise as the primary action color. Dark mode: near-black background
   with white text, maintaining contrast while using emerald green as
   the primary action color for visual variety.
   ------------------------------------------------------------------ */

:root,
:root[data-theme="light"] {
  color-scheme: light;

  --bg: #ffffff;
  --bg-tint: #f5f5f5;
  --surface: #ffffff;
  --ink: #000000;
  --ink-soft: #555555;
  --accent: #001a30;         /* very dark teal: buttons, links */
  --accent-strong: #000f1f;
  --brass: #C9B037;          /* warm muted gold: overlines, small accents */
  --border: #e0e0e0;
  --wave-back: #b8d4dd;
  --wave-front: #8cbcc9;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --on-accent: #ffffff;

  --radius: 14px;
}

/* Follows the operating system unless the reader has chosen a theme,
   in which case data-theme on <html> wins. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;

    --bg: #0a0a0a;
    --bg-tint: #1a1a1a;
    --surface: #151515;
    --ink: #ffffff;
    --ink-soft: #b0b0b0;
    --accent: #001a30;        /* darker teal for dark mode buttons */
    --accent-strong: #000f1f;
    --brass: #C9B037;
    --border: #333333;
    --wave-back: #1a4d52;
    --wave-front: #2a6b73;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    --on-accent: #ffffff;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;

  --bg: #0a0a0a;
  --bg-tint: #1a1a1a;
  --surface: #151515;
  --ink: #ffffff;
  --ink-soft: #b0b0b0;
  --accent: #001a30;
  --accent-strong: #000f1f;
  --brass: #C9B037;
  --border: #333333;
  --wave-back: #1a4d52;
  --wave-front: #2a6b73;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  --on-accent: #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.15;
  color: var(--ink);
}

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

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }

.contact__agent a,
.footer a { color: var(--brass); }

/* Small-caps label above each section heading */
.overline {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--brass);
  margin-bottom: 0.75rem;
}

/* ------------------------------ Navigation ------------------------------ */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.8rem clamp(1rem, 4vw, 2.5rem);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav__brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.nav__brand em { color: var(--brass); }

.nav__links {
  display: flex;
  gap: clamp(0.9rem, 2.5vw, 1.75rem);
}

.nav__links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.92rem;
  padding-bottom: 2px;
  border-bottom: 1.5px solid transparent;
  transition: color 150ms ease, border-color 150ms ease;
}

.nav__links a:hover { color: var(--ink); }

.nav__links a.is-active {
  color: var(--ink);
  border-bottom-color: var(--brass);
}

.nav__actions { display: flex; align-items: center; gap: 0.75rem; }

.nav__cta {
  background: var(--accent);
  color: var(--on-accent);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  transition: background 150ms ease;
  white-space: nowrap;
}

.nav__cta:hover { background: var(--accent-strong); }

/* Labelled rather than icon-only, like gentletable.com: a lone glyph is
   a guessing game. */
.theme-toggle {
  font: inherit;
  font-size: 0.85rem;
  color: var(--ink-soft);
  background: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.42rem 0.9rem;
  cursor: pointer;
  transition: color 150ms ease, border-color 150ms ease;
  white-space: nowrap;
}

.theme-toggle:hover { color: var(--ink); border-color: var(--ink-soft); }

@media (max-width: 820px) {
  .nav__links { display: none; }
}

@media (max-width: 460px) {
  .nav__cta { display: none; }
}

/* --------------------------------- Hero --------------------------------- */

.hero {
  position: relative;
  padding: clamp(4.5rem, 12vh, 8rem) clamp(1.25rem, 5vw, 3rem) 7rem;
  text-align: center;
}

/* Text column stays narrow; the wave band below bleeds full width. */
.hero > :not(.hero__waves) {
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}

.hero__overline {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brass);
  margin-bottom: 1.25rem;
}

.hero__title {
  font-size: clamp(2.6rem, 7vw, 4.5rem);
  margin-bottom: 1.25rem;
}

.hero__lede {
  font-size: clamp(1.02rem, 2vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 36em;
  margin: 0 auto 2rem;
}

.hero__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
}

/* A quiet nod to the water: two slow-drifting wave lines under the hero.
   Decorative only, hidden from assistive tech, stilled by reduced-motion. */
.hero__waves {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 40px;
  overflow: hidden;
  pointer-events: none;
}

.hero__waves svg { width: 200%; height: 100%; display: block; }

.hero__wave--back  { fill: var(--wave-back);  animation: drift 26s linear infinite; }
.hero__wave--front { fill: var(--wave-front); animation: drift 18s linear infinite reverse; opacity: 0.55; }

@keyframes drift {
  from { transform: translateX(0); }
  to   { transform: translateX(-25%); }
}

/* ------------------------------- Buttons -------------------------------- */

.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}

.btn--primary {
  background: #00273d;
  color: var(--on-accent);
}

.btn--primary:hover { background: var(--accent-strong); }

.btn--quiet {
  color: var(--ink);
  border: 1px solid var(--border);
}

.btn--quiet:hover { border-color: var(--ink-soft); }

/* ------------------------------- Sections -------------------------------- */

.section {
  padding: clamp(3.5rem, 9vw, 6rem) clamp(1.25rem, 5vw, 3rem);
}

.section > * {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

.gallery { max-width: 980px; margin-left: auto; margin-right: auto; }

.section--tinted { background: var(--bg-tint); }

.section__head { margin-bottom: 2.75rem; }

.section__head h2 { font-size: clamp(1.7rem, 4vw, 2.3rem); }

.section__lede {
  color: var(--ink-soft);
  max-width: 40em;
  margin-top: 0.75rem;
}

.section__note {
  color: var(--ink-soft);
  font-size: 0.88rem;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

/* ------------------------------- Gallery --------------------------------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}

.ph { margin: 0; }

.ph--wide { grid-column: span 2; }

@media (max-width: 1024px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .gallery {
    grid-template-columns: 1fr;
  }
  .ph--wide { grid-column: span 1; }
}

/* Photo placeholder: a quiet framed panel until real photos land.
   To swap one in, replace .ph__frame's contents with an <img> named after
   the figure's data-slot (see site/assets/photos/README.md). */
.ph__frame {
  aspect-ratio: 4 / 3;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-tint);
  display: grid;
  place-items: center;
}

.section--tinted .ph__frame { background: var(--surface); }

.ph--wide .ph__frame { aspect-ratio: 8 / 3; }

/* Swapped-in photos size themselves from width + aspect-ratio only.
   Never give these height:100%: a percentage height inside an auto-height
   figure makes the image overflow the grid row and bury the caption of
   the figure below (regression guarded by T-053 and tests/test_layout.sh). */
.ph__frame img,
.ph > img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}

.ph--wide .ph__frame img,
.ph--wide > img { aspect-ratio: 8 / 3; }

.ph__frame span {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: 0.7;
}

.ph figcaption {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* -------------------------------- Cards ---------------------------------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.card h3 { font-size: 1.2rem; margin-bottom: 0.6rem; }

.card p { color: var(--ink-soft); font-size: 0.95rem; }

/* ------------------------------ Amenities -------------------------------- */

.amenities {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.6rem 2rem;
}

.amenities li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* -------------------------------- Facts ---------------------------------- */

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

.facts__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
  text-align: center;
}

.facts__item dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}

.facts__item dd {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  margin-top: 0.3rem;
}

/* ---------------------------- Property guide ------------------------------ */

.guide { max-width: 720px; }

.guide h2 { font-size: clamp(1.6rem, 4vw, 2.1rem); margin-bottom: 0.75rem; }

.guide p { color: var(--ink-soft); }

/* -------------------------------- Video ---------------------------------- */

.video-container { max-width: 720px; }

.video-container h2 { font-size: clamp(1.6rem, 4vw, 2.1rem); margin-bottom: 1.5rem; }

.scroll-video {
  width: 100%;
  max-width: 720px;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  display: block;
  margin-bottom: 1.5rem;
}

/* -------------------------------- Contact --------------------------------- */

.section--contact { text-align: center; }

.section--contact .section__lede { margin-left: auto; margin-right: auto; }

.contact__agent {
  margin-top: 1.5rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.9;
}

/* -------------------------------- Footer ---------------------------------- */

.footer {
  border-top: 1px solid var(--border);
  padding: 2.25rem clamp(1rem, 4vw, 2.5rem);
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.footer__fine { margin-top: 0.4rem; font-size: 0.8rem; }

/* --------------------------- Scroll reveal -------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.is-visible { opacity: 1; transform: none; }

/* Accessibility: honor the user's reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__wave--back, .hero__wave--front { animation: none; }
}
