:root {
  --sand: #f3eee4;
  --sand-deep: #e7dccb;
  --ivory: #fbf8f2;
  --paper: #fffdf8;
  --foam: #e3eef0;
  --sea: #2c6a70;
  --sea-hover: #21555a;
  --gulf: #17343a;
  --ink: #1c2e33;
  --muted: #5a6b70;
  --gold: #b0894d;
  --line: rgba(23, 52, 58, 0.12);
  --shadow: 0 16px 36px rgba(23, 52, 58, 0.12);
  --font-serif: "Fraunces", "Iowan Old Style", Palatino, "Palatino Linotype", serif;
  --font-sans: "Source Sans 3", "Source Sans Pro", "Segoe UI", sans-serif;
  --wrap: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--gulf);
  margin: 0 0 1rem;
}

h1 {
  font-size: clamp(2rem, 4.4vw, 3.05rem);
  font-variation-settings: "opsz" 80;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  font-variation-settings: "opsz" 48;
}

p {
  margin: 0 0 1rem;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--sea);
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--gulf);
  color: var(--ivory);
  padding: 0.5rem 0.9rem;
  z-index: 30;
}

.skip:focus {
  top: 1rem;
}

.wrap {
  width: min(100% - 2rem, var(--wrap));
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 0.7rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--sea);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--sea);
  color: var(--ivory);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  padding: 0.9rem 1.45rem;
  border-radius: 4px;
  text-decoration: none;
  min-height: 44px;
}

.btn:hover,
.btn:focus-visible {
  background: var(--sea-hover);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(243, 238, 228, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.wordmark {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--gulf);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.btn-header {
  padding: 0.7rem 1.1rem;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.hero {
  padding: 2.5rem 0 3.25rem;
  background:
    linear-gradient(180deg, rgba(227, 238, 240, 0.55) 0%, rgba(243, 238, 228, 0.2) 42%, var(--sand) 100%);
}

.hero-in {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.lead {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 36rem;
  margin-bottom: 1rem;
}

.price {
  margin: 0 0 1.4rem;
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 3vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--gulf);
}

.price-label {
  display: block;
  margin-bottom: 0.15rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero .price,
#lot .price {
  display: block;
  width: fit-content;
  background: var(--paper);
  border-left: 3px solid var(--gold);
  padding: 0.55rem 1rem 0.65rem;
  box-shadow: 0 8px 20px rgba(23, 52, 58, 0.06);
}

.hero-photo {
  margin: 0;
  background: var(--paper);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-photo img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
}

.block {
  padding: 3.25rem 0;
}

.block-ivory { background: var(--ivory); }
.block-foam { background: var(--foam); }
.block-sand { background: var(--sand); }

.prose {
  max-width: 40rem;
}

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

.gallery-intro {
  margin-bottom: 2rem;
}

.gallery-beaches {
  margin-top: 3rem;
}

.gallery-amenities {
  margin-top: 2.25rem;
  gap: 0.9rem;
}

.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem 1.15rem;
}

.gallery figure {
  margin: 0;
}

.gallery picture,
.gallery img {
  width: 100%;
  background: var(--sand-deep);
  border-radius: 10px;
}

.gallery img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
}

.gallery .portrait img {
  aspect-ratio: 3 / 4;
  object-position: center top;
  max-height: 32rem;
  margin-inline: auto;
}

.gallery figcaption {
  margin-top: 0.6rem;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--muted);
}

.contact {
  background: var(--gulf);
  color: var(--ivory);
  padding: 4rem 0;
}

.contact .eyebrow {
  color: #d4c09a;
}

.contact h2 {
  color: var(--ivory);
}

.contact p {
  color: #dce7e8;
}

.site-footer {
  background: #12282c;
  color: #c5d3d6;
  padding: 1.35rem 0 1.6rem;
  font-size: 0.95rem;
}

.footer-credit {
  margin: 0;
  font-size: 12px;
  color: #8aa0a4;
  opacity: 0.65;
}

@media (min-width: 640px) {
  .wrap {
    width: min(100% - 3rem, var(--wrap));
  }

  .gallery {
    grid-template-columns: 1fr 1fr;
  }

  .gallery .portrait {
    max-width: 22rem;
  }
}

@media (min-width: 640px) {
  .gallery-beaches {
    grid-template-columns: 0.85fr 1.15fr;
    grid-template-areas:
      "walk path"
      "walk open"
      "shore shore";
    align-items: stretch;
  }

  .gallery-beaches figure:nth-child(1) {
    grid-area: walk;
    max-width: none;
    display: flex;
    flex-direction: column;
  }

  .gallery-beaches figure:nth-child(1) picture {
    flex: 1;
    display: block;
    height: 100%;
  }

  .gallery-beaches figure:nth-child(1) img {
    width: 100%;
    height: 100%;
    max-height: none;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: center;
  }

  .gallery-beaches figure:nth-child(2) { grid-area: path; }
  .gallery-beaches figure:nth-child(3) { grid-area: open; }
  .gallery-beaches figure:nth-child(4) { grid-area: shore; }

  .gallery-amenities {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-amenities figure:nth-child(3) {
    grid-column: 1 / -1;
  }
}

@media (min-width: 960px) {
  .hero {
    padding: 4rem 0 5rem;
  }

  .hero-in {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 3.5rem;
  }

  .block {
    padding: 4.25rem 0;
  }

  .gallery {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .gallery-beaches {
    grid-template-columns: 0.85fr 1.15fr;
  }

  .gallery-amenities {
    grid-template-columns: repeat(6, 1fr);
  }

  .gallery-amenities figure:nth-child(1),
  .gallery-amenities figure:nth-child(2) {
    grid-column: span 3;
  }

  .gallery-amenities figure:nth-child(3) {
    grid-column: 1 / -1;
  }

  .gallery-amenities figure:nth-child(n+4) {
    grid-column: span 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
