@font-face {
  font-family: Montserrat;
  src: url("assets/Montserrat-Thin.otf") format("opentype");
  font-weight: 100;
  font-display: swap;
}

@font-face {
  font-family: Montserrat;
  src: url("assets/Montserrat-SemiBold.otf") format("opentype");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: Montserrat;
  src: url("assets/Montserrat-Regular.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Montserrat;
  src: url("assets/Montserrat-Bold.otf") format("opentype");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  font-family: Montserrat, Arial, sans-serif;
  color: #fff4e7;
  background: #211710;
  --gutter: max(clamp(1.35rem, 5.2vw, 5.5rem), calc((100vw - 91rem) / 2));
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body { margin: 0; }

a { color: inherit; text-underline-offset: 0.32em; }

a:focus-visible { outline: 2px solid currentColor; outline-offset: 6px; }

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  min-height: 100svh;
  padding-inline: var(--gutter);
  background: #211710;
}

.hero-photo,
.hero::after {
  position: absolute;
  inset: 0;
}

.hero-photo {
  z-index: -2;
  transform: translate3d(0, var(--parallax-y, 0px), 0);
}

.hero { overflow: clip; }

.hero-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% center;
}

.hero::after {
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, rgb(20 12 8 / 82%), rgb(20 12 8 / 36%) 43%, transparent 76%),
    linear-gradient(0deg, rgb(20 12 8 / 68%), transparent 24%, transparent 76%, rgb(20 12 8 / 42%));
}

.masthead,
.hero-end,
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.masthead {
  padding-block: clamp(1.25rem, 3.75vw, 2.8rem);
  border-bottom: 1px solid rgb(255 244 231 / 30%);
}

.logo {
  width: clamp(8.5rem, 15vw, 12.5rem);
  height: auto;
  display: block;
}

.instagram,
.hero-end a {
  font-size: .875rem;
  letter-spacing: .07em;
  text-decoration-color: rgb(255 244 231 / 55%);
}

.instagram:hover,
.hero-end a:hover { text-decoration-color: currentColor; }

.hero-content {
  align-self: center;
  padding-block: 3rem;
}

h1 {
  margin: 0;
  color: #fff7ea;
  font-size: clamp(2.65rem, 6.55vw, 7rem);
  font-weight: 100;
  line-height: .99;
  letter-spacing: -.055em;
  text-shadow: 0 2px 18px rgb(15 8 4 / 36%);
}

h1 span,
h1 strong { display: block; }

h1 strong { font-weight: 700; }

.hero-description {
  max-width: 27ch;
  margin: clamp(.95rem, 2vw, 1.5rem) 0 0;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  line-height: 1.5;
  text-shadow: 0 2px 12px #211710;
}

.opening {
  display: grid;
  justify-items: start;
  gap: .44rem;
  margin: clamp(1.3rem, 3vw, 2.5rem) 0 0;
}

.month {
  color: #f6c19b;
  font-size: clamp(.875rem, 1.35vw, 1rem);
  font-weight: 600;
  letter-spacing: .22em;
}

.upcoming {
  color: #fff7ea;
  font-size: clamp(.925rem, 1.6vw, 1.2rem);
  font-weight: 100;
  letter-spacing: .15em;
}

.hero-end {
  padding-block: 1.4rem;
  border-top: 1px solid rgb(255 244 231 / 30%);
  font-size: .875rem;
}

.facade {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: min(48rem, 92svh);
  background: #592a18;
  border-block: 1px solid rgb(241 183 144 / 22%);
}

.facade-copy {
  align-self: center;
  padding: clamp(3.25rem, 8vw, 8rem) clamp(2rem, 5vw, 6rem) clamp(3.25rem, 8vw, 8rem) var(--gutter);
}

.facade h2,
.cocina h2 {
  margin: 0;
  max-width: 15ch;
  font-size: clamp(2.15rem, 4.6vw, 5.15rem);
  font-weight: 600;
  letter-spacing: -.062em;
  line-height: 1.06;
  text-wrap: balance;
}

.facade p {
  max-width: 33ch;
  margin: 1.45rem 0 0;
  color: #f5d4bb;
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.75;
}

.facade-photo,
.barro-banner,
.galeria figure {
  position: relative;
  overflow: hidden;
  margin: 0;
  background: #803c18;
}

.facade-photo img,
.barro-banner img,
.galeria img {
  position: absolute;
  inset: -52px 0 auto;
  display: block;
  width: 100%;
  height: calc(100% + 104px);
  object-fit: cover;
  transform: translate3d(0, var(--parallax-y, 0px), 0);
}

.facade-photo img { object-position: 50% 49%; }

.barro-banner { height: clamp(16rem, 37vw, 36rem); }

.barro-banner img { object-position: 55% 55%; }

.cocina {
  padding: clamp(3.25rem, 7.5vw, 7.5rem) var(--gutter);
  background: #ead6bf;
  color: #362017;
}

.galeria {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(.7rem, 2.5vw, 2rem);
  margin-top: clamp(1.75rem, 4vw, 3.5rem);
}

.galeria figure { height: clamp(12rem, 41vw, 34rem); }

.galeria figure:nth-child(2) { margin-top: clamp(1rem, 5vw, 4rem); }

footer {
  padding: 1.65rem var(--gutter);
  font-size: .875rem;
}

@media (max-width: 650px) {
  .hero-photo img { object-position: center 52%; }

  .hero::after {
    background: linear-gradient(180deg, rgb(20 12 8 / 60%), rgb(20 12 8 / 57%) 32%, transparent 66%, rgb(20 12 8 / 82%));
  }

  .hero-content {
    align-self: start;
    padding-top: clamp(2.3rem, 9.5svh, 5rem);
  }

  h1 { font-size: clamp(2.55rem, 10.65vw, 4.15rem); }

  .facade { grid-template-columns: 1fr; }

  .facade-copy { padding-inline: var(--gutter); }

  .facade-photo { min-height: clamp(23rem, 68svh, 34rem); }

  .barro-banner img { object-position: 61% 55%; }

  .galeria figure { height: clamp(11rem, 52vw, 19rem); }

}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .hero-photo,
  .facade-photo img,
  .barro-banner img,
  .galeria img { transform: none; }

  .facade-photo img,
  .barro-banner img,
  .galeria img {
    inset: 0;
    height: 100%;
  }
}
