:root {
  color-scheme: light;
  --paper: #faf9f4;
  --warm-white: #f4f2e9;
  --hero-paper: #eae6d8;
  --ink: #292c22;
  --muted: #58594e;
  --olive: #384433;
  --olive-hover: #273326;
  --line: #dcdccf;
  --white: #fffcf5;
  --serif: Georgia, "Songti SC", SimSun, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
:where(h1, h2, h3, p, dl, dd, ul, ol) { margin: 0; }
:where(a) { color: inherit; }
:where(button, textarea) { font: inherit; color: inherit; }
:where(button) { cursor: pointer; }
:where(button):disabled { cursor: default; }
:focus-visible { outline: 2px solid #536047; outline-offset: 4px; }
:where([tabindex="-1"]):focus { outline: none; }
[hidden] { display: none !important; }
img { max-width: 100%; display: block; }
.shell { width: min(calc(100% - clamp(2.125rem, 8.7vw, 9rem)), 82rem); margin-inline: auto; }
.skip-link { position: fixed; isolation: isolate; z-index: 4; inset: 1rem auto auto 1rem; padding: .65rem 1rem; background: var(--white); transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.masthead { border-bottom: 1px solid var(--line); }
.masthead-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: clamp(1rem, 3vw, 2.4rem); min-height: 5rem; }
.brand { display: inline-flex; align-items: center; gap: .58rem; justify-self: start; font: 700 clamp(1.3rem, 2.2vw, 1.75rem)/1 var(--serif); letter-spacing: -.055em; text-decoration: none; white-space: nowrap; }
.brand-mark { display: block; flex: none; width: 1.45rem; aspect-ratio: 1; background: currentColor; clip-path: polygon(50% 0, 61% 36%, 100% 50%, 61% 62%, 50% 100%, 38% 62%, 0 50%, 38% 36%); }
.site-nav, .masthead-actions { display: flex; align-items: center; gap: clamp(.9rem, 2.6vw, 2.4rem); }
.masthead-actions { justify-content: end; gap: clamp(.7rem, 1.7vw, 1.4rem); }
.site-nav a, .locale-link, .site-footer nav a { font-size: .9375rem; font-weight: 550; text-decoration: none; white-space: nowrap; }
.site-nav a:hover, .locale-link:hover, .site-footer nav a:hover { text-decoration: underline; text-underline-offset: .31em; }
.cart-trigger { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.55rem; padding: .45rem .7rem; border: 1px solid #c8cbbb; background: transparent; border-radius: .3rem; white-space: nowrap; font-size: .875rem; font-weight: 650; }
.cart-trigger:hover { background: var(--warm-white); }
.bag-icon { position: relative; width: .85rem; height: .77rem; margin-top: .17rem; border: 1px solid currentColor; border-radius: .1rem; }
.bag-icon::before { content:""; position: absolute; width: .37rem; height: .34rem; border: 1px solid currentColor; border-bottom: 0; border-radius: .26rem .26rem 0 0; left: 50%; bottom: calc(100% + 1px); transform: translateX(-50%); }
.cart-count { display: inline-grid; place-items: center; min-width: 1.2rem; height: 1.2rem; padding-inline: .16rem; border-radius: 999px; background: #e7eadf; font-size: .75rem; font-variant-numeric: tabular-nums; }

.hero { margin-top: clamp(1.2rem, 3.15vw, 2.75rem); display: grid; grid-template-columns: minmax(0, .84fr) minmax(0, 1.4fr); background: var(--hero-paper); }
.hero-copy { display: flex; flex-direction: column; align-items: start; justify-content: center; padding: clamp(2.1rem, 5.15vw, 5.6rem); min-height: clamp(29rem, 40.8vw, 37rem); }
.eyebrow { color: var(--olive); font-size: .875rem; letter-spacing: .117em; font-weight: 650; }
.hero h1 { margin-block: .9rem 1.35rem; font: 400 clamp(2.65rem, 4.6vw, 5.7rem)/1.01 var(--serif); letter-spacing: -.052em; }
:lang(zh-CN) .hero h1 { font-size: clamp(2.85rem, 4.9vw, 5.7rem); letter-spacing: -.08em; line-height: 1.12; }
.hero-copy > p:not(.eyebrow) { max-width: 21rem; color: #505345; font-size: 1.02rem; line-height: 1.78; }
.hero-copy .button { margin-top: 1.8rem; }
.hero-image { width: 100%; height: 100%; object-fit: cover; object-position: 56% center; }
.button { display: inline-flex; min-height: 2.95rem; padding: .65rem 1.15rem; align-items: center; justify-content: center; text-align: center; border: 1px solid transparent; border-radius: .25rem; font-size: .94rem; font-weight: 650; text-decoration: none; line-height: 1.35; transition: background .18s ease, color .18s ease; }
.button-primary { color: var(--white); background: var(--olive); }
.button-primary:hover:not(:disabled) { background: var(--olive-hover); }
.button-secondary { color: var(--olive); background: transparent; border-color: #b5bcac; }
.button-secondary:hover:not(:disabled) { background: #eeefe5; }
.button-light { color: var(--olive); background: var(--white); }
.button-light:hover { background: #e6eadc; }
.button:disabled { opacity: .52; }

.catalog { padding-block: clamp(3.7rem, 7vw, 7rem) clamp(3.4rem, 7vw, 6.5rem); }
.catalog-intro { display: flex; align-items: end; flex-wrap: wrap; justify-content: space-between; gap: .65rem 1.25rem; }
.catalog-intro h2, .story h2, .quote-section h2 { font: 400 clamp(2.25rem, 4.35vw, 4.55rem)/1.08 var(--serif); letter-spacing: -.05em; }
.catalog-intro p, .catalog-disclosure { color: var(--muted); }
.catalog-controls { margin: 1.55rem 0 .65rem; padding-bottom: .95rem; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .65rem; }
.category-tabs { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; }
.category-tab { padding: .49rem .9rem; min-height: 2.55rem; border: 1px solid #d5d7c9; border-radius: .25rem; color: var(--olive); background: transparent; font-weight: 600; font-size: .92rem; text-align: center; }
.category-tab:hover { background: #eff0e6; }
.category-tab[aria-pressed="true"], .category-tab[aria-selected="true"] { color: var(--white); border-color: var(--olive); background: var(--olive); }
.search-field { flex: 0 1 15.5rem; }
.search-field input { width: 100%; min-height: 2.55rem; padding: .5rem .7rem; border: 1px solid #cbd0c0; border-radius: .25rem; background: var(--white); color: var(--ink); font: inherit; font-size: .9rem; }
#catalog-count { margin-bottom: .72rem; color: var(--muted); font-size: .875rem; }
.catalog-empty { grid-column: 1 / -1; padding: 2rem 0; color: var(--muted); }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.45rem, 2.3vw, 2.35rem) clamp(.85rem, 1.9vw, 1.7rem); }
.product-card { min-width: 0; }
.product-card-button { display: block; width: 100%; text-decoration: none; color: inherit; text-align: left; border: 0; padding: 0; background: transparent; }
.product-image { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #e9e5d9; transition: filter .2s ease; }
.product-card-button:hover .product-image { filter: brightness(.96); }
.product-copy { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: .2rem .65rem; padding: .82rem 0 0; }
.product-name { grid-column: 1; font: 650 clamp(1.03rem, 1.65vw, 1.46rem)/1.22 var(--serif); letter-spacing: -.022em; }
.product-note { grid-column: 1; color: var(--muted); font-size: .91rem; line-height: 1.48; }
.product-cta { grid-column: 2; grid-row: 1 / 3; align-self: start; color: var(--olive); font-size: .875rem; font-weight: 650; white-space: nowrap; }
.product-card-button:hover .product-name { text-decoration: underline; text-underline-offset: .245em; }
.catalog-disclosure { margin-top: 1.8rem; font-size: .875rem; }

.story { background: var(--warm-white); border-block: 1px solid var(--line); }
.story-inner { display: grid; grid-template-columns: auto minmax(0, .95fr) minmax(0, 1fr); align-items: center; gap: clamp(1.25rem, 4.5vw, 5rem); padding-block: clamp(2.7rem, 6vw, 5.5rem); }
.story-mark { width: clamp(2.5rem, 5vw, 4.25rem); color: #6f795d; }
.story h2 { margin-top: .5rem; font-size: clamp(1.95rem, 3.1vw, 3.2rem); }
.story-inner > p { color: var(--muted); line-height: 1.8; max-width: 38rem; }
.quote-section { background: var(--olive); color: var(--white); }
.quote-section-inner { display: grid; grid-template-columns: minmax(0, 1.5fr) auto; align-items: center; gap: clamp(1.35rem, 5.5vw, 6rem); padding-block: clamp(2.5rem, 5.7vw, 5.25rem); }
.quote-section h2 { font-size: clamp(1.95rem, 3.5vw, 3.65rem); margin-bottom: .75rem; }
.quote-section p { max-width: 42rem; color: #eeeee2; }
.quote-section-actions { display: flex; flex-direction: column; align-items: start; gap: .75rem; }
.email-link { font-size: .95rem; text-underline-offset: .22em; }
.quote-section :focus-visible { outline-color: var(--white); }

.site-footer { padding-block: clamp(1.8rem, 4vw, 3rem); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.1rem; }
.footer-inner p { margin-top: .38rem; color: var(--muted); font-size: .875rem; }
.footer-inner nav { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.35rem; }
.footer-inner .brand { font-size: 1.45rem; }

dialog { max-height: calc(100dvh - 2rem); padding: 0; border: 1px solid var(--line); border-radius: .35rem; background: var(--paper); color: var(--ink); box-shadow: 0 1.25rem 4.35rem #22271e3d; overflow: auto; overscroll-behavior: contain; }
dialog::backdrop { background: #272b22a1; }
html:has(dialog[open]) { overflow: hidden; }
#product-dialog { width: min(59rem, calc(100% - 2rem)); }
#quote-dialog { width: min(38rem, calc(100% - 2rem)); }
.dialog-panel { position: relative; }
.dialog-header { display: flex; align-items: start; justify-content: space-between; gap: .8rem; }
.dialog-close { display: inline-grid; min-width: 2.45rem; height: 2.45rem; place-items: center; max-width: max-content; padding: .25rem .6rem; border: 1px solid #c8cbbb; border-radius: .25rem; background: var(--paper); font-weight: 600; z-index: 1; }
.dialog-close:hover { background: var(--warm-white); }
#product-dialog .dialog-close { position: absolute; top: .8rem; right: .8rem; }
.product-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
.product-detail-image { width: 100%; height: 100%; min-height: 22rem; object-fit: cover; background: var(--hero-paper); }
.product-detail-copy { padding: 3.5rem clamp(1.1rem, 3.5vw, 2.6rem) 2rem; }
.product-detail-copy h2, #quote-dialog h2 { font: 400 clamp(1.8rem, 3.7vw, 2.7rem)/1.12 var(--serif); letter-spacing: -.035em; }
.product-detail-copy > p { margin-top: .85rem; color: var(--muted); }
.detail-facts { margin-block: 1.15rem; }
.detail-facts > div { display: grid; grid-template-columns: minmax(6.5rem, .72fr) minmax(0, 1.2fr); gap: .5rem; padding-block: .5rem; border-top: 1px solid var(--line); font-size: .9rem; }
.detail-facts dt { color: var(--muted); }
.detail-facts dd { font-weight: 600; }
.dialog-controls, .quote-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; }
#quote-dialog .dialog-panel { padding: clamp(1.1rem, 4vw, 2.2rem); }
#quote-dialog .dialog-header { margin-bottom: 1rem; }
.quote-items { list-style: none; padding: 0; margin-bottom: 1.15rem; }
.quote-item { display: grid; grid-template-columns: 4.7rem minmax(0, 1fr) auto; align-items: center; gap: .65rem; padding-block: .7rem; border-bottom: 1px solid var(--line); }
.quote-item img { grid-row: 1 / 3; width: 4.7rem; aspect-ratio: 4 / 3; object-fit: cover; }
.quote-item-info { grid-area: 1 / 2; display: grid; gap: .15rem; }
.quote-item-info span { color: var(--muted); font-size: .875rem; }
.quote-item > .quantity { grid-area: 1 / 3 / 3; }
.quantity { display: flex; align-items: center; gap: .4rem; text-align: center; white-space: nowrap; }
.quantity button { min-width: 2rem; min-height: 2rem; padding: .1rem; border: 1px solid #c4c9bc; border-radius: .2rem; background: transparent; }
.quantity button:hover:not([aria-disabled="true"]) { background: var(--warm-white); }
.quantity button[aria-disabled="true"] { opacity: .45; cursor: default; }
.quantity :is(input, output, span) { min-width: 1.5rem; text-align: center; font-variant-numeric: tabular-nums; }
.quote-remove { grid-area: 2 / 2; width: fit-content; padding: 0; color: var(--muted); text-decoration: underline; text-underline-offset: .18em; border: 0; background: none; font-size: .875rem; }
.quote-empty, .quote-help { margin-bottom: .9rem; color: var(--muted); }
.quote-notes { display: block; font-size: .92rem; font-weight: 600; }
.quote-notes textarea { display: block; width: 100%; min-height: 4.2rem; margin: .35rem 0 .75rem; padding: .62rem .7rem; border: 1px solid #c4c9bc; border-radius: .25rem; background: var(--white); resize: vertical; font-weight: 400; }
.quote-copy-fallback { width: 100%; padding: .6rem; border: 1px solid var(--line); border-radius: .25rem; background: var(--white); }
.quote-status { margin: .6rem 0; min-height: 1.2rem; color: var(--olive); font-size: .9rem; }

@media (max-width: 55rem) {
  .shell { width: calc(100% - 2.6rem); }
  .hero { grid-template-columns: minmax(0, .95fr) minmax(0, 1.1fr); }
  .hero-copy { min-height: clamp(25rem, 47vw, 32rem); padding: 2rem; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-nav, .masthead-actions { gap: .9rem; }
}
@media (max-width: 43rem) {
  .shell { width: calc(100% - 2rem); }
  .masthead-inner { grid-template-columns: 1fr 1fr; gap: .3rem .5rem; min-height: 0; padding-block: .8rem .35rem; }
  .masthead-actions { grid-area: 1 / 2; }
  .site-nav { grid-column: 1 / -1; min-height: 2.35rem; gap: clamp(.7rem, 4.2vw, 1.6rem); }
  .site-nav a, .locale-link { font-size: .88rem; }
  .cart-trigger { min-height: 2.3rem; padding-inline: .5rem; }
  .bag-icon { display: none; }
  .brand-mark { width: 1.22rem; }
  .hero { grid-template-columns: 1fr; margin-top: 1rem; }
  .hero-copy { min-height: auto; padding: clamp(1.65rem, 6vw, 2.5rem); }
  .hero h1 { font-size: clamp(2.5rem, 10vw, 4rem); margin-block: .55rem .8rem; }
  :lang(zh-CN) .hero h1 { font-size: clamp(2.5rem, 10vw, 4rem); }
  .hero-copy > p:not(.eyebrow) { font-size: .98rem; }
  .hero-copy .button { margin-top: 1.05rem; }
  .hero-image { height: auto; aspect-ratio: 1.6; object-position: 54% 52%; }
  .catalog, .story-inner, .quote-section-inner { padding-block: 2.9rem; }
  .catalog-controls { margin-top: 1.1rem; }
  .search-field { flex-basis: 100%; }
  .catalog-intro { align-items: start; flex-direction: column; }
  .product-copy { grid-template-columns: 1fr; }
  .product-cta { grid-column: 1; grid-row: auto; }
  .story-inner { grid-template-columns: auto minmax(0, 1fr); gap: .85rem 1rem; }
  .story-inner > p { grid-column: 2; }
  .story-mark { align-self: start; }
  .quote-section-inner { grid-template-columns: 1fr; }
  .product-detail-grid { grid-template-columns: 1fr; }
  .product-detail-image { min-height: 0; height: auto; aspect-ratio: 4 / 3; }
  .product-detail-copy { padding: 1.3rem 1rem 1.6rem; }
  .quote-item { grid-template-columns: 3.7rem minmax(0, 1fr) auto; }
  .quote-item img { width: 3.7rem; }
}
@media (max-width: 22rem) {
  .masthead-actions { gap: .48rem; }
  .cart-trigger { gap: .28rem; }
  .brand { font-size: 1.16rem; gap: .35rem; }
  .site-nav a { font-size: .82rem; }
  .product-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
