/* Hub / "letter of the house" — warm parchment, unhurried and personal. */
.home {
  --bg: #f3ede1;
  --ink: #2c2721;
  --muted: #6d6252;
  --focus: #b07a35;
  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'Georgia', 'Times New Roman', serif;
  background:
    radial-gradient(120% 80% at 50% -10%, #fbf6ec 0%, #f3ede1 55%, #ece3d3 100%);
}

.home-hero {
  text-align: center;
  padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(1.5rem, 4vw, 3rem);
}

.home-hero .eyebrow {
  color: var(--muted);
  margin-bottom: 1.4rem;
}

.home-hero h1 {
  font-size: clamp(2.8rem, 8vw, 5.2rem);
  letter-spacing: 0.02em;
  margin: 0;
}

.home-hero .amp {
  font-style: italic;
  color: #b07a35;
  padding: 0 0.1em;
}

.home-tagline {
  font-style: italic;
  font-size: clamp(1.05rem, 2.4vw, 1.4rem);
  color: var(--muted);
  margin-top: 0.6rem;
}

/* Showcase carousel — the art-forward focal point of the home page. */
.showcase {
  padding: clamp(0.5rem, 2vw, 1.5rem) 0 clamp(1.5rem, 4vw, 2.5rem);
}

.showcase__hint {
  text-align: center;
  color: var(--muted);
  font-style: italic;
  font-size: 0.9rem;
  margin: 1.4rem 0 0;
}

.carousel {
  position: relative;
}

.carousel__viewport {
  position: relative;
  height: clamp(320px, 56vh, 580px);
  border-radius: 8px;
  overflow: hidden;
  background:
    radial-gradient(120% 120% at 50% 0%, #fffaf1 0%, #efe6d6 70%, #e6dcc8 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 30px 60px -34px rgba(60, 40, 15, 0.6);
}

.carousel__track {
  list-style: none;
  margin: 0;
  padding: 0;
  height: 100%;
}

.carousel__slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 3vw, 2.4rem);
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.9s ease, transform 0.9s ease;
  pointer-events: none;
}

.carousel__slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.carousel__frame {
  display: block;
  max-width: 100%;
  max-height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  line-height: 0;
}

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

.carousel__img {
  max-height: clamp(260px, 46vh, 500px);
  width: auto;
  max-width: 100%;
  border-radius: 3px;
  box-shadow: 0 22px 44px -20px rgba(40, 30, 15, 0.7);
  background: #fff;
}

.carousel__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(60, 40, 15, 0.18);
  background: rgba(255, 253, 247, 0.82);
  color: var(--ink);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.carousel__nav:hover {
  background: #fffdf7;
  transform: translateY(-50%) scale(1.06);
}

.carousel__nav:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.carousel__prev {
  left: clamp(0.6rem, 2vw, 1.4rem);
}

.carousel__next {
  right: clamp(0.6rem, 2vw, 1.4rem);
}

.carousel__caption {
  text-align: center;
  margin-top: 1.4rem;
  min-height: 3.2em;
}

.carousel__title {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.5rem, 3.4vw, 2.2rem);
  color: var(--ink);
}

.carousel__meta {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.3rem;
}

.carousel__dots {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.1rem;
  margin-top: 0.5rem;
}

/* Small visual dot, but a finger-friendly ~34px tap target via padding.
   background-clip keeps the color confined to the 10px content box. */
.carousel__dot {
  width: 10px;
  height: 10px;
  padding: 12px;
  box-sizing: content-box;
  background-clip: content-box;
  border: 0;
  border-radius: 999px;
  background-color: rgba(60, 40, 15, 0.22);
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.carousel__dot:hover {
  background-color: rgba(60, 40, 15, 0.45);
}

.carousel__dot.is-active {
  background-color: var(--focus);
  transform: scale(1.3);
}

.carousel__dot:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .carousel__slide {
    transition: opacity 0.2s ease;
    transform: none;
  }
  .carousel__slide.is-active {
    transform: none;
  }
}

/* Section titles */
.section-title {
  text-align: center;
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  margin-bottom: 0.4rem;
}

/* Room cards */
.rooms {
  padding: clamp(2rem, 5vw, 3.5rem) 0;
}

.room-cards {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.2rem;
}

.room-card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.6rem 1.5rem 1.4rem;
  text-decoration: none;
  border-radius: 4px;
  color: #f4eee2;
  background: #3a352e;
  box-shadow: 0 12px 30px -18px rgba(40, 30, 15, 0.7);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  min-height: 220px;
}

.room-card a:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 42px -20px rgba(40, 30, 15, 0.75);
}

.room-card a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.room-card__no {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  letter-spacing: 0.2em;
  opacity: 0.7;
}

.room-card__name {
  font-family: var(--font-display);
  font-size: 1.7rem;
  margin: 0.3rem 0 0.6rem;
}

.room-card__desc {
  font-size: 0.94rem;
  opacity: 0.85;
  flex: 1;
}

.room-card__enter {
  margin-top: 1rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  opacity: 0.8;
}

.room-card__enter::after {
  content: '\00a0\2192';
}

/* Palette accents so each card hints at its room's mood */
.room-card--sanctuary a {
  background: linear-gradient(160deg, #3b3a3f, #26262b);
}
.room-card--sunroom a {
  background: linear-gradient(160deg, #b7986a, #8f7145);
  color: #fffdf7;
}
.room-card--chapel a {
  background: linear-gradient(160deg, #4a4640, #2b2824);
}
.room-card--salon a {
  background: linear-gradient(160deg, #2f4b3c, #1e3327);
}
.room-card--garden a {
  background: linear-gradient(160deg, #6f8f6a, #4a6f52);
  color: #fffdf7;
}

/* Collection strip */
.collection {
  padding: clamp(2rem, 5vw, 4rem) 0 1rem;
}

.collection__hint {
  text-align: center;
  color: var(--muted);
  font-style: italic;
  font-size: 0.9rem;
  margin-bottom: 1.6rem;
}

.collection__strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
  align-items: center;
}

.collection__strip .work__btn {
  cursor: zoom-in;
}

.collection__strip .work__img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 8px 22px -14px rgba(40, 30, 15, 0.7);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.collection__strip .work__btn:hover .work__img {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px -16px rgba(40, 30, 15, 0.75);
}
