/* ==========================================================================
   Fonts — served from this server, never from Google.
   Embedding Google Fonts from Google's CDN passes visitor IP addresses to a
   US server without consent. LG München I ruled that a GDPR breach on
   20.01.2022 (Az. 3 O 17493/20) and awarded damages. Self-hosting removes the
   issue entirely.

   The .woff2 files are NOT included — download them once and drop them in
   assets/fonts/. Instructions: assets/fonts/README.txt
   ========================================================================== */

@font-face {
  font-family: "Cormorant Garamond"; font-style: normal; font-weight: 300;
  font-display: swap; src: url("fonts/cormorant-garamond-300.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond"; font-style: italic; font-weight: 300;
  font-display: swap; src: url("fonts/cormorant-garamond-300italic.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond"; font-style: normal; font-weight: 400;
  font-display: swap; src: url("fonts/cormorant-garamond-400.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond"; font-style: italic; font-weight: 400;
  font-display: swap; src: url("fonts/cormorant-garamond-400italic.woff2") format("woff2");
}
@font-face {
  font-family: "Jost"; font-style: normal; font-weight: 300;
  font-display: swap; src: url("fonts/jost-300.woff2") format("woff2");
}
@font-face {
  font-family: "Jost"; font-style: normal; font-weight: 400;
  font-display: swap; src: url("fonts/jost-400.woff2") format("woff2");
}

/* ==========================================================================
   Female Rocks — botanics · café · community
   Palette and type derived from the printed flyer.
   ========================================================================== */

:root {
  /* Colour */
  --oxblood:        #56272a;  /* page ground — the flyer card */
  --oxblood-deep:   #401d20;  /* footer, scrim, wells */
  --oxblood-raised: #602e32;  /* cards lifted off the ground */
  --cream:          #ede0d0;  /* ink */
  --cream-soft:     rgba(237, 224, 208, 0.66);
  --cream-faint:    rgba(237, 224, 208, 0.28);
  --hairline:       rgba(237, 224, 208, 0.22);
  --sage:           #9daa87;  /* the only accent — used sparingly */

  /* Type */
  --display: "Cormorant Garamond", "Times New Roman", serif;
  --util:    "Jost", "Helvetica Neue", Arial, sans-serif;

  /* Rhythm */
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --measure: 1180px;
  --section-y: clamp(5rem, 12vw, 10rem);
}

/* --------------------------------------------------------------- reset -- */

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

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

body {
  margin: 0;
  background: var(--oxblood);
  color: var(--cream);
  font-family: var(--util);
  font-weight: 300;
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.0625rem);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; }

button { font: inherit; color: inherit; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--cream);
  color: var(--oxblood);
  padding: 0.75rem 1.25rem;
  z-index: 200;
}
.skip-link:focus { left: 0; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Honeypot: off-screen rather than display:none, since some bots skip
   hidden fields but still fill in anything merely positioned off-canvas.
   aria-hidden on the wrapper keeps it out of screen readers too. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ------------------------------------------------------ shared elements -- */

.wrap {
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  font-family: var(--util);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--cream-soft);
  margin: 0 0 1.5rem;
}

.h-display {
  font-family: var(--display);
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: 0.005em;
  margin: 0;
}

.h-1 { font-size: clamp(2.75rem, 7vw, 5rem); }
.h-2 { font-size: clamp(2rem, 4.4vw, 3.25rem); }
.h-3 { font-size: clamp(1.5rem, 2.4vw, 1.875rem); }

.lede {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(1.375rem, 2.6vw, 2rem);
  line-height: 1.42;
  max-width: 30ch;
}

.prose p { max-width: 58ch; color: var(--cream-soft); }
.prose p + p { margin-top: 1.15rem; }
.prose strong { color: var(--cream); font-weight: 600; }
.prose a { color: var(--cream); text-decoration-color: var(--cream-faint); }
.prose a:hover { text-decoration-color: var(--cream); }

/* Ornamental rule — the flyer's diamond-and-hairline device */
.rule {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  color: var(--cream-faint);
}
.rule::before,
.rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: currentColor;
}
.rule__mark {
  width: 9px; height: 9px;
  background: var(--cream);
  opacity: 0.75;
  transform: rotate(45deg);
}

/* Buttons */
.btn {
  --btn-bg: var(--cream);
  --btn-fg: var(--oxblood);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--cream);
  border-radius: 0;
  padding: 0.95rem 2rem;
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.35s ease, color 0.35s ease, opacity 0.35s ease;
}
.btn:hover { --btn-bg: transparent; --btn-fg: var(--cream); }
.btn:disabled { opacity: 0.5; cursor: default; }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--cream); }
.btn--ghost:hover { --btn-bg: var(--cream); --btn-fg: var(--oxblood); }

.btn--round { border-radius: 999px; }

/* Text link with a rule that retracts on hover */
.link {
  text-decoration: none;
  font-size: 0.6875rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  padding-bottom: 0.35rem;
  background-image: linear-gradient(var(--cream), var(--cream));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 1px;
  transition: background-size 0.4s ease;
}
.link:hover { background-size: 0% 1px; }

/* ----------------------------------------------------------------- mark -- */

.sprite {
  position: absolute;
  width: 0; height: 0;
  overflow: hidden;
}

.mark { color: var(--cream); display: block; }
.mark svg { width: 100%; height: auto; display: block; fill: currentColor; }



/* --------------------------------------------------------------- header -- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  padding-block: 1.35rem;
  transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}
.site-header.is-stuck {
  background: var(--oxblood-deep);
  padding-block: 0.85rem;
  box-shadow: 0 1px 0 var(--hairline);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-size: 0.6875rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  white-space: nowrap;
}
.brand .mark { width: 20px; flex: none; }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.5rem);
}
.nav a {
  text-decoration: none;
  font-size: 0.6875rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--cream-soft);
  transition: color 0.3s ease;
}
.nav a:hover { color: var(--cream); }
.nav a[aria-current="page"] { color: var(--cream); }

/* ------------------------------------------------------- mobile nav toggle -- */
/* Hidden and inert until app.js confirms JS is running (it tags <html
   class="js"> immediately on load) and the viewport is narrow. Without
   JS the nav simply stays in its normal, always-visible flow. */

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin: -0.5rem;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: var(--cream);
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  width: 20px;
  height: 2px;
  background: currentColor;
}
.nav-toggle__bars {
  position: relative;
  display: block;
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  transition: transform 0.25s ease, top 0.25s ease;
}
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 859px) {
  html.js .nav-toggle { display: inline-flex; }

  html.js .site-header__right {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem var(--gutter) 2rem;
    background: var(--oxblood-deep);
    box-shadow: 0 16px 28px -10px rgba(16, 6, 7, 0.55);
  }
  html.js .site-header__right.is-open { display: flex; }

  html.js .nav { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  html.js .nav a { font-size: 0.8125rem; }
}

@media (prefers-reduced-motion: reduce) {
  .nav-toggle__bars::before, .nav-toggle__bars::after { transition: none; }
}

/* ----------------------------------------------------------------- hero -- */

.hero {
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: 8rem 4rem;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.hero__bg,
.page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero__bg img,
.page-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: heroDrift 24s ease-out forwards;
}
/* Two scrims: a flat tint to unify the reds, and a vertical gradient so the
   lettering always lands on the darkest part of the frame. */
.hero__bg::after,
.page-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(40, 16, 19, 0.82) 0%,
      rgba(40, 16, 19, 0.58) 42%,
      rgba(40, 16, 19, 0.80) 100%),
    rgba(86, 39, 42, 0.42);
}

@keyframes heroDrift {
  from { transform: scale(1.06); }
  to   { transform: scale(1); }
}

.hero__inner { position: relative; }

.hero__inner { display: grid; justify-items: center; gap: 0; }

.hero .mark { width: clamp(58px, 8vw, 82px); margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }

.wordmark {
  width: min(84vw, 620px);
  margin: 0;
  line-height: 0;
  color: var(--cream);
}
.wordmark svg { width: 100%; height: auto; display: block; fill: currentColor; }

.hero__rule {
  width: min(520px, 84vw);
  margin-block: clamp(1.75rem, 4vw, 2.5rem) 1.25rem;
}

.hero__triad {
  font-size: clamp(0.6875rem, 1.6vw, 0.8125rem);
  letter-spacing: 0.44em;
  text-transform: uppercase;
  margin: 0;
  padding-left: 0.44em;
  color: var(--cream);
}

.hero__meta {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  display: grid;
  gap: 0.65rem;
  justify-items: center;
  color: var(--cream-soft);
  font-size: 0.8125rem;
}
.hero__cta { margin-top: clamp(2rem, 4vw, 2.75rem); }

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  translate: -50% 0;
  font-size: 0.625rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cream-faint);
  text-decoration: none;
}
.hero__scroll::after {
  content: "";
  display: block;
  width: 1px;
  height: 34px;
  margin: 0.75rem auto 0;
  background: linear-gradient(var(--cream-faint), transparent);
}

/* Load choreography */
.reveal-load { opacity: 0; transform: translateY(14px); }
.is-loaded .reveal-load {
  animation: riseIn 1.1s cubic-bezier(0.22, 0.75, 0.25, 1) forwards;
}
.is-loaded .hero .mark   { animation-delay: 0.3s; }
.is-loaded .wordmark     { animation-delay: 0.55s; }
.is-loaded .hero__rule   { animation-delay: 0.85s; }
.is-loaded .hero__triad  { animation-delay: 1s; }
.is-loaded .hero__meta   { animation-delay: 1.15s; }
.is-loaded .hero__cta    { animation-delay: 1.3s; }
.is-loaded .hero__scroll { animation-delay: 1.5s; }

@keyframes riseIn { to { opacity: 1; transform: none; } }

/* -------------------------------------------------------------- section -- */

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section--well { background: var(--oxblood-deep); }

.statement {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(1.625rem, 3.6vw, 2.75rem);
  line-height: 1.34;
  max-width: 22ch;
  margin: 0;
}
.statement em {
  font-style: italic;
  color: var(--cream);
}

.split {
  display: grid;
  gap: clamp(2rem, 6vw, 5rem);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 860px) {
  .split { grid-template-columns: 0.9fr 1.1fr; }
  .split--even { grid-template-columns: 1fr 1fr; }
}

/* A single photo in a polaroid frame — white border, caption in the margin. */
.polaroid {
  background: var(--cream);
  padding: 0.6rem 0.6rem 1.25rem;
  box-shadow: 0 18px 32px -6px rgba(16, 6, 7, 0.55);
}
.polaroid--feature {
  max-width: 380px;
  margin: 0 auto;
  transform: rotate(-2deg);
  transition: transform 0.4s ease;
}
.polaroid--feature:hover { transform: rotate(0deg); }

.polaroid--compact { max-width: 500px; }

.frame-slideshow__stage {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--oxblood-deep);
}
.frame-slideshow__stage img { width: 100%; height: 100%; object-fit: cover; }

.polaroid__photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.polaroid__caption {
  margin-top: 0.6rem;
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--oxblood);
}

@media (prefers-reduced-motion: reduce) {
  .polaroid--feature { transition: none; }
}

/* ------------------------------------------------------------- marquee -- */
/* An infinite right-to-left photo strip — the image set is duplicated once
   and the track scrolls exactly one set's width, so the loop never jumps. */
.marquee {
  margin-top: clamp(3.5rem, 7vw, 5rem);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 58s linear infinite;
}
.marquee__set {
  display: flex;
  gap: clamp(1.25rem, 2.5vw, 2rem);
  padding-right: clamp(1.25rem, 2.5vw, 2rem);
}
.marquee__item {
  flex: none;
  width: clamp(240px, 28vw, 420px);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--oxblood-deep);
  border: 1px solid var(--hairline);
}
.marquee__item img { width: 100%; height: 100%; object-fit: cover; display: block; }

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
}

/* Image slots — swap the <img> in when photography is ready */
.frame {
  position: relative;
  overflow: hidden;
  background: var(--oxblood-deep);
  border: 1px solid var(--hairline);
}
.frame::after {
  content: attr(data-caption);
  position: absolute;
  inset: auto 0 0 0;
  padding: 0.75rem 1rem;
  font-size: 0.625rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream-faint);
}
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame:has(img)::after { content: none; }
.frame--tall { aspect-ratio: 3 / 4; }
.frame--wide { aspect-ratio: 4 / 3; }

/* Two images in the same frame, crossfading like a slideshow. Negative delay
   on the second element starts it exactly half a cycle out of phase with the
   first, so the loop never needs JS or a "reset" jump. */
.frame-slideshow__img {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: frameCrossfade 10s ease-in-out infinite;
}
.frame-slideshow__img:last-child { animation-delay: -5s; }

.frame-slideshow__caption {
  position: relative;
  display: grid;
}
.frame-slideshow__caption span {
  grid-area: 1 / 1;
  opacity: 0;
  animation: frameCrossfade 10s ease-in-out infinite;
}
.frame-slideshow__caption span:last-child { animation-delay: -5s; }

@keyframes frameCrossfade {
  0%, 42%   { opacity: 1; }
  50%, 92%  { opacity: 0; }
  100%      { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .frame-slideshow__img,
  .frame-slideshow__caption span { animation: none; opacity: 0; }
  .frame-slideshow__img:first-child,
  .frame-slideshow__caption span:first-child { opacity: 1; }
}

.frame-caption {
  margin-top: 0.85rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream-soft);
}

.frame-pair {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
  grid-template-columns: 1fr 1fr;
}
.frame-pair .frame:first-child { margin-top: clamp(1.5rem, 5vw, 3.5rem); }

/* Visit block */
.visit {
  display: grid;
  gap: clamp(2rem, 5vw, 3rem);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .visit { grid-template-columns: repeat(3, 1fr); } }

.visit__item h3 {
  font-family: var(--util);
  font-weight: 400;
  font-size: 0.6875rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cream-soft);
  margin: 0 0 1rem;
}
.visit__item p { margin: 0; font-family: var(--display); font-size: 1.25rem; line-height: 1.5; }
.visit__item a { text-decoration: none; border-bottom: 1px solid var(--hairline); }
.visit__item a:hover { border-color: var(--cream); }

/* ----------------------------------------------------------------- shop -- */

/* Photo-backed page header — same treatment as the home hero, shorter. */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  align-items: end;
  min-height: min(62svh, 620px);
  padding-block: clamp(8rem, 16vw, 11rem) clamp(3rem, 6vw, 4.5rem);
}
.page-hero__inner {
  position: relative;
  display: grid;
  gap: 1.5rem;
  justify-items: start;
}
.page-hero .lede { color: var(--cream); }

.notice {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  border: 1px solid var(--hairline);
  padding: 0.6rem 1.1rem;
  font-size: 0.625rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--cream-soft);
  justify-self: start;
}
.notice__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--sage);
  flex: none;
}

.products {
  padding-top: var(--section-y);
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
  grid-template-columns: 1fr;
  padding-bottom: var(--section-y);
}
@media (min-width: 700px)  { .products { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .products { grid-template-columns: repeat(3, 1fr); } }

.product {
  --tea: var(--cream);
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: left;
  background: var(--oxblood-raised);
  border: 1px solid var(--hairline);
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.45s cubic-bezier(0.22, 0.75, 0.25, 1),
              border-color 0.45s ease, background 0.45s ease;
}
.product:hover {
  transform: translateY(-6px);
  border-color: var(--tea);
  background: #653236;
}

.product__art {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--oxblood-deep);
}
.product__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.22, 0.75, 0.25, 1);
}
.product:hover .product__art img { transform: scale(1.035); }

.product__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: clamp(1.5rem, 2.6vw, 2rem);
}

.product__index {
  font-size: 0.625rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cream-faint);
  margin: 0 0 0.8rem;
}
.product__name {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(1.75rem, 2.6vw, 2.125rem);
  line-height: 1.1;
  margin: 0 0 0.7rem;
}
.product__tagline {
  margin: 0 0 1.75rem;
  color: var(--tea);
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.product__detail {
  margin: -0.95rem 0 1.75rem;
  color: var(--cream-soft);
  font-size: 0.8125rem;
}
.product__foot {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.625rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cream-soft);
}
.product__cta { color: var(--cream); display: inline-flex; align-items: center; gap: 0.5rem; background: none; border: 0; cursor: pointer; padding: 0; letter-spacing: inherit; font-size: inherit; text-transform: inherit; }
.product__cta::after {
  content: "";
  width: 14px; height: 1px;
  background: currentColor;
  transition: width 0.4s ease;
}
.product:hover .product__cta::after { width: 26px; }

/* ---------------------------------------------------------------- modal -- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: var(--gutter);
}
.modal[hidden] { display: none; }

.modal__scrim {
  position: absolute;
  inset: 0;
  background: rgba(30, 12, 14, 0.78);
  backdrop-filter: blur(3px);
  border: 0;
  padding: 0;
  cursor: pointer;
  animation: fade 0.35s ease forwards;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.modal__card {
  position: relative;
  width: min(520px, 100%);
  max-height: 88svh;
  overflow-y: auto;
  background: var(--oxblood);
  border: 1px solid var(--cream-faint);
  padding: clamp(2rem, 5vw, 3.25rem);
  text-align: center;
  animation: cardIn 0.5s cubic-bezier(0.22, 0.75, 0.25, 1) forwards;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}

.modal__close {
  position: absolute;
  top: 0.9rem; right: 0.9rem;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--cream-soft);
  font-size: 1.25rem;
  line-height: 1;
  transition: color 0.3s ease;
}
.modal__close:hover { color: var(--cream); }

.modal__card { --tea: var(--sage); }
.modal__art {
  width: 168px;
  margin: 0 auto 1.75rem;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--oxblood-deep);
}
.modal__art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.modal__eyebrow {
  font-size: 0.625rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--tea);
  margin: 0 0 1rem;
}
.modal__name {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  line-height: 1.1;
  margin: 0 0 0.75rem;
}
.modal__botanicals {
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--tea);
  margin: 0 0 1.75rem;
}
.modal__note {
  color: var(--cream-soft);
  font-size: 0.9375rem;
  margin: 0 auto 2rem;
  max-width: 36ch;
}

/* Waitlist form */
.waitlist { display: grid; gap: 0.75rem; }
.waitlist__row { display: grid; gap: 0.75rem; }
@media (min-width: 460px) {
  .waitlist__row { grid-template-columns: 1fr auto; }
}

.field {
  width: 100%;
  height: 3.25rem;
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: 0;
  color: var(--cream);
  font-family: var(--util);
  font-size: 0.9375rem;
  padding: 0 1.1rem;
  transition: border-color 0.3s ease;
}
.field::placeholder { color: var(--cream-faint); }
.field:focus { border-color: var(--cream-soft); outline-offset: 2px; }

/* Field and button sit side by side above 460px — match the button's height
   to the field's so the row reads as one control instead of two mismatched
   ones. Scoped to the waitlist row so the consent-banner .btn is untouched. */
.waitlist__row .btn {
  height: 3.25rem;
  padding: 0 2rem;
}

.waitlist__legal {
  font-size: 0.6875rem;
  color: var(--cream-faint);
  line-height: 1.6;
  margin: 0.35rem 0 0;
}

.form-msg {
  font-size: 0.8125rem;
  line-height: 1.6;
  margin: 0;
  min-height: 1.2em;
}
.form-msg--ok { color: var(--sage); }
.form-msg--err { color: #e8a9a0; }

.waitlist__done { display: grid; gap: 1rem; justify-items: center; }
.waitlist__done .mark { width: 44px; }

/* --------------------------------------------------------------- footer -- */

.site-footer {
  background: var(--oxblood-deep);
  padding-block: clamp(3.5rem, 8vw, 6rem) 2.5rem;
  border-top: 1px solid var(--hairline);
}

.footer-base {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--cream-faint);
}
.footer-base a { text-decoration: none; }
.footer-base a:hover { color: var(--cream-soft); }

/* ------------------------------------------------------- scroll reveals -- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s cubic-bezier(0.22, 0.75, 0.25, 1),
              transform 0.9s cubic-bezier(0.22, 0.75, 0.25, 1);
}
.reveal.is-in { opacity: 1; transform: none; }

/* --------------------------------------------------------- reduced motion */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal, .reveal-load { opacity: 1; transform: none; }
}


/* ------------------------------------------------------ language switch -- */

.site-header__right {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
}

.langswitch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  color: var(--cream-faint);
}
.langswitch button {
  background: none;
  border: 0;
  padding: 0.25rem 0.1rem;
  cursor: pointer;
  color: var(--cream-faint);
  font-family: var(--util);
  font-size: inherit;
  letter-spacing: inherit;
  transition: color 0.3s ease;
}
.langswitch button:hover { color: var(--cream-soft); }
.langswitch button[aria-pressed="true"] { color: var(--cream); }

/* --------------------------------------------------- consent check-box -- */

.waitlist__consent {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  line-height: 1.55;
  color: var(--cream-soft);
  text-align: left;
  cursor: pointer;
}
.waitlist__consent input {
  flex: none;
  width: 15px;
  height: 15px;
  margin-top: 0.2rem;
  accent-color: var(--sage);
}
.waitlist__consent a { color: var(--cream); }

/* -------------------------------------------------------- consent bar --- */

.consent {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 150;
  background: var(--oxblood-deep);
  border-top: 1px solid var(--hairline);
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.22, 0.75, 0.25, 1);
}
.consent.is-in { transform: none; }

.consent__inner {
  max-width: var(--measure);
  margin-inline: auto;
  padding: 1.5rem var(--gutter);
  display: grid;
  gap: 1.25rem;
  align-items: center;
}
@media (min-width: 840px) {
  .consent__inner { grid-template-columns: 1fr auto; gap: 2.5rem; }
}
.consent__title {
  font-family: var(--display);
  font-weight: 300;
  font-size: 1.25rem;
  margin: 0 0 0.4rem;
}
.consent__body {
  margin: 0;
  font-size: 0.875rem;
  color: var(--cream-soft);
  max-width: 66ch;
}
.consent__actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.consent .btn { padding: 0.8rem 1.5rem; }

/* ---------------------------------------------------------- legal pages -- */

.legal { padding-block: clamp(7rem, 14vw, 10rem) clamp(4rem, 8vw, 6rem); }
.legal__inner { max-width: 46rem; }

.legal h1 { margin-bottom: 2.5rem; }
.legal h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  line-height: 1.3;
  margin: 2.75rem 0 0.85rem;
}
.legal p, .legal li {
  color: var(--cream-soft);
  font-size: 0.9375rem;
  max-width: 62ch;
}
.legal p { margin: 0 0 1rem; }
.legal ul { margin: 0 0 1rem; padding-left: 1.1rem; display: grid; gap: 0.4rem; }
.legal a { color: var(--cream); }
.legal code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 0.85em;
  background: rgba(0, 0, 0, 0.2);
  padding: 0.1em 0.4em;
}
.legal__aside { font-size: 0.8125rem; color: var(--cream-faint); }
.legal__back { margin-top: 3rem; }

.template-warning {
  border: 1px solid var(--sage);
  border-left-width: 3px;
  padding: 1rem 1.25rem;
  margin-bottom: 2.75rem;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--cream-soft);
}
.template-warning strong {
  display: block;
  color: var(--sage);
  font-weight: 400;
  margin-bottom: 0.35rem;
}

/* [hidden] must win over component display rules */
[hidden] { display: none !important; }


/* ---------------------------------------------------------------- video -- */

.video {
  position: relative;
  margin: 0 auto;
  max-width: 420px;
  background: var(--oxblood-deep);
  border: 1px solid var(--hairline);
  overflow: hidden;
  aspect-ratio: 9 / 16;
}

/* The poster sits underneath as a first paint and a fallback if the file
   is missing; the <video> covers it once mounted. */
.video__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video__el {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: var(--oxblood-deep);
}

/* If the file fails to load, the poster stays and nothing looks broken. */
.video.has-error .video__poster { opacity: 1; }

.video__cta {
  max-width: 420px;
  margin: 1.25rem auto 0;
  text-align: center;
}

/* ---------------------------------------------------------- shop teaser -- */

/* ---------------------------------------------------------- request form -- */

.requestform {
  display: grid;
  gap: 1.1rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  text-align: left;
}
.requestform__row {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 620px) {
  .requestform__row--2 { grid-template-columns: 1fr 1fr; }
}

.field-group { display: grid; gap: 0.5rem; }
.field-label {
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream-soft);
}

textarea.field {
  height: auto;
  min-height: 9rem;
  padding: 0.9rem 1.1rem;
  resize: vertical;
  font-family: var(--util);
  line-height: 1.6;
}
