:root {
  color-scheme: light;
  --paper: #f5f1e5;
  --ink: #22372c;
  --muted: #514e40;
  --accent: #91432e;
  --line: #d9d2bf;
  --serif: "Noto Serif SC", "Songti SC", "SimSun", Georgia, serif;
  --sans: system-ui, "Microsoft YaHei", sans-serif;
  --gutter: clamp(1.25rem, 6vw, 7rem);
}
html[lang="en"] { --serif: Georgia, "Times New Roman", serif; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.7 var(--sans); }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
img { display: block; width: 100%; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { font: 600 2rem/1.22 var(--serif); }
.skip-link { position: fixed; z-index: 10; top: 0; left: 1rem; padding: .65rem 1rem; background: white; transform: translateY(-125%); }
.skip-link:focus { transform: none; }
.site-header { position: sticky; top: 0; z-index: 5; border-bottom: 1px solid var(--line); background: var(--paper); }
.header-inner { min-height: 5rem; padding: .75rem var(--gutter); display: flex; gap: clamp(1rem, 4vw, 4rem); align-items: center; }
.brand { margin-right: auto; display: inline-flex; align-items: center; gap: .7rem; font: 700 1.35rem/1.15 var(--serif); }
.brand small { display: block; margin-top: .35rem; font: 500 .77rem/1.2 var(--sans); letter-spacing: .12em; }
.brand-mark { display: grid; place-items: center; flex: 0 0 2.5rem; width: 2.5rem; height: 2.5rem; background: var(--accent); color: white; border-radius: .18rem; }
.site-header nav { display: flex; gap: clamp(1rem, 3vw, 2.25rem); font-size: .9rem; }
.site-header nav a:hover, .site-footer a:hover { text-decoration: underline; text-underline-offset: .25rem; }
.language { display: inline-flex; align-items: center; gap: .1rem; padding: .16rem; border: 1px solid var(--line); border-radius: 2rem; font-size: .86rem; flex: none; }
.language a { display: grid; place-items: center; min-height: 2rem; min-width: 2.4rem; padding: 0 .4rem; border-radius: 2rem; }
.language [aria-current] { color: white; background: var(--ink); }
.hero { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); min-height: clamp(36rem, 77svh, 53rem); background: #243b2f; color: #fff9e9; }
.hero-content { max-width: 46rem; align-self: center; padding: clamp(3rem, 8vw, 8rem) clamp(1.5rem, 4vw, 5rem) clamp(3rem, 8vw, 8rem) var(--gutter); }
.place { font-size: .875rem; letter-spacing: .1em; font-weight: 650; color: var(--accent); }
.hero .place { color: #eac79a; }
.hero h1 { margin: .65rem 0 1rem; font-size: clamp(3rem, 6.3vw, 6.5rem); }
.hero-line { margin: 0 0 1rem; font: 500 clamp(1.2rem, 2.25vw, 2rem)/1.55 var(--serif); }
.hero-content > p:last-of-type { max-width: 28rem; color: #eee5d0; }
.hero-actions { margin-top: 2rem; display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 1.5rem; }
.button { display: inline-flex; align-items: center; min-height: 3rem; padding: .65rem 1.1rem; font-size: .95rem; font-weight: 650; border-radius: .14rem; }
.button.primary { color: #25372b; background: #f6e9cc; }
.button.primary:hover { background: #fff8e9; }
.hero-actions .text-link { color: #fff9e9; }
.hero-media { position: relative; min-height: 24rem; }
.hero-media img { position: absolute; height: 100%; object-fit: cover; object-position: 55% 73%; }
.hero-media figcaption { position: absolute; left: 1rem; bottom: 1rem; padding: .35rem .65rem; color: white; background: #172a22df; font-size: .82rem; }
.collection, .detail { padding: clamp(3.2rem, 7vw, 6.5rem) var(--gutter); max-width: 100rem; margin: 0 auto; }
.collection-head { display: grid; grid-template-columns: 1.25fr 1fr; align-items: end; gap: 1.5rem; }
.collection-head h2 { margin-top: .5rem; font-size: clamp(2.35rem, 5vw, 5rem); }
.collection-head > p { max-width: 30rem; color: var(--muted); }
.categories { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.8rem; }
.categories a { padding: .55rem .95rem; border: 1px solid var(--line); }
.categories a:hover { border-color: var(--accent); color: var(--accent); }
.category { margin-top: clamp(3rem, 6vw, 5rem); }
.category > h2, .related > h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); border-bottom: 1px solid var(--line); padding-bottom: .9rem; margin-bottom: 1.35rem; }
.card-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(1rem, 2.4vw, 2.25rem); }
.product-card { border-bottom: 1px solid var(--line); }
.product-card a { display: block; height: 100%; }
.card-media { position: relative; overflow: hidden; aspect-ratio: 4/3; background: #e5ded0; }
.card-media img { height: 100%; object-fit: cover; transition: transform .3s ease; }
.product-card a:hover img { transform: scale(1.04); }
.image-note { position: absolute; right: .5rem; bottom: .5rem; background: #f8f3e9; padding: .18rem .45rem; font-size: .75rem; }
.card-text { padding: .9rem 0 1.25rem; }
.card-text h3 { margin: .3rem 0 .6rem; font-size: clamp(1.35rem, 2.3vw, 1.85rem); }
.card-text p:not(.place) { color: var(--muted); }
.text-link { display: inline-block; color: var(--accent); font-size: .9rem; font-weight: 650; text-decoration: underline; text-underline-offset: .27rem; }
.card-text .text-link { margin-top: .8rem; }
.detail { padding-top: 2.25rem; }
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; font-size: .9rem; color: var(--muted); margin-bottom: 1.55rem; }
.breadcrumb a { text-decoration: underline; text-underline-offset: .2rem; }
.detail-hero { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(2rem, 7vw, 7rem); }
.detail-summary h1 { font-size: clamp(2.8rem, 6vw, 5.7rem); margin: .6rem 0 1.25rem; }
.detail-intro { font-size: clamp(1.06rem, 2vw, 1.4rem); color: var(--muted); }
.detail-image { position: relative; }
.detail-image img { aspect-ratio: 1; height: auto; object-fit: cover; background: var(--line); }
.detail-image figcaption { color: var(--muted); font-size: .8rem; margin-top: .5rem; }
.origin { border-block: 1px solid var(--line); display: flex; gap: 1.25rem; padding: .85rem 0; margin: 1.8rem 0 1rem; }
.origin dt { font-weight: 700; }
.product-facts { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 5vw, 5rem); margin: clamp(2.75rem, 6vw, 5rem) 0; }
.product-facts article { border-top: 1px solid var(--line); padding-top: 1rem; }
.product-facts h2, .sources h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: .75rem; }
.product-facts p { color: var(--muted); }
.sources { background: #ede6d5; padding: clamp(1.3rem, 4vw, 3.2rem); }
.sources ul { margin: 0; padding-left: 1.25rem; }
.sources a { color: var(--accent); text-decoration: underline; text-underline-offset: .2rem; overflow-wrap: anywhere; }
.related { margin-top: clamp(3rem, 6vw, 5rem); }
.site-footer { color: #fff7e1; background: #23382c; padding: 2.2rem var(--gutter); display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; font-size: .9rem; }
.site-footer div { margin-right: auto; }
.site-footer strong { font: 650 1.4rem/1.4 var(--serif); }
.site-footer p { color: #e6d9be; }
@media (max-width: 860px) {
  .card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 650px) {
  html { scroll-padding-top: 5.5rem; }
  .header-inner { min-height: 4.25rem; gap: .6rem; flex-wrap: wrap; }
  .brand { font-size: 1.05rem; gap: .45rem; }
  .brand small { font-size: .65rem; }
  .brand-mark { width: 2rem; height: 2rem; flex-basis: 2rem; }
  .site-header nav { display: none; }
  .hero { min-height: auto; grid-template-columns: 1fr; }
  .hero-content { padding: 2.5rem var(--gutter); }
  .hero h1 { margin-bottom: .6rem; }
  .hero-actions { margin-top: 1.3rem; gap: .65rem 1rem; }
  .hero-media { min-height: 20rem; min-height: clamp(17rem, 55vw, 25rem); }
  .collection-head, .detail-hero, .product-facts { grid-template-columns: 1fr; }
  .detail-hero { gap: 1.5rem; }
  .card-text p:not(.place) { font-size: .93rem; }
  .card-text .place { letter-spacing: 0; font-size: .82rem; }
  .image-note { font-size: .7rem; }
}
@media (max-width: 365px) { .card-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card-media img { transition: none; }
}
