/* ==========================================================
   Lighthouse — Golden hour palette
   Change any color here and it updates across the whole site.
   ========================================================== */
:root {
  --bg: #F6EEE3;          /* sand */
  --surface: #EFE4D5;     /* slightly deeper sand for sections */
  --ink: #14202B;         /* dusk navy: text + silhouettes */
  --accent: #E08A2E;      /* sunset amber: sun, buttons, highlights */
  --accent-text: #9A5512; /* darker amber for small text (meets 4.5:1 on sand) */
  --muted: #5B6670;       /* secondary text */
  --line: #B9A994;        /* dividers, sea lines */
  --beam: #F5C26B;        /* lighthouse beam glow */

  --font-display: "Josefin Sans", "Futura", system-ui, sans-serif;
  --font-body: "Work Sans", system-ui, -apple-system, sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
  --radius: 4px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  color-scheme: light;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--accent-text);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

.eyebrow {
  margin: 0 0 16px;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-text);
}

h1, h2 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: .01em;
  margin: 0;
  text-wrap: balance;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px var(--gutter);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 40%, transparent);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
}
.brand-mark { width: 22px; height: 22px; fill: var(--ink); }

.site-header ul {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-header nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  font-size: .9375rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--muted);
  transition: color .2s ease;
}
.site-header nav a:hover { color: var(--ink); }
.site-header nav a { white-space: nowrap; }
@media (max-width: 440px) {
  .site-header nav li.nav-optional { display: none; }
  .site-header nav a { padding: 0 10px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  align-items: end;
  gap: 32px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px var(--gutter) 0;
  overflow: hidden;
}

.hero-copy { position: relative; z-index: 1; padding-bottom: 56px; max-width: 34rem; }

.hero h1 {
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  margin-bottom: 24px;
}

.lede {
  margin: 0 0 32px;
  font-size: 1.0625rem;
  color: var(--muted);
  max-width: 32rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  transition: transform .2s var(--ease-out), background-color .2s ease;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover { background: color-mix(in srgb, var(--accent) 85%, var(--ink)); }
.btn:active { transform: scale(.97); }

.hero-art {
  position: relative;
  order: -1;
  height: min(58vh, 520px);
}
.lighthouse { width: 100%; height: 100%; overflow: visible; }

.lighthouse .ink { fill: var(--ink); }
.lighthouse .sun { fill: var(--accent); }
.lighthouse .glass { fill: var(--beam); }
.lighthouse .window { fill: var(--bg); }
.lighthouse .sea { fill: var(--bg); }
.lighthouse .rail { stroke: var(--ink); stroke-width: 2; fill: none; }
.lighthouse .wave { stroke: var(--line); stroke-width: 2; stroke-linecap: round; fill: none; }

.lighthouse .beam {
  transform-box: view-box;
  transform-origin: 200px 93px;
  animation: sweep 8s ease-in-out infinite;
}
.lighthouse .beam--right { animation-delay: -4s; }
.lighthouse .glow {
  transform-box: view-box;
  transform-origin: 200px 93px;
  animation: pulse 4s ease-in-out infinite;
}

@keyframes sweep {
  0%, 100% { transform: scaleX(1);   opacity: 1; }
  45%, 55% { transform: scaleX(.02); opacity: 0; }
}
@keyframes pulse {
  0%, 100% { transform: scale(1);   opacity: .9; }
  50%      { transform: scale(.75); opacity: .55; }
}

@media (min-width: 900px) {
  .hero { grid-template-columns: 1fr 1fr; align-items: center; }
  .hero-copy { padding-bottom: 0; }
  .hero-art { order: 0; height: min(78vh, 640px); align-self: end; }
}

/* ---------- Hero extras ---------- */
.hero h1 .subtitle {
  display: block;
  margin-top: 10px;
  font-size: .42em;
  font-style: italic;
  letter-spacing: 0;
  color: var(--accent-text);
}
.hero-when {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0 0 28px;
  padding-left: 16px;
  border-left: 3px solid var(--accent);
}
.hero-when strong { font-weight: 600; font-size: 1.0625rem; }
.hero-when span { color: var(--muted); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.actions--center { justify-content: center; }

.btn--ghost {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--ink);
}
.btn--ghost:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }

/* ---------- Details ---------- */
.details {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(72px, 10vw, 128px) var(--gutter);
}
.detail-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 640px) { .detail-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .detail-list { grid-template-columns: repeat(4, 1fr); } }

.detail {
  padding: 28px 24px;
  background: var(--surface);
  border-radius: 12px;
}
.detail-icon {
  width: 28px;
  height: 28px;
  margin-bottom: 20px;
  fill: none;
  stroke: var(--accent-text);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.detail h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 500;
  line-height: 1.2;
}
.detail p { margin: 0; color: var(--muted); }
.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  color: var(--accent-text);
  text-underline-offset: 3px;
}

/* ---------- Closing ---------- */
.closing {
  padding: clamp(72px, 10vw, 120px) var(--gutter);
  text-align: center;
  background: var(--surface);
}
.closing h2 { font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: 12px; }
.closing p { margin: 0 auto 28px; max-width: 36rem; color: var(--muted); }

/* ---------- Feature ---------- */
.feature {
  position: relative;
  margin: 0;
}
.feature img {
  width: 100%;
  height: clamp(320px, 80vh, 860px);
  object-fit: cover;
}
.feature figcaption {
  position: absolute;
  left: var(--gutter);
  bottom: var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #FFF8EE;
  text-shadow: 0 1px 12px rgba(10, 16, 22, .55);
}
.feature-num { font-size: .8125rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.feature-title { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.75rem, 4vw, 3rem); line-height: 1.1; }

/* ---------- Section heads ---------- */
.section-head { margin-bottom: 48px; max-width: 40rem; }
.section-head h2 { font-size: clamp(2.25rem, 5vw, 3.75rem); margin-bottom: 12px; }
.hint { margin: 0; color: var(--muted); }


/* ---------- About ---------- */
.about {
  background: var(--ink);
  color: var(--bg);
}
.about-inner {
  max-width: 44rem;
  margin: 0 auto;
  padding: clamp(80px, 12vw, 144px) var(--gutter);
  text-align: center;
}
.about .eyebrow { color: var(--beam); }
.about h2 { font-size: clamp(2rem, 4.5vw, 3.25rem); margin-bottom: 24px; }
.about p:last-child { margin: 0; font-size: 1.0625rem; color: color-mix(in srgb, var(--bg) 82%, var(--ink)); }
.about em { font-family: var(--font-display); font-size: 1.1em; color: var(--beam); }

/* ---------- Footer ---------- */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  align-items: center;
  padding: 24px var(--gutter);
  font-size: .875rem;
  color: var(--muted);
}
.site-footer p { margin: 0; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ==========================================================
   Photo backgrounds
   Each section sits on one of the photos, tinted so text stays readable.
   ========================================================== */
:root {
  --light: #FFF8EE;                     /* text on photos */
  --shade: 15, 23, 31;                  /* dusk navy as RGB, for tints */
  --bleed: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
}

.photo-bg {
  background-color: var(--ink);
  background-size: cover;
  background-position: center;
}

/* Hero: lighthouse in silhouette against the shoreline sunset */
.hero {
  max-width: none;
  padding-inline: var(--bleed);
  color: var(--light);
  background-image:
    linear-gradient(180deg, rgba(var(--shade), .15) 0%, rgba(var(--shade), .55) 55%, rgba(var(--shade), .88) 100%),
    url("images/IMG_5680.jpg");
  background-position: center, 50% 60%;
}
@media (min-width: 900px) {
  .hero {
    background-image:
      linear-gradient(90deg, rgba(var(--shade), .86) 0%, rgba(var(--shade), .6) 45%, rgba(var(--shade), .08) 100%),
      url("images/IMG_5680.jpg");
  }
}
.hero .eyebrow,
.hero h1 .subtitle { color: var(--beam); }
.hero .lede,
.hero-when span { color: color-mix(in srgb, var(--light) 86%, transparent); }
.hero .btn--ghost { color: var(--light); box-shadow: inset 0 0 0 1.5px var(--light); }
.hero .btn--ghost:hover { background: rgba(255, 248, 238, .12); }
.hero :focus-visible { outline-color: var(--beam); }
.lighthouse .sea,
.lighthouse .wave { display: none; }

/* Details: warm sand wash over the copper water */
.details {
  max-width: none;
  padding-inline: var(--bleed);
  background-image:
    linear-gradient(rgba(246, 238, 227, .86), rgba(246, 238, 227, .86)),
    url("images/IMG_5692.jpg");
}
.detail {
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

/* Feature band: a little shorter so it reads as a pause, not a photo stop */
.feature img { height: clamp(280px, 60vh, 640px); }

/* About: the heron at dusk under a navy tint */
.about {
  background-image:
    linear-gradient(rgba(var(--shade), .8), rgba(var(--shade), .8)),
    url("images/IMG_5905.jpg");
}

/* Closing: the ember sky */
.closing {
  color: var(--light);
  background-image:
    linear-gradient(rgba(var(--shade), .72), rgba(var(--shade), .72)),
    url("images/IMG_5694.jpg");
  background-position: center, 50% 40%;
}
.closing p { color: color-mix(in srgb, var(--light) 86%, transparent); }
.closing .btn--ghost { color: var(--light); box-shadow: inset 0 0 0 1.5px var(--light); }
.closing .btn--ghost:hover { background: rgba(255, 248, 238, .12); }
.closing :focus-visible { outline-color: var(--beam); }

/* Instagram link in the header */
.site-header nav a.nav-icon { justify-content: center; min-width: 44px; padding: 0 10px; }
.nav-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
