:root {
  --ink: #202630;
  --night: #1d2935;
  --paper: #f7f4ec;
  --cream: #fffdf7;
  --muted: #686b68;
  --line: #d7d3c8;
  --coral: #eb896d;
  --yellow: #ecdc65;
  --blue: #a9d3da;
  --forest: #30554b;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Manrope", sans-serif;
}

a { color: inherit; text-decoration: none; }

.listing-header,
.listing-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem clamp(1.35rem, 4.5vw, 5rem);
}

.listing-header {
  border-bottom: 1px solid var(--line);
}

.listing-header > p,
.eyebrow,
.section-number,
.card-kicker,
.draft-chip,
.quick-facts dt,
.residence-grid > article > p,
.amenity-list span {
  margin: 0;
  font-family: "DM Mono", monospace;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
}

.listing-header > p { color: var(--muted); }

.wordmark {
  display: inline-grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-weight: 800;
  letter-spacing: -0.1em;
  transition: transform 180ms ease, background 180ms ease;
}

.wordmark span { color: var(--yellow); }
.wordmark:hover { background: var(--forest); transform: rotate(-7deg); }

.back-link,
.text-link {
  border-bottom: 1px solid currentColor;
  font-size: 0.78rem;
  font-weight: 700;
  padding-bottom: 0.2rem;
  transition: color 160ms ease;
}

.back-link span,
.text-link span { color: var(--coral); font-size: 1.15em; }
.back-link:hover,
.text-link:hover { color: var(--forest); }

.listing-hero {
  display: grid;
  min-height: min(49rem, calc(100vh - 5.5rem));
  grid-template-columns: minmax(0, 1fr) minmax(23rem, 1fr);
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  display: flex;
  min-height: 100%;
  padding: clamp(3rem, 7vw, 7.5rem) clamp(1.5rem, 7vw, 8rem) clamp(2.75rem, 5vw, 5rem);
  flex-direction: column;
  justify-content: space-between;
  gap: 3.5rem;
}

.eyebrow,
.section-number { color: var(--muted); }

.draft-chip {
  display: inline-block;
  margin-top: 0.7rem;
  border: 1px solid #bbb7aa;
  border-radius: 100vmax;
  color: var(--forest);
  padding: 0.42rem 0.6rem;
}

h1,
h2,
h3,
p { margin-top: 0; }

h1,
h2,
h3 { letter-spacing: -0.06em; }

h1 {
  max-width: 7ch;
  margin-bottom: 1.7rem;
  font-size: clamp(4.75rem, 10vw, 9.25rem);
  font-weight: 700;
  line-height: 0.82;
}

em {
  font-family: "Playfair Display", serif;
  font-weight: 600;
}

.lead {
  max-width: 31rem;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.45vw, 1.15rem);
  line-height: 1.75;
}

.hero-actions,
.next-step-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  border: 1px solid var(--ink);
  border-radius: 100vmax;
  padding: 0.86rem 1.1rem;
  font-size: 0.76rem;
  font-weight: 800;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.button:hover { transform: translateY(-2px); }

.button-primary { background: var(--ink); color: var(--paper); }
.button-primary:hover { background: var(--forest); border-color: var(--forest); }
.button-secondary { color: var(--ink); }
.button-secondary:hover { background: var(--yellow); }
.button-light { border-color: var(--paper); background: var(--paper); color: var(--ink); }
.button-light:hover { background: var(--yellow); border-color: var(--yellow); }

.quick-facts {
  display: grid;
  margin: clamp(2.5rem, 5vw, 5rem) 0 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.quick-facts > div { min-width: 0; padding: 1rem 0.9rem 0 0; }
.quick-facts > div + div { border-left: 1px solid var(--line); padding-left: 0.9rem; }
.quick-facts dt { color: var(--muted); }
.quick-facts dd { margin: 0.55rem 0 0; font-size: 0.76rem; font-weight: 700; line-height: 1.45; }

.hero-media {
  position: relative;
  min-height: 32rem;
  margin: 0;
  overflow: hidden;
  background: var(--night);
}

.hero-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 50%, rgba(8, 14, 19, 0.58));
  pointer-events: none;
}

.hero-media img,
.gallery-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media img { object-position: 60% center; }

.hero-media figcaption,
.gallery-card figcaption {
  position: absolute;
  right: 1.2rem;
  bottom: 1.1rem;
  left: 1.2rem;
  z-index: 1;
  color: var(--cream);
  font-family: "DM Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.065em;
  line-height: 1.45;
}

.draft-note {
  display: grid;
  margin: clamp(2.25rem, 5vw, 5rem) clamp(1.5rem, 8vw, 8rem) 0;
  grid-template-columns: minmax(8rem, 0.7fr) minmax(0, 2.8fr);
  gap: 2rem;
  border: 1px solid #e4bd62;
  background: #fff8dc;
  padding: 1.25rem 1.35rem;
}

.draft-note p:last-child { max-width: 59rem; margin: 0; font-size: 0.84rem; line-height: 1.68; }

.community,
.image-story,
.amenities,
.residences,
.tour-section {
  padding: clamp(4.5rem, 9vw, 8.5rem) clamp(1.5rem, 8vw, 8rem);
}

.community {
  display: grid;
  grid-template-columns: minmax(8rem, 0.55fr) minmax(0, 1.85fr) minmax(13rem, 0.85fr);
  gap: clamp(1.5rem, 4vw, 4rem);
}

h2 {
  max-width: 13ch;
  margin-bottom: 2rem;
  font-size: clamp(2.6rem, 5vw, 5.8rem);
  line-height: 0.94;
}

.community-copy > p {
  max-width: 38rem;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.8;
}

.community-copy > p:last-child { margin-bottom: 0; }

.fit-card {
  align-self: end;
  background: var(--blue);
  padding: 1.4rem;
}

.card-kicker { color: #375d67; }
.fit-card h3 { margin: 3.7rem 0 0.85rem; font-size: 1.45rem; line-height: 1.05; }
.fit-card p:last-child { margin-bottom: 0; font-size: 0.82rem; line-height: 1.65; }

.image-story { border-top: 1px solid var(--line); }

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: flex-start;
}

.section-heading h2 { max-width: 10ch; }

.image-grid {
  display: grid;
  margin-top: clamp(2.2rem, 4vw, 4rem);
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
}

.gallery-card {
  position: relative;
  min-height: 24rem;
  margin: 0;
  overflow: hidden;
  background: var(--night);
}

.gallery-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 52%, rgba(8, 14, 19, 0.65));
  pointer-events: none;
}

.gallery-card-interior img { object-position: center; }
.gallery-card-amenity img { object-position: 55% center; }

.amenities {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(2.5rem, 8vw, 9rem);
  background: var(--night);
  color: var(--paper);
}

.amenities .section-number { color: #b5bcb8; }
.amenities-intro h2 { max-width: 11ch; margin-top: 3rem; }
.amenities-intro > p:last-child { max-width: 34rem; margin-bottom: 0; color: #d1d5d0; font-size: 0.9rem; line-height: 1.75; }

.amenity-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid #59646b;
}

.amenity-list li {
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr);
  gap: 0.8rem;
  border-bottom: 1px solid #59646b;
  padding: 1.15rem 0;
  font-size: clamp(1rem, 1.5vw, 1.28rem);
  font-weight: 600;
  line-height: 1.3;
}

.amenity-list span { color: var(--yellow); padding-top: 0.23rem; }

.residences { border-bottom: 1px solid var(--line); }

.residence-grid {
  display: grid;
  margin-top: clamp(2.2rem, 5vw, 5rem);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.residence-grid > article { min-height: 14rem; padding: 1.25rem; }
.residence-grid > article + article { border-left: 1px solid var(--line); }
.residence-grid > article > p { color: var(--coral); }
.residence-grid h3 { max-width: 10ch; margin: 3.5rem 0 0.7rem; font-size: clamp(1.25rem, 2vw, 1.8rem); line-height: 1.05; }
.residence-grid span { color: var(--muted); font-size: 0.82rem; line-height: 1.55; }

.availability-note {
  max-width: 42rem;
  margin: 1.4rem 0 0 auto;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.65;
}

.tour-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 8vw, 8rem);
  background: #dfece7;
}

.tour-section h2 { margin: 3rem 0 0; }

.tour-list {
  display: grid;
  margin: 0;
  padding: 0;
  counter-reset: item;
  list-style: none;
}

.tour-list li {
  display: grid;
  grid-template-columns: 2.7rem minmax(0, 1fr);
  gap: 0.75rem;
  border-top: 1px solid #94ada2;
  padding: 1.05rem 0;
  font-size: 0.97rem;
  font-weight: 600;
  line-height: 1.45;
}

.tour-list li:last-child { border-bottom: 1px solid #94ada2; }
.tour-list li::before { content: "0" counter(item); counter-increment: item; color: var(--forest); font-family: "DM Mono", monospace; font-size: 0.67rem; letter-spacing: 0.08em; padding-top: 0.25rem; }

.next-step {
  display: flex;
  min-height: 31rem;
  padding: clamp(4.5rem, 9vw, 8rem) clamp(1.5rem, 8vw, 8rem);
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  background: var(--coral);
}

.next-step .eyebrow { color: #74443a; }
.next-step h2 { max-width: 13ch; margin: 2.7rem 0; font-size: clamp(3rem, 6.5vw, 7.5rem); }

.listing-footer {
  color: var(--muted);
  font-family: "DM Mono", monospace;
  font-size: 0.63rem;
  letter-spacing: 0.035em;
}

.listing-footer p { margin: 0; }
.listing-footer a { border-bottom: 1px solid var(--line); color: var(--ink); }

a:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 4px;
}

@media (max-width: 900px) {
  .listing-hero { grid-template-columns: 1fr; }
  .hero-copy { min-height: 40rem; }
  .hero-media { min-height: min(72vw, 37rem); }
  .community { grid-template-columns: minmax(8rem, 0.5fr) minmax(0, 1.5fr); }
  .fit-card { grid-column: 2; max-width: 23rem; }
  .amenities { grid-template-columns: 1fr; }
  .amenity-list { max-width: 47rem; }
}

@media (max-width: 650px) {
  .listing-header { padding-block: 1rem; }
  .listing-header > p { display: none; }
  .hero-copy { min-height: 0; padding-top: 3rem; gap: 2.6rem; }
  h1 { font-size: clamp(4.4rem, 21vw, 6.8rem); }
  .quick-facts { grid-template-columns: 1fr; }
  .quick-facts > div + div { border-top: 1px solid var(--line); border-left: 0; padding-left: 0; }
  .quick-facts > div { padding: 0.85rem 0; }
  .hero-media { min-height: 27rem; }
  .draft-note,
  .community,
  .tour-section { grid-template-columns: 1fr; }
  .draft-note { gap: 0.85rem; }
  .fit-card { grid-column: auto; max-width: none; }
  .section-heading { display: block; }
  .section-heading h2 { margin-top: 2.5rem; }
  .image-grid,
  .residence-grid { grid-template-columns: 1fr; }
  .gallery-card { min-height: 19rem; }
  .gallery-card-amenity { min-height: 17rem; }
  .residence-grid > article + article { border-top: 1px solid var(--line); border-left: 0; }
  .residence-grid > article { min-height: 0; }
  .residence-grid h3 { margin-top: 2.5rem; }
  .availability-note { margin-left: 0; }
  .listing-footer { align-items: flex-start; flex-direction: column; }
}

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