/* ==========================================================================
   Mezoi Tea · "Ahok, bohok" (come in, sit down)
   The page is paced like a visit to an Assamese home: invitation, welcome,
   the tea, why it holds milk, the garden, brewing together, goodbye.
   Hearth and Forest carry whole chapters; ivory carries reading.
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face {
  font-family: Literata;
  src: url("/assets/fonts/literata-variable.woff2") format("woff2");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("/assets/fonts/hanken-grotesk-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Mezoi Assamese";
  src: url("/assets/fonts/noto-serif-bengali-assamese.woff2") format("woff2");
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0980-09FF, U+002C;
}
@font-face {
  font-family: "Literata Fallback";
  src: local("Georgia");
  size-adjust: 107.293%;
  ascent-override: 109.7%;
  descent-override: 28.706%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Hanken Fallback";
  src: local("Arial");
  size-adjust: 101.281%;
  ascent-override: 98.735%;
  descent-override: 29.917%;
  line-gap-override: 0%;
}

/* Registered so the tea colour itself can transition inside gradients. */
@property --liquor {
  syntax: "<color>";
  inherits: true;
  initial-value: #5b220e;
}

/* ---------- Tokens ---------- */
:root {
  /* Approved Mezoi palette */
  --hearth: #6f302b;
  --hearth-deep: #57241f;
  --ivory: #f5efe3;
  --ivory-2: #ece3d4;
  --ink: #342b27;
  --ink-muted: #63574f;
  --rule: #cfc3b2;
  --clay: #b85c40;
  --apricot: #e8be9c;
  --olive: #58654c;
  --forest: #10241d;
  --forest-2: #183128;

  --serif: Literata, "Literata Fallback", Georgia, serif;
  --sans: "Hanken Grotesk", "Hanken Fallback", Arial, sans-serif;
  --assamese: "Mezoi Assamese", "Noto Serif Bengali", "Noto Sans Bengali", serif;

  /* Type scale, 1.25+ between steps */
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.375rem, 1.2rem + 0.7vw, 1.75rem);
  --step-3: clamp(1.75rem, 1.35rem + 1.5vw, 2.5rem);
  --step-4: clamp(2.125rem, 1.5rem + 2.6vw, 3.5rem);
  --step-5: clamp(2.625rem, 1.6rem + 4.2vw, 5rem);
  --display: clamp(3.25rem, 1.7rem + 6.6vw, 6rem);

  /* Space */
  --gutter: clamp(20px, 4.5vw, 64px);
  --section: clamp(88px, 7rem + 4vw, 176px);
  --gap: clamp(32px, 2rem + 3vw, 96px);
  --header-h: 72px;
  --radius: 3px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --motion-gallery: 260ms;

  /* Layers */
  --z-header: 50;
  --z-skip: 60;

  color-scheme: light;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 8px);
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img,
svg {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
h1,
h2,
h3,
p,
dl,
dd,
ol,
figure {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-optical-sizing: auto;
  text-wrap: balance;
  line-height: 1.08;
  letter-spacing: -0.015em;
}
p {
  text-wrap: pretty;
}
a {
  color: inherit;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
::selection {
  background: var(--apricot);
  color: var(--ink);
}
:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 2px;
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  /* Pattern strokes resolve currentColor here, not at the referencing band. */
  color: var(--ivory);
}
.page-width {
  width: min(100% - 2 * var(--gutter), 1360px);
  margin-inline: auto;
}
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: var(--z-skip);
  padding: 12px 18px;
  background: var(--ink);
  color: var(--ivory);
  border-radius: var(--radius);
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus {
  transform: none;
}
[lang="as"] {
  font-family: var(--assamese);
  letter-spacing: 0;
}

/* ---------- Icons ---------- */
.icon {
  display: inline-block;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: currentColor;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}
.icon-arrow {
  mask-image: url("/assets/icons/arrow-right.svg");
}
.icon-up-right {
  mask-image: url("/assets/icons/arrow-up-right.svg");
}
.icon-plus {
  mask-image: url("/assets/icons/plus.svg");
}
.icon-minus {
  mask-image: url("/assets/icons/minus.svg");
}
.icon-close {
  mask-image: url("/assets/icons/x.svg");
}
.icon-menu {
  mask-image: url("/assets/icons/list.svg");
}

/* ---------- Controls ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 56px;
  padding: 0 22px 0 26px;
  border: 0;
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  text-decoration: none;
  transition:
    background-color 0.35s var(--ease),
    color 0.35s var(--ease),
    transform 0.16s var(--ease);
}
.button .icon {
  width: 20px;
  height: 20px;
  transition: transform 0.4s var(--ease);
}
@media (hover: hover) {
  .button:hover .icon-arrow {
    transform: translateX(4px);
  }
  .button:hover .icon-up-right {
    transform: translate(3px, -3px);
  }
}
.button:active {
  transform: scale(0.98);
}
.button-hearth {
  background: var(--hearth);
  color: var(--ivory);
}
.button-hearth:hover {
  background: var(--hearth-deep);
}
.button-light {
  background: var(--ivory);
  color: var(--hearth);
}
.button-light:hover {
  background: #fffaf1;
}
.button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}
.button:disabled .icon {
  transform: none;
}
.text-link,
.inline-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  transition: text-decoration-color 0.3s var(--ease);
}
.text-link:hover,
.inline-link:hover {
  text-decoration-color: currentColor;
}
.text-link .icon,
.inline-link .icon {
  width: 18px;
  height: 18px;
  transition: transform 0.35s var(--ease);
}
@media (hover: hover) {
  .text-link:hover .icon-up-right,
  .inline-link:hover .icon-up-right {
    transform: translate(2px, -2px);
  }
  .text-link:hover .icon-arrow,
  .inline-link:hover .icon-arrow {
    transform: translateX(3px);
  }
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  transition: background-color 0.25s var(--ease);
}
.icon-button:hover {
  background: color-mix(in srgb, currentColor 9%, transparent);
}
.icon-button:disabled {
  opacity: 0.32;
  cursor: not-allowed;
  background: transparent;
}
.kicker,
.dialog-kicker {
  font-family: var(--sans);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--olive);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: var(--z-header);
  color: var(--hearth);
  background: color-mix(in srgb, var(--ivory) 95%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--ink) 10%, transparent);
  transition:
    background-color 0.5s var(--ease),
    color 0.5s var(--ease),
    box-shadow 0.5s var(--ease),
    transform 0.6s var(--ease);
}
.js .site-header[data-over-hero] {
  color: var(--ivory);
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}
.site-header[data-tucked] {
  transform: translateY(-100%);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  height: var(--header-h);
  width: min(100% - 2 * var(--gutter), 1360px);
  margin-inline: auto;
}
.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: inherit;
}
.brand-logo {
  width: 124px;
  height: auto;
  aspect-ratio: 1016 / 264;
}
.desktop-nav {
  display: flex;
  gap: 32px;
  margin-left: auto;
}
.desktop-nav a {
  position: relative;
  padding: 10px 0;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}
.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.desktop-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}
.header-preorder {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px 0 18px;
  border: 1px solid color-mix(in srgb, currentColor 40%, transparent);
  border-radius: 999px;
  background: transparent;
  font-size: 0.9375rem;
  font-weight: 600;
  transition:
    background-color 0.3s var(--ease),
    color 0.3s var(--ease),
    border-color 0.3s var(--ease);
}
.header-preorder .icon {
  width: 16px;
  height: 16px;
}
.header-preorder:hover {
  background: var(--hearth);
  border-color: var(--hearth);
  color: var(--ivory);
}
.js .site-header[data-over-hero] .header-preorder:hover {
  background: var(--ivory);
  border-color: var(--ivory);
  color: var(--hearth);
}
.menu-button {
  display: none;
}
.mobile-menu {
  display: grid;
  gap: 4px;
  padding: 8px var(--gutter) 28px;
  background: var(--ivory);
  color: var(--ink);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--ink) 10%, transparent);
}
.mobile-menu a {
  padding: 12px 0;
  font-family: var(--serif);
  font-size: 1.75rem;
  line-height: 1.2;
  text-decoration: none;
  color: var(--hearth);
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
}
.mobile-menu .mobile-preorder {
  margin-top: 20px;
}
.mobile-menu .text-link {
  justify-self: start;
  margin-top: 8px;
  color: var(--hearth);
}

/* ---------- 1 · Hero ---------- */
.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: max(640px, 100svh);
  overflow: hidden;
  isolation: isolate;
  background: var(--forest);
  color: var(--ivory);
}
.hero picture {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% 50%;
  transform-origin: 70% 60%;
}
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      90deg,
      rgb(16 36 29 / 0.86) 0%,
      rgb(16 36 29 / 0.62) 30%,
      rgb(16 36 29 / 0.12) 62%,
      rgb(16 36 29 / 0) 78%
    ),
    linear-gradient(0deg, rgb(16 36 29 / 0.55) 0%, rgb(16 36 29 / 0) 34%),
    linear-gradient(180deg, rgb(16 36 29 / 0.5) 0%, rgb(16 36 29 / 0) 160px);
}
.hero-content {
  padding-block: calc(var(--header-h) + 48px) clamp(96px, 15vh, 168px);
}
.hero-greeting {
  margin-bottom: 26px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--apricot);
}
.hero h1 {
  max-width: 9.5ch;
  font-size: var(--display);
  line-height: 0.98;
  letter-spacing: -0.025em;
}
.hero h1 .line {
  display: block;
  overflow: clip;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}
.hero h1 .line > span {
  display: inline-block;
}
.hero-description {
  max-width: 34ch;
  margin-top: 30px;
  font-size: var(--step-1);
  line-height: 1.5;
  color: color-mix(in srgb, var(--ivory) 88%, transparent);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 32px;
  margin-top: 40px;
}
.hero-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 7px;
  text-decoration-color: color-mix(in srgb, var(--ivory) 45%, transparent);
  transition: text-decoration-color 0.3s var(--ease);
}
.hero-link:hover {
  text-decoration-color: var(--ivory);
}
.hero-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 28px;
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  font-size: var(--step--1);
  font-weight: 500;
  color: color-mix(in srgb, var(--ivory) 80%, transparent);
}
.hero-meta span + span::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 20px;
  border-radius: 50%;
  background: var(--clay);
  vertical-align: middle;
  transform: translateY(-1px);
}

@media (prefers-reduced-motion: no-preference) {
  .hero-photo {
    animation: hero-settle 2.8s var(--ease-out-expo) both;
  }
  .hero h1 .line > span {
    animation: line-rise 1.25s var(--ease-out-expo) both;
    animation-delay: 0.25s;
  }
  .hero h1 .line + .line > span {
    animation-delay: 0.36s;
  }
  .hero-greeting,
  .hero-description,
  .hero-actions,
  .hero-meta {
    animation: soft-in 1.2s var(--ease) both;
  }
  .hero-greeting {
    animation-delay: 0.15s;
  }
  .hero-description {
    animation-delay: 0.6s;
  }
  .hero-actions {
    animation-delay: 0.72s;
  }
  .hero-meta {
    animation-delay: 1s;
  }
}
@keyframes hero-settle {
  from {
    transform: scale(1.07);
    filter: brightness(0.7);
  }
  to {
    transform: scale(1);
    filter: brightness(1);
  }
}
@keyframes line-rise {
  from {
    transform: translateY(105%);
  }
  to {
    transform: none;
  }
}
@keyframes soft-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Scroll reveals (progressive; content is visible by default) ---------- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    [data-reveal] {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 55%;
    }
  }
}
@keyframes reveal {
  from {
    opacity: 0.25;
    transform: translateY(36px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Gamosa band ---------- */
.thread {
  color: var(--ivory);
}
.gamosa-band {
  width: 100%;
  height: 36px;
  overflow: visible;
}
.band-rule {
  fill: currentColor;
}
.band-dash {
  stroke: currentColor;
  stroke-width: 1;
  stroke-dasharray: 2 3;
}

/* ---------- 2 · Welcome (Hearth chapter) ---------- */
.welcome {
  padding-block: var(--section) clamp(56px, 6vw, 88px);
  background: var(--hearth);
  color: var(--ivory);
}
.welcome-inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--gap);
  align-items: end;
}
.assamese {
  font-family: var(--assamese);
  font-size: clamp(3.25rem, 1.6rem + 6vw, 7rem);
  font-weight: 500;
  line-height: 1.3;
  color: var(--apricot);
}
.welcome-gloss {
  display: grid;
  gap: 2px;
  margin-top: 14px;
}
.welcome-gloss span:first-child {
  font-family: var(--serif);
  font-size: var(--step-2);
}
.welcome-gloss span:last-child {
  color: color-mix(in srgb, var(--ivory) 78%, transparent);
}
.welcome-copy h2 {
  max-width: 17ch;
  font-size: var(--step-4);
  line-height: 1.1;
}
.welcome-copy p {
  max-width: 50ch;
  margin-top: 32px;
  font-size: 1.125rem;
  color: color-mix(in srgb, var(--ivory) 86%, transparent);
}
.welcome .thread {
  display: grid;
  gap: 24px;
  margin-top: clamp(72px, 9vw, 136px);
}
.welcome .gamosa-band {
  opacity: 0.85;
}
.thread figcaption {
  max-width: 62ch;
  font-size: 1rem;
  color: color-mix(in srgb, var(--ivory) 82%, transparent);
}
.thread figcaption strong {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ivory);
}

/* ---------- 3 · The tea ---------- */
.tea-section {
  padding-block: var(--section);
}
.tea-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0 clamp(20px, 2vw, 32px);
  align-items: start;
}
.tea-visual {
  grid-column: 1 / span 7;
  display: grid;
}
.tea-figure img {
  width: 100%;
  object-fit: cover;
  background: var(--ivory-2);
}
.tea-figure-main {
  width: 84%;
}
.tea-figure-main img {
  aspect-ratio: 4 / 5;
}
.tea-figure-setting {
  position: relative;
  width: 62%;
  margin-top: -26%;
  margin-left: auto;
}
.tea-figure-setting img {
  aspect-ratio: 3 / 2;
  outline: 12px solid var(--ivory);
}
.tea-figure-setting figcaption {
  margin-top: 26px;
  font-size: var(--step--1);
  color: var(--ink-muted);
}
.tea-copy {
  grid-column: 9 / span 4;
  position: sticky;
  top: calc(var(--header-h) + 40px);
  padding-top: clamp(24px, 6vw, 96px);
}
.tea-copy h2 {
  margin-top: 16px;
  font-size: var(--step-5);
  font-weight: 500;
  font-variation-settings: "opsz" 48;
  color: var(--hearth);
  line-height: 1.02;
}
.tea-lede {
  margin-top: 22px;
  font-family: var(--serif);
  font-size: var(--step-2);
  line-height: 1.3;
}
.body-copy {
  margin-top: 20px;
  max-width: 44ch;
  color: var(--ink-muted);
}
.tea-notes {
  margin-top: 36px;
  border-top: 1px solid var(--rule);
}
.tea-notes div {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--rule);
}
.tea-notes dt {
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--ink-muted);
  padding-top: 2px;
}
.tea-notes dd {
  font-weight: 500;
}
.origin-detail dd {
  color: var(--olive);
}
.tea-actions {
  display: grid;
  justify-items: start;
  gap: 14px;
  margin-top: 36px;
}
.tea-actions .button {
  width: 100%;
}
.order-caption {
  font-size: var(--step--1);
  color: var(--ink-muted);
}
.tea-actions .inline-link {
  color: var(--hearth);
}

/* ---------- 4 · Character (Forest chapter, the pour) ---------- */
.character {
  padding-block: var(--section);
  background: var(--forest);
  color: var(--ivory);
  overflow: clip;
}
.character-inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: var(--gap);
  align-items: center;
}
.character h2 {
  max-width: 13ch;
  font-size: var(--step-5);
  line-height: 1.04;
}
.character-intro {
  max-width: 46ch;
  margin-top: 28px;
  font-size: 1.125rem;
  color: color-mix(in srgb, var(--ivory) 84%, transparent);
}
.milk-character {
  margin-top: 44px;
  border-top: 1px solid color-mix(in srgb, var(--ivory) 18%, transparent);
}
.milk-character div {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--ivory) 18%, transparent);
}
.milk-character dt {
  font-family: var(--serif);
  font-size: 1.125rem;
  color: var(--apricot);
}
.milk-character dd {
  color: color-mix(in srgb, var(--ivory) 80%, transparent);
}

.pour {
  --liquor: #5b220e;
  display: grid;
  justify-items: center;
  gap: clamp(36px, 4vw, 56px);
  transition: --liquor 0.7s var(--ease);
}
.cup-stage {
  width: min(100%, 500px);
  aspect-ratio: 1;
  padding: 4% 9% 4% 3%;
}
.saucer {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(
    circle at 46% 44%,
    #f7f1e7 0%,
    #efe7da 52%,
    #d9ccb8 57.5%,
    #f4ede3 61%,
    #ebe2d3 80%,
    #d6c8b2 100%
  );
  box-shadow:
    0 50px 70px -40px rgb(0 0 0 / 0.7),
    inset 0 -10px 24px rgb(80 50 20 / 0.12);
}
.cup {
  position: absolute;
  inset: 19%;
  border-radius: 50%;
  background: radial-gradient(
    circle at 40% 36%,
    #fffdf8 0%,
    #f2eadd 62%,
    #d8c9b2 100%
  );
  box-shadow:
    14px 22px 26px -10px rgb(60 35 15 / 0.42),
    inset 0 0 0 1px rgb(255 255 255 / 0.4);
}
.cup-handle {
  position: absolute;
  top: 50%;
  right: -21%;
  width: 26%;
  height: 22%;
  border: 11px solid #e8dfd0;
  border-left: 0;
  border-radius: 0 999px 999px 0;
  transform: translateY(-50%);
  box-shadow: 8px 10px 14px -8px rgb(60 35 15 / 0.4);
  z-index: -1;
}
.liquor {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  overflow: hidden;
  /* A flat liquid surface: an even tone, darkened by the cup wall's shadow
     along the top, with a thin bright meniscus where it meets the porcelain. */
  background:
    linear-gradient(
      155deg,
      color-mix(in oklab, var(--liquor) 88%, #fff1dc) 0%,
      var(--liquor) 42%,
      color-mix(in oklab, var(--liquor) 86%, #1d0b04) 100%
    );
  box-shadow:
    inset 0 18px 22px -6px rgb(25 10 3 / 0.5),
    inset 0 0 0 1.5px color-mix(in oklab, var(--liquor) 55%, #fff6ea),
    inset -6px -8px 14px -6px rgb(255 240 220 / 0.22);
}
.liquor-shine {
  position: absolute;
  top: 46%;
  left: 54%;
  width: 30%;
  height: 22%;
  border-radius: 40%;
  background: rgb(255 250 240 / 0.12);
  filter: blur(9px);
  transform: rotate(-18deg);
}
.liquor-swirl {
  position: absolute;
  inset: -10%;
  border-radius: 50%;
  background: conic-gradient(
    from 30deg,
    transparent 0 14%,
    rgb(255 244 228 / 0.55) 22%,
    transparent 34% 52%,
    rgb(255 244 228 / 0.4) 62%,
    transparent 74% 100%
  );
  mask: radial-gradient(circle, transparent 12%, #000 30%, #000 58%, transparent 66%);
  -webkit-mask: radial-gradient(circle, transparent 12%, #000 30%, #000 58%, transparent 66%);
  filter: blur(5px);
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}
.pour.is-pouring .liquor-swirl {
  opacity: 1;
  transition-duration: 0.25s;
}
@media (prefers-reduced-motion: no-preference) {
  .liquor-swirl {
    animation: swirl 3.2s linear infinite;
  }
}
@keyframes swirl {
  to {
    transform: rotate(360deg);
  }
}
.pour-control {
  width: min(100%, 440px);
  display: grid;
  gap: 14px;
}
.pour-control label {
  font-family: var(--serif);
  font-size: var(--step-2);
}
.pour-control input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 44px;
  margin: 0;
  background: transparent;
  cursor: pointer;
}
.pour-control input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #5b220e, #8c4a23 30%, #b47c4d 62%, #dcc19f);
}
.pour-control input[type="range"]::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #5b220e, #8c4a23 30%, #b47c4d 62%, #dcc19f);
}
.pour-control input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 30px;
  height: 30px;
  margin-top: -12px;
  border: 0;
  border-radius: 50%;
  background: var(--ivory);
  box-shadow:
    0 0 0 6px color-mix(in srgb, var(--ivory) 22%, transparent),
    0 6px 12px rgb(0 0 0 / 0.35);
  transition: box-shadow 0.25s var(--ease), transform 0.2s var(--ease);
}
.pour-control input[type="range"]::-moz-range-thumb {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: var(--ivory);
  box-shadow:
    0 0 0 6px color-mix(in srgb, var(--ivory) 22%, transparent),
    0 6px 12px rgb(0 0 0 / 0.35);
}
.pour-control input[type="range"]:active::-webkit-slider-thumb {
  transform: scale(1.08);
}
.pour-control input[type="range"]:focus-visible {
  outline: none;
}
.pour-control input[type="range"]:focus-visible::-webkit-slider-thumb {
  box-shadow:
    0 0 0 3px var(--forest),
    0 0 0 5px var(--ivory);
}
.pour-control input[type="range"]:focus-visible::-moz-range-thumb {
  box-shadow:
    0 0 0 3px var(--forest),
    0 0 0 5px var(--ivory);
}
.pour-scale {
  display: flex;
  justify-content: space-between;
  font-size: var(--step--1);
  color: color-mix(in srgb, var(--ivory) 72%, transparent);
}
.pour-reading {
  min-height: 3.4em;
  margin-top: 8px;
  color: color-mix(in srgb, var(--ivory) 84%, transparent);
}
.pour-disclaimer {
  font-size: var(--step--1);
  color: color-mix(in srgb, var(--ivory) 66%, transparent);
}
.pour-reading strong {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--apricot);
}

/* ---------- 5 · Roots ---------- */
.roots-section {
  padding-bottom: var(--section);
}
.garden-hero {
  position: relative;
  display: grid;
  align-items: end;
  height: clamp(560px, 100svh, 1040px);
  overflow: hidden;
  isolation: isolate;
  background: var(--forest-2);
  color: var(--ivory);
}
.garden-hero-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 62%;
}
.garden-hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgb(16 36 29 / 0.78) 0%, rgb(16 36 29 / 0.3) 36%, rgb(16 36 29 / 0) 58%);
}
.garden-hero-copy {
  padding-bottom: clamp(56px, 8vw, 112px);
}
.place-label {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 18px;
  font-weight: 500;
  color: color-mix(in srgb, var(--ivory) 92%, transparent);
}
.place-label [lang="as"] {
  font-size: 1.25rem;
  color: var(--apricot);
}
.garden-hero h2 {
  font-size: var(--step-5);
  line-height: 1.04;
  text-shadow: 0 2px 30px rgb(16 36 29 / 0.35);
}
.garden-hero h2 span {
  display: block;
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .garden-hero-photo {
      animation: garden-drift linear both;
      animation-timeline: view();
      animation-range: cover 0% cover 100%;
    }
  }
}
@keyframes garden-drift {
  from {
    transform: scale(1.14) translateY(-3%);
  }
  to {
    transform: scale(1.02) translateY(2%);
  }
}

.roots-facts {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--gap);
  padding-top: var(--section);
}
.roots-intro {
  max-width: 24ch;
  font-family: var(--serif);
  font-size: var(--step-3);
  line-height: 1.25;
  color: var(--ink);
}
.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 clamp(20px, 2.4vw, 40px);
  align-self: end;
}
.facts div {
  padding-top: 18px;
  padding-bottom: 6px;
  border-top: 1px solid var(--ink);
}
.facts dt {
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--olive);
}
.facts dd {
  margin-top: 18px;
  color: var(--ink-muted);
  font-size: 1rem;
  line-height: 1.5;
}
.fact-figure {
  display: block;
  margin-bottom: 10px;
  font-family: var(--serif);
  font-size: var(--step-2);
  line-height: 1.15;
  color: var(--hearth);
  font-variant-numeric: lining-nums;
}

.roots-story {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0 clamp(20px, 2vw, 32px);
  align-items: start;
  margin-top: clamp(72px, 9vw, 136px);
}
.roots-photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.roots-photo-a {
  grid-column: 1 / span 4;
}
.roots-narrative {
  grid-column: 5 / span 4;
  padding-inline: clamp(0px, 1.5vw, 24px);
  align-self: center;
  display: grid;
  gap: 20px;
  padding-block: 40px;
}
.roots-statement {
  font-family: var(--serif);
  font-size: var(--step-2);
  line-height: 1.3;
  color: var(--hearth);
}
.roots-narrative p:not([class]) {
  color: var(--ink-muted);
}
.roots-credit {
  font-size: var(--step--1);
  color: var(--olive);
  font-weight: 500;
}
.roots-photo-b {
  grid-column: 9 / span 4;
  margin-top: 34%;
}

/* ---------- 6 · Ritual ---------- */
.ritual-section {
  padding-block: var(--section);
  background: var(--ivory-2);
}
.ritual-heading {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--gap);
  align-items: end;
}
.ritual-heading h2 {
  font-size: var(--step-5);
  color: var(--hearth);
  line-height: 1.02;
}
.ritual-intro {
  display: grid;
  justify-items: start;
  gap: 14px;
  max-width: 44ch;
}
.ritual-intro p {
  color: var(--ink-muted);
}
.ritual-finder {
  color: var(--hearth);
}
.ritual-layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--gap);
  align-items: start;
  margin-top: clamp(56px, 6vw, 96px);
}
.ritual-photo {
  position: sticky;
  top: calc(var(--header-h) + 32px);
}
.ritual-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.ritual-photo figcaption {
  margin-top: 14px;
  font-size: var(--step--1);
  color: var(--ink-muted);
}
.brew-guide {
  padding: clamp(28px, 3.6vw, 56px);
  background: var(--ivory);
  border-radius: var(--radius);
}
.brew-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border-radius: 26px;
  background: var(--ivory-2);
  width: fit-content;
  max-width: 100%;
}
.brew-tabs button {
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--ink-muted);
  white-space: nowrap;
  transition:
    background-color 0.35s var(--ease),
    color 0.35s var(--ease);
}
.brew-tabs button:hover {
  color: var(--ink);
}
.brew-tabs button[aria-selected="true"] {
  background: var(--hearth);
  color: var(--ivory);
}
#brew-panel {
  margin-top: 36px;
  border-radius: 2px;
}
#brew-panel.is-changing > * {
  animation: soft-in 0.6s var(--ease) both;
}
#brew-panel.is-changing > *:nth-child(2) {
  animation-delay: 0.04s;
}
#brew-panel.is-changing > *:nth-child(3) {
  animation-delay: 0.08s;
}
#brew-panel.is-changing > *:nth-child(4) {
  animation-delay: 0.12s;
}
.recipe-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.recipe-mood {
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--olive);
}
.cup-stepper {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 4px 2px 16px;
  border: 1px solid var(--rule);
  border-radius: 999px;
}
.cup-stepper > span {
  margin-right: 6px;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--ink-muted);
}
.cup-stepper .icon {
  width: 18px;
  height: 18px;
}
#cup-count {
  min-width: 2ch;
  text-align: center;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-variant-numeric: tabular-nums;
}
#recipe-title {
  margin-top: 22px;
  font-size: var(--step-3);
  line-height: 1.15;
}
.recipe-ingredients {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 34px;
  border-block: 1px solid var(--rule);
}
.recipe-ingredients div {
  display: grid;
  gap: 2px;
  padding: 20px 16px 22px 0;
}
.recipe-ingredients div + div {
  padding-left: 20px;
  border-left: 1px solid var(--rule);
}
.recipe-ingredients dt {
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--ink-muted);
}
.recipe-ingredients dd {
  font-family: var(--serif);
  font-size: var(--step-2);
  color: var(--hearth);
  font-variant-numeric: lining-nums tabular-nums;
  line-height: 1.25;
}
.recipe-steps {
  display: grid;
  gap: 0;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.recipe-steps li {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--rule) 60%, transparent);
  counter-increment: step;
}
.recipe-steps li::before {
  content: counter(step);
  font-family: var(--serif);
  font-size: 1.375rem;
  line-height: 1.2;
  color: var(--clay);
}
.recipe-note {
  margin-top: 24px;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: color-mix(in oklch, var(--apricot) 28%, var(--ivory));
  font-size: 0.9375rem;
  color: var(--ink);
}

/* ---------- 7 · Questions ---------- */
.questions-section {
  padding-block: var(--section);
}
.questions-inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--gap);
  align-items: start;
}
.questions-inner h2 {
  max-width: 12ch;
  font-size: var(--step-4);
  color: var(--hearth);
}
.questions-list {
  border-top: 1px solid var(--ink);
}
.questions-list details {
  border-bottom: 1px solid var(--rule);
}
.questions-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 18px 0;
  font-family: var(--serif);
  font-size: var(--step-1);
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
  transition: color 0.3s var(--ease);
}
.questions-list summary::-webkit-details-marker {
  display: none;
}
.questions-list summary:hover {
  color: var(--hearth);
}
.questions-list summary .icon {
  width: 20px;
  height: 20px;
  transition: transform 0.45s var(--ease);
}
.questions-list details[open] summary .icon {
  transform: rotate(45deg);
}
.questions-list details p {
  max-width: 58ch;
  padding: 0 48px 26px 0;
  color: var(--ink-muted);
}
@supports (interpolate-size: allow-keywords) {
  .questions-list {
    interpolate-size: allow-keywords;
  }
  .questions-list details::details-content {
    block-size: 0;
    overflow: clip;
    transition:
      block-size 0.5s var(--ease),
      content-visibility 0.5s allow-discrete;
  }
  .questions-list details[open]::details-content {
    block-size: auto;
  }
  @media (prefers-reduced-motion: reduce) {
    .questions-list details::details-content {
      transition: none;
    }
  }
}

/* ---------- 8 · Closing (Hearth chapter) ---------- */
.closing {
  padding-block: 0 var(--section);
  color: var(--ink);
}
.closing .thread {
  color: var(--hearth);
}
.closing-inner {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: var(--gap);
  align-items: end;
  margin-top: clamp(80px, 9vw, 152px);
}
.closing h2 {
  font-size: var(--step-5);
  line-height: 1.04;
  color: var(--hearth);
}
.closing h2 span {
  display: block;
}
.closing h2 span + span {
  color: var(--clay);
}
.closing-action {
  display: grid;
  justify-items: start;
  gap: 18px;
}
.closing-action > p:first-child {
  font-size: 1.125rem;
}
.closing-note {
  font-size: var(--step--1);
  color: var(--ink-muted);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--ivory);
  padding-block: clamp(64px, 7vw, 104px) 32px;
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) minmax(0, 2fr) minmax(0, 3fr) auto;
  gap: 40px;
  align-items: start;
}
.footer-brand {
  display: inline-block;
}
.footer-logo {
  width: 250px;
}
.footer-line {
  font-family: var(--serif);
  font-size: var(--step-1);
  line-height: 1.35;
  color: color-mix(in srgb, var(--ivory) 86%, transparent);
}
.footer-nav {
  display: grid;
  gap: 2px;
}
.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  color: color-mix(in srgb, var(--ivory) 86%, transparent);
  transition: color 0.3s var(--ease);
}
.footer-nav a:hover {
  color: var(--apricot);
}
.back-to-top {
  color: var(--ivory);
}
.footer-contact {
  display: grid;
  justify-items: start;
  font-style: normal;
}
.footer-contact span {
  margin-bottom: 4px;
  font-size: var(--step--1);
  color: color-mix(in srgb, var(--ivory) 72%, transparent);
}
.footer-contact a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ivory);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  text-decoration-color: color-mix(in srgb, var(--ivory) 35%, transparent);
  transition: color 0.3s var(--ease);
}
.footer-contact a:hover {
  color: var(--apricot);
}
.order-contact {
  font-size: 0.9375rem;
  color: var(--ink);
}
.order-explanation .order-contact {
  margin-top: 10px;
}
.order-contact a,
.questions-list details p a {
  color: var(--hearth);
  font-weight: 600;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.order-contact a[href^="tel"],
.questions-list details p a[href^="tel"],
.footer-contact a[href^="tel"] {
  white-space: nowrap;
}
.footer-contact a {
  overflow-wrap: anywhere;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px 32px;
  margin-top: clamp(56px, 7vw, 96px);
  padding-top: 24px;
  border-top: 1px solid color-mix(in srgb, var(--ivory) 16%, transparent);
  font-size: var(--step--1);
  color: color-mix(in srgb, var(--ivory) 72%, transparent);
}
.footer-assamese {
  font-size: 1.125rem;
  color: var(--apricot);
}

/* ---------- Dialogs ---------- */
dialog {
  --dialog-pad: clamp(28px, 4vw, 48px);
  width: min(100% - 32px, 640px);
  max-height: min(92svh, 920px);
  padding: var(--dialog-pad);
  border: 0;
  border-radius: 6px;
  background: var(--ivory);
  color: var(--ink);
  overflow: auto;
  overscroll-behavior: contain;
  box-shadow: 0 30px 60px -20px rgb(16 36 29 / 0.45);
}
dialog::backdrop {
  background: rgb(16 36 29 / 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
@media (prefers-reduced-motion: no-preference) {
  dialog[open] {
    animation: dialog-in 0.5s var(--ease-out-expo) both;
  }
  dialog[open]::backdrop {
    animation: fade-in 0.4s var(--ease) both;
  }
}
@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
}
.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
}
dialog h2 {
  margin-top: 10px;
  padding-right: 40px;
  font-size: var(--step-3);
  color: var(--hearth);
}
dialog h2:focus {
  outline: none;
}
dialog h2:focus-visible {
  outline: 2px solid currentColor;
}

/* Pre-order */
.order-progress {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 24px 0 28px;
  padding: 0 0 18px;
  list-style: none;
  border-bottom: 1px solid var(--rule);
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--ink-muted);
}
.order-progress li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.order-progress li span {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  font-size: 0.75rem;
}
.order-progress li[aria-current="step"] {
  color: var(--ink);
  font-weight: 600;
}
.order-progress li[aria-current="step"] span {
  background: var(--hearth);
  border-color: var(--hearth);
  color: var(--ivory);
}
.order-product {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 20px;
  align-items: center;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--ivory-2);
}
.order-product img {
  width: 96px;
  height: 120px;
  object-fit: cover;
  border-radius: 2px;
}
.order-product h3 {
  font-size: 1.375rem;
  font-weight: 500;
  color: var(--hearth);
}
.order-product p {
  margin-top: 4px;
  color: var(--ink-muted);
  font-size: 0.9375rem;
}
.order-tag {
  display: inline-block;
  margin-top: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--ivory);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--olive);
}
.order-quantity,
.order-fields label {
  display: grid;
  gap: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
}
.order-quantity {
  margin-top: 24px;
}
select,
input:not([type="checkbox"]):not([type="range"]),
textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #b9ac9a;
  border-radius: var(--radius);
  background: #fffcf6;
  font-size: 1rem;
  font-weight: 400;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
select:focus,
input:not([type="checkbox"]):not([type="range"]):focus,
textarea:focus {
  outline: none;
  border-color: var(--hearth);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--hearth) 22%, transparent);
}
input::placeholder,
textarea::placeholder {
  color: #6f645c;
}
textarea {
  resize: vertical;
}
.order-explanation {
  margin-top: 22px;
  padding: 18px;
  border-radius: var(--radius);
  background: color-mix(in oklch, var(--apricot) 26%, var(--ivory));
}
.order-explanation p {
  margin-top: 6px;
  font-size: 0.9375rem;
  color: var(--ink);
}
.order-intro {
  margin-bottom: 20px;
  font-family: var(--serif);
  font-size: 1.25rem;
}
.order-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.order-fields .field-wide {
  grid-column: 1 / -1;
}
.order-fields label > span:not(.optional) {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--ink-muted);
}
.optional {
  font-weight: 400;
  color: var(--ink-muted);
}
.order-privacy {
  margin-top: 18px;
  font-size: 0.875rem;
  color: var(--ink-muted);
}
.order-review div {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}
.order-review dt {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-muted);
}
.order-review dd {
  white-space: pre-line;
}
.order-agreement {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  margin-top: 22px;
  font-size: 0.9375rem;
  cursor: pointer;
}
.order-agreement input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--hearth);
}
.order-error {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: #f6dcd3;
  color: #6a1f12;
  font-size: 0.9375rem;
}
.order-actions {
  position: sticky;
  bottom: calc(-1 * var(--dialog-pad));
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 28px calc(-1 * var(--dialog-pad)) calc(-1 * var(--dialog-pad));
  padding: 16px var(--dialog-pad) var(--dialog-pad);
  background: var(--ivory);
  box-shadow: 0 -1px 0 var(--rule);
}
.order-actions .button {
  margin-left: auto;
}
.order-actions .inline-link {
  color: var(--ink);
}
.order-confirmation {
  display: grid;
  gap: 14px;
  justify-items: start;
  margin-top: 18px;
}
.assamese-small {
  font-size: 2rem;
  color: var(--clay);
  line-height: 1.3;
}
.order-reference {
  padding: 12px 16px;
  border-radius: var(--radius);
  background: var(--ivory-2);
}
.order-reference strong {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.order-confirmation .button {
  margin-top: 8px;
}

/* Tea details */
.tea-dialog {
  width: min(100% - 32px, 1080px);
}
.tea-dialog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
.gallery-frame {
  aspect-ratio: 3 / 2;
  background: var(--ivory-2);
  border-radius: 2px;
  overflow: hidden;
}
.product-gallery-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.product-gallery-thumbnails {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
.product-gallery-thumbnails button {
  width: 76px;
  height: 64px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 2px;
  background: var(--ivory-2);
  overflow: hidden;
  opacity: 0.7;
  transition: opacity 0.3s var(--ease), border-color 0.3s var(--ease);
}
.product-gallery-thumbnails button[aria-pressed="true"] {
  opacity: 1;
  border-color: var(--hearth);
}
.product-gallery-thumbnails img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tea-dialog-visual figcaption {
  margin-top: 10px;
  font-size: var(--step--1);
  color: var(--ink-muted);
}
.tea-dialog-copy {
  padding-top: 8px;
}
.dialog-lede {
  margin-top: 10px;
  font-family: var(--serif);
  font-size: 1.25rem;
}
.tea-dialog-copy > p:not([class]) {
  margin-top: 14px;
  color: var(--ink-muted);
}
.dialog-specs {
  margin-top: 22px;
  border-top: 1px solid var(--rule);
}
.dialog-specs div {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--rule);
}
.dialog-specs dt {
  font-size: 0.875rem;
  color: var(--ink-muted);
}
.preview-note {
  margin-top: 18px;
  font-size: 1rem;
  color: var(--ink-muted);
}
.tea-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  margin-top: 24px;
}
.tea-dialog-actions .inline-link {
  color: var(--hearth);
}

/* Finder */
.finder-dialog {
  width: min(100% - 32px, 560px);
}
#finder-intro {
  margin-top: 10px;
  color: var(--ink-muted);
}
.finder-options {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}
.finder-options button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding: 14px 18px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: #fffcf6;
  text-align: left;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.finder-options button:hover {
  border-color: var(--ink-muted);
}
.finder-options button > span:first-child {
  display: grid;
  gap: 2px;
}
.finder-options strong {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.125rem;
}
.finder-options strong + span {
  font-size: 1rem;
  color: var(--ink-muted);
}
.option-indicator {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--rule);
  border-radius: 50%;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.finder-options button[aria-pressed="true"] {
  border-color: var(--hearth);
  background: color-mix(in oklch, var(--apricot) 18%, var(--ivory));
}
.finder-options button[aria-pressed="true"] .option-indicator {
  border-color: var(--hearth);
  box-shadow: inset 0 0 0 4px var(--ivory), inset 0 0 0 10px var(--hearth);
}
.finder-result-card {
  display: grid;
  gap: 10px;
  margin-top: 24px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--hearth);
  color: var(--ivory);
}
#finder-result-mood {
  font-family: var(--serif);
  font-size: 1.375rem;
  line-height: 1.3;
}
#finder-result-description {
  font-size: 1rem;
  color: color-mix(in srgb, var(--ivory) 88%, transparent);
}
.finder-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
}
.finder-actions .button {
  margin-left: auto;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1023px) {
  .tea-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 56px;
  }
  .tea-visual,
  .tea-copy {
    grid-column: 1 / -1;
  }
  .tea-copy {
    position: static;
    padding-top: 0;
    max-width: 640px;
  }
  .character-inner,
  .welcome-inner,
  .roots-facts,
  .ritual-heading,
  .questions-inner,
  .closing-inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .welcome-inner {
    gap: 48px;
  }
  .character-inner {
    gap: 72px;
  }
  .roots-facts {
    gap: 56px;
  }
  .ritual-heading {
    gap: 24px;
  }
  .ritual-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
  .ritual-photo {
    position: static;
    width: min(100%, 560px);
  }
  .ritual-photo img {
    aspect-ratio: 3 / 2;
  }
  .questions-inner {
    gap: 40px;
  }
  .closing-inner {
    gap: 40px;
  }
  .roots-photo-a {
    grid-column: 1 / span 7;
  }
  .roots-narrative {
    grid-column: 8 / span 5;
  }
  .roots-photo-b {
    grid-column: 4 / span 6;
    margin-top: 48px;
  }
  .tea-dialog-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 767px) {
  :root {
    --header-h: 64px;
  }
  .desktop-nav,
  .header-preorder {
    display: none;
  }
  .menu-button {
    display: inline-flex;
    margin-left: auto;
    margin-right: -10px;
  }
  .brand-logo {
    width: 120px;
  }
  .site-header:has(.mobile-menu:not([hidden])) {
    color: var(--hearth);
    background: var(--ivory);
  }

  .hero {
    min-height: max(600px, 100svh);
  }
  .hero-photo {
    object-position: 50% 40%;
  }
  .hero-shade {
    background: linear-gradient(
      0deg,
      rgb(16 36 29 / 0.94) 0%,
      rgb(16 36 29 / 0.82) 38%,
      rgb(16 36 29 / 0.25) 64%,
      rgb(16 36 29 / 0.1) 100%
    );
  }
  .hero-content {
    padding-bottom: 56px;
  }
  .hero-greeting {
    margin-bottom: 18px;
  }
  .hero-description {
    margin-top: 22px;
    font-size: 1.125rem;
  }
  .hero-actions {
    margin-top: 30px;
  }
  .hero-actions .button {
    width: 100%;
  }
  .hero-meta {
    display: none;
  }

  .tea-grid {
    gap: 40px;
  }
  .tea-visual {
    display: contents;
  }
  .tea-figure-main {
    order: 0;
    width: 78%;
  }
  .tea-copy {
    order: 1;
  }
  .tea-figure-setting {
    order: 2;
    width: 100%;
    margin-top: 0;
  }
  .tea-figure-setting img {
    outline: 0;
  }
  .tea-notes div {
    grid-template-columns: 6.5rem 1fr;
  }

  .milk-character div {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
  .cup-stage {
    width: min(100%, 340px);
  }

  .facts {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .roots-story {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .roots-photo-a,
  .roots-narrative,
  .roots-photo-b {
    grid-column: 1 / -1;
  }
  .roots-photo-a {
    width: 82%;
  }
  .roots-narrative {
    padding-block: 40px;
  }
  .roots-photo-b {
    width: 64%;
    margin: 0 0 0 auto;
  }

  .brew-guide {
    padding: 22px 18px 26px;
    margin-inline: calc(-1 * var(--gutter) + 8px);
  }
  .brew-tabs {
    width: 100%;
  }
  .brew-tabs button {
    flex: 1;
    padding: 0 8px;
  }
  .recipe-ingredients div {
    padding: 16px 8px 18px 0;
  }
  .recipe-ingredients div + div {
    padding-left: 12px;
  }
  .questions-list details p {
    padding-right: 0;
  }

  .footer-top {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }

  dialog {
    --dialog-pad: 20px;
    width: calc(100% - 16px);
    max-height: calc(100svh - 16px);
    padding: 26px var(--dialog-pad) var(--dialog-pad);
  }
  .order-fields {
    grid-template-columns: minmax(0, 1fr);
  }
  .order-review div {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
  .order-actions .button,
  .finder-actions .button {
    width: 100%;
  }
}

@media (max-width: 380px) {
  .recipe-ingredients {
    grid-template-columns: minmax(0, 1fr);
  }
  .recipe-ingredients div + div {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--rule);
  }
  .recipe-ingredients div {
    grid-template-columns: 5rem 1fr;
    align-items: baseline;
    padding: 12px 0;
  }
  .brew-tabs button {
    font-size: 0.875rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero-photo,
  .liquor-swirl {
    animation: none !important;
  }
}

@media print {
  .site-header,
  .hero-shade,
  dialog {
    display: none;
  }
}
