:root {
  color-scheme: light;
  --paper: #fafaf8;
  --white: #fff;
  --ink: #1b1b1a;
  --muted: #545450;
  --line: #d5d5cf;
  --soft: #eeede9;
  --masthead-height: 95px;
  --serif: "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", SimSun, Georgia, serif;
  --latin: "Bodoni 72", Didot, Georgia, serif;
  --copy: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  font: 16px/1.58 var(--copy);
  color: var(--ink);
  background: var(--paper);
}

:lang(en) { --serif: var(--latin); }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
img { display: block; width: 100%; height: auto; }
figure, h1, h2, h3, p, dl, dd, ul { margin: 0; }
p { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
input { min-width: 0; }
:where(a, button, input):focus-visible { outline: 2px solid #77776c; outline-offset: 4px; }
::selection { color: var(--ink); background: #dfdfd6; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.2; }
h1 { font-size: clamp(2.8rem, 6vw, 5.75rem); }
h2 { font-size: clamp(2rem, 4vw, 3.75rem); }
h3 { font-size: clamp(1.25rem, 2.1vw, 1.85rem); }
section[id], article[id] { scroll-margin-top: calc(var(--masthead-height) + 12px); }

.frame { width: min(100% - 88px, 1440px); margin-inline: auto; }
.section { padding-block: clamp(52px, 7.5vw, 112px); }
.eyebrow { color: var(--muted); font-size: .84rem; font-weight: 550; letter-spacing: .08em; }
.text-link { text-decoration: underline; text-underline-offset: .32em; text-decoration-color: #8b8b81; }
.text-link:hover { text-decoration-color: currentColor; }
button.text-link { padding: 0; border: 0; background: transparent; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 11px 22px; border: 1px solid transparent; font-size: .94rem; font-weight: 550; text-align: center; transition: background-color .2s, color .2s, border-color .2s; }
.primary { background: var(--ink); color: var(--white); }
.primary:hover { background: #444440; }
.outline { background: transparent; color: var(--ink); border-color: #93938a; }
.outline:hover { background: var(--soft); border-color: var(--ink); }

.skip { position: absolute; z-index: 5; top: -100px; left: 12px; padding: 10px; background: var(--white); }
.skip:focus { top: 8px; }
.masthead { position: sticky; top: 0; z-index: 4; background: var(--paper); transition: transform .27s ease; }
.masthead.is-offscreen { transform: translateY(-100%); }
.masthead.is-offscreen:has(:focus-visible) { transform: translateY(0); }
.masthead-inner { display: grid; grid-template-columns: minmax(150px, .95fr) minmax(0, 2fr) minmax(110px, 1fr); column-gap: 24px; align-items: start; min-height: var(--masthead-height); padding-top: 14px; }
.wordmark { width: fit-content; font: 500 clamp(1.85rem, 2.45vw, 2.65rem)/1 var(--latin); letter-spacing: -.04em; word-spacing: .075em; white-space: nowrap; }
.masthead .wordmark { margin-top: 3px; }
.menu-trigger { display: none; }
.nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.nav-group, .masthead-actions { display: flex; flex-direction: column; align-items: start; }
.masthead-actions { align-items: end; }
.nav a, .language, .cart-trigger { display: inline-flex; min-height: 28px; align-items: center; font-size: .88rem; }
:where(.nav a, .language, .cart-trigger, .menu-trigger):hover, .nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: .33em; }
.cart-trigger, .menu-trigger { padding: 0; background: transparent; border: 0; white-space: nowrap; }
.count { font-variant-numeric: tabular-nums; }

.opening { padding-top: 10px; }
.opening-plate { width: min(100%, 34rem, max(18rem, calc(80svh - 168px))); margin-inline: auto; }
.opening-plate > a { display: block; background: var(--soft); }
.opening-plate img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 51% center; }
.opening-caption { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 4px 16px; padding-top: 3px; }
.opening-caption h1, .samples-content h2 { font: 500 1.13rem/1.38 var(--copy); color: var(--ink); }
.opening-caption p { margin-top: 3px; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 0 15px; }
.actions .text-link { display: inline-flex; min-height: 35px; align-items: center; font-size: .85rem; color: var(--ink); }
figcaption { color: var(--muted); font-size: .85rem; line-height: 1.45; margin-top: 9px; }

.feature-pair { width: min(100% - 88px, 1050px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 4vw, 63px); margin-top: clamp(58px, 8.3vw, 120px); }
.feature-plate { display: block; min-width: 0; }
.feature-plate img { aspect-ratio: 1.43; object-fit: cover; }
.feature-plate:nth-child(2) img { filter: saturate(.68); }
.feature-plate figcaption { color: var(--ink); }
.feature-plate:hover figcaption { text-decoration: underline; text-underline-offset: .24em; }

.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 12px 24px; flex-wrap: wrap; margin-bottom: clamp(16px, 2.3vw, 30px); }
.section-heading h2 { font-size: clamp(1.65rem, 2.65vw, 2.6rem); }
.section-heading p, .collection-note { color: var(--muted); font-size: .88rem; }
#collection { padding-top: clamp(50px, 6.3vw, 101px); }
#collection-title + p { margin-top: 7px; }
#collection-title a:hover { text-decoration: underline; text-underline-offset: .2em; }
.edition-note { max-width: 24rem; }
.tea-grid, .edition-catalogue { display: grid; align-items: start; gap: clamp(16px, 2.1vw, 32px); }
.edition-catalogue { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tea-card { min-width: 0; }
.tea-card a { display: block; }
.tea-card .tea-photo { overflow: hidden; background: var(--soft); }
.tea-card .tea-photo img { width: 100%; aspect-ratio: .93; object-fit: cover; }
.tea-card a:hover h3 { text-decoration: underline; text-underline-offset: .24em; }
.card-copy { padding-top: 10px; }
.card-copy h3 { font: 500 clamp(.9rem, 1.23vw, 1.11rem)/1.45 var(--copy); }
.card-price { margin-top: 4px; color: var(--muted); font-variant-numeric: tabular-nums; font-size: .86rem; }
.collection-end { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px 20px; margin-top: 22px; border-top: 1px solid var(--line); padding-top: 4px; }
.wechat-offer { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; font-size: .88rem; }
.wechat-offer p { color: var(--muted); }
.wechat-offer .text-link { min-height: 44px; }

.selection-page { padding-top: 14px; padding-bottom: clamp(44px, 7vw, 104px); }
.selection-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: baseline; gap: 8px 16px; margin-bottom: clamp(20px, 3vw, 38px); }
.selection-heading h1 { font-size: clamp(1.45rem, 2.2vw, 1.95rem); }
.selection-heading .text-link { justify-self: end; font-size: .9rem; }
.selection-terms, .selection-note { color: var(--muted); font-size: .88rem; }
.selection-content { width: min(100%, 900px); margin-inline: auto; }
.selection-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(23px, 3.4vw, 47px) clamp(12px, 2vw, 26px); }
.selection-grid .tea-photo img { aspect-ratio: 4 / 5; }
.selection-grid .sample-card { grid-column: 1 / -1; }
.selection-grid .sample-card .tea-photo img { aspect-ratio: 3 / 2; }
.selection-grid .card-copy { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 2px 10px; }
.selection-grid .card-copy h3 { font-size: .94rem; }
.selection-grid .card-price { margin-top: 0; }
.selection-note { margin-top: clamp(23px, 4vw, 52px); }
.selection-content .collection-end { margin-top: 13px; }

.samples-layout { width: min(100% - 88px, 930px); }
.sample-photo img { height: auto; aspect-ratio: 1.67; object-fit: cover; }
.sample-caption { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: start; gap: 12px 30px; margin-top: 13px; }
.samples-content { min-width: 0; }
.sample-shipping { color: var(--muted); font-size: .9rem; margin-top: 6px; }
.sample-purchase { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 10px; margin-top: 5px; }
.sample-purchase strong { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.sample-purchase span { color: var(--muted); font-size: .84rem; }
.sample-actions { justify-self: end; width: min(100%, 280px); }
.sample-actions .button { width: 100%; min-height: 44px; }
.sample-contents { margin-top: 9px; }
.sample-list { list-style: none; padding: 0; }
.sample-list li + li { border-top: 1px solid var(--line); }
.sample-list a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; min-height: 40px; font-size: .87rem; }
.sample-list a:hover span { text-decoration: underline; text-underline-offset: .28em; }
.sample-list small { flex: none; color: var(--muted); font-size: .83rem; }
.sample-detail { padding-bottom: clamp(42px, 7vw, 100px); }
.sample-detail .sample-detail-photo { aspect-ratio: 3 / 2; margin-bottom: 0; }
.sample-detail-contents h2 { padding-top: 13px; border-top: 1px solid var(--line); font: 500 .95rem/1.4 var(--copy); }

.home-index { margin-top: clamp(50px, 7vw, 104px); padding-block: clamp(26px, 4vw, 53px); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 5vw, 78px); }
.home-index h2 { font-size: clamp(1.3rem, 1.8vw, 1.8rem); margin-bottom: 9px; }
.home-index p, .home-index li, .about-layout p { color: var(--muted); font-size: .88rem; }
.home-index ul { padding: 0; list-style: none; }
.home-index li + li { margin-top: 8px; }
.home-index p + a { display: inline-flex; align-items: center; min-height: 39px; font-size: .88rem; }
.about-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 7vw, 100px); align-items: center; }
.about-layout p { margin-block: 10px; }
.delivery { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 12px 22px; border-top: 1px solid var(--line); padding-block: 27px 39px; }
.delivery h2 { font-size: 1.6rem; }
.delivery p { color: var(--muted); font-size: .89rem; }
.delivery .delivery-detail { grid-column: 1 / -1; }

.footer {
  --footer-gutter: clamp(16px, 3vw, 44px);
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  background: #f1f0ed;
}
.footer > .frame { width: auto; margin-inline: var(--footer-gutter); }
.footer-main { display: grid; grid-template-rows: 1fr auto 1fr; }
.footer-identity { padding-block: 24px; text-align: center; }
.footer-identity .wordmark { font-size: clamp(1.95rem, 3.15vw, 3.35rem); }
.footer-identity p, .footer-bottom { color: var(--muted); font-size: .84rem; margin-top: 9px; }
.footer-tail { align-self: end; }
.footer-directory { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 19px; width: min(100%, 660px); padding-bottom: 18px; }
.footer-group { display: flex; flex-direction: column; align-items: flex-start; font-size: .88rem; }
.footer-group p { color: var(--muted); margin-bottom: 5px; }
.footer-group a, .footer-contact { display: inline-flex; align-items: center; min-height: 29px; }
.footer a:hover, .footer-contact:hover { text-decoration: underline; text-underline-offset: .3em; }
.footer-contact { padding: 0; border: 0; background: transparent; text-align: left; }
.notify-form { width: min(100%, 355px); align-self: start; justify-self: end; margin-top: clamp(20px, 3.45vw, 49px); }
.notify-form label { display: block; margin-bottom: 7px; font-size: .91rem; }
.notify-form p { margin-top: 5px; color: var(--muted); font-size: .83rem; }
.input-action { display: flex; border-bottom: 1px solid #85857d; }
.input-action input { width: 100%; padding: 8px 2px; border: 0; border-radius: 0; background: transparent; font-size: .92rem; }
.input-action input::placeholder { color: var(--muted); }
.input-action button { min-height: 40px; padding-inline: 10px; border: 0; background: transparent; color: var(--ink); white-space: nowrap; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 18px; padding-block: 13px; border-top: 1px solid var(--line); margin-top: 0; }

.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; padding-block: 17px; color: var(--muted); font-size: .83rem; }
.breadcrumb a { text-decoration: underline; text-underline-offset: .26em; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1.67fr) minmax(275px, 1fr); gap: clamp(32px, 6.5vw, 112px); align-items: start; }
.gallery { min-width: 0; }
.gallery-stage { aspect-ratio: 1.16; position: relative; background: var(--soft); margin-bottom: 24px; }
.gallery-stage figure, .gallery-stage img { height: 100%; }
.gallery-stage figcaption { position: absolute; left: 0; bottom: -22px; }
.gallery-stage img { width: 100%; object-fit: cover; }
.gallery-pending { display: grid; height: 100%; place-items: center; padding: 15px; color: var(--muted); }
.gallery-options { display: flex; flex-wrap: wrap; justify-content: end; gap: 0 20px; }
.gallery-options button { min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--muted); font-size: .86rem; }
.gallery-options button[aria-pressed="true"] { color: var(--ink); text-decoration: underline; text-underline-offset: .36em; }
[data-gallery-view="cup"] img { filter: saturate(.45); }

.purchase-panel { min-width: 0; max-width: 405px; padding-top: clamp(13px, 4vw, 62px); }
.purchase-panel h1 { margin: 10px 0 6px; font-size: clamp(1.85rem, 2.9vw, 3.15rem); letter-spacing: -.044em; }
.detail-year { font-family: var(--latin); font-variant-numeric: lining-nums; }
.tea-origin { color: var(--muted); font-size: .9rem; }
.price-block { display: flex; align-items: baseline; flex-wrap: wrap; gap: 7px; margin-top: 22px; }
.price-block strong { font-size: 1.12rem; font-weight: 500; font-variant-numeric: lining-nums; }
.price-block small, .price-block span, .purchase-rule { color: var(--muted); font-size: .87rem; }
.purchase-rule { margin-top: 4px; }
#tea-form { margin-top: 17px; }
#tea-form label { display: block; margin-bottom: 5px; font-size: .85rem; }
.purchase-actions { display: grid; grid-template-columns: 63px minmax(0, 1fr); gap: 8px; }
.purchase-actions input { padding: 8px; background: var(--white); border: 1px solid #93938a; border-radius: 0; }
#purchase-total { margin-top: 6px; color: var(--muted); font-size: .84rem; }
.detail-wechat { justify-content: space-between; margin-top: 5px; }
.product-notes { margin-top: 8px; }

.fold { border-top: 1px solid var(--line); font-size: .89rem; }
.fold:last-child { border-bottom: 1px solid var(--line); }
.fold summary { cursor: pointer; min-height: 44px; padding-block: 10px; display: list-item; list-style: none; position: relative; padding-right: 28px; }
.fold summary::-webkit-details-marker { display: none; }
.fold summary::after { content: ''; position: absolute; top: calc(50% - 3px); right: 7px; width: 8px; height: 8px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); }
.fold[open] summary::after { transform: rotate(225deg); top: calc(50% + 1px); }
.fold > p, .fold dl { color: var(--muted); margin-bottom: 8px; }
.fold > a { display: inline-block; margin: 0 0 13px; }
.fold > ul { margin-bottom: 8px; }
.facts dl div { display: flex; justify-content: space-between; gap: 10px; padding-block: 3px; }
.reviews { padding-block: clamp(17px, 2vw, 28px); margin-top: clamp(35px, 5vw, 69px); border-block: 1px solid var(--line); }
.reviews h2 { font-size: 1.2rem; }
.reviews p { margin-top: 5px; color: var(--muted); font-size: .87rem; }
.related .tea-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.related .tea-photo img { aspect-ratio: 1.27; }

.inner-page { padding-block: clamp(37px, 7vw, 98px); }
.inner-intro { margin-bottom: clamp(26px, 4.2vw, 56px); }
.inner-intro h1 { margin-bottom: 12px; }
.inner-intro .eyebrow { margin-bottom: 6px; }
.inner-intro p:not(.eyebrow), .journal-post p { max-width: 42rem; color: var(--muted); }
.inquiries-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(22px, 6vw, 77px); align-items: start; }
.inquiries-grid h2 { font-size: clamp(1.45rem, 2.8vw, 2.3rem); margin-bottom: 12px; }
.inquiries-contact { padding: clamp(18px, 3vw, 35px); background: var(--soft); }
.inquiries-contact p { color: var(--muted); margin-bottom: 16px; }
.inquiry-labels { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 10px; padding-block: 8px; border-block: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.inquiry-empty { padding-block: 13px; color: var(--muted); font-size: .94rem; }
.journal-list { max-width: 52rem; margin-bottom: 25px; }
.journal-post { border-top: 1px solid var(--line); padding-block: 22px 29px; }
.journal-post h2 { margin-bottom: 8px; font-size: clamp(1.4rem, 2.9vw, 2.4rem); }
.about-page .hero-photo img { aspect-ratio: 1.55; }
.missing { padding-block: 50px; }

.dialog { width: min(100% - 24px, 500px); max-height: calc(100% - 24px); padding: clamp(16px, 3vw, 26px); color: var(--ink); border: 1px solid var(--line); background: var(--white); }
.dialog::backdrop { background: #1b1b1ab8; }
.dialog-heading, .cart-total { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dialog h2 { font-size: 1.8rem; }
.close { min-width: 44px; min-height: 44px; padding: 0; font-size: 1.54rem; border: 0; background: transparent; }
.cart-list { list-style: none; padding: 0; margin: 10px 0; }
.cart-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; border-top: 1px solid var(--line); padding-block: 10px; }
.cart-row p, .form-status, .empty-cart { color: var(--muted); font-size: .89rem; }
.cart-row-value { display: flex; flex-direction: column; align-items: end; }
.cart-row-value button { font-size: .87rem; min-height: 36px; }
.cart-total { padding: 10px 0 5px; border-top: 1px solid var(--line); }
.empty-cart { margin-top: 10px; }
.wechat-dialog { width: min(100% - 24px, 420px); }
.wechat-context { color: var(--muted); font-size: .94rem; margin: 5px 0 16px; }
.wechat-qr { display: grid; place-items: center; width: min(100%, 224px); aspect-ratio: 1; margin-inline: auto; border: 1px solid var(--line); background: white; }
.wechat-qr img { object-fit: contain; }
.wechat-qr p, .wechat-save { color: var(--muted); font-size: .92rem; }
.wechat-save { text-align: center; margin-top: 12px; }
.wechat-save a { display: inline-flex; min-height: 44px; align-items: center; }

@media (max-width: 980px) {
  .frame { width: calc(100% - 48px); }
  .section { padding-block: clamp(42px, 6vw, 68px); }
}

@media (max-width: 700px) {
  :root { --masthead-height: 57px; }
  .frame { width: calc(100% - 32px); }
  .masthead.is-offscreen:has(.menu-trigger[aria-expanded="true"]) { transform: translateY(0); }
  .masthead-inner { grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 10px; padding-top: 0; align-items: center; }
  .menu-trigger { display: block; min-height: 44px; font-size: .86rem; }
  .masthead .wordmark { justify-self: center; margin-top: 0; }
  .wordmark { font-size: clamp(1.53rem, 6.8vw, 2.12rem); }
  .nav { display: none; grid-column: 1 / -1; grid-row: 2; border-top: 1px solid var(--line); padding: 5px 0 10px; }
  .menu-trigger[aria-expanded="true"] ~ .nav { display: grid; }
  .nav a { min-height: 44px; }
  .masthead-actions { grid-column: 3; grid-row: 1; flex-direction: row; gap: 8px; align-items: center; }
  .masthead-actions > * { min-height: 44px; font-size: .8rem; }
  .opening { padding-top: 6px; }
  .opening-plate { width: min(93%, 24rem); }
  .actions .text-link { min-height: 44px; }
  .feature-pair { gap: 12px; margin-top: 39px; }
  .feature-plate img { aspect-ratio: .93; }
  .section { padding-block: 38px; }
  .edition-catalogue, .delivery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .edition-note { max-width: none; }
  .collection-end { margin-top: 17px; }
  .selection-heading { grid-template-columns: minmax(0, 1fr) auto; }
  .selection-heading .text-link { grid-column: 2; grid-row: 1; min-height: 44px; }
  .selection-terms { grid-column: 1 / -1; }
  .sample-photo img { aspect-ratio: 1.5; }
  .sample-caption, .home-index, .about-layout, .detail-layout, .inquiries-grid { grid-template-columns: minmax(0, 1fr); }
  .sample-actions { justify-self: start; width: 100%; }
  .delivery h2 { grid-column: 1 / -1; }
  .footer-directory { gap: 9px 12px; }
  .footer-group a, .footer-contact { min-height: 44px; }
  .detail-layout { gap: 18px; }
  .gallery-stage { aspect-ratio: 1.13; margin-bottom: 22px; }
  .purchase-panel { padding-top: 0; max-width: none; }
  .purchase-panel h1 { font-size: clamp(1.85rem, 7.4vw, 2.8rem); }
  .related .tea-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 369px) {
  .masthead-inner { column-gap: 8px; }
  .edition-catalogue, .related .tea-grid { gap: 14px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; }
}
