:root {
  --ink: #3f4a37;
  --olive: #4a5438;
  --muted: #4f5a47;
  --cream: #ece8dc;
  --terra: #a85a3c;
  --terra-dark: #8f4a30;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.5;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--olive);
  color: #fff;
  padding: .7rem 1rem;
  z-index: 20;
}
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- header ---------- */
.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.6rem clamp(1rem, 4vw, 3.2rem);
}

.brand {
  display: flex;
  align-items: center;
  gap: .9rem;
  color: var(--olive);
  text-decoration: none;
}
.brand svg { width: 3rem; height: 3.5rem; flex: none; }
.brand__name {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.7vw, 2.4rem);
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  line-height: 1;
}
.brand__tag {
  display: block;
  margin-top: .6rem;
  font-size: .68rem;
  letter-spacing: .34em;
  text-transform: uppercase;
}

.nav { display: flex; gap: clamp(1rem, 2.6vw, 2.4rem); }
.nav a {
  color: var(--ink);
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: .4rem 0;
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.nav a:hover,
.nav a:focus-visible { border-color: currentColor; outline: none; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: max(620px, min(100svh, 1000px));
  display: flex;
  align-items: flex-start;
  background:
    radial-gradient(circle at 82% 38%, rgba(255, 233, 190, .7), transparent 30%),
    linear-gradient(180deg, #dde1ee 0%, #f1dfd5 36%, #f6d3a8 62%, #e2b88f 80%, #9a9f6b 100%);
}

.hero--photo {
  background: url("../images/hero.jpg") center 30% / cover no-repeat;
}
.hero--photo .hero__art { display: none; }

.hero__art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(42%, 36rem);
  margin: 0 clamp(1rem, 7vw, 6rem) 0 auto;
  padding: clamp(8rem, 19vh, 12rem) 0 5rem;
  text-align: center;
}

.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 5.2vw, 4.9rem);
  line-height: 1.05;
  color: var(--olive);
  text-wrap: balance;
}
.hero__echo {
  display: block;
  margin-top: .9rem;
  font-style: italic;
  font-size: .62em;
  line-height: 1.2;
}

.rule {
  width: 4.2rem;
  height: 1px;
  background: var(--olive);
  margin: 2rem auto;
}

.hero__lede {
  margin: 0 0 2.2rem;
  font-size: clamp(.7rem, 1.05vw, .86rem);
  letter-spacing: .2em;
  text-transform: uppercase;
  line-height: 2;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .9rem;
  background: var(--terra);
  color: #fff;
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1.05rem 2rem;
  transition: background .2s;
}
.btn:hover { background: var(--terra-dark); }
.btn:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; }

/* ---------- sanctuary ---------- */
.sanctuary {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 1.5rem 5.5rem;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, .45), transparent 60%),
    var(--cream);
}

.sanctuary h2 {
  margin: 0 0 3rem;
  text-align: center;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--olive);
}

.leaf {
  position: absolute;
  bottom: -1rem;
  width: clamp(5rem, 11vw, 9rem);
  color: var(--olive);
  opacity: .22;
  pointer-events: none;
}
.leaf--left { left: 0; }
.leaf--right { right: 0; }

.cards {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 68rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  padding: .5rem;
  text-align: center;
  color: var(--ink);
  text-decoration: none;
}
.card:focus-visible { outline: 2px solid var(--olive); outline-offset: 4px; }

.card__icon {
  display: grid;
  place-items: center;
  width: 5.4rem;
  height: 5.4rem;
  border: 1.2px solid var(--olive);
  border-radius: 50%;
  color: var(--olive);
  transition: background .2s;
}
.card__icon svg { width: 3.8rem; height: 3.8rem; stroke-width: 1; }
.card:hover .card__icon { background: rgba(74, 84, 56, .08); }

.card__title {
  margin-top: 1.4rem;
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  line-height: 1.5;
  color: var(--olive);
}
.card__text {
  margin-top: .8rem;
  max-width: 17rem;
  font-size: .95rem;
  line-height: 1.55;
  color: var(--muted);
}

/* ---------- smaller screens ---------- */
@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, 1fr); gap: 2.6rem 1.5rem; }
}

@media (max-width: 820px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: .9rem;
  }
  .nav { flex-wrap: wrap; gap: .3rem 1.2rem; }

  .hero { align-items: flex-start; min-height: max(720px, 100svh); }
  .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(240, 232, 222, .6) 0%, rgba(240, 232, 222, 0) 65%);
  }
  .hero__content {
    width: auto;
    margin: 0 auto;
    padding: 11.5rem 1.5rem 4rem;
  }
  .hero h1 { font-size: clamp(2.4rem, 11vw, 3.6rem); }

  /* Phones: text sits on the sky colour above the photo, so it never covers her face or hair.
     113.6vw = height of hero.jpg at full width (1024 x 1163). */
  .hero--photo {
    min-height: 0;
    padding-bottom: 113.6vw;
    background:
      url("../images/hero.jpg") center bottom / 100% auto no-repeat,
      linear-gradient(180deg, #efe9e4 0, #dfdcdb calc(100% - 113.6vw), #dfdcdb 100%);
  }
  .hero--photo::before {
    inset: auto 0 97.6vw 0;
    height: 16vw;
    background: linear-gradient(180deg, #dfdcdb 0%, rgba(223, 220, 219, 0) 100%);
  }
}

@media (max-width: 520px) {
  .cards { grid-template-columns: 1fr; }
  .brand svg { width: 2.4rem; height: 2.8rem; }
  .brand__tag { letter-spacing: .26em; }
}
