/* ============================================================
   853 Euclid — Architectural Digest-school house tour
   Single-page, photo-forward, magazine cadence.
   ============================================================ */

:root {
  --paper:      #f6f3ee;
  --paper-2:    #ece7df;
  --ink:        #1d1c1a;
  --ink-soft:   #4a4843;
  --rule:       #c8c1b3;
  --accent:     #8a2a20;   /* the spiral-stair red, pulled way back */
  --haint:      #b8cbd0;   /* the kitchen ceiling blue */
  --sage:       #8a9a82;
  --serif:      'Cormorant Garamond', 'EB Garamond', Georgia, serif;
  --sans:       'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  background: #111;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.78);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(2rem, 6vw, 6rem);
  color: #f8f5ee;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.55) 100%);
}

.hero .kicker {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin: 0 0 0.6rem;
  opacity: 0.85;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(3.5rem, 11vw, 9rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
  margin: 0 0 1.2rem;
  font-style: italic;
}

.hero .dek {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  line-height: 1.5;
  max-width: 36em;
  margin: 0;
  opacity: 0.95;
}

/* ============================================================
   STICKY NAV
   ============================================================ */

.rooms-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: blur(8px);
}

.rooms-nav ul {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  list-style: none;
  margin: 0;
  padding: 0.7rem clamp(1rem, 4vw, 3rem);
  gap: 1.6rem;
}

.rooms-nav ul::-webkit-scrollbar { display: none; }

.rooms-nav li { flex: 0 0 auto; }

.rooms-nav a {
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
  transition: color 180ms ease, border-color 180ms ease;
  white-space: nowrap;
}

.rooms-nav a:hover { color: var(--ink); }

.rooms-nav a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ============================================================
   KICKER + HEADINGS shared
   ============================================================ */

.kicker {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
}

h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.005em;
  margin: 0 0 2rem;
  font-style: italic;
  color: var(--ink);
}

.lede {
  font-size: 1.25em;
  line-height: 1.55;
  color: var(--ink);
}

p {
  margin: 0 0 1.4em;
  color: var(--ink-soft);
}

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

em { font-style: italic; }

/* ============================================================
   HISTORY SECTION
   ============================================================ */

.history {
  padding: clamp(5rem, 12vw, 10rem) clamp(1.5rem, 5vw, 4rem);
  background: var(--paper-2);
  border-bottom: 1px solid var(--rule);
}

.history-inner {
  max-width: 38em;
  margin: 0 auto;
}

.history h2 { margin-bottom: 2.5rem; }

.history p { font-size: 1.05rem; line-height: 1.75; }

.history .lede {
  font-size: 1.35rem;
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: 2.2rem;
  font-weight: 400;
}

/* ============================================================
   ROOMS — magazine grid
   ============================================================ */

.room {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(4rem, 9vw, 8rem) clamp(1.5rem, 5vw, 4rem);
  max-width: 1400px;
  margin: 0 auto;
  border-bottom: 1px solid var(--rule);
}

@media (min-width: 900px) {
  .room {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.room-text {
  align-self: center;
  max-width: 34em;
}

.room-text h2 { margin-bottom: 1.6rem; }

.room-figure {
  margin: 0;
}

.room-figure img {
  width: 100%;
  height: auto;
  border-radius: 2px;
  box-shadow: 0 1px 1px rgba(0,0,0,0.04), 0 12px 32px rgba(0,0,0,0.12);
}

.room-figure figcaption {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 0.9rem;
  text-align: right;
}

/* Figures that should span the full row when present */
.room-figure.full {
  grid-column: 1 / -1;
}

@media (min-width: 900px) {
  .room-figure.full img {
    max-height: 80vh;
    object-fit: cover;
  }
}

/* Alternating layout: every other room flips photo/text */
.room:nth-of-type(even) > .room-text:first-child {
  order: 2;
}
.room:nth-of-type(even) > .room-figure:nth-child(2) {
  order: 1;
}

/* ============================================================
   FLOOR PLAN
   ============================================================ */

.floor-plan {
  padding: clamp(5rem, 12vw, 10rem) clamp(1.5rem, 5vw, 4rem);
  background: var(--paper-2);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  text-align: center;
}

.floor-plan-inner {
  max-width: 48em;
  margin: 0 auto;
}

.floor-plan .kicker { text-align: center; }

.floor-plan h2 { margin-bottom: 1.6rem; }

.floor-plan p {
  max-width: 32em;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 3rem;
}

.floor-plan figure {
  margin: 0;
  padding: 2.5rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 4px;
}

.floor-plan img {
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

/* ============================================================
   FOOTER
   ============================================================ */

footer {
  padding: 4rem clamp(1.5rem, 5vw, 4rem);
  text-align: center;
  background: var(--ink);
  color: var(--paper);
}

footer p {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0 0 0.6rem;
  color: var(--paper);
  opacity: 0.85;
}

footer .footer-credits {
  font-family: var(--serif);
  font-size: 0.95rem;
  font-style: italic;
  letter-spacing: 0;
  text-transform: none;
  opacity: 0.7;
}

/* ============================================================
   MOBILE — tighten
   ============================================================ */

@media (max-width: 640px) {
  body { font-size: 17px; }
  .hero { min-height: 480px; }
  .room { padding-left: 1.2rem; padding-right: 1.2rem; }
  .history { padding-left: 1.2rem; padding-right: 1.2rem; }
}
