:root {
  --deep: #163a40;
  --water: #4f8f96;
  --water-soft: #7eb0b5;
  --mist: #e7f1f0;
  --pearl: #f6f9f8;
  --foam: #ffffff;
  --ink: #1e2c2f;
  --muted: #5a6e72;
  --gold: #b8954c;
  --gold-soft: #d4bc7a;
  --line: rgba(22, 58, 64, 0.12);
  --shadow: 0 18px 50px rgba(22, 58, 64, 0.08);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Outfit", "Segoe UI", sans-serif;
  --max: 72rem;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(126, 176, 181, 0.28), transparent 55%),
    radial-gradient(900px 500px at 90% 5%, rgba(184, 149, 76, 0.12), transparent 50%),
    linear-gradient(180deg, var(--pearl) 0%, var(--mist) 45%, #dfeceb 100%);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem clamp(1.2rem, 4vw, 2.5rem);
  background: color-mix(in srgb, var(--pearl) 82%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--deep);
}

.nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.92rem;
  font-weight: 500;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s ease;
}

.nav a:hover,
.nav a[aria-current="page"] { color: var(--deep); }

/* ── Hero ─────────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: min(92vh, 54rem);
  display: grid;
  align-items: end;
  padding: clamp(3rem, 8vw, 6rem) clamp(1.2rem, 4vw, 2.5rem) clamp(3.5rem, 8vw, 5.5rem);
  overflow: hidden;
  overflow-x: clip;
  isolation: isolate;
  width: 100%;
  max-width: 100vw;
}

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(246, 249, 248, 0.15) 0%, rgba(22, 58, 64, 0.55) 100%),
    radial-gradient(ellipse 80% 60% at 70% 30%, rgba(126, 176, 181, 0.55), transparent 60%),
    radial-gradient(ellipse 50% 40% at 20% 70%, rgba(184, 149, 76, 0.22), transparent 55%),
    linear-gradient(135deg, #9ec4c7 0%, #5b9499 40%, #2a555c 100%);
  animation: drift 18s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: scale(1) translate(0, 0); }
  to { transform: scale(1.05) translate(-1.5%, 1%); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-veil { animation: none; }
  html { scroll-behavior: auto; }
}

.hero-copy {
  max-width: 38rem;
  color: var(--foam);
}

.brand-mark {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gold-soft);
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.lede {
  margin: 0 0 1.75rem;
  font-size: clamp(1.02rem, 2vw, 1.18rem);
  font-weight: 300;
  max-width: 32rem;
  color: rgba(255, 255, 255, 0.9);
}

.cta {
  display: inline-flex;
  align-items: center;
  padding: 0.85rem 1.4rem;
  background: var(--foam);
  color: var(--deep);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 0.2rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.16);
}


/* ── Hero product (Variety Box) ───────────────────────────── */

.hero--product {
  align-items: center;
  padding-block: clamp(2.5rem, 7vw, 4.5rem);
}

.hero-layout {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.hero-kicker {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.hero-price {
  margin: 0 0 1.35rem;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--foam);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cta--ghost {
  background: transparent;
  color: var(--foam);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: none;
}

.cta--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.hero-layout > * {
  min-width: 0; /* allow grid children to shrink below intrinsic image size */
}

.hero-product {
  margin: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.hero-shot {
  margin: 0;
  width: 100%;
  max-width: 100%;
  border-radius: 0.45rem;
  overflow: hidden;
  background: color-mix(in srgb, var(--foam) 88%, transparent);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

.hero-shot img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  background: #f4f4f4;
}


.hero-product figcaption {
  margin-top: 0.85rem;
  font-size: 0.82rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.78);
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
}

.variety-stage {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  padding: 0.75rem;
  background: color-mix(in srgb, var(--foam) 88%, transparent);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 0.45rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

.variety-stage img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  border-radius: 0.25rem;
  background: #f4f4f4;
}

.variety-stage--compact {
  box-shadow: none;
  border: 0;
  background: transparent;
  padding: 0.55rem;
  height: 100%;
}

.product-visual--variety {
  aspect-ratio: auto;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(126, 176, 181, 0.25), transparent 70%),
    #eef4f3;
  display: flex;
  align-items: stretch;
}

.product-visual--variety .variety-stage { width: 100%; }


/* ── Home pathways ────────────────────────────────────────── */

.pathways {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}

.pathway {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.6rem 1.35rem 1.75rem;
  background: color-mix(in srgb, var(--foam) 90%, transparent);
  text-decoration: none;
  transition: background 0.2s ease;
}

.pathway:hover { background: var(--foam); }

.pathway-kicker {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--water);
}

.pathway strong {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--deep);
}

.pathway span:last-child {
  font-size: 0.92rem;
  color: var(--muted);
  font-weight: 300;
}

.featured,
.shop {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5rem) clamp(1.2rem, 4vw, 2.5rem);
}

.shop { padding-top: 2.5rem; }

.section-head {
  max-width: 36rem;
  margin-bottom: 2rem;
}

.section-head h2,
.practice h2,
.shop-hero h1,
.range-head h2 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 400;
  color: var(--deep);
}

.section-head p,
.range-head > p:last-of-type {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.section-foot {
  margin: 1.75rem 0 0;
  text-align: center;
}

.section-foot a {
  color: var(--deep);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--deep) 35%, transparent);
}

.section-foot a:hover { border-bottom-color: var(--deep); }

/* ── Shop chrome ──────────────────────────────────────────── */

.shop-hero {
  margin-bottom: 2.5rem;
  max-width: 40rem;
}

.shop-hero p {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 1.1rem;
}

.shop-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
}

.shop-jump a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--water);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.shop-jump a:hover { color: var(--deep); }

.range {
  padding: 2.75rem 0 1rem;
  border-top: 1px solid var(--line);
}

.range--alt {
  margin-inline: calc(-1 * clamp(1.2rem, 4vw, 2.5rem));
  padding-inline: clamp(1.2rem, 4vw, 2.5rem);
  padding-block: 2.75rem 1.5rem;
  background: color-mix(in srgb, var(--foam) 45%, transparent);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.range-head {
  max-width: 38rem;
  margin-bottom: 1.75rem;
}

.range-kicker {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ── Products ─────────────────────────────────────────────── */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr));
  gap: 1.35rem;
}

.product-grid--featured {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product {
  background: color-mix(in srgb, var(--foam) 88%, transparent);
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px rgba(22, 58, 64, 0.12);
}

.product--wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(10rem, 18rem) 1fr;
  align-items: stretch;
}

.product--wide .product-visual { height: 100%; min-height: 10rem; }

.product--wide h3,
.product--wide .line,
.product--wide .price {
  padding-left: 1.4rem;
  padding-right: 1.4rem;
}

.product--wide h3 { margin-top: 1.4rem; }
.product--wide .price { margin-bottom: 1.4rem; }

.product-visual {
  height: 9.5rem;
  background-size: cover;
  background-position: center;
}

.product-visual--photo {
  height: auto;
  aspect-ratio: 1;
  background: #f4f4f4;
  overflow: hidden;
}

.product-visual--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tone-still { background: linear-gradient(145deg, #d7ecec, #6ea3a8 55%, #355f64); }
.tone-light { background: linear-gradient(145deg, #f4f7f2, #c9ddd8 50%, #7ea8a4); }
.tone-bloom { background: linear-gradient(145deg, #f8e9ea, #e2b7bc 55%, #8f6a70); }
.tone-mist { background: linear-gradient(145deg, #eaf6f8, #a8d0d6 50%, #4f8790); }
.tone-moon { background: linear-gradient(145deg, #e8eef5, #aeb9cb 55%, #5a6578); }
.tone-ember { background: linear-gradient(145deg, #f6e6d4, #d9a574 55%, #8a5634); }
.tone-veil { background: linear-gradient(145deg, #e6e8ea, #9aa3ab 55%, #3d454c); }
.tone-rose { background: linear-gradient(145deg, #f7e6e8, #d9a0a8 55%, #8c5a62); }
.tone-amber { background: linear-gradient(145deg, #f4e7c8, #d4b06a 55%, #8a6a30); }
.tone-star { background: linear-gradient(145deg, #e4ecf5, #8fa8c4 45%, #3a4f6a 85%, #c9b27a); }
.tone-salt { background: linear-gradient(145deg, #f2f0ea, #d2cfc4 50%, #8a877c); }
.tone-gift { background: linear-gradient(145deg, #efe8d8, #c4b090 50%, #6e6248); }

.product h3,
.product .line,
.product .price {
  padding-left: 1.05rem;
  padding-right: 1.05rem;
}

.product h3 {
  margin: 1rem 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--deep);
  line-height: 1.2;
}

.product .line {
  margin: 0 0 0.85rem;
  font-weight: 300;
  color: var(--muted);
  font-style: italic;
  font-family: var(--font-display);
  font-size: 1.08rem;
}

.product .price {
  margin: 0 0 1.15rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--deep);
}

.price-note {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.85rem;
}

/* ── Ritual ───────────────────────────────────────────────── */

.practice {
  padding: clamp(3rem, 7vw, 5rem) clamp(1.2rem, 4vw, 2.5rem);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.55)),
    linear-gradient(120deg, #d7e8e7, #f3efe4);
}

.practice-inner {
  max-width: 36rem;
  margin: 0 auto;
}

.practice p {
  color: var(--muted);
  font-size: 1.05rem;
}

.practice-note {
  color: var(--deep) !important;
  font-style: italic;
  font-family: var(--font-display);
  font-size: 1.35rem !important;
}

.site-footer {
  padding: 2.25rem clamp(1.2rem, 4vw, 2.5rem) 2.75rem;
  text-align: center;
  background: var(--deep);
  color: rgba(255, 255, 255, 0.72);
}

.site-footer .brand {
  color: var(--gold-soft);
  display: block;
  margin-bottom: 0.4rem;
}

.site-footer p {
  margin: 0.25rem 0;
  font-size: 0.9rem;
}

.site-footer .fine {
  margin-top: 1rem;
  font-size: 0.78rem;
  opacity: 0.75;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}


/* ── Responsive: tablet ───────────────────────────────────── */

@media (max-width: 960px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .hero-product {
    order: -1;
    max-width: 26rem;
    width: 100%;
    margin-inline: auto;
  }

  .pathways { grid-template-columns: 1fr 1fr; }
  .product-grid--featured { grid-template-columns: 1fr 1fr; }
}

/* ── Responsive: phone / Pixel-class (~412 CSS px) ────────── */

@media (max-width: 720px) {
  :root {
    --pad-x: max(1rem, env(safe-area-inset-left, 0px));
    --pad-r: max(1rem, env(safe-area-inset-right, 0px));
  }

  body {
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
  }

  .site-header {
    gap: 0.65rem;
    padding:
      max(0.7rem, env(safe-area-inset-top, 0px))
      max(1rem, env(safe-area-inset-right, 0px))
      0.7rem
      max(1rem, env(safe-area-inset-left, 0px));
  }

  .brand {
    font-size: 1.15rem;
    min-width: 0;
    flex: 1 1 auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav {
    flex: 0 0 auto;
    gap: 0.65rem;
    font-size: 0.8rem;
  }

  .nav a {
    padding: 0.35rem 0.15rem;
    min-height: 2.5rem;
    display: inline-flex;
    align-items: center;
  }

  /* Hero: image first, then copy — no forced full-viewport height */
  .hero,
  .hero--product {
    min-height: 0;
    align-items: stretch;
    padding:
      1.25rem
      max(1rem, env(safe-area-inset-right, 0px))
      2rem
      max(1rem, env(safe-area-inset-left, 0px));
  }

  .hero-layout {
    gap: 1.15rem;
  }

  .hero-product {
    max-width: none;
    width: 100%;
  }

  .hero,
  .hero--product,
  .hero-layout,
  .hero-product,
  .hero-shot {
    max-width: 100%;
    overflow-x: clip;
  }

  .hero-shot {
    border-radius: 0.55rem;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
  }

  .hero-shot img {
    width: 100%;
    max-width: 100%;
    height: min(42dvh, 18rem);
    aspect-ratio: auto;
    object-fit: cover;
    object-position: center;
  }

  .hero-copy .lede {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
  }

  .brand-mark {
    margin-bottom: 0.4rem;
    font-size: 1.25rem;
    letter-spacing: 0.03em;
  }

  .hero-kicker {
    margin-bottom: 0.3rem;
    font-size: 0.68rem;
  }

  .hero h1 {
    margin-bottom: 0.65rem;
    font-size: clamp(2rem, 9vw, 2.55rem);
    line-height: 1.08;
  }

  .lede {
    margin-bottom: 0.9rem;
    font-size: 0.98rem;
    line-height: 1.45;
  }

  .hero-price {
    margin-bottom: 1rem;
    font-size: 1.05rem;
  }

  .hero-actions {
    gap: 0.6rem;
  }

  .cta,
  .cta--ghost {
    flex: 1 1 auto;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0.8rem 1.1rem;
    font-size: 0.92rem;
  }

  .hero-product figcaption {
    font-size: 0.72rem;
    margin-top: 0.65rem;
  }

  .variety-stage {
    gap: 0.35rem;
    padding: 0.45rem;
  }

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

  .pathway {
    padding: 1.2rem 1.1rem 1.3rem;
  }

  .pathway strong {
    font-size: 1.3rem;
  }

  .featured,
  .shop,
  .practice {
    padding-inline: max(1rem, env(safe-area-inset-left, 0px)) max(1rem, env(safe-area-inset-right, 0px));
  }

  .featured {
    padding-block: 2.25rem 2.5rem;
  }

  .shop {
    padding-top: 1.5rem;
    padding-bottom: 2.5rem;
  }

  .section-head {
    margin-bottom: 1.35rem;
  }

  .section-head h2,
  .shop-hero h1,
  .range-head h2,
  .practice h2 {
    font-size: clamp(1.75rem, 7vw, 2.15rem);
  }

  .shop-hero {
    margin-bottom: 1.75rem;
  }

  .shop-hero p {
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  .shop-jump {
    gap: 0.45rem 0.65rem;
  }

  .shop-jump a {
    display: inline-flex;
    align-items: center;
    min-height: 2.25rem;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--foam) 70%, transparent);
    border: 1px solid var(--line);
    font-size: 0.82rem;
  }

  .range,
  .range--alt {
    padding-block: 2rem 1.25rem;
  }

  .range--alt {
    margin-inline: calc(-1 * max(1rem, env(safe-area-inset-left, 0px)));
    padding-inline: max(1rem, env(safe-area-inset-left, 0px)) max(1rem, env(safe-area-inset-right, 0px));
  }

  .product-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
  }

  .product-grid--featured {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .product--wide {
    grid-template-columns: 1fr;
  }

  /* Don't squash wide product images on mobile */
  .product--wide .product-visual,
  .product--wide .product-visual--photo {
    min-height: 0;
    height: auto;
    aspect-ratio: 5 / 4;
  }

  .product h3 {
    margin-top: 0.75rem;
    font-size: 1.15rem;
  }

  .product .line {
    font-size: 0.95rem;
    margin-bottom: 0.55rem;
  }

  .product .price {
    margin-bottom: 0.9rem;
    font-size: 0.88rem;
  }

  .product--wide h3,
  .product--wide .line,
  .product--wide .price {
    padding-left: 1.05rem;
    padding-right: 1.05rem;
  }

  .product--wide h3 { margin-top: 1rem; }
  .product--wide .price { margin-bottom: 1.05rem; }

  .practice {
    padding-block: 2.25rem;
  }

  .practice-note {
    font-size: 1.2rem !important;
  }

  .site-footer {
    padding:
      1.75rem
      max(1rem, env(safe-area-inset-right, 0px))
      max(2rem, calc(1.25rem + env(safe-area-inset-bottom, 0px)))
      max(1rem, env(safe-area-inset-left, 0px));
  }

  /* Soften hover lift on touch */
  .product:hover {
    transform: none;
  }
}

/* Pixel 9 / compact phones: ~360–430 CSS px wide */
@media (max-width: 430px) {
  .nav { gap: 0.5rem; font-size: 0.76rem; }

  .hero h1 {
    font-size: 2.05rem;
  }

  .lede {
    font-size: 0.94rem;
  }

  .hero-shot img {
    height: min(36dvh, 15.5rem);
  }

  .cta,
  .cta--ghost {
    flex: 1 1 100%;
  }

  .product-grid {
    gap: 0.7rem;
  }

  .product h3 {
    font-size: 1.05rem;
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .product .line,
  .product .price {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .product .line {
    font-size: 0.9rem;
  }
}

/* Very tall phones: keep hero from dominating the first scroll */
@media (max-width: 430px) and (min-height: 800px) {
  .hero-shot img {
    height: min(34dvh, 14.5rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .product { transition: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
