:root {
  --lavanda: #c2afd9;
  --beige: #f2e8d9;
  --ciruela: #463451;
  --tinta: #312936;
  --papel: #fcf8f2;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--beige); color: var(--tinta); font: 1rem/1.65 var(--sans); }
a { color: inherit; }
img { display: block; max-width: 100%; }
figure { margin: 0; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font: 500 1rem/1.1 var(--serif); }
h2 { font-size: clamp(2.5rem, 5vw, 4.35rem); letter-spacing: -.035em; }
h3 { font-size: 1.85rem; }
p + p { margin-top: 1rem; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 5px; }
.wrap { width: min(100% - 3rem, 74rem); margin-inline: auto; }
.skip { position: absolute; top: .5rem; left: .5rem; z-index: 3; padding: .5rem 1rem; background: var(--papel); transform: translateY(-150%); }
.skip:focus { transform: none; }

.header { background: var(--beige); }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.05rem; }
.brand { display: inline-grid; text-decoration: none; line-height: 1; }
.brand strong { font: 600 2rem/1.1 var(--serif); }
.brand span { margin-top: .35rem; font-size: .875rem; font-weight: 600; }
nav { display: flex; gap: clamp(1rem, 4vw, 2.7rem); }
nav a { text-decoration: none; font-weight: 600; }
nav a:hover { text-decoration: underline; text-underline-offset: .3em; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.85rem; padding: .65rem 1.25rem; border: 1px solid transparent; border-radius: .2rem; background: var(--ciruela); color: var(--papel); text-decoration: none; font-weight: 700; }
.button:hover { background: #594268; }
.light { background: var(--lavanda); color: var(--tinta); }
.light:hover { background: #d7c8e9; }
.outline { background: transparent; border-color: var(--papel); }
.outline:hover { background: #302635; }

.hero { position: relative; isolation: isolate; display: grid; align-items: center; min-height: clamp(33rem, 72svh, 47rem); background: var(--ciruela); color: var(--papel); }
.hero-image, .hero::after { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-image { object-fit: cover; object-position: center 55%; }
.hero::after { content: ""; background: linear-gradient(90deg, rgba(30,21,35,.87), rgba(30,21,35,.63) 49%, rgba(30,21,35,.2)); }
.hero-content { padding-block: 4.5rem; }
.eyebrow { font-size: .875rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.hero .eyebrow { color: #e5d6f2; }
.hero h1 { margin: .75rem 0 1rem; font-size: clamp(2.9rem, 7vw, 6.7rem); letter-spacing: -.05em; }
.hero h1 em { color: #e3d2f2; }
.hero h1 + p { font-size: clamp(1.1rem, 2vw, 1.35rem); }
.actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.7rem; }

.feature, .contact { display: grid; align-items: center; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 7vw, 6.5rem); padding-block: clamp(3.5rem, 8vw, 7rem); }
.feature-copy h2, .contact h2 { margin: .6rem 0 1rem; }
.feature-copy p, .contact p { max-width: 32rem; }
.feature-photo img { width: 100%; height: auto; aspect-ratio: 1.55; object-fit: cover; border-radius: .2rem; }
.text-link { display: inline-block; margin-top: 1.15rem; font-weight: 700; text-underline-offset: .3em; }
.surroundings { background: var(--lavanda); }
.reverse { grid-template-columns: 1.15fr 1fr; }
.reverse .feature-photo { grid-area: 1 / 1; }
.contact-phone { margin-top: 1.3rem; font-size: 1.4rem; font-weight: 700; }
.address { padding: clamp(1.4rem, 4vw, 2.75rem); border: 1px solid #a68cac; }
.address address { margin-top: .65rem; font-style: normal; }
footer { background: var(--ciruela); color: var(--papel); }
.footer-inner { padding-block: 2rem; }

@media (max-width: 44rem) {
  .wrap { width: calc(100% - 2rem); }
  .header-inner { display: grid; grid-template-columns: 1fr auto; }
  .header-inner .reservation { grid-area: 1 / 2; }
  nav { grid-column: 1 / -1; }
  .hero::after { background: rgba(30,21,35,.65); }
  .feature, .contact { grid-template-columns: 1fr; }
  .reverse .feature-photo { grid-area: auto; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}

.hero-slide { opacity: 0; }
.hero-fields { object-position: center 57%; }
.hero-village { object-position: center 55%; }
.hero-pause { display: none; }

@media (prefers-reduced-motion: no-preference) {
  .hero-slide { animation-duration: 28s; animation-timing-function: ease-in-out; animation-iteration-count: infinite; }
  .hero-fields { animation-name: hero-fields; }
  .hero-village { animation-name: hero-village; }
  .hero-goat { animation-name: hero-goat; }
  .hero:has(.hero-pause input:checked) .hero-slide { animation-play-state: paused; }
  .hero-pause {
    position: absolute;
    inset: auto 1rem .75rem auto;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .25rem .65rem;
    border-radius: .2rem;
    background: var(--ciruela);
    color: var(--papel);
    font-size: .875rem;
    cursor: pointer;
  }
  .hero-pause input { margin: 0; accent-color: var(--lavanda); }
}

/* Keep each slide opaque until the next image covers it. */
@keyframes hero-fields {
  0%, 21.43%, 50.5%, 100% { opacity: 0; }
  26.79%, 50% { opacity: 1; }
}
@keyframes hero-village {
  0%, 44.64%, 75.5%, 100% { opacity: 0; }
  50%, 75% { opacity: 1; }
}
@keyframes hero-goat {
  0%, 69.64%, 100% { opacity: 0; }
  75%, 94.64% { opacity: 1; }
}

.reservation { position: relative; width: fit-content; }
.reservation summary { cursor: pointer; }
.reservation summary::-webkit-details-marker { display: none; }
.reservation-number {
  position: absolute;
  top: calc(100% + .4rem);
  left: 0;
  z-index: 2;
  padding: .55rem .9rem;
  border-radius: .2rem;
  background: var(--papel);
  color: var(--tinta);
  box-shadow: 0 .2rem 1rem #31293633;
  white-space: nowrap;
  font-weight: 700;
}
.header { position: relative; z-index: 1; }
.header .reservation-number { right: 0; left: auto; }
.environment-photos { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; }
.environment-photos img { aspect-ratio: 1.05; }
