/* ── Veil public storefront ─────────────────────────────────────────────
   veil-site token system: carbon/pearl/nickel/gold, holographic hairline
   (--holo, used only as 1px frames), gold foil (--foil, primary buttons
   and display headings). Light/dark themes via [data-theme] with a
   prefers-color-scheme fallback; no external fonts, no backdrop filters. */

:root {
  --carbon: #070807;
  --pearl: #f4efe6;
  --nickel: #a8a397;
  --gold: #c9a15f;
  --gold-hi: #f1d9a4;
  --gold-deep: #76531f;

  --display: "Iowan Old Style", Baskerville, Georgia, serif;
  --ui: -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-silk: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-in-out: cubic-bezier(0.645, 0.045, 0.355, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --dur-enter: 220ms;
  --dur-exit: 160ms;

  --holo: conic-gradient(from var(--a, 0deg), #f6c98a, #f3a6c4, #b9a2f0, #8fb9f2, #86e0dc, #f5e39b, #f6c98a);
  --foil: linear-gradient(100deg, #8a6a33 0%, #c9a15f 20%, #f6e4b8 32%, #c9a15f 44%, #c8b2ee 54%, #9fd6d2 62%, #f1d9a4 72%, #c9a15f 86%, #8a6a33 100%);
  --foil-gold: linear-gradient(100deg, #8a6a33 0%, #c9a15f 30%, #f6e4b8 50%, #c9a15f 70%, #8a6a33 100%);

  --bg: var(--carbon);
  --ink: var(--pearl);
  --ink-soft: var(--nickel);
  --hairline: rgba(244, 239, 230, 0.12);
  --panel: #0c0d0c;
  --glow: rgba(201, 161, 95, 0.4);
  --accent-text: var(--gold);
  --focus-ring: var(--gold);
  --btn-ink: #1a1408;

  --page-gutter: clamp(1.25rem, 0.7rem + 2.4vw, 3.75rem);
  --section-space: clamp(4.5rem, 3rem + 7vw, 10rem);
  --body-copy: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --display-size: clamp(3.3rem, 1.45rem + 8vw, 8.5rem);
  --heading-size: clamp(2.5rem, 1.65rem + 4vw, 5.75rem);
  color-scheme: dark;
  font-family: var(--ui);
}

@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

@keyframes turn { to { --a: 360deg; } }

:root[data-theme="light"] {
  --bg: var(--pearl);
  --ink: #1a1712;
  --ink-soft: #6d665a;
  --hairline: rgba(26, 23, 18, 0.14);
  --panel: #fffcf5;
  --glow: rgba(176, 132, 58, 0.3);
  --accent-text: var(--gold-deep);
  --focus-ring: var(--gold-deep);
  --foil: linear-gradient(100deg, #5e4520 0%, #9c7430 20%, #d2aa5c 32%, #9c7430 44%, #7d6c98 54%, #4f7b80 62%, #b58b45 72%, #8a6a33 86%, #5e4520 100%);
  --foil-gold: linear-gradient(100deg, #5e4520 0%, #9c7430 30%, #d2aa5c 50%, #9c7430 70%, #5e4520 100%);
  color-scheme: light;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: var(--pearl);
    --ink: #1a1712;
    --ink-soft: #6d665a;
    --hairline: rgba(26, 23, 18, 0.14);
    --panel: #fffcf5;
    --glow: rgba(176, 132, 58, 0.3);
    --accent-text: var(--gold-deep);
    --focus-ring: var(--gold-deep);
    --foil: linear-gradient(100deg, #5e4520 0%, #9c7430 20%, #d2aa5c 32%, #9c7430 44%, #7d6c98 54%, #4f7b80 62%, #b58b45 72%, #8a6a33 86%, #5e4520 100%);
    --foil-gold: linear-gradient(100deg, #5e4520 0%, #9c7430 30%, #d2aa5c 50%, #9c7430 70%, #5e4520 100%);
    color-scheme: light;
  }
}

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

html {
  background: var(--bg);
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 20rem;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ui);
  font-size: var(--body-copy);
  line-height: 1.6;
  transition: background-color 0.8s var(--ease-silk), color 0.8s var(--ease-silk);
  -webkit-tap-highlight-color: transparent;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.2em;
}

button,
input {
  color: inherit;
  font: inherit;
}

button,
a {
  touch-action: manipulation;
}

[hidden] {
  display: none !important;
}

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

.skip-link {
  position: fixed;
  z-index: 200;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  background: var(--gold);
  color: var(--btn-ink);
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform var(--dur-exit) var(--ease-out);
}

.skip-link:focus {
  transform: translateY(0);
}

/* ── Chrome: header ────────────────────────────────────────────────── */

.site-header {
  position: relative;
  z-index: 100;
  display: flex;
  min-height: 5.25rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: max(0.7rem, env(safe-area-inset-top)) var(--page-gutter) 0.7rem;
  border-bottom: 1px solid var(--hairline);
  background: var(--bg);
}

.brand,
.footer-mark {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.brand img {
  width: 3.2rem;
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(201, 161, 95, 0.25));
}

.brand span {
  display: none;
  color: var(--ink-soft);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.desktop-nav,
.header-tools {
  display: flex;
  align-items: center;
}

.desktop-nav {
  display: none;
  gap: clamp(1rem, 2vw, 2.2rem);
}

.desktop-nav a,
.site-footer nav a {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color var(--dur-exit) var(--ease-out);
}

.header-tools {
  gap: 0.55rem;
}

.icon-button {
  min-width: 44px;
  min-height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.55rem 0.75rem;
  color: var(--ink);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color var(--dur-exit) var(--ease-out), transform var(--dur-exit) var(--ease-out);
}

/* moon/sun theme toggle — chat.html pattern, pure-CSS icon swap */
.theme-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-inline: 4px;
  padding: 0;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: border-color var(--dur-exit) var(--ease-out), transform var(--dur-exit) var(--ease-out);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

.theme-toggle .sun {
  display: none;
}

:root[data-theme="light"] .theme-toggle .sun {
  display: block;
}

:root[data-theme="light"] .theme-toggle .moon {
  display: none;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .theme-toggle .sun {
    display: block;
  }

  :root:not([data-theme="dark"]) .theme-toggle .moon {
    display: none;
  }
}

.menu-toggle i {
  position: relative;
  width: 1.15rem;
  height: 1px;
  background: currentColor;
}

.menu-toggle i::after {
  position: absolute;
  top: 0.34rem;
  right: 0;
  width: 0.75rem;
  height: 1px;
  background: currentColor;
  content: "";
}

/* ── Mobile menu ────────────────────────────────────────────────────── */

.mobile-menu {
  position: fixed;
  inset: 0;
  min-height: 100dvh;
  overflow-y: auto;
  padding: max(1rem, env(safe-area-inset-top)) var(--page-gutter) max(1.5rem, env(safe-area-inset-bottom));
  background: var(--bg);
  color: var(--ink);
  transform-origin: top right;
  animation: menu-enter var(--dur-enter) var(--ease-drawer) both;
}

.mobile-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-menu__top img {
  width: 3.75rem;
}

.mobile-menu__links {
  display: grid;
  padding-block: clamp(3rem, 13vh, 7rem);
}

.mobile-menu__links a {
  display: flex;
  min-height: 4.5rem;
  align-items: center;
  border-bottom: 1px solid var(--hairline);
  font-family: var(--display);
  font-size: clamp(2.2rem, 8vw, 4rem);
  line-height: 1;
  text-decoration: none;
}

.mobile-menu > p {
  color: var(--ink-soft);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mobile-menu[data-state="closing"] {
  animation: menu-exit var(--dur-exit) var(--ease-in-out) both;
}

@keyframes menu-enter {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes menu-exit {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0; transform: scale(0.97); }
}

main {
  display: block;
}

/* Sections follow the active theme; material-white reads as the quietly
   lifted panel surface rather than a second color world. */
.material-black,
.material-white {
  --section-muted: var(--ink-soft);
  background: var(--bg);
  color: var(--ink);
}

.material-white {
  background: var(--panel);
}

/* ── Threshold film (home + login) ──────────────────────────────────── */

.threshold-film {
  position: relative;
  display: grid;
  min-height: calc(100dvh - 5.25rem);
  align-items: end;
  overflow: hidden;
  padding: clamp(3rem, 9vw, 7.5rem) var(--page-gutter) clamp(4rem, 10vw, 8rem);
  isolation: isolate;
}

.cinematic-film {
  position: absolute;
  z-index: -2;
  inset: 0;
  overflow: hidden;
  background: var(--carbon);
}

.cinematic-film::after {
  position: absolute;
  z-index: 2;
  inset: 0;
  background: rgba(7, 8, 7, 0.24);
  content: "";
  pointer-events: none;
}

.cinematic-film picture,
.cinematic-film video,
.cinematic-film img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
}

.cinematic-film video {
  z-index: 1;
}

.threshold-film__copy,
.threshold-film__panel {
  position: relative;
  z-index: 3;
  width: min(100%, 38rem);
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid transparent;
  border-image: var(--holo) 1;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  animation: turn 18s linear infinite;
}

.threshold-film__copy h1,
.threshold-film__panel h1 {
  max-width: 9ch;
}

.threshold-film__copy > p:not(.eyebrow),
.threshold-film__panel > p:not(.eyebrow) {
  max-width: 38ch;
  margin: 1.5rem 0 2rem;
  color: var(--ink-soft);
}

.threshold-film--login {
  align-items: center;
  justify-items: center;
}

/* The living emblem: the login threshold's only visual. */
.login-emblem {
  position: relative;
  z-index: 2;
  width: clamp(9.5rem, 22vw, 14rem);
  aspect-ratio: 1 / 1;
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
}

.login-emblem video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.login-emblem .on-light {
  display: none;
}

:root[data-theme="light"] .login-emblem .on-dark {
  display: none;
}

:root[data-theme="light"] .login-emblem .on-light {
  display: block;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .login-emblem .on-dark {
    display: none;
  }

  :root:not([data-theme="dark"]) .login-emblem .on-light {
    display: block;
  }
}

/* ── Login threshold: readable, calm, single visual ─────────────────── */

/* The headline stays gold-only; the panel border is the only iridescence. */
.threshold-film--login h1 {
  background: var(--foil-gold);
  background-size: 100% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.05;
}

/* Fields with visible edges at rest; the CTA matches the 52px inputs. */
.threshold-film--login label {
  color: color-mix(in srgb, var(--ink) 68%, transparent);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}

.threshold-film--login input {
  border-color: color-mix(in srgb, var(--ink) 28%, transparent);
  background: color-mix(in srgb, var(--ink) 4%, transparent);
}

.threshold-film--login .button {
  min-height: 52px;
  font-size: 0.9375rem;
  letter-spacing: 0.08em;
}

/* Light mode: the panel reads as a distinct surface, not loose cream. */
:root[data-theme="light"] .threshold-film--login .threshold-film__panel,
:root:not([data-theme="dark"])
  .threshold-film--login
  .threshold-film__panel {
  background: rgba(26, 23, 18, 0.035);
  box-shadow: inset 0 0 0 1px rgba(26, 23, 18, 0.06);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .threshold-film--login .threshold-film__panel {
    background: color-mix(in srgb, var(--bg) 86%, transparent);
    box-shadow: none;
  }
}

@media (max-width: 30rem) {
  .threshold-film--login {
    padding-top: 24px;
    padding-bottom: 48px;
    padding-inline: 12px;
  }

  .login-emblem {
    width: 112px;
    height: 112px;
    margin-bottom: 20px;
  }

  .threshold-film--login h1 {
    font-size: 2.375rem;
  }

  .threshold-film--login .threshold-film__panel {
    padding: 20px 18px;
  }
}

.threshold-film__panel .threshold__mark {
  margin-bottom: 1.75rem;
}

/* ── Type ───────────────────────────────────────────────────────────── */

.eyebrow {
  margin: 0 0 1.2rem;
  color: var(--accent-text);
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1,
h2,
h3 {
  margin-block: 0;
  font-family: var(--display);
  font-weight: 400;
  line-height: 0.95;
  text-wrap: balance;
}

h1 {
  max-width: 12ch;
  font-size: var(--display-size);
  letter-spacing: -0.045em;
  background: var(--foil);
  background-size: 100% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2 {
  max-width: 13ch;
  font-size: var(--heading-size);
  letter-spacing: -0.035em;
}

h3 {
  font-size: clamp(2rem, 1.5rem + 2vw, 3.8rem);
  letter-spacing: -0.025em;
}

h3 a {
  text-decoration: none;
}

.hero__copy > p:not(.eyebrow),
.page-intro > p:not(.eyebrow),
.collection-hero__copy > p:not(.eyebrow),
.product-detail__copy > p,
.section-heading > p,
.editorial > p,
.threshold > p {
  max-width: 60ch;
}

.hero__copy > p:not(.eyebrow) {
  margin: 1.6rem 0 2rem;
  color: var(--section-muted);
}

/* ── Controls ───────────────────────────────────────────────────────── */

.button,
.button--quiet,
.text-link {
  min-height: 44px;
  align-items: center;
  justify-content: center;
  transition: background-position 0.9s var(--ease-out), border-color var(--dur-exit) var(--ease-out), color var(--dur-exit) var(--ease-out), transform var(--dur-exit) var(--ease-out);
}

.button {
  display: inline-flex;
  padding: 0.8rem 1.4rem;
  border: 1px solid transparent;
  background-color: var(--gold);
  background-image: var(--foil);
  background-size: 220% 100%;
  background-position: 0% 0;
  color: var(--btn-ink);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 10px 28px -12px var(--glow), inset 0 1px 0 rgba(255, 246, 220, 0.35);
}

.button--quiet {
  display: inline-flex;
  padding: 0.8rem 1.15rem;
  border: 1px solid var(--hairline);
  background: transparent;
  color: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.text-link {
  display: inline-flex;
  color: var(--accent-text);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-decoration-color: var(--gold);
  text-transform: uppercase;
}

.button:active {
  transform: scale(0.97);
}

.button--quiet:active {
  transform: scale(0.97);
}

.text-link:active {
  transform: scale(0.97);
}

.icon-button:active {
  transform: scale(0.97);
}

.theme-toggle:active {
  transform: scale(0.97);
}

.brand:active {
  transform: scale(0.97);
}

.breadcrumb-link:active {
  transform: scale(0.97);
}

.collection-card__stage:active {
  transform: scale(0.97);
}

.collection-title-link:active {
  transform: scale(0.97);
}

.footer-link:active {
  transform: scale(0.97);
}

.footer-mark:active {
  transform: scale(0.97);
}

.journal-title-link:active {
  transform: scale(0.97);
}

.menu-toggle:active {
  transform: scale(0.97);
}

.nav-link:active {
  transform: scale(0.97);
}

.product-card__stage:active {
  transform: scale(0.97);
}

.product-title-link:active {
  transform: scale(0.97);
}

.skip-link:active {
  transform: scale(0.97);
}

.breadcrumb-link,
.collection-title-link,
.journal-title-link,
.product-title-link {
  display: inline-block;
}

/* ── Stages and cards ───────────────────────────────────────────────── */

.hero-stage {
  position: relative;
  z-index: 1;
  min-height: clamp(22rem, 108vw, 34rem);
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: var(--panel);
  isolation: isolate;
}

.hero-stage .product-stage {
  height: 100%;
  min-height: inherit;
  transform: translateY(var(--stage-offset, 0));
  transition: transform var(--dur-enter) var(--ease-out);
}

.hero-stage .product-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: clamp(1.5rem, 5vw, 4.5rem);
}

.hero-stage .hero-family-stage img {
  padding: 0;
  object-fit: cover;
  object-position: center 72%;
}

.curtain-panel {
  position: absolute;
  z-index: 5;
  inset-block: -2%;
  width: 53%;
  background: var(--bg);
  box-shadow: inset 0 0 0 1px rgba(244, 239, 230, 0.045);
  transition: transform var(--dur-enter) var(--ease-drawer);
}

.curtain-panel::after {
  position: absolute;
  inset-block: 0;
  width: 35%;
  border-radius: 50%;
  background: rgba(244, 239, 230, 0.028);
  content: "";
}

.curtain-panel--left {
  left: -3%;
  border-radius: 0 54% 46% 0;
}

.curtain-panel--left::after {
  right: 7%;
}

.curtain-panel--right {
  right: -3%;
  border-radius: 54% 0 0 46%;
}

.curtain-panel--right::after {
  left: 7%;
}

.hero-stage.is-revealed .curtain-panel--left {
  transform: translateX(-94%);
}

.hero-stage.is-revealed .curtain-panel--right {
  transform: translateX(94%);
}

.hero__index {
  position: absolute;
  right: var(--page-gutter);
  bottom: 1.4rem;
  margin: 0;
  color: var(--gold);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
}

.collection-chapters,
.objects-section,
.object-focus,
.ingredient-section {
  padding: var(--section-space) var(--page-gutter);
}

.section-heading {
  display: grid;
  gap: 1rem;
  margin-bottom: clamp(3rem, 7vw, 6rem);
}

.section-heading > p:not(.eyebrow) {
  color: var(--section-muted);
}

.collection-grid,
.product-list {
  display: grid;
  gap: clamp(3.5rem, 9vw, 8rem);
}

.collection-card,
.product-card {
  display: grid;
  gap: 1.5rem;
}

.collection-card__stage,
.product-card__stage {
  display: block;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}

.product-stage {
  position: relative;
  display: grid;
  margin: 0;
  min-height: 22rem;
  place-items: center;
  overflow: hidden;
  border: 1px solid transparent;
  border-image: var(--holo) 1;
  background: var(--panel);
  animation: turn 22s linear infinite;
}

.product-stage img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: contain;
  transition: transform var(--dur-enter) var(--ease-out);
}

.product-stage picture {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
}

.product-stage figcaption {
  position: absolute;
  right: 0.8rem;
  bottom: 0.6rem;
  max-width: 15rem;
  color: var(--ink-soft);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-align: right;
}

.collection-stage img {
  object-fit: cover;
}

.collection-card__copy,
.product-card__copy {
  max-width: 36rem;
}

.collection-card__copy > p:not(.eyebrow),
.product-card__copy > p:not(.eyebrow) {
  color: var(--section-muted);
}

.notes {
  color: var(--accent-text);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
}

/* ── Long pages ─────────────────────────────────────────────────────── */

.page-intro,
.collection-hero,
.product-detail,
.threshold {
  padding: clamp(4rem, 10vw, 9rem) var(--page-gutter);
}

.page-intro {
  min-height: 70dvh;
}

.page-intro h1,
.collection-hero h1,
.product-detail h1,
.threshold h1,
.editorial h1 {
  margin-bottom: 2rem;
}

.page-intro > p,
.collection-hero__copy > p,
.product-detail__copy > p,
.threshold > p {
  color: var(--section-muted);
}

.collection-hero,
.product-detail {
  display: grid;
  min-height: calc(100dvh - 5.25rem);
  align-items: center;
  gap: clamp(2.5rem, 7vw, 7rem);
}

.collection-hero .product-stage,
.product-detail .product-stage {
  min-height: clamp(25rem, 120vw, 39rem);
}

.quiet-note {
  padding-left: 1rem;
  border-left: 1px solid var(--gold);
  color: var(--section-muted);
  font-size: 0.82rem;
}

.gold-rule {
  width: min(12rem, 40%);
  height: 1px;
  margin: 2.5rem 0;
  background: var(--gold);
}

.product-detail__copy h2 {
  margin-bottom: 1.2rem;
  font-size: clamp(1.8rem, 1.4rem + 1.2vw, 2.6rem);
}

.ingredient-section h2 {
  margin-bottom: 3rem;
}

.ingredient-list {
  margin: 0 0 3rem;
}

.ingredient-list > div {
  display: grid;
  gap: 0.75rem;
  padding: 1.5rem 0;
  border-top: 1px solid color-mix(in srgb, var(--gold) 45%, transparent);
}

.ingredient-list span,
.ingredient-list dt {
  color: var(--gold-deep);
}

.ingredient-list span {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
}

.ingredient-list dt {
  font-family: var(--display);
  font-size: clamp(1.8rem, 1.3rem + 2vw, 3.2rem);
}

.ingredient-list dd {
  max-width: 55ch;
  margin: 0;
  color: var(--section-muted);
}

.editorial {
  padding: clamp(4rem, 11vw, 10rem) var(--page-gutter);
}

.editorial > * {
  max-width: 65ch;
  margin-inline: auto;
}

.editorial ul {
  padding-inline-start: 1.25rem;
}

.editorial li {
  margin: 0.75rem 0;
  color: var(--section-muted);
}

.editorial li + li {
  border-top: 1px solid var(--hairline);
  padding-top: 0.75rem;
}

.editorial > h1 {
  max-width: 11ch;
  margin-left: 0;
}

.editorial > .eyebrow {
  margin-left: 0;
}

.editorial .lede {
  margin-block: 2rem 5rem;
  font-family: var(--display);
  font-size: clamp(1.35rem, 1.1rem + 1vw, 2rem);
  line-height: 1.4;
}

.editorial h2 {
  margin-top: 5rem;
  margin-bottom: 1.5rem;
  font-size: clamp(2rem, 1.4rem + 2.5vw, 4rem);
}

.editorial-pull {
  max-width: 76rem;
  margin-block: 5rem;
  padding: clamp(3rem, 9vw, 8rem) clamp(1.5rem, 7vw, 6rem);
  border: 1px solid transparent;
  border-image: var(--holo) 1;
}

.editorial-pull p {
  max-width: 20ch;
  margin: 0 0 0 auto;
  font-family: var(--display);
  font-size: clamp(2.2rem, 1.3rem + 4vw, 5rem);
  line-height: 1;
}

.editorial blockquote {
  margin-block: 4rem;
  padding-left: 1.5rem;
  border-left: 1px solid var(--gold);
  font-family: var(--display);
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.4rem);
}

.curtain-study {
  position: relative;
  min-height: clamp(23rem, 80vw, 38rem);
  margin-block: 4rem;
  overflow: hidden;
  background: var(--panel);
}

.curtain-study__left,
.curtain-study__right {
  position: absolute;
  inset-block: -10%;
  width: 57%;
  border: 1px solid var(--hairline);
  background: var(--bg);
}

.curtain-study__left {
  left: -18%;
  border-radius: 0 55% 45% 0;
  transform: rotate(4deg);
}

.curtain-study__right {
  right: -18%;
  border-radius: 55% 0 0 45%;
  transform: rotate(-4deg);
}

.curtain-study__line {
  position: absolute;
  top: 9%;
  bottom: 9%;
  left: calc(50% - 1px);
  width: 2px;
  background: var(--gold);
}

.journal-card {
  display: grid;
  gap: 2.5rem;
  padding: var(--section-space) var(--page-gutter);
  border: 1px solid transparent;
  border-image: var(--holo) 1;
}

.journal-card .curtain-study {
  width: 100%;
  margin: 0;
}

.journal-card > div {
  align-self: center;
  max-width: 38rem;
}

.journal-card h2 {
  margin-bottom: 1.5rem;
}

.journal-card h2 a {
  text-decoration: none;
}

/* ── Threshold (account, 404) ───────────────────────────────────────── */

.threshold {
  display: flex;
  min-height: calc(100dvh - 5.25rem);
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.threshold__mark {
  width: 5rem;
  margin-bottom: 3rem;
  filter: drop-shadow(0 0 12px rgba(201, 161, 95, 0.25));
}

.threshold h1 {
  max-width: 10ch;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.account-name {
  color: var(--accent-text);
  font-family: var(--display);
  font-size: 1.6rem;
}

/* ── Forms (login, account) ────────────────────────────────────────── */

form {
  display: grid;
  width: min(100%, 31rem);
  gap: 1.25rem;
  margin-top: 2rem;
}

form > div {
  display: grid;
  gap: 0.45rem;
}

label {
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

input {
  min-height: 52px;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--hairline);
  border-radius: 0;
  background: transparent;
  transition: border-color var(--dur-exit) var(--ease-out), box-shadow var(--dur-exit) var(--ease-out);
}

input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold);
}

[data-login-status] {
  min-height: 1.6em;
  color: var(--accent-text);
  font-size: 0.86rem;
}

.missing-page {
  position: relative;
  overflow: hidden;
}

.missing-page__number {
  position: absolute;
  right: -0.05em;
  bottom: -0.28em;
  margin: 0;
  color: color-mix(in srgb, var(--ink) 4%, transparent);
  font-family: var(--display);
  font-size: clamp(14rem, 50vw, 46rem);
  line-height: 1;
  pointer-events: none;
}

/* ── Footer ────────────────────────────────────────────────────────── */

.site-footer {
  display: grid;
  gap: 2rem;
  padding: clamp(3.5rem, 8vw, 7rem) var(--page-gutter) max(2rem, env(safe-area-inset-bottom));
  border-top: 1px solid transparent;
  border-image: var(--holo) 1;
  background: var(--bg);
  color: var(--ink);
}

.footer-mark img {
  width: 5rem;
  filter: drop-shadow(0 0 12px rgba(201, 161, 95, 0.25));
}

.site-footer > div > p,
.footer-note {
  max-width: 38ch;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.5rem;
}

/* ── Reveal motion ──────────────────────────────────────────────────── */

.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity var(--dur-enter) var(--ease-out), transform var(--dur-enter) var(--ease-out);
}

.has-js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Hover states (fine pointers only) ─────────────────────────────── */

@media (hover: hover) and (pointer: fine) {
  .desktop-nav a:hover, .site-footer nav a:hover { color: var(--gold-hi); }
  .icon-button:hover { color: var(--gold); }
  .theme-toggle:hover { border-color: var(--gold); }
  .button:hover { background-position: 92% 0; transform: translateY(-2px); }
  .button--quiet:hover { border-color: var(--gold); color: var(--accent-text); }
  .text-link:hover { color: var(--gold-hi); }
  .product-card__stage:hover .product-stage img, .collection-card__stage:hover .product-stage img { transform: scale(1.025); }
}

/* ── Breakpoints ────────────────────────────────────────────────────── */

@media (min-width: 40rem) {
  .brand span {
    display: flex;
  }

  .ingredient-list > div {
    grid-template-columns: 3rem minmax(11rem, 0.65fr) 1fr;
    align-items: baseline;
  }

  .site-footer {
    grid-template-columns: 1.1fr 1fr;
  }

  .footer-note {
    grid-column: 1 / -1;
  }
}

@media (min-width: 64rem) {
  .desktop-nav {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }

  .hero {
    grid-template-columns: minmax(0, 0.84fr) minmax(27rem, 1.16fr);
  }

  .threshold-film__copy {
    margin-left: 4vw;
  }

  .threshold-film__panel {
    margin-right: 4vw;
  }

  .hero-stage {
    min-height: min(72vh, 48rem);
  }

  .section-heading {
    grid-template-columns: minmax(0, 1.1fr) minmax(15rem, 0.55fr);
    align-items: end;
  }

  .section-heading .eyebrow {
    grid-column: 1 / -1;
  }

  .section-heading--offset {
    margin-left: 17%;
  }

  .collection-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: clamp(1rem, 2vw, 2.5rem);
    row-gap: clamp(4rem, 9vw, 8rem);
    align-items: start;
  }

  .collection-card--chocolate {
    grid-column: 1 / 8;
  }

  .collection-card--drinks {
    grid-column: 8 / 13;
    margin-top: 10rem;
  }

  .collection-card--soft-chews {
    grid-column: 3 / 11;
  }

  .product-card {
    grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.7fr);
    align-items: center;
  }

  .product-card:nth-child(even) {
    grid-template-columns: minmax(18rem, 0.7fr) minmax(0, 1.2fr);
  }

  .product-card:nth-child(even) .product-card__stage {
    grid-column: 2;
  }

  .product-card:nth-child(even) .product-card__copy {
    grid-row: 1;
    grid-column: 1;
    padding-left: 12%;
  }

  .collection-hero,
  .product-detail {
    grid-template-columns: minmax(20rem, 0.72fr) minmax(0, 1.28fr);
  }

  .collection-hero .product-stage,
  .product-detail .product-stage {
    min-height: min(74vh, 52rem);
  }

  .journal-card {
    grid-template-columns: minmax(0, 1.15fr) minmax(20rem, 0.7fr);
  }

  .site-footer {
    grid-template-columns: 1.25fr 0.75fr 0.7fr;
    align-items: end;
  }

  .footer-note {
    grid-column: auto;
  }
}

@media (min-width: 80rem) {
  .site-header {
    min-height: 5.75rem;
  }

  .product-stage {
    min-height: 34rem;
  }
}

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

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

  .has-js [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .hero-stage .product-stage {
    transform: none;
  }

  .cinematic-film video {
    display: none;
  }

  .curtain-panel--left {
    transform: translateX(-94%);
  }

  .curtain-panel--right {
    transform: translateX(94%);
  }
}
