:root {
  color-scheme: dark;
  --canvas: #191512;
  --ink: #f3e9d9;
  --subdued: #ddcfbe;
  --rule: #c7ab845c;
  --rust: #ebc399;
  --type: system-ui, "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  --display: "Ma Shan Zheng", "Songti SC", "Noto Serif CJK SC", serif;
}
@font-face {
  font-family: "Ma Shan Zheng";
  src: url("assets/tea-brush.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Story Brush";
  src: url("assets/story-brush.woff") format("woff");
  font-display: swap;
}
@font-face {
  font-family: "Story Letterpress";
  src: url("assets/story-letterpress.woff") format("woff");
  font-display: swap;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--canvas); scroll-behavior: smooth; }
html.lenis { scroll-behavior: auto; }
body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font: 400 1rem/1.8 var(--type);
  isolation: isolate;
  background: #17130f;
}
.cloud-wallpaper {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.wallpaper-layer {
  position: absolute;
  inset: 0 -72px -340px;
  background-position: center top;
  background-repeat: repeat-y;
  background-size: max(100%, 570px) auto;
}
.wallpaper-silk { background-image: url("assets/brocade-ai-silk-hd.webp"); }
.wallpaper-west { background-image: url("assets/brocade-ai-west-hd.webp"); }
.wallpaper-east { background-image: url("assets/brocade-ai-east-hd.webp"); }
.cloud-wallpaper::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #110e090c 0%, #120f0a27 35%, #100d0a45 66%, #110e090e 100%),
    linear-gradient(180deg, #120f0b19, #100d0a3d 56%, #100d0a29);
}
@media (max-width: 680px) {
  .wallpaper-layer { inset-inline: -44px; }
  .wallpaper-silk { background-image: url("assets/brocade-ai-silk-small.webp"); }
  .wallpaper-west { background-image: url("assets/brocade-ai-west-small.webp"); }
  .wallpaper-east { background-image: url("assets/brocade-ai-east-small.webp"); }
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
button[hidden] { display: none; }
:focus-visible { outline: 2px solid var(--rust); outline-offset: 5px; }
h2, p { margin: 0; }
h2 { font: 400 clamp(2.4rem, 4.75vw, 4.7rem)/1.16 var(--display); letter-spacing: .055em; }
img { display: block; max-width: 100%; height: auto; }
.shell { width: min(1288px, calc(100% - 112px)); margin-inline: auto; }
.eyebrow { font: 600 .875rem/1.5 var(--type); letter-spacing: .16em; }
.in-rust { color: var(--rust); }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 50; transform: translateY(-150%); background: #f5e8d6; color: #211a13; padding: 8px 15px; }
.skip-link:focus { transform: none; }
section[id] { scroll-margin-top: 18px; }
.section-divider {
  position: relative;
  width: 75%;
  height: 6px;
  margin: 0 auto;
  border: 0;
  background: radial-gradient(ellipse at 52% 50%, #99714755 0%, #91663f29 45%, transparent 73%);
}
.section-divider::after {
  content: "";
  position: absolute;
  inset: 1px 0;
  background:
    linear-gradient(180deg, #c5a06e31, transparent 44%, #7d532c55),
    linear-gradient(90deg, transparent, #8f69453d 9%, #bd955caa 24%, #dfb97dde 43%, #bd935cab 64%, #b48c6274 81%, transparent);
  clip-path: polygon(0 55%, 8% 43%, 18% 47%, 31% 27%, 45% 30%, 56% 14%, 68% 34%, 77% 28%, 91% 43%, 100% 54%, 89% 60%, 74% 70%, 61% 63%, 51% 83%, 37% 74%, 25% 62%, 15% 67%, 7% 57%);
}

.site-header { position: relative; z-index: 4; background: #100d0a42; }
.header-inner { display: flex; justify-content: space-between; align-items: center; min-height: 73px; gap: 20px; border-bottom: 1px solid #dfd6bc38; }
.wordmark { display: inline-flex; flex: 0 0 auto; align-items: center; max-width: 126px; }
.site-header .wordmark img { width: 100px; }
.site-header .site-home {
  gap: clamp(9px, 1.3vw, 19px);
  max-width: none;
  min-height: 44px;
  color: var(--ink);
}
.site-home-label { display: inline-flex; align-items: center; gap: 5px; font-size: .8125rem; white-space: nowrap; }
.site-home-label svg { flex: none; width: 18px; height: 18px; color: var(--rust); }
.site-home:hover .site-home-label { color: var(--rust); }
.site-header .site-home img { width: clamp(60px, 7vw, 90px); }
@media (max-width: 420px) {
  .site-header .site-home img { display: none; }
}
.header-inner nav { display: flex; align-items: stretch; gap: clamp(16px, 3vw, 48px); font-size: clamp(1rem, 1.5vw, 1.125rem); }
.header-inner nav > a, .brand-nav > summary { display: inline-flex; align-items: center; min-height: 46px; position: relative; white-space: nowrap; }
:is(.header-inner nav > a, .brand-nav > summary)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 3px; border-bottom: 1px solid currentColor; transform-origin: left; transform: scaleX(0); transition: transform .2s ease; }
:is(.header-inner nav > a, .brand-nav > summary):is(:hover, [aria-current])::after, .brand-nav[open] > summary::after { transform: scaleX(1); }

.language-row { display: flex; align-items: center; gap: clamp(8px, 2vw, 28px); min-height: 50px; padding-block: 3px; }
.language-label { flex: none; color: var(--rust); font-size: .8125rem; font-weight: 600; }
.language-switch { display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: thin; white-space: nowrap; }
.language-switch button {
  flex: none;
  padding: 7px 10px;
  min-height: 40px;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: var(--subdued);
  font-family: var(--type);
  font-size: .875rem;
  font-weight: 600;
}
.language-switch button:is(:hover, [aria-pressed="true"]) { color: var(--rust); border-bottom-color: currentColor; }
.language-switch button:focus-visible { outline-offset: -3px; }
.language-switch button:lang(ja) { font-family: var(--site-ja); }
.language-switch button:lang(ko) { font-family: var(--site-ko); }
.language-switch button:lang(ar) { font-family: var(--site-ar); }
@media (max-width: 680px) {
  .language-row { display: grid; gap: 0; padding-block: 5px 7px; }
}
.brew-timer-hint { color: var(--subdued); font-size: .875rem; margin: 0 0 10px; }
[lang="en"] .detail-panel h2, [lang="en"] .scene-dialog-copy h2 { font-family: Georgia, serif; letter-spacing: 0; }
.header-inner nav [aria-current] { color: #e9c399; }

.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 9px 21px; border: 1px solid transparent; font-size: .9375rem; font-weight: 600; transition: background .2s, color .2s; }
.button-ink { color: #231a10; background: #e4bd92; }
.button-ink:hover { background: #f6d7b3; }
.pack-slot {
  position: relative;
  width: var(--size);
  aspect-ratio: var(--pack-ratio, .72);
  flex: 0 0 auto;
  display: block;
  perspective: 1050px;
  perspective-origin: center var(--pack-origin-y, 50%);
  isolation: isolate;
}
.pack-model {
  --display: "Ma Shan Zheng", "Songti SC", "Noto Serif CJK SC", serif;
  --type: system-ui, sans-serif;
  direction: ltr;
  --pouch-face-inset: calc((1 - var(--pouch-face-ratio)) * 50%);
  --pouch-height: calc(var(--size) / var(--pack-ratio, .72));
  position: absolute;
  inset: 0;
  display: block;
  transform-style: preserve-3d;
  transform: translateZ(calc(var(--size) * var(--pack-forward, 0))) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) rotateZ(var(--tilt-z, 0deg));
}
.pack-red { --print: url("assets/pack-red.webp"); --paper-color: #84392f; --side-color: #682b24; --light-color: #a35040; --pack-ink: #fff0cf; }
.pack-green { --print: url("assets/pack-green.webp"); --paper-color: #344a3c; --side-color: #24382c; --light-color: #576e55; --pack-ink: #f6ecd5; }
.pack-gold { --print: url("assets/pack-gold.webp"); --paper-color: #d19f62; --side-color: #ae7946; --light-color: #dfb882; --pack-ink: #362817; }
.pack-face {
  position: absolute;
  display: block;
  background-color: var(--paper-color);
  backface-visibility: hidden;
}
.pack-skin {
  inset-inline: var(--pouch-face-inset);
  top: calc(var(--pouch-height) * var(--pouch-panel-start));
  height: calc(var(--pouch-height) * var(--pouch-panel-length) + var(--pouch-panel-overlap, 0px));
  overflow: hidden;
  transform-origin: center top;
  --pouch-shear: matrix3d(1, 0, 0, 0, 0, 1, calc(var(--pack-ratio, .72) * var(--pouch-panel-slope)), 0, 0, 0, 1, 0, 0, 0, 0, 1);
}
.pack-art {
  position: absolute;
  inset-inline: calc(-1 * var(--pouch-face-inset) / var(--pouch-face-ratio));
  top: calc(-1 * var(--pouch-height) * var(--pouch-panel-start));
  height: var(--pouch-height);
  background: var(--paper-color) var(--print) center / cover;
  container-type: inline-size;
}
.pack-front {
  transform: translateZ(calc(var(--size) * var(--pouch-panel-offset))) var(--pouch-shear);
  color: var(--pack-ink);
  text-align: center;
}
.pack-back {
  transform: rotateY(180deg) translateZ(calc(var(--size) * var(--pouch-panel-offset))) var(--pouch-shear);
}
.pack-art::before {
  position: absolute;
  inset: 0 var(--pouch-face-inset);
  content: "";
  pointer-events: none;
  --seal-glint: linear-gradient(180deg, #fff0d850, #170f1636 24%, #fff1dd24 67%, #160f194d);
  background:
    var(--seal-glint) center top / 100% 3.5% no-repeat,
    linear-gradient(0deg, #33231929, #fce5c712 37%, transparent) center bottom / 100% 6% no-repeat,
    linear-gradient(90deg, #120f192b, transparent 10%, #f6e7d116 45%, transparent 83%, #140d192b);
}
.pack-side {
  inset-block: 0;
  left: 50%;
  width: calc(var(--pouch-depth-ratio) * 100%);
  margin-left: calc(var(--pouch-depth-ratio) * -50%);
  clip-path: var(--pouch-side-shape);
  background:
    linear-gradient(0deg, #30221e3d 0%, #24181715 8%, transparent 17%),
    linear-gradient(90deg, #19131a7a, #f9e8ce28 21%, #221a2117 43%, #1d152454 50%, #ead5bd31 67%, #2118225e),
    var(--side-color) var(--print) left / auto 100%;
}
.pack-left { transform: rotateY(-90deg) translateZ(calc(var(--size) * var(--pouch-face-ratio) * .5)); }
.pack-right { transform: rotateY(90deg) translateZ(calc(var(--size) * var(--pouch-face-ratio) * .5)); }
.pack-seal {
  inset-inline: var(--pouch-face-inset);
  background: linear-gradient(140deg, #fff0cb36, #21140955), var(--light-color);
}
.pack-top {
  top: 0;
  height: calc(var(--size) * var(--pouch-top-depth));
  transform: translateY(-50%) rotateX(90deg);
}
.pack-bottom {
  top: 100%;
  height: calc(var(--size) * var(--pouch-bottom-depth));
  transform: translateY(-50%) rotateX(-90deg);
}
.pack-mark { position: absolute; width: 38%; left: 31%; top: 11.5%; }
.pack-mark-rule { position: absolute; width: 14%; height: 1px; left: 43%; top: 23%; background: currentColor; opacity: .75; }
.pack-gold .pack-mark, .pack-linen .pack-mark { filter: brightness(0) opacity(.85); }
.pack-name { position: absolute; top: 39%; left: 0; right: 0; font: 400 15cqw/1.2 var(--display); letter-spacing: .065em; }
.pack-description { position: absolute; left: 5%; right: 5%; top: 56%; font: 500 5.4cqw/1.5 var(--type); letter-spacing: .17em; }
.pack-series { position: absolute; bottom: 8%; left: 0; right: 0; font: 600 5cqw/1 var(--type); letter-spacing: .17em; }
.detail-layout { display: grid; grid-template-columns: 1.08fr 1fr; align-items: stretch; }
.detail-scene { min-width: 0; min-height: 620px; display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; justify-items: center; gap: 14px; }
.detail-viewer { display: grid; place-items: center; padding: 16px 27px; touch-action: none; user-select: none; cursor: grab; }
.detail-viewer[data-dragging] { cursor: grabbing; }
.detail-slot { --size: clamp(210px, 24.5vw, 330px); --tilt-x: 6deg; --tilt-y: -19deg; --tilt-z: -5deg; pointer-events: none; }
.detail-viewer-tools { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0 14px; color: var(--subdued); font-size: .875rem; }
.detail-viewer-tools .quiet-button { min-height: 40px; font-size: inherit; }
.tea-trace { width: min(100%, 680px); margin: clamp(19px, 3.2vw, 42px) 0 clamp(20px, 4vw, 50px); }
.tea-trace-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; margin-bottom: 12px; }
.tea-trace-heading h3 { margin: 0; color: var(--ink); font-size: 1.13rem; font-weight: 600; }
.tea-trace-heading p { margin: 0; color: var(--subdued); font-size: .75rem; }
.tea-trace-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(4px, .48vw, 7px); padding: 14px 5px 5px; }
.tea-trace-card {
  --photo-swing: .52s cubic-bezier(.22,.68,.26,1);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  min-width: 0;
  border: 0;
  padding: 0;
  background: none;
  color: var(--subdued);
  outline-offset: 2px;
}
.tea-trace-frame {
  display: block;
  overflow: hidden;
  width: 112%;
  margin-inline: -6%;
  aspect-ratio: 5 / 8.4;
  background: #392e25;
  pointer-events: none;
  transform: perspective(345px) rotateY(-32deg);
  transition: transform var(--photo-swing), box-shadow var(--photo-swing);
}
.tea-trace-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.78) saturate(.9);
  transition: filter var(--photo-swing);
}
.tea-trace-card:first-child img, .tea-trace-card:is([data-facing], :focus-visible) img { filter: none; }
.tea-trace-card:is([data-facing], :focus-visible) { z-index: 1; color: var(--rust); }
.tea-trace-card:is([data-facing], :focus-visible) .tea-trace-frame {
  transform: perspective(345px) translateY(-7px) translateZ(24px) rotateY(0deg);
  box-shadow: 0 13px 27px #0d0906a8;
}
.tea-trace-label { display: block; margin-top: 13px; font-size: clamp(.73rem, 1.12vw, .88rem); line-height: 1.35; overflow-wrap: anywhere; }
@media (max-width: 540px) {
  .tea-trace-strip {
    grid-template-columns: repeat(5, minmax(100px, 1fr));
    overflow-x: auto;
    padding-inline: 10px;
    scrollbar-width: thin;
    scrollbar-color: #b7986e88 transparent;
  }
}
html:has(.tea-trace-dialog[open]) { overflow: hidden; }
.tea-trace-dialog {
  width: min(760px, calc(100% - 24px));
  max-height: calc(100dvh - 26px);
  box-sizing: border-box;
  border: 0;
  padding: clamp(12px, 3vw, 26px);
  background: #1d1712;
  color: var(--ink);
  box-shadow: 0 18px 90px #0009;
  overscroll-behavior: contain;
}
.tea-trace-dialog::backdrop { background: #100c09d6; }
.tea-trace-dialog figure { margin: 0; }
.tea-trace-dialog img {
  display: block;
  width: 100%;
  height: min(60dvh, 467px);
  object-fit: contain;
  background: #120e0b;
}
.tea-trace-dialog figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 3px 14px;
  margin-top: 9px;
}
.tea-trace-dialog small, .tea-trace-count { color: var(--subdued); }
.tea-trace-dismiss { position: absolute; inset-block-start: clamp(17px, 3.6vw, 34px); inset-inline-end: clamp(17px, 3.6vw, 34px); }
.tea-trace-dismiss button, .tea-trace-nav button { min-height: 44px; border: 0; color: var(--ink); font: inherit; }
.tea-trace-dismiss button { width: 44px; border-radius: 50%; background: #1b1510e6; font-size: 1.6rem; line-height: 1; }
.tea-trace-nav { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.tea-trace-nav button { padding-inline: 10px; background: #e0ba8615; }
.tea-trace-nav button:hover, .tea-trace-dismiss button:hover { background: #815f3f; }
.detail-panel { align-self: center; padding: clamp(35px, 5vw, 75px); position: relative; }
.detail-panel h2 { margin: 10px 0 16px; }
.detail-panel h2:focus:not(:focus-visible) { outline: none; }
.detail-intro { color: var(--subdued); }
.profile { margin: 22px 0 24px; }
.profile > div { display: grid; grid-template-columns: 3.3em 1fr; gap: 12px; padding: 9px 0; border-top: 1px solid var(--rule); }
.profile > div:last-child { border-bottom: 1px solid var(--rule); }
.profile dt { color: var(--rust); font-weight: 600; }
.profile dd { margin: 0; }
.timer { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.timer-display { font: 600 1.5rem/1 var(--type); font-variant-numeric: tabular-nums; margin-right: 7px; }
.quiet-button { padding: 10px 6px; background: transparent; border: none; text-decoration: underline; text-underline-offset: .22em; font-size: .9375rem; }
.timer-status { min-height: 1.6em; margin-top: 7px; color: var(--subdued); font-size: .875rem; }
.back-link { display: inline-flex; align-items: center; min-height: 38px; border-bottom: 1px solid currentColor; white-space: nowrap; font-size: .9375rem; font-weight: 600; }
.back-link:hover { color: var(--rust); }

.tea-scenes {
  --scene-track-width: min(83%, 1024px);
  padding: clamp(58px, 7vw, 112px) 0;
}
.tea-scenes-track {
  display: grid;
  width: var(--scene-track-width);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2.2vw, 32px);
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.tea-scene {
  position: relative;
  min-width: 0;
  aspect-ratio: 447 / 1080;
}
.scene-frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  mask: var(--scene-edge) center / 100% 100% no-repeat;
  transition: transform .55s cubic-bezier(.2, .72, .24, 1), filter .55s ease, opacity .55s ease, box-shadow .55s ease;
}
.scene-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 48%, transparent 58%, color-mix(in srgb, var(--scene-pigment) 62%, transparent) 100%);
}
[data-scene="mountain"] {
  --scene-edge: url("assets/watercolor-mountain-edge.webp");
  --scene-pigment: #677772;
  --scene-shadow: #202c2c;
}
[data-scene="newborn"] {
  --scene-edge: url("assets/watercolor-newborn-edge.webp");
  --scene-pigment: #5d7245;
  --scene-shadow: #253023;
}
[data-scene="tea"] {
  --scene-edge: url("assets/watercolor-tea-edge.webp");
  --scene-pigment: #877958;
  --scene-shadow: #382f21;
}
[data-scene="recount"] {
  --scene-edge: url("assets/watercolor-recount-edge.webp");
  --scene-pigment: #476d59;
  --scene-shadow: #1d3028;
}
.scene-open {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
}
.scene-open:focus-visible {
  outline: none;
  background: radial-gradient(ellipse at center, transparent 55%, #f4d5ac3e 78%, transparent 100%);
  mask: var(--scene-edge) center / 100% 100% no-repeat;
}
.tea-scenes:not(:has(.scene-dialog[open])) .tea-scenes-track:has(.scene-open:focus-visible) .tea-scene:not(:has(.scene-open:focus-visible)) .scene-frame {
  transform: translateY(7px) scale(.86);
  filter: blur(4.5px);
  opacity: .54;
}
.tea-scenes:not(:has(.scene-dialog[open])) .tea-scene:has(.scene-open:focus-visible) .scene-frame {
  transform: translateY(-18px) scale(1.15);
  box-shadow: 0 18px 30px #0009;
}
@media (hover: hover) and (pointer: fine) {
  .tea-scenes:not(:has(.scene-dialog[open])) .tea-scenes-track:has(.scene-open:hover) .tea-scene:not(:has(.scene-open:hover)) .scene-frame {
    transform: translateY(7px) scale(.86);
    filter: blur(4.5px);
    opacity: .54;
  }
  .tea-scenes:not(:has(.scene-dialog[open])) .tea-scene:has(.scene-open:hover) .scene-frame {
    transform: translateY(-18px) scale(1.15);
    filter: none;
    opacity: 1;
    box-shadow: 0 18px 30px #0009;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tea-scene .scene-frame { transform: none !important; }
}
.scene-dialog {
  width: min(870px, calc(100% - 26px));
  max-height: calc(100dvh - 26px);
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff2da;
}
.scene-dialog::backdrop { background: #110f0bd1; }
.scene-dialog-sheet {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 38% minmax(0, 1fr);
  min-height: clamp(400px, 53vh, 510px);
  padding: clamp(48px, 6vw, 75px);
}
.scene-dialog-sheet::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  mask: url("assets/watercolor-dialog-edge.webp") center / 100% 100% no-repeat;
  background:
    radial-gradient(ellipse at 70% 48%, color-mix(in srgb, var(--scene-shadow) 60%, #120f0d) 12%, transparent 66%),
    radial-gradient(ellipse at var(--ink-x, 33%) var(--ink-y, 65%), color-mix(in srgb, var(--scene-pigment) 48%, var(--scene-shadow)) 11%, transparent 66%),
    radial-gradient(ellipse at 66% 31%, color-mix(in srgb, var(--scene-pigment) 55%, #0b100f) 10%, transparent 62%),
    radial-gradient(ellipse at 54% 52%, var(--scene-shadow) 40%, transparent 75%);
}
.scene-dialog-sheet form { position: absolute; top: 6%; right: 6%; z-index: 1; }
.scene-dialog-image {
  position: absolute;
  z-index: -1;
  inset: 2% auto 2% 2%;
  width: 51%;
  overflow: hidden;
  opacity: .88;
  --motion-strength: 1.7;
  mask-image: var(--scene-edge), linear-gradient(90deg, #000 42%, #000b 68%, transparent 99%);
  mask-size: 100% 100%;
  mask-repeat: no-repeat;
  mask-composite: intersect;
}
.scene-dialog-image .scene-art {
  top: 50%;
  width: max(100%, 190px);
  height: auto;
  aspect-ratio: var(--original-width) / 1080;
  transform: translate(-50%, -50%);
}
.scene-dialog-copy {
  grid-column: 2;
  align-self: center;
  min-width: 0;
  margin-left: 8%;
  padding: 14px 2px 14px 0;
  font-family: "Story Brush", var(--display);
  font-weight: 400;
}
.scene-dialog-copy h2, .scene-dialog-description {
  mask: url("assets/story-dry-ink.webp") 0 0 / 210px 104px repeat;
}
.scene-dialog-series { margin: 0 0 13px; color: #d6b992; font: 400 .92rem/1.5 "Story Letterpress", Georgia, serif; letter-spacing: .08em; }
.scene-dialog-copy h2 { margin: 0 0 18px; font-family: inherit; font-size: clamp(2.2rem, 6vw, 4rem); line-height: 1.1; }
.scene-dialog-description { margin: 0; line-height: 1.85; font-size: clamp(1.15rem, 2.2vw, 1.36rem); }
[lang="en"] .scene-dialog-copy { font-family: "Story Letterpress", Georgia, serif; }
[lang="en"] .scene-dialog-copy h2 { font-family: inherit; }
.scene-dialog-close {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font: 27px/1 sans-serif;
  text-shadow: 0 1px 6px #14110e;
}
.scene-dialog-close:hover { background: #dbbb8b1a; }
.scene-dialog-close:focus-visible { outline-color: #d6b992; }
[hidden] { display: none !important; }
.scene-english-caption { display: none; }
html:not(:lang(zh)) .scene-english-caption {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  margin: 0;
  inset: 85% 0 3%;
  padding: 4% 6% 2%;
  background: linear-gradient(transparent, var(--scene-shadow) 25%, var(--scene-shadow) 72%, transparent);
  color: #f1e9d8;
  text-align: center;
  font-size: clamp(.65rem, 1.08vw, .85rem);
  line-height: 1.25;
}
@media (max-width: 680px) {
  .scene-dialog-sheet { grid-template-columns: minmax(0, 1fr); padding: 62px 33px 45px; }
  .scene-dialog-copy { grid-column: 1; margin: 0; padding: 0; }
  .scene-dialog-image { inset: 2% 6% 41% 30%; width: auto; opacity: .29; mask-image: var(--scene-edge), radial-gradient(ellipse, #000 13%, transparent 74%); }
  .header-inner { flex-wrap: wrap; }
  .header-inner nav { order: 3; flex: 0 0 100%; justify-content: center; }
}
@media (hover: hover) and (pointer: fine) {
  .tea-scene:has(.scene-open:hover) { --motion-strength: 1.6; }
  .tea-scene:has(.scene-open:hover) .scene-fog { height: 43%; }
  .tea-scene:has(.scene-open:hover) .scene-water { height: 26%; }
}
.scene-dialog-image .scene-fog { height: 43%; }
.scene-dialog-image .scene-water { height: 26%; }
[lang="en"] .profile > div { grid-template-columns: 6em minmax(0, 1fr); }
html:has(.scene-dialog[open]) { overflow: hidden; }
.tea-scene:nth-child(1) { --original-width: 472; }
.tea-scene:nth-child(2) { --original-width: 498; }
.tea-scene:nth-child(3) { --original-width: 518; }
.tea-scene:nth-child(4) { --original-width: 447; }
.scene-art {
  position: absolute;
  top: 0;
  left: 50%;
  width: calc(100% * var(--original-width) / 447);
  height: 100%;
  transform: translateX(-50%);
}
.scene-art > img, .scene-layers { width: 100%; height: 100%; }
.scene-layers { position: absolute; inset: 0; pointer-events: none; }
.scene-piece { position: absolute; max-width: none; }
.tea-scenes-toggle { display: block; margin: 18px calc((100% - var(--scene-track-width)) / 2) 0 auto; color: var(--subdued); }
.scene-fog, .scene-water {
  position: absolute;
  background: center / 100% 100% no-repeat;
  opacity: 0;
}
.scene-fog {
  top: 8%;
  left: -27%;
  width: 118%;
  height: 33%;
  background-image: url("assets/valley-mist-2.webp");
  --drift-x: 19%;
  --drift-y: -5%;
  --duration: 24s;
  --initial-phase: -5s;
}
.scene-water {
  top: 64%;
  left: 13%;
  width: 84%;
  height: 20%;
  background-image: url("assets/recount-reflections.webp");
  mix-blend-mode: screen;
  --drift-x: 6%;
  --drift-y: -5%;
  --duration: 6.5s;
  --initial-phase: -3s;
}

@media (max-width: 680px) {
  .tea-scenes { --scene-track-width: min(84%, 460px); }
  .tea-scenes-track { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 17px; }
}
@media (prefers-reduced-motion: no-preference) {
  .scene-fog, .scene-water {
    animation: mist-drift var(--duration) ease-in-out var(--initial-phase) infinite alternate both;
  }
  .scene-water { animation-name: water-glints; }
  .scene-piece[data-motion="tuft"] { animation: grass-sway var(--period) ease-in-out var(--phase) infinite alternate; }
  .scene-piece[data-motion="dry"] { animation: dry-flutter var(--period) ease-in-out var(--phase) infinite alternate; }
  .scene-piece[data-motion="leaf"] { animation: tea-drift var(--period) ease-in-out var(--phase) infinite alternate; }
  .scene-piece[data-motion="boat"] { animation: boat-drift 9s ease-in-out -4.5s infinite alternate; }
  .tea-scene:not(.is-visible) .scene-layers *, .tea-scenes.is-paused .scene-layers * {
    animation-play-state: paused;
  }
}
@keyframes mist-drift {
  0% { transform: translate3d(-4%, 4%, 0); opacity: .38; }
  100% { transform: translate3d(calc(var(--drift-x) * var(--motion-strength, 1)), calc(var(--drift-y) * var(--motion-strength, 1)), 0); opacity: .81; }
}
@keyframes water-glints {
  0% { transform: translate3d(-6%, 7%, 0); opacity: .32; }
  100% { transform: translate3d(calc(var(--drift-x) * var(--motion-strength, 1)), calc(var(--drift-y) * var(--motion-strength, 1)), 0); opacity: .72; }
}
@keyframes grass-sway {
  0% { transform: rotate(-7deg) translateX(-2%); }
  58% { transform: rotate(2deg); }
  100% { transform: rotate(calc(11deg * var(--motion-strength, 1))) translateX(4%); }
}
@keyframes dry-flutter {
  0% { transform: rotate(-5deg) translateY(1%); }
  67% { transform: rotate(3deg) translateY(-3%); }
  100% { transform: rotate(calc(9deg * var(--motion-strength, 1))) translateY(-6%); }
}
@keyframes tea-drift {
  0% { transform: translate(-1%, -3%) rotate(-2deg); }
  100% { transform: translate(2%, calc(3% * var(--motion-strength, 1))) rotate(2.5deg); }
}
@keyframes boat-drift {
  0% { transform: translate(-2.7%, .6%) rotate(-.9deg); }
  100% { transform: translate(calc(2.7% * var(--motion-strength, 1)), -.7%) rotate(.9deg); }
}

.footer {
  background: linear-gradient(165deg, #1d1612e8, #100d0bef 65%);
  border-top: 1px solid var(--rule);
}
.footer:lang(zh) { --display: "Guide Brush", "Ma Shan Zheng", "Songti SC", serif; }
.footer-content { padding-block: clamp(38px, 6vw, 80px) 24px; }
.footer-columns {
  display: grid;
  grid-template-columns: 1.24fr .9fr .78fr .9fr 1.35fr;
  gap: clamp(24px, 3vw, 48px);
}
.footer-column { min-width: 0; }
.footer-column h2 {
  color: var(--ink);
  font-size: clamp(1.22rem, 2vw, 1.65rem);
  margin-bottom: 18px;
}
.footer:lang(en) h2 { font-family: Georgia, serif; letter-spacing: 0; }
.footer-links, .footer-socials { list-style: none; margin: 0; padding: 0; }
.footer-links { display: grid; gap: 7px; }
.footer-links a, .contact-details dd { color: var(--rust); }
.footer-links span, .footer-subscription-note { color: var(--subdued); }
.footer-links a:hover, .contact-details a:hover { color: var(--ink); text-decoration: underline; }
.footer-subscription label { display: block; color: var(--subdued); font-size: .875rem; }
.footer-email-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  margin-top: 5px;
  border-bottom: 1px solid var(--rule);
}
.footer-email-field input {
  min-width: 0;
  padding: 5px 6px;
  border: 0;
  background: #e8b6880c;
}
.footer-email-field button {
  min-width: 44px;
  min-height: 40px;
  background: transparent;
  border: 0;
  color: var(--subdued);
  cursor: default;
}
.footer-subscription-note { margin-top: 10px; font-size: .875rem; }
.footer-socials { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.footer-social {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  color: var(--subdued);
}
.footer-social svg, .contact-details dt svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.footer-email-link:hover { color: var(--rust); border-color: var(--rust); }
.contact-details {
  display: grid;
  gap: 14px;
  margin: 0;
  font-size: .9375rem;
}
.contact-details dt { display: flex; align-items: center; gap: 6px; color: var(--subdued); }
.contact-details dt svg { flex: none; color: var(--rust); }
.contact-details dd { margin: 2px 0 0; margin-inline-start: 24px; overflow-wrap: anywhere; }
.footer-base {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: clamp(32px, 5vw, 64px);
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}
.footer .wordmark img { width: 106px; }
.footer .back-link:hover { color: #e6c3a7; }
@media (max-width: 1120px) {
  .footer-columns { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-help { grid-column: span 2; }
}
@media (max-width: 680px) {
  .footer-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-subscription { grid-column: 1 / -1; }
  .footer-help { grid-column: 1 / -1; }
}

@media (max-width: 980px) {
  .shell { width: calc(100% - 64px); }
  .detail-scene { min-height: 520px; }
  .detail-panel { padding-inline: 32px; }
}
@media (max-width: 680px) {
  .shell { width: calc(100% - 36px); }
  .header-inner { min-height: 63px; gap: 9px; }
  .header-inner nav { gap: 13px; }
  .header-inner nav > a, .brand-nav > summary { min-height: 44px; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-scene { min-height: 402px; }
  .detail-slot { --size: clamp(160px, 50vw, 224px); }
  .detail-panel { padding: 30px 0 43px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

@media (hover: hover) and (pointer: fine) {
  body, a[href], button, .detail-viewer {
    cursor: url("assets/pixel-hand-open.png") 13 5, auto;
  }
  .shelf-card:active, .detail-viewer[data-dragging] {
    cursor: url("assets/pixel-hand-grip.png") 13 5, grabbing;
  }
}
