/* ---------- Tokens ----------
   Editorial Old-California — shared backbone with Los Chamizal.
   Bone / oatmeal / espresso ink. No red, no yellow.
   Type: Newsreader (display) · EB Garamond (text) · Inter (labels)
*/
:root {
  --ivory:     #FAF6EE;   /* lightest — cards / light text on dark */
  --cream:     #E8E0D1;   /* oatmeal — alternating panels */
  --bone:      #F2ECE0;   /* warm bone — page background + light text */
  --ink:       #2A231B;   /* espresso ink — body + headings */
  --ink-soft:  #71685B;   /* muted taupe — secondary text */
  --stone:     #71685B;   /* muted taupe — labels / eyebrows */
  --wine:      #2A231B;   /* espresso — primary buttons */
  --wine-deep: #1C1712;   /* deep espresso — dark blocks / footer */
  --wine-bright: #3D3328; /* button hover lift */
  --olive:     #7A7163;
  --gold:      #7A7163;   /* accent → muted taupe (no yellow) */
  --line:      #D8CFBE;   /* hairline (tan) */

  --serif: "Newsreader", "EB Garamond", Georgia, serif;   /* display */
  --text:  "EB Garamond", Georgia, "Times New Roman", serif; /* body copy */
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; /* labels */

  --container: 1240px;
  --container-narrow: 880px;
  --radius: 2px;
  --transition: 0.3s ease;
}

/* ---------- Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--text);
  font-weight: 400;
  font-size: 19px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: opacity var(--transition); }
a:hover { opacity: 0.7; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.narrow { max-width: var(--container-narrow); margin-left: auto; margin-right: auto; }
.center { text-align: center; }

/* ---------- Typography ---------- */
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.05; font-weight: 500; }
h2 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15; margin-bottom: 0.6em; }
h3 { font-size: 1.35rem; line-height: 1.3; }
p { margin: 0 0 1em; color: var(--ink-soft); }
.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--stone);
  margin: 0 0 1.5rem;
}
.eyebrow.center { display: block; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  background: rgba(247, 243, 236, 0);
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}
.site-header.scrolled {
  background: rgba(247, 243, 236, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 12px 0;
  box-shadow: 0 1px 0 var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand {
  display: flex;
  flex-direction: column;
  line-height: 1;
  color: var(--bone);
  transition: color var(--transition);
}
.site-header.scrolled .brand { color: var(--ink); }
.brand-mark {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.brand-sub {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  margin-top: 4px;
  opacity: 0.85;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-nav a {
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone);
  transition: color var(--transition);
}
.site-header.scrolled .site-nav a { color: var(--ink); }
.nav-cta {
  border: 1px solid currentColor;
  padding: 8px 18px;
  border-radius: var(--radius);
}
.nav-toggle { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 15px 34px;
  border-radius: 0;
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--wine);
  color: var(--bone);
  border-color: var(--wine);
}
.btn-primary:hover { background: var(--wine-bright); border-color: var(--wine-bright); opacity: 1; transform: translateY(-2px); }
.btn-secondary {
  background: var(--ink);
  color: var(--bone);
  border-color: var(--ink);
}
.btn-secondary:hover { background: #000; opacity: 1; }
.btn-ghost {
  background: transparent;
  color: var(--bone);
  border-color: rgba(250, 247, 241, 0.7);
}
.btn-ghost:hover { background: rgba(250, 247, 241, 0.1); opacity: 1; }
.btn-large { padding: 18px 44px; font-size: 0.95rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  color: var(--bone);
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.25) 40%, rgba(0,0,0,0.55) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 880px;
}
.hero-content .eyebrow { color: rgba(250, 247, 241, 0.8); }
.hero-content h1 { color: var(--bone); margin-bottom: 24px; }
.hero-sub {
  font-size: 1.15rem;
  color: rgba(250, 247, 241, 0.92);
  max-width: 620px;
  margin-bottom: 40px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Sections ---------- */
.section { padding: 120px 0; }
.section-story { background: var(--bone); }
.section-house { background: var(--cream); }
.section-amenities { background: var(--bone); }
.section-gallery { background: var(--cream); }
.section-location { background: var(--bone); }
.section-book { background: var(--wine-deep); color: var(--bone); }
.section-book h2, .section-book .eyebrow { color: var(--bone); }
.section-book .eyebrow { color: rgba(250, 247, 241, 0.65); }
.section-book p { color: rgba(250, 247, 241, 0.78); }
.section-contact { background: var(--bone); padding: 100px 0; }

/* Story */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  margin-top: 48px;
}

/* House */
.house-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 72px;
  align-items: center;
}
.house-image img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  border-radius: var(--radius);
}
.spec-list {
  list-style: none;
  padding: 0;
  margin: 32px 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
}
.spec-list li {
  font-family: var(--sans);
  text-align: center;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--stone);
}
.spec-list strong {
  display: block;
  font-family: var(--serif);
  font-size: 2.1rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 4px;
  letter-spacing: 0;
  text-transform: none;
}

/* Amenities */
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 32px;
  margin-top: 64px;
}
.amenity {
  padding: 8px 0;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.amenity h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.amenity p {
  font-size: 0.95rem;
  margin: 0;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 56px;
}
.gallery-item {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  cursor: pointer;
  background: var(--line);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.gallery-item:hover img { transform: scale(1.05); }

/* Location */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 72px;
  align-items: center;
}
.location-image img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  border-radius: var(--radius);
}
.location-list {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
}
.location-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}
.location-list li:last-child { border-bottom: 1px solid var(--line); }
.location-list strong {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--ink);
}
.location-list span { font-family: var(--sans); color: var(--stone); font-size: 0.82rem; letter-spacing: 0.01em; }

/* Book */
.book-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 40px 0 24px;
}
.book-note { font-size: 0.92rem; }
.book-note a { color: var(--gold); border-bottom: 1px solid var(--gold); }

/* Contact */
.contact-email {
  font-family: var(--serif);
  font-size: 1.5rem;
  margin-top: 24px;
}
.contact-email a { color: var(--wine); border-bottom: 1px solid currentColor; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--wine-deep);
  color: var(--bone);
  padding: 60px 0 40px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
  align-items: center;
}
.footer-brand {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--bone);
  margin: 0 0 6px;
}
.footer-addr {
  font-family: var(--sans);
  font-size: 0.82rem;
  color: rgba(250, 247, 241, 0.6);
  margin: 0;
}
.footer-sister {
  font-family: var(--text);
  font-style: italic;
  font-size: 0.95rem;
  color: rgba(250, 247, 241, 0.72);
  margin: 10px 0 0;
}
.footer-sister a { color: var(--bone); border-bottom: 1px solid rgba(250,247,241,0.4); }
.footer-sister a:hover { opacity: 1; border-bottom-color: var(--bone); }
.footer-links {
  display: flex;
  gap: 24px;
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(250, 247, 241, 0.85);
}
.footer-copy {
  text-align: right;
  font-size: 0.8rem;
  color: rgba(250, 247, 241, 0.5);
  margin: 0;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 13, 10, 0.95);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox-img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  color: var(--bone);
  font-size: 2rem;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity var(--transition);
}
.lightbox-close { top: 24px; right: 24px; font-size: 2.6rem; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { opacity: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .story-grid,
  .house-grid,
  .location-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .house-image img,
  .location-image img { height: 420px; }
  .amenities-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .spec-list { grid-template-columns: repeat(2, 1fr); }
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-links { justify-content: center; }
  .footer-copy { text-align: center; }
}

@media (max-width: 640px) {
  .container { padding: 0 22px; }
  .section { padding: 80px 0; }
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    z-index: 110;
  }
  .nav-toggle span {
    display: block;
    height: 2px;
    background: var(--bone);
    transition: background var(--transition), transform var(--transition), opacity var(--transition);
  }
  .site-header.scrolled .nav-toggle span,
  .site-header.menu-open .nav-toggle span { background: var(--ink); }
  .site-header.menu-open .nav-toggle span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
  .site-header.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-header.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
  .site-nav {
    position: fixed;
    inset: 0;
    background: var(--bone);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    transform: translateX(100%);
    transition: transform var(--transition);
  }
  .site-header.menu-open .site-nav { transform: translateX(0); }
  .site-nav a { font-size: 1.2rem; color: var(--ink) !important; font-family: var(--serif); }
  .nav-cta { padding: 12px 28px; }
  .hero-content h1 { font-size: 2.8rem; }
  .hero-sub { font-size: 1rem; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .amenities-grid { grid-template-columns: 1fr; }
  .spec-list { grid-template-columns: repeat(2, 1fr); }
  .book-ctas .btn-large { width: 100%; padding: 16px 24px; }
}
