:root {
  --ink: #17140f;
  --ink-muted: #5c5648;
  --paper: #fbf9f5;
  --paper-dim: #f1ebdc;
  --bronze: #8d7350;
  --bronze-soft: #c3a877;
  --line: rgba(23, 20, 15, 0.14);
  --font-display: "Newsreader", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  color: var(--ink);
}

h1 {
  text-wrap: balance;
  font-size: clamp(2.3rem, 4.6vw, 3.6rem);
}

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

h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

p {
  margin: 0 0 16px;
  color: var(--ink-muted);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bronze);
  font-weight: 600;
  margin: 0 0 14px;
}

/* Buttons and links */
.btn {
  display: inline-block;
  padding: 15px 30px;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary,
.btn-dark {
  background: var(--ink);
  color: var(--paper);
}

.btn-primary:hover,
.btn-dark:hover {
  background: var(--bronze);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.link-arrow:hover {
  color: var(--bronze);
}

.cta-row {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: 3px double var(--ink);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink);
}

#site-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

#site-nav a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  transition: color 0.2s ease;
}

#site-nav a:hover {
  color: var(--ink);
}

.nav-highlight {
  color: var(--bronze) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 1px;
  background: var(--ink);
}

/* Hero */
.hero {
  position: relative;
  background: var(--paper);
  overflow: hidden;
}

.hero-skyline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(140px, 14.29vw, 260px);
  width: 100%;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1;
  opacity: 0.22;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  padding: 176px 24px clamp(210px, calc(14.29vw + 80px), 340px);
  max-width: 720px;
}

.hero .eyebrow {
  position: relative;
  padding-top: 22px;
}

.hero .eyebrow::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 1px;
  background: var(--bronze);
}

.hero .lead {
  font-size: 1.05rem;
  color: var(--ink-muted);
  max-width: 520px;
}

/* Intro strip */
.intro-strip {
  background: var(--paper-dim);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 44px 0;
}

.intro-strip p {
  margin: 0 auto;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--ink);
  text-align: center;
  max-width: 700px;
}

/* Residence / listing */
.residence {
  padding: 112px 0;
}

.residence h2 {
  max-width: 640px;
}

.listing {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 64px;
  margin-top: 52px;
  align-items: start;
}

.gallery-hero {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--paper-dim);
  cursor: pointer;
  overflow: hidden;
}

.gallery-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-count {
  position: absolute;
  right: 16px;
  bottom: 16px;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 9px 16px;
  border: 1px solid var(--line);
  transition: background 0.2s ease, color 0.2s ease;
}

.gallery-hero:hover .gallery-count {
  background: var(--ink);
  color: var(--paper);
}

.gallery-thumbs {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.gallery-thumbs button {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  background: none;
  cursor: pointer;
  text-align: left;
}

.gallery-thumbs img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.gallery-thumbs span {
  display: block;
  padding: 8px 4px 10px;
  font-size: 0.78rem;
  color: var(--ink-muted);
  transition: color 0.2s ease;
}

.gallery-thumbs button:hover span {
  color: var(--bronze);
}

.listing-location {
  color: var(--bronze);
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 22px;
}

.listing-specs {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 24px;
  margin: 0 0 24px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.listing-specs dt {
  font-size: 0.7rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 4px;
}

.listing-specs dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.listing-copy {
  margin-bottom: 26px;
}

/* Amenities */
.amenities {
  background: var(--paper-dim);
  padding: 112px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.amenities-list {
  list-style: none;
  padding: 0;
  margin: 52px 0 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 56px;
}

.amenities-list li {
  display: flex;
  gap: 22px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.amenity-index {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--bronze);
  min-width: 2.2rem;
}

.amenities-list h3 {
  font-size: 1.02rem;
  margin-bottom: 6px;
}

.amenities-list p {
  margin: 0;
  font-size: 0.92rem;
}

/* Privacy */
.privacy {
  padding: 100px 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.privacy-inner {
  max-width: 620px;
  text-align: center;
  margin: 0 auto;
}

.privacy-inner .eyebrow {
  display: block;
  text-align: center;
}

/* Inquire */
.inquire {
  padding: 112px 0;
}

.inquire-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
}

.inquire-intro p a {
  color: var(--bronze);
  font-weight: 500;
  border-bottom: 1px solid currentColor;
}

.inquiry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 22px;
}

.inquiry-grid .span-2 {
  grid-column: 1 / -1;
}

.inquiry-grid label {
  display: block;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 6px;
}

.inquiry-grid input,
.inquiry-grid textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
}

.inquiry-grid input:focus,
.inquiry-grid textarea:focus {
  outline: none;
  border-color: var(--bronze);
}

.inquiry-status {
  display: none;
  margin: 16px 0 0;
  padding: 12px 14px;
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Footer */
.site-footer {
  background: var(--paper);
  color: var(--ink-muted);
  border-top: 1px solid var(--line);
  padding: 28px 0;
  font-size: 0.82rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(23, 20, 15, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-figure {
  margin: 0;
  max-width: 1100px;
  width: 100%;
  min-width: 0;
  text-align: center;
}

.lightbox-image {
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  height: auto;
  margin: 0 auto;
  border: 1px solid rgba(246, 241, 230, 0.2);
}

.lightbox-caption {
  margin: 16px 0 0;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--paper);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  background: none;
  border: none;
  color: var(--paper);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-nav {
  background: none;
  border: none;
  color: var(--paper);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 12px;
  flex: 0 0 auto;
}

.lightbox-prev {
  margin-right: 12px;
}

.lightbox-next {
  margin-left: 12px;
}

/* Responsive */
@media (max-width: 900px) {
  .listing,
  .inquire-inner {
    grid-template-columns: 1fr;
  }

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

  .listing-specs {
    grid-template-columns: repeat(2, auto);
  }

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

@media (max-width: 720px) {
  #site-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 20px;
    border-bottom: 1px solid var(--line);
    display: none;
  }

  #site-nav.open {
    display: flex;
  }

  #site-nav a {
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-toggle {
    display: flex;
  }

  .brand {
    font-size: 0.82rem;
    letter-spacing: 0.2em;
  }

  .hero-inner {
    padding: 132px 20px 96px;
  }

  .footer-inner {
    flex-direction: column;
  }

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

  .lightbox {
    padding: 16px;
  }

  .lightbox-nav {
    font-size: 1.3rem;
    padding: 8px;
  }

  .lightbox-image {
    max-height: 62vh;
  }
}
