:root {
  color-scheme: light;
  --ink: #26312f;
  --forest: #375d52;
  --lavender: #8170a8;
  --clay: #b8644d;
  --honey: #c99a4a;
  --linen: #f8f1e8;
  --paper: #ffffff;
  --muted: #6e7774;
  --line: rgba(38, 49, 47, 0.14);
  --shadow: 0 22px 52px rgba(38, 49, 47, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--linen);
  font-family: "Avenir Next", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(210px, auto) 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 16px max(22px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(38, 49, 47, 0.12);
  background: rgba(248, 241, 232, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  display: grid;
  gap: 3px;
}

.brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  line-height: 1;
  letter-spacing: 0;
}

.brand span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.main-nav a,
.button,
.gallery-lock {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid rgba(55, 93, 82, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--forest);
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.main-nav a[aria-current="page"] {
  background: var(--forest);
  color: #ffffff;
}

.button,
.header-cta {
  border-color: var(--clay);
  background: var(--clay);
  color: #ffffff;
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.button.quiet {
  border-color: rgba(129, 112, 168, 0.26);
  background: #ffffff;
  color: var(--lavender);
}

.gallery-lock {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  border-color: var(--ink);
  background: var(--ink);
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(38, 49, 47, 0.24);
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 660px;
  display: grid;
  align-items: end;
  padding: 118px max(22px, calc((100vw - 1180px) / 2)) 72px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(38, 49, 47, 0.86), rgba(55, 93, 82, 0.58) 48%, rgba(129, 112, 168, 0.12)),
    var(--hero-image, url("https://images.unsplash.com/photo-1540555700478-4be289fbecef?auto=format&fit=crop&w=1800&q=80")) center / cover;
  color: #ffffff;
}

.hero:not(.retreat-hero) {
  min-height: 540px;
  align-items: center;
}

.hero:not(.retreat-hero) .hero-copy {
  width: min(720px, 100%);
  padding: 0 0 0 24px;
  border-left: 8px solid var(--honey);
}

.hero:not(.retreat-hero) .hero-actions {
  padding-top: 8px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 42%;
  background: linear-gradient(0deg, rgba(38, 49, 47, 0.82), transparent);
}

.hero-copy {
  width: min(760px, 100%);
}

.eyebrow {
  margin: 0 0 16px;
  color: #f2d8a7;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
}

h1 {
  max-width: 780px;
  font-size: 74px;
  line-height: 0.96;
}

h2 {
  color: var(--forest);
  font-size: 50px;
  line-height: 1.05;
}

h3 {
  font-size: 22px;
}

.hero p:not(.eyebrow),
.lead {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  line-height: 1.7;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.section {
  padding: 78px max(22px, calc((100vw - 1180px) / 2));
}

.section.white {
  background: #ffffff;
}

.section.forest {
  background: var(--forest);
  color: #ffffff;
}

.section-heading {
  max-width: 800px;
  margin-bottom: 34px;
}

.section-heading p,
.ritual p,
.wellness p,
.package p,
.gather p,
.reserve-note p,
.step p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.forest h2,
.forest h3 {
  color: #ffffff;
}

.forest .section-heading p,
.forest .ritual p {
  color: rgba(255, 255, 255, 0.74);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 32px;
  align-items: center;
}

.image-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.image-panel img {
  width: 100%;
  height: 470px;
  object-fit: cover;
}

.ritual-grid,
.wellness-grid,
.package-grid,
.gather-grid,
.step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.ritual,
.wellness,
.package,
.gather,
.reserve-note,
.step {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  padding: 22px;
}

.forest .ritual {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
}

.ritual strong,
.wellness strong,
.package strong,
.gather strong,
.reserve-note strong,
.step strong {
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 18px;
}

.forest .ritual strong {
  color: #ffffff;
}

.ritual code,
.package code {
  display: inline-grid;
  min-width: 76px;
  height: 36px;
  place-items: center;
  border-radius: 8px;
  background: var(--lavender);
  color: #ffffff;
  font-family: inherit;
  font-weight: 950;
  margin-bottom: 16px;
}

.wellness {
  border-left: 7px solid var(--honey);
}

.wellness:nth-child(2) {
  border-left-color: var(--lavender);
}

.wellness:nth-child(3) {
  border-left-color: var(--clay);
}

.package-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.52fr);
  gap: 24px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 28px;
  box-shadow: var(--shadow);
}

.package-board .package-grid {
  grid-template-columns: 1fr;
  align-content: start;
}

.reserve-box {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.55fr);
  gap: 26px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.reserve-box .step-grid {
  grid-template-columns: 1fr;
  align-content: start;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

input,
select,
textarea {
  min-height: 44px;
  border: 1px solid rgba(38, 49, 47, 0.18);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  padding: 10px 12px;
}

textarea {
  min-height: 132px;
  resize: vertical;
}

.full {
  grid-column: 1 / -1;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding: 26px max(22px, calc((100vw - 1180px) / 2));
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.footer a {
  color: #ffffff;
  font-weight: 900;
}

.site-header {
  grid-template-columns: 1fr auto 1fr;
  text-align: center;
}

.site-header .brand {
  justify-self: start;
  text-align: left;
}

.site-header .header-cta {
  justify-self: end;
}

.main-nav {
  justify-content: center;
}

.retreat-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(260px, 0.36fr);
  gap: 28px;
  align-items: end;
  min-height: 720px;
  padding: 112px max(22px, calc((100vw - 1180px) / 2)) 36px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(38, 49, 47, 0.82), rgba(55, 93, 82, 0.45) 52%, rgba(38, 49, 47, 0.18)),
    url("https://images.unsplash.com/photo-1540555700478-4be289fbecef?auto=format&fit=crop&w=1800&q=80") center / cover;
  color: #ffffff;
}

.retreat-copy {
  max-width: 760px;
}

.retreat-copy h1 {
  color: #ffffff;
  font-size: 74px;
}

.retreat-copy p:not(.eyebrow) {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  line-height: 1.7;
}

.reservation-card {
  display: grid;
  gap: 12px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 8px;
  background: rgba(248, 241, 232, 0.92);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.reservation-card span {
  color: var(--clay);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.reservation-card strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  line-height: 1;
}

.reservation-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.retreat-gallery {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 1fr;
  gap: 12px;
}

.retreat-gallery img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.82);
  border-radius: 8px;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr;
  }

  .main-nav {
    justify-content: flex-start;
  }

  h1 {
    font-size: 54px;
  }

  h2 {
    font-size: 40px;
  }

  .intro-grid,
  .retreat-hero,
  .package-board,
  .reserve-box {
    grid-template-columns: 1fr;
  }

  .ritual-grid,
  .wellness-grid,
  .package-grid,
  .gather-grid,
  .step-grid,
  .retreat-gallery {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    position: static;
  }

  .gallery-lock {
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    width: 42px;
    min-width: 42px;
    height: 42px;
    min-height: 42px;
    padding: 0;
    overflow: hidden;
    text-indent: -999px;
  }

  .gallery-lock::before {
    content: "<";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 20px;
    text-indent: 0;
  }

  .main-nav a {
    flex: 1 1 42%;
  }

  .hero {
    min-height: 560px;
    padding-top: 84px;
  }

  h1 {
    font-size: 40px;
  }

  .retreat-copy h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 33px;
  }

  .ritual-grid,
  .wellness-grid,
  .package-grid,
  .gather-grid,
  .step-grid,
  .retreat-gallery,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .image-panel img {
    height: 300px;
  }
}
