@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=IBM+Plex+Mono:wght@400;500&family=Work+Sans:wght@400;500;600&display=swap");

:root {
  --bg: #EDEFE7;
  --ink: #2B2E28;
  --text: var(--ink);
  --heading: var(--ink);
  --muted: rgba(43, 46, 40, 0.62);
  --line: rgba(43, 46, 40, 0.18);
  --hairline: rgba(43, 46, 40, 0.22);
  --sage: #7C8B6F;
  --accent: var(--sage);
  --clay: #C98A7D;
  --sand: #D8CFC0;
  --section-alt: var(--sand);
  --surface: #f5f6f1;
  --max: 1120px;
  --font-body: "Work Sans", system-ui, sans-serif;
  --font-heading: "Fraunces", Georgia, "Times New Roman", serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --radius: 2px;
  --focus-ring: 2px solid var(--sage);
  --focus-offset: 3px;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(ellipse at top left, rgba(124, 139, 111, 0.07), transparent 42%),
    var(--bg);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--sage);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--ink);
}

:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
}

.container {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

/* —— Nav —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(237, 239, 231, 0.96);
  border-bottom: 1px solid var(--hairline);
  backdrop-filter: blur(8px);
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header--overlay:not(.site-header--scrolled) {
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
}

.site-header--scrolled {
  background: rgba(237, 239, 231, 0.96);
  border-bottom: 1px solid var(--hairline);
  box-shadow: 0 1px 0 rgba(43, 46, 40, 0.04);
}

.page-hero-stack {
  position: relative;
  margin-top: -4.25rem;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
}

.logo:hover {
  color: var(--sage);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
  font-weight: 400;
}

.nav-links a {
  color: var(--ink);
  text-decoration: none;
}

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

.nav-links a[aria-current="page"] {
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.1rem;
}

.site-header--overlay:not(.site-header--scrolled) .nav-links a {
  color: #fff;
  text-shadow: 0 1px 8px rgba(43, 46, 40, 0.35);
}

.site-header--overlay:not(.site-header--scrolled) .nav-links a:hover,
.site-header--overlay:not(.site-header--scrolled) .nav-links a[aria-current="page"] {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.75);
}

.nav-tools {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-select {
  appearance: none;
  border: 1px solid transparent;
  background-color: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
  padding: 0.35rem 1.4rem 0.35rem 0.25rem;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%232B2E28' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.15rem center;
}

.site-header--overlay:not(.site-header--scrolled) .lang-select {
  color: #fff;
  text-shadow: 0 1px 8px rgba(43, 46, 40, 0.35);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23ffffff' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
}

.lang-select option {
  color: var(--ink);
  background: var(--bg);
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: min(88vh, 820px);
  display: grid;
  align-items: center;
  color: #f7f6f2;
  overflow: hidden;
}

.hero__media,
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      105deg,
      rgba(43, 46, 40, 0.72) 0%,
      rgba(43, 46, 40, 0.48) 28%,
      rgba(43, 46, 40, 0.18) 52%,
      transparent 72%
    ),
    linear-gradient(180deg, rgba(43, 46, 40, 0.28) 0%, transparent 28%);
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: clamp(5.5rem, 12vw, 8rem) 0 clamp(3rem, 8vw, 5rem);
  max-width: min(32rem, calc(100% - 2rem));
  margin-inline: max(1rem, calc((100% - var(--max)) / 2)) auto;
  width: min(28rem, 100%);
}

.hero__headline {
  font-family: var(--font-body);
  font-size: clamp(1.4rem, 2.9vw, 1.95rem);
  font-weight: 500;
  line-height: 1.35;
  margin: 0;
  color: #fff;
  letter-spacing: 0.01em;
  text-shadow:
    0 1px 2px rgba(43, 46, 40, 0.45),
    0 8px 28px rgba(43, 46, 40, 0.35);
}

.hero__eyebrow {
  display: none;
}

.hero h1:not(.hero__headline) {
  font-family: var(--font-heading);
  font-size: clamp(2.35rem, 6.5vw, 4.4rem);
  font-weight: 500;
  line-height: 1.08;
  margin: 0 0 1rem;
  max-width: 14ch;
  color: #f7f6f2;
}

.hero p {
  max-width: 36rem;
  font-size: 1.02rem;
  margin: 0 0 1.6rem;
  color: rgba(247, 246, 242, 0.88);
}

/* —— Mission (after hero) —— */
.mission {
  background: var(--ink);
  color: var(--bg);
  padding: clamp(4rem, 12vw, 7.5rem) 0;
  text-align: center;
}

.mission__inner {
  max-width: 38rem;
  margin-inline: auto;
}

.mission__lead,
.mission__goal,
.mission__traits,
.mission__close {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  line-height: 1.7;
  color: color-mix(in srgb, var(--bg) 92%, transparent);
}

.mission__lead {
  margin-bottom: 1.75rem;
}

.mission__heading {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(1.85rem, 4.5vw, 2.65rem);
  line-height: 1.15;
  margin: 0 0 1.5rem;
  color: var(--bg);
}

.mission__goal {
  margin-bottom: 0.85rem;
}

.mission__emphasis {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  line-height: 1.45;
  margin: 0 0 1.75rem;
  color: var(--bg);
}

.mission__traits {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
  display: grid;
  gap: 0.15rem;
}

.mission__traits li {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  line-height: 1.7;
  color: color-mix(in srgb, var(--bg) 92%, transparent);
}

.mission__close {
  display: grid;
  gap: 0.15rem;
  margin-bottom: 2.5rem;
}

.mission__close p {
  margin: 0;
}

.mission__cta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bg);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--bg) 45%, transparent);
  padding-bottom: 0.2rem;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.mission__cta:hover {
  color: var(--clay);
  border-color: var(--clay);
}

.mission__cta:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 4px;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.72rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--sage);
  background: var(--sage);
  color: #f7f6f2;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #f7f6f2;
}

.btn--ghost {
  background: transparent;
  color: var(--sage);
}

.btn--ghost:hover {
  background: var(--sage);
  color: #f7f6f2;
}

.btn--light {
  background: transparent;
  color: #f7f6f2;
  border-color: rgba(247, 246, 242, 0.7);
}

.btn--light:hover {
  background: #f7f6f2;
  color: var(--ink);
  border-color: #f7f6f2;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* —— Sections —— */
.section {
  padding: clamp(3.25rem, 8vw, 5.5rem) 0;
}

.section--alt {
  background: var(--section-alt);
  border-block: 1px solid var(--hairline);
}

.section__grid {
  display: grid;
  gap: 2.25rem;
  align-items: center;
}

.section__grid--split {
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .section__grid--split {
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 3.5rem);
  }

  .section__grid--image-left .section__copy {
    order: 2;
  }

  .section__grid--image-left .section__media {
    order: 1;
  }

  .section__grid--reverse .section__media {
    order: 2;
  }
}

.section__copy em {
  font-family: var(--font-heading);
  font-style: italic;
  color: var(--ink);
}

.section__copy p {
  color: color-mix(in srgb, var(--ink) 82%, var(--muted));
  max-width: 38rem;
  line-height: 1.65;
}

.section__copy .btn {
  margin-top: 0.35rem;
}

@media (min-width: 900px) {
  .section__grid--image-left {
    gap: clamp(1.5rem, 4vw, 2.75rem);
  }

  .section__grid--image-left .section__copy {
    padding-inline-end: 0.5rem;
  }
}

.section h2,
.section h3 {
  font-family: var(--font-heading);
  color: var(--ink);
  line-height: 1.15;
  font-weight: 500;
}

.section h2 {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  margin: 0 0 1rem;
}

.section h3 {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  margin: 0 0 0.75rem;
}

.section p {
  color: var(--muted);
  margin: 0 0 1rem;
}

.section__media {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--hairline);
  background: var(--bg);
}

.section--alt .section__media {
  background: var(--section-alt);
}

.section__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section__media--wide {
  aspect-ratio: 16 / 10;
}

/* —— Atmosphere band (after foam) —— */
.atmosphere {
  position: relative;
  isolation: isolate;
  min-height: clamp(22rem, 48vw, 32rem);
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: #1a1b19;
}

.atmosphere__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.atmosphere__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 18% center;
  display: block;
}

.atmosphere__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(20, 21, 19, 0.72) 0%,
      rgba(20, 21, 19, 0.18) 32%,
      rgba(20, 21, 19, 0.12) 68%,
      rgba(20, 21, 19, 0.7) 100%
    ),
    linear-gradient(
      90deg,
      rgba(20, 21, 19, 0.62) 0%,
      rgba(20, 21, 19, 0.28) 34%,
      rgba(20, 21, 19, 0.05) 62%,
      transparent 100%
    );
}

.atmosphere__content {
  position: relative;
  z-index: 2;
  padding: clamp(2.75rem, 6vw, 4.25rem) 0;
  margin-inline: max(1rem, calc((100% - var(--max)) / 2)) auto;
  width: min(34rem, calc(100% - 2rem));
}

.atmosphere__title {
  font-family: var(--font-body);
  font-size: clamp(1.85rem, 4.2vw, 2.75rem);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 1.5rem;
  color: #fff;
  letter-spacing: -0.01em;
}

.atmosphere__body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(0.98rem, 1.55vw, 1.1rem);
  font-weight: 400;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.94);
  max-width: 26rem;
}

@media (max-width: 700px) {
  .atmosphere {
    min-height: 22rem;
    align-items: end;
  }

  .atmosphere__media img {
    object-position: 8% center;
  }

  .atmosphere__content {
    padding-bottom: 2.5rem;
  }
}

.story-block {
  max-width: 40rem;
}

.story-block em {
  font-family: var(--font-heading);
  font-style: italic;
  color: var(--ink);
}

.lab-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.85rem;
}

/* —— Catalog / apothecary product cards —— */
.catalog-intro {
  margin: 0 0 2rem;
  max-width: 36rem;
}

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

@media (min-width: 900px) {
  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.product-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--hairline);
  background: var(--bg);
  overflow: hidden;
  min-width: 0;
}

.product-card:hover {
  border-color: color-mix(in srgb, var(--sage) 55%, var(--hairline));
}

.product-card__image {
  aspect-ratio: 1;
  display: block;
  background: color-mix(in srgb, var(--bg) 82%, var(--sand));
  text-decoration: none;
  border-bottom: 1px solid var(--hairline);
  overflow: hidden;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.product-card__body {
  padding: 0.75rem 0.8rem 0.9rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.2rem;
}

.product-card__batch {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.product-card__rule {
  display: none;
}

.product-card__title {
  font-family: var(--font-heading);
  margin: 0;
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.5em;
}

.product-card__desc {
  display: none;
}

.product-card__price {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.5rem;
  align-items: baseline;
  margin: 0.45rem 0 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.product-card__price strong {
  font-weight: 500;
  color: var(--ink);
}

.product-card__price s {
  color: var(--muted);
  font-size: 0.74rem;
}

.sale-tag {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clay);
  border: 1px solid color-mix(in srgb, var(--clay) 55%, transparent);
  padding: 0.1rem 0.32rem;
}

.product-card .btn {
  margin-top: auto;
  align-self: stretch;
  text-align: center;
  font-size: 0.82rem;
  padding: 0.45rem 0.65rem;
}

/* —— Closing —— */
.closing {
  position: relative;
  isolation: isolate;
  min-height: clamp(24rem, 52vw, 34rem);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--ink);
  background: var(--sand);
}

.closing__media,
.closing__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.closing__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      transparent 20%,
      rgba(237, 239, 231, 0.55) 58%,
      rgba(237, 239, 231, 0.92) 100%
    ),
    linear-gradient(
      90deg,
      rgba(237, 239, 231, 0.45) 0%,
      transparent 55%
    );
}

.closing__content {
  position: relative;
  z-index: 2;
  padding: clamp(2.5rem, 7vw, 4.5rem) 0;
  margin-inline: max(1rem, calc((100% - var(--max)) / 2)) auto;
  width: min(34rem, calc(100% - 2rem));
}

.closing__title {
  font-family: var(--font-heading);
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 0.85rem;
  color: var(--ink);
}

.closing__body {
  margin: 0 0 1.35rem;
  color: color-mix(in srgb, var(--ink) 78%, var(--muted));
  max-width: 28rem;
  line-height: 1.6;
}

.closing__cta {
  background: var(--sage);
  color: #fff;
}

.closing__cta:hover {
  background: color-mix(in srgb, var(--sage) 88%, var(--ink));
  color: #fff;
}

/* —— Footer —— */
.site-footer {
  padding: clamp(2.75rem, 6vw, 3.75rem) 0 2.5rem;
  border-top: 1px solid var(--hairline);
  background: color-mix(in srgb, var(--sand) 40%, var(--bg));
}

.footer-grid {
  display: grid;
  gap: clamp(1.75rem, 4vw, 2.75rem);
  align-items: start;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.7fr) minmax(0, 0.9fr);
    column-gap: clamp(2rem, 5vw, 4rem);
  }
}

.footer-brand {
  max-width: 28rem;
}

.footer-blurb {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.98rem;
}

.footer-col h4,
.footer-grid h4 {
  font-family: var(--font-heading);
  font-weight: 500;
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  color: var(--ink);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--sage);
}

.newsletter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.15rem;
  align-items: stretch;
}

.newsletter input {
  flex: 1 1 10rem;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  padding: 0.65rem 0.75rem;
  min-height: 2.6rem;
}

.newsletter .btn {
  flex: 0 0 auto;
  min-height: 2.6rem;
}

.newsletter__status {
  flex: 1 1 100%;
  margin: 0.15rem 0 0;
  font-size: 0.85rem;
  color: color-mix(in srgb, var(--ink) 72%, var(--sage));
}

.newsletter__status--error {
  color: #8b3a32;
}

.center-text {
  text-align: center;
}

.center-text .container {
  max-width: 38rem;
}

.hidden {
  display: none !important;
}

@media (max-width: 700px) {
  .nav {
    flex-wrap: wrap;
    padding-block: 0.85rem;
    min-height: 0;
    gap: 0.65rem;
  }

  .nav-links {
    gap: 0.65rem 1rem;
    font-size: 0.85rem;
  }

  .hero__content {
    max-width: 100%;
    padding-top: 5.5rem;
  }
}
