:root {
  --ivory: #f7f3ee;
  --gold: #c8a76a;
  --gold-dark: #af8f51;
  --sage: #8c9a7a;
  --olive: #4e5b4a;
  --taupe: #cfc4b8;
  --black: #1d1d1d;
  --white: #f7f3ee;
  --line: rgba(78, 91, 74, 0.18);
  --shadow: 0 22px 60px rgba(78, 91, 74, 0.12);
  --serif: "Playfair Display", "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", "Lato", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--olive);
  font-family: var(--sans);
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

.skip-link {
  background: var(--black);
  color: var(--ivory);
  left: 1rem;
  padding: 0.7rem 1rem;
  position: fixed;
  top: -4rem;
  z-index: 100;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  align-items: center;
  background: rgba(247, 243, 238, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 1rem;
  grid-template-columns: auto 1fr auto;
  min-height: 82px;
  padding: 0.85rem clamp(1rem, 4vw, 3rem);
  position: sticky;
  top: 0;
  z-index: 50;
}

.brand,
.footer-brand {
  align-items: center;
  display: inline-flex;
}

.brand img {
  height: 56px;
  object-fit: contain;
  width: 168px;
}

.site-nav {
  display: flex;
  gap: clamp(0.75rem, 2vw, 1.7rem);
  justify-content: center;
}

.site-nav a,
.footer-grid a {
  font-size: 0.93rem;
  font-weight: 600;
}

.site-nav a.active {
  color: var(--gold-dark);
}

.header-actions {
  align-items: center;
  display: flex;
  gap: 0.5rem;
}

.icon-button {
  align-items: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--olive);
  cursor: pointer;
  display: inline-flex;
  height: 42px;
  justify-content: center;
  min-width: 42px;
  padding: 0;
  position: relative;
}

.icon-button svg {
  fill: none;
  height: 19px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 19px;
}

.currency-control {
  align-items: center;
  display: inline-flex;
  gap: 0.45rem;
}

.currency-control span {
  color: var(--olive);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.currency-control select {
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--olive);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 800;
  min-height: 42px;
  padding: 0.45rem 1.9rem 0.45rem 0.75rem;
  width: auto;
}

.header-currency span {
  display: none;
}

.currency-panel {
  align-items: center;
  background: rgba(255, 253, 249, 0.72);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1rem 0;
  padding: 0.75rem;
}

.currency-panel p,
.currency-notice {
  color: rgba(78, 91, 74, 0.78);
  font-size: 0.84rem;
  font-weight: 600;
}

.currency-notice {
  background: rgba(200, 167, 106, 0.14);
  border: 1px solid rgba(200, 167, 106, 0.35);
  border-radius: 8px;
  margin: 0.75rem 0 1rem;
  padding: 0.8rem;
}

#cart-count {
  align-items: center;
  background: var(--gold);
  border-radius: 50%;
  color: var(--black);
  display: inline-flex;
  font-size: 0.68rem;
  font-weight: 800;
  height: 18px;
  justify-content: center;
  position: absolute;
  right: -2px;
  top: -5px;
  width: 18px;
}

.nav-toggle {
  background: transparent;
  border: 0;
  display: none;
  padding: 0.5rem;
}

.nav-toggle span {
  background: var(--olive);
  display: block;
  height: 2px;
  margin: 5px;
  width: 24px;
}

.button,
.button-outline,
.button-dark {
  align-items: center;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.35rem;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.button {
  background: var(--gold);
  border: 1px solid var(--gold);
  color: var(--olive);
}

.button:hover,
.button:focus-visible {
  background: var(--gold-dark);
  transform: translateY(-1px);
}

.button-small {
  min-height: 42px;
  padding: 0.58rem 1rem;
}

.button-outline {
  background: rgba(247, 243, 238, 0.72);
  border: 1px solid var(--gold);
  color: var(--olive);
}

.button-dark {
  background: var(--olive);
  border: 1px solid var(--olive);
  color: var(--ivory);
}

.page {
  min-height: 60vh;
}

.section {
  padding: clamp(3rem, 7vw, 6.5rem) clamp(1rem, 4vw, 3rem);
}

.section-inner {
  margin: 0 auto;
  max-width: 1180px;
}

.eyebrow {
  color: var(--gold-dark);
  font-size: 0.78rem;
  font-weight: 800;
  margin: 0 0 0.8rem;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: var(--olive);
  font-family: var(--serif);
  line-height: 1.08;
  margin: 0;
}

h1 {
  font-size: clamp(3.1rem, 7vw, 6.8rem);
  max-width: 760px;
}

h2 {
  font-size: clamp(2.05rem, 4vw, 3.7rem);
}

h3 {
  font-size: 1.35rem;
}

p {
  margin: 0;
}

.lead {
  color: rgba(78, 91, 74, 0.86);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  max-width: 720px;
}

.hero {
  display: grid;
  min-height: calc(100vh - 82px);
  overflow: hidden;
  padding: clamp(1rem, 3vw, 2rem);
  position: relative;
}

.hero img {
  border-radius: 8px;
  height: min(720px, calc(100vh - 110px));
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.hero-content {
  align-self: center;
  left: clamp(1.4rem, 6vw, 5.5rem);
  max-width: 570px;
  position: absolute;
  top: 47%;
  transform: translateY(-50%);
}

.hero-content .lead {
  margin-top: 1.25rem;
  max-width: 530px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.intro-row {
  align-items: end;
  display: flex;
  gap: 1.5rem;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.product-grid,
.card-grid,
.journal-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.journal-grid {
  grid-template-columns: repeat(5, minmax(180px, 1fr));
}

.product-card,
.info-card,
.article-card,
.cart-line,
.checkout-panel {
  background: rgba(255, 253, 249, 0.76);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.product-card {
  overflow: hidden;
}

.product-card img {
  aspect-ratio: 1 / 0.78;
  object-fit: cover;
  width: 100%;
}

.product-card-body,
.info-card,
.article-card,
.cart-line,
.checkout-panel {
  padding: clamp(1rem, 2.4vw, 1.5rem);
}

.product-meta {
  color: var(--gold-dark);
  font-weight: 800;
  margin: 0.4rem 0 0.8rem;
}

.product-size,
.compare-price {
  color: rgba(78, 91, 74, 0.76);
  font-size: 0.92rem;
  font-weight: 700;
  margin-top: 0.45rem;
}

.savings {
  color: var(--sage);
  font-size: 0.92rem;
  font-weight: 900;
  margin: -0.35rem 0 0.75rem;
}

.benefit-list,
.clean-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.benefit-list li,
.clean-list li {
  border-top: 1px solid var(--line);
  padding: 0.62rem 0;
}

.promise-band {
  background: var(--olive);
  color: var(--ivory);
}

.promise-band h2,
.promise-band h3 {
  color: var(--ivory);
}

.promise-band .lead,
.promise-band p {
  color: rgba(247, 243, 238, 0.82);
}

.promise-band .info-card {
  background: rgba(247, 243, 238, 0.08);
  border-color: rgba(247, 243, 238, 0.18);
}

.ingredient-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.ingredient-cloud span {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--olive);
  font-weight: 800;
  padding: 0.7rem 1rem;
}

.split {
  align-items: center;
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1fr 1fr;
}

.waitlist-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: clamp(1.2rem, 4vw, 2rem);
}

.form-grid {
  display: grid;
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field label {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

input,
textarea,
select {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--olive);
  min-height: 48px;
  padding: 0.82rem 0.9rem;
  width: 100%;
}

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

.page-hero {
  background: linear-gradient(180deg, rgba(255, 253, 249, 0.7), rgba(247, 243, 238, 0));
  padding-bottom: 2rem;
}

.page-hero h1 {
  font-size: clamp(2.8rem, 6vw, 5.6rem);
}

.shop-tools {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.pdp {
  align-items: start;
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  grid-template-columns: 1fr 1fr;
}

.gallery-main {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.gallery-main img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.thumb-row {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 0.8rem;
}

.thumb-row button {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  overflow: hidden;
  padding: 0;
}

.thumb-row img {
  aspect-ratio: 1;
  object-fit: cover;
}

.qty-control {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  margin: 1rem 0;
  overflow: hidden;
}

.qty-control button {
  background: transparent;
  border: 0;
  color: var(--olive);
  cursor: pointer;
  font-size: 1.2rem;
  height: 42px;
  width: 42px;
}

.qty-control output {
  font-weight: 800;
  min-width: 34px;
  text-align: center;
}

.detail-block {
  border-top: 1px solid var(--line);
  margin-top: 1.5rem;
  padding-top: 1.5rem;
}

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

.cart-layout,
.checkout-layout {
  align-items: start;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.4fr 0.8fr;
}

.cart-line {
  align-items: center;
  display: grid;
  gap: 1rem;
  grid-template-columns: 92px 1fr auto;
  margin-bottom: 0.8rem;
}

.cart-line img {
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
}

.totals {
  display: grid;
  gap: 0.7rem;
}

.totals p {
  display: flex;
  justify-content: space-between;
}

.policy-copy {
  max-width: 820px;
}

.site-footer {
  background: var(--black);
  color: var(--ivory);
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1rem, 4vw, 3rem);
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  margin: 0 auto;
  max-width: 1180px;
}

.footer-grid h3 {
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 0.86rem;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
}

.footer-brand img {
  background: var(--ivory);
  border-radius: 8px;
  display: block;
  height: auto;
  margin-bottom: 1rem;
  max-width: 240px;
  padding: 0.75rem;
  width: 100%;
}

.footer-grid a {
  color: rgba(247, 243, 238, 0.78);
  display: block;
  margin: 0.45rem 0;
}

.footer-grid p {
  color: rgba(247, 243, 238, 0.76);
}

.disclaimer {
  font-size: 0.82rem;
  margin-top: 1.1rem;
  max-width: 560px;
}

.newsletter {
  margin-top: 1rem;
}

.newsletter label {
  color: rgba(247, 243, 238, 0.8);
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.newsletter div {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: 1fr auto;
}

.newsletter input {
  background: rgba(247, 243, 238, 0.08);
  border-color: rgba(247, 243, 238, 0.18);
  color: var(--ivory);
}

.newsletter button {
  background: var(--gold);
  border: 0;
  border-radius: 8px;
  color: var(--black);
  cursor: pointer;
  font-weight: 800;
  padding: 0 1rem;
}

.story-logo {
  background: var(--ivory);
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
  max-width: 320px;
  padding: 0.75rem;
  width: 100%;
}

.trust-grid {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 1.25rem 0;
}

.trust-grid span {
  align-items: center;
  background: rgba(255, 253, 249, 0.76);
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 800;
  gap: 0.45rem;
  padding: 0.6rem 0.75rem;
}

.trust-grid strong {
  color: var(--gold-dark);
}

.bundle-band {
  background: rgba(207, 196, 184, 0.18);
}

.bundle-band img {
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.inline-bundle,
.cart-bundle {
  padding: 0;
}

.inline-bundle .section-inner,
.cart-bundle .section-inner {
  display: grid;
  grid-template-columns: 1fr;
}

.inline-bundle img,
.cart-bundle img {
  display: none;
}

.cart-upsell {
  margin-top: 1rem;
}

.instagram-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.review-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.review-card {
  background: rgba(247, 243, 238, 0.82);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(1rem, 2.4vw, 1.5rem);
}

.stars {
  color: var(--gold-dark);
  font-size: 1rem;
  font-weight: 900;
  margin-bottom: 0.8rem;
}

.review-card p {
  margin-top: 0.85rem;
}

.review-card span {
  color: var(--sage);
  display: block;
  font-size: 0.82rem;
  font-weight: 900;
  margin-top: 1rem;
  text-transform: uppercase;
}

.instagram-grid article {
  background: rgba(255, 253, 249, 0.76);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.instagram-grid a {
  display: block;
}

.instagram-grid img {
  aspect-ratio: 1;
  object-fit: cover;
  width: 100%;
}

.instagram-grid span {
  display: block;
  font-size: 0.84rem;
  font-weight: 800;
  padding: 0.85rem;
}

.discount-popup {
  align-items: center;
  background: rgba(29, 29, 29, 0.42);
  display: none;
  inset: 0;
  justify-content: center;
  padding: 1rem;
  position: fixed;
  z-index: 100;
}

.discount-popup.is-visible {
  display: flex;
}

.discount-dialog {
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  max-width: 460px;
  padding: clamp(1.25rem, 4vw, 2rem);
  position: relative;
  width: 100%;
}

.discount-dialog img {
  margin-bottom: 1rem;
  max-width: 220px;
}

.popup-close {
  align-items: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--olive);
  cursor: pointer;
  display: inline-flex;
  font-size: 1.2rem;
  height: 36px;
  justify-content: center;
  position: absolute;
  right: 1rem;
  top: 1rem;
  width: 36px;
}

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

  .brand {
    order: 1;
  }

  .nav-toggle {
    display: block;
    justify-self: end;
    order: 3;
  }

  .site-nav {
    background: var(--ivory);
    border-bottom: 1px solid var(--line);
    display: none;
    flex-direction: column;
    grid-column: 1 / -1;
    order: 4;
    padding: 1rem 0;
  }

  body.nav-open .site-nav {
    display: flex;
  }

  .header-actions {
    order: 2;
    justify-self: end;
  }

  .site-nav a {
    font-size: 1.05rem;
    padding: 0.45rem 0;
  }

  .split,
  .pdp,
  .cart-layout,
  .checkout-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .card-grid,
  .journal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .instagram-grid,
  .review-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-header {
    min-height: 72px;
  }

  .site-header .button-small {
    display: none;
  }

  .header-actions {
    gap: 0.35rem;
  }

  .header-actions .icon-button[aria-label="Search"],
  .header-actions .icon-button[aria-label="Account"] {
    display: none;
  }

  .header-currency select {
    min-height: 38px;
    padding: 0.35rem 1.55rem 0.35rem 0.65rem;
  }

  .brand img {
    height: 48px;
    width: 118px;
  }

  .hero {
    min-height: 720px;
    padding: 0;
  }

  .hero img {
    border-radius: 0;
    height: 720px;
    object-position: 82% center;
  }

  .hero::after {
    background: linear-gradient(90deg, rgba(247, 243, 238, 0.99), rgba(247, 243, 238, 0.72));
    content: "";
    inset: 0;
    position: absolute;
  }

  .hero-content {
    left: 1rem;
    padding-right: 1rem;
    top: 43%;
    z-index: 1;
  }

  .product-grid,
  .card-grid,
  .journal-grid,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .intro-row,
  .shop-tools {
    align-items: start;
    flex-direction: column;
  }

  .cart-line {
    grid-template-columns: 76px 1fr;
  }

  .cart-line .button-outline {
    grid-column: 1 / -1;
    width: 100%;
  }
}
