:root {
  --color-bg: #faf7f2;
  --color-cream: #f5f3ee;
  --color-warm: #e9e4d8;
  --color-text: #3a3630;
  --color-muted: #6b6455;
  --font-serif: 'Fraunces', Georgia, serif;
  --font-sans: 'Inter', -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

h1, h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Hero: natural image height on mobile, full-bleed cropped on desktop (see @media below) */
.hero {
  position: relative;
}

.hero-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.55) 100%);
}

.hero-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  color: #fff;
  padding: 40px 24px 56px;
}

.hero-content h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  margin: 0;
}

.hero-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 16px;
  font-size: 1.1rem;
  letter-spacing: 1px;
  opacity: 0.9;
  margin: 8px 0 0;
}

.hero-link {
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: 0.85;
}

.hero-link:hover {
  opacity: 1;
}

/* Gallery: plain vertical scroll, deliberately no scroll-snap */
.gallery {
  display: flex;
  flex-direction: column;
}

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

/* Sections */
section:not(.hero):not(.gallery), .sidebar {
  max-width: 720px;
  margin: 0 auto;
  padding: 80px 24px;
}

.sidebar-description {
  margin-top: 32px;
}

.sidebar-location {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--color-warm);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 32px;
}

.facts-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 32px;
  margin: 0;
}

.facts-list div {
  border-bottom: 1px solid var(--color-warm);
  padding-bottom: 12px;
}

/* Assumes the default 2-column grid; the single-column mobile breakpoint
   below overrides this to only strip the true last item. */
.facts-list div:nth-last-child(-n+2) {
  border-bottom: none;
  padding-bottom: 0;
}

.facts-list dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-muted);
  margin-bottom: 4px;
}

.facts-list dd {
  margin: 0;
  font-size: 1.1rem;
}

.sidebar-description p, .sidebar-location p {
  font-size: 1.05rem;
}

.swap-note {
  margin-top: 24px;
  padding: 16px 20px;
  background: var(--color-cream);
  border: 1px solid var(--color-warm);
  border-radius: 6px;
  font-size: 1rem;
}

/* Contact links */
.contact-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.contact-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 14px 20px;
  background: var(--color-cream);
  border: 1px solid var(--color-warm);
  border-radius: 6px;
  color: var(--color-text);
  text-decoration: none;
  font-size: 1.05rem;
  text-align: center;
}

.contact-link:hover {
  background: var(--color-warm);
}

@media (max-width: 600px) {
  .hero-content h1 {
    line-height: 1.2;
  }
  section:not(.hero):not(.gallery), .sidebar {
    padding: 56px 20px;
  }
  .facts-list {
    grid-template-columns: 1fr;
  }
  .facts-list div:nth-last-child(-n+2) {
    border-bottom: 1px solid var(--color-warm);
    padding-bottom: 12px;
  }
  .facts-list div:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
}

/* Showcase: gallery + sidebar */
.showcase .sidebar-inner {
  max-width: 720px;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .hero {
    height: 100vh;
    height: 100svh;
  }

  .hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* Sidebar is always visible on desktop, so the "jump to info" link is
     mobile-only — there's nothing for it to scroll to that isn't already
     on screen. */
  .hero-link {
    display: none;
  }

  .showcase {
    display: flex;
    align-items: flex-start;
  }

  .showcase .showcase-main {
    flex: 1;
    min-width: 0;
  }

  .showcase .sidebar {
    width: 550px;
    flex-shrink: 0;
    max-width: none;
    background: #f8f8f6;
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100svh;
    overflow-y: auto;
    padding: 32px 24px;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.06);
  }

  .showcase .sidebar-inner {
    max-width: none;
    margin: 0;
  }

  /* Compact spacing: the sidebar is a fixed-height box, so its content needs
     to fit typical laptop viewport heights (~650-900px) without its own
     scrollbar in the common case. */
  .showcase .sidebar h2 {
    font-size: 1.25rem;
    margin: 0 0 16px;
  }

  .showcase .sidebar .facts-list {
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px;
  }

  .showcase .sidebar .facts-list div {
    padding-bottom: 8px;
  }

  .showcase .sidebar .facts-list dt {
    font-size: 0.7rem;
    margin-bottom: 2px;
  }

  .showcase .sidebar .facts-list dd {
    font-size: 1rem;
  }

  .showcase .sidebar-description {
    margin-top: 24px;
  }

  .showcase .sidebar-location {
    margin-top: 24px;
    padding-top: 20px;
  }

  .showcase .sidebar-description p,
  .showcase .sidebar-location p {
    font-size: 0.95rem;
  }

  .showcase .sidebar-contact {
    margin-top: 24px;
  }

  .showcase .sidebar-contact p {
    font-size: 0.95rem;
  }

  .showcase .contact-links {
    gap: 8px;
    margin-top: 16px;
  }

  .showcase .contact-link {
    padding: 10px 16px;
    font-size: 0.95rem;
  }
}
