:root {
  color-scheme: light;
  --ink: #201f1b;
  --muted: rgba(32, 31, 27, 0.68);
  --line: rgba(32, 31, 27, 0.18);
  --surface: rgba(252, 248, 240, 0.72);
  --surface-strong: rgba(252, 248, 240, 0.92);
  --focus: #5d8d83;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #f7f1e8;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  -webkit-tap-highlight-color: transparent;
}

button,
select {
  font: inherit;
}

.page-shell {
  min-height: 100vh;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  padding: clamp(22px, 3.8vw, 52px);
  padding-bottom: clamp(14px, 2.1vw, 28px);
  padding-left: max(clamp(22px, 3.8vw, 52px), env(safe-area-inset-left));
  padding-right: max(clamp(22px, 3.8vw, 52px), env(safe-area-inset-right));
  padding-top: max(clamp(22px, 3.8vw, 52px), env(safe-area-inset-top));
  padding-bottom: max(clamp(14px, 2.1vw, 28px), env(safe-area-inset-bottom));
  grid-template-rows: auto 1fr auto;
  isolation: isolate;
}

.hero__media,
.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__media {
  background-image: url("assets/brelia-hero-1672.jpg");
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.hero__shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(247, 241, 232, 0.9) 0%, rgba(247, 241, 232, 0.72) 37%, rgba(247, 241, 232, 0.32) 69%, rgba(247, 241, 232, 0.14) 100%),
    linear-gradient(180deg, rgba(247, 241, 232, 0.68) 0%, rgba(247, 241, 232, 0.08) 42%, rgba(247, 241, 232, 0.5) 100%);
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  color: var(--ink);
  font-family: "Cormorant Garamond", Didot, "Bodoni 72", Georgia, serif;
  font-size: clamp(26px, 2.5vw, 38px);
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
}

.locale-control {
  position: relative;
}

select {
  width: min(42vw, 172px);
  min-height: 42px;
  padding: 0 38px 0 15px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  background:
    linear-gradient(45deg, transparent 50%, var(--ink) 50%) calc(100% - 18px) 18px / 6px 6px no-repeat,
    linear-gradient(135deg, var(--ink) 50%, transparent 50%) calc(100% - 13px) 18px / 6px 6px no-repeat,
    var(--surface);
  box-shadow: 0 16px 42px rgba(54, 45, 30, 0.08);
  appearance: none;
  cursor: pointer;
  outline: none;
}

select:focus-visible {
  border-color: var(--focus);
  box-shadow: 0 0 0 4px rgba(93, 141, 131, 0.2), 0 16px 42px rgba(54, 45, 30, 0.08);
}

.hero__content {
  align-self: center;
  width: min(100%, 720px);
  padding-block: 56px;
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: clamp(12px, 1.15vw, 14px);
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.5;
  text-transform: uppercase;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(12px, 1.15vw, 14px);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.5;
}

h1 {
  margin: 14px 0 0;
  font-family: "Cormorant Garamond", Didot, "Bodoni 72", Georgia, serif;
  font-size: clamp(72px, 12vw, 168px);
  font-weight: 400;
  line-height: 0.88;
}

.tagline {
  margin: clamp(18px, 2.5vw, 28px) 0 0;
  font-family: "Cormorant Garamond", Didot, "Bodoni 72", Georgia, serif;
  font-size: clamp(32px, 4vw, 62px);
  font-weight: 400;
  line-height: 1;
}

.site-footer {
  align-items: flex-end;
  border-top: 1px solid var(--line);
  justify-content: flex-start;
  padding-top: 20px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 720px) {
  .hero {
    min-height: 100svh;
    min-height: 100dvh;
    padding: 20px;
    padding-bottom: 14px;
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
    padding-top: max(20px, env(safe-area-inset-top));
    padding-bottom: max(14px, env(safe-area-inset-bottom));
  }

  .hero__media {
    background-image: url("assets/brelia-hero-mobile-828.jpg");
    background-position: center;
  }

  .hero__shade {
    background:
      linear-gradient(180deg, rgba(247, 241, 232, 0.92) 0%, rgba(247, 241, 232, 0.72) 44%, rgba(247, 241, 232, 0.42) 100%),
      linear-gradient(90deg, rgba(247, 241, 232, 0.9) 0%, rgba(247, 241, 232, 0.4) 100%);
  }

  .site-header {
    align-items: flex-start;
  }

  select {
    width: 148px;
  }

  .hero__content {
    padding-block: 40px;
  }

  .site-footer {
    display: grid;
  }

}

@media (min-width: 721px) and (max-width: 1280px) {
  .hero__media {
    background-image: url("assets/brelia-hero-1280.jpg");
  }
}

@media (min-width: 1680px) {
  .hero__media {
    background-image: url("assets/brelia-hero-2560.jpg");
  }
}

@media (min-width: 2560px) {
  .hero__media {
    background-image: url("assets/brelia-hero-3840.jpg");
  }
}

@media (max-width: 390px) {
  .hero__media {
    background-image: url("assets/brelia-hero-mobile-640.jpg");
  }

  .site-header {
    gap: 14px;
  }

  select {
    width: 134px;
    padding-left: 12px;
  }
}
