:root {
  --paper: #f4efe4;
  --paper-deep: #e8deca;
  --ink: #17231d;
  --forest: #263b2f;
  --moss: #6d7955;
  --paprika: #9d3f2a;
  --saffron: #dea83c;
  --plum: #523643;
  --cream: #fffaf0;
  --focus: #704100;
  --line: rgba(23, 35, 29, 0.2);
  --shadow: 0 24px 70px rgba(39, 35, 24, 0.15);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", "Noto Sans SC", system-ui, sans-serif;
  --zh-display: "Noto Sans SC", "Songti SC", "STSong", serif;
  --max: 1240px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 10%, rgba(222, 168, 60, 0.08), transparent 26rem),
    radial-gradient(circle at 90% 38%, rgba(189, 78, 50, 0.07), transparent 30rem),
    var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  content: "";
  opacity: 0.23;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E");
}

body::after {
  position: fixed;
  inset: 0;
  z-index: 14;
  pointer-events: none;
  content: "";
  background: rgba(23, 35, 29, 0);
  transition: background 200ms ease;
}

body.nav-open {
  overflow: hidden;
}

body.favorites-open {
  overflow: hidden;
}

body.nav-open::after {
  pointer-events: auto;
  background: rgba(23, 35, 29, 0.48);
}

body.favorites-open::after {
  pointer-events: auto;
  background: rgba(23, 35, 29, 0.65);
}

img {
  display: block;
  max-width: 100%;
}

button,
a {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.story :focus-visible,
.closing :focus-visible {
  outline-color: var(--cream);
}

.save-button:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--cream), 0 7px 22px rgba(23, 35, 29, 0.17);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  color: var(--cream);
  background: var(--ink);
  transform: translateY(-180%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.market-ribbon {
  overflow: hidden;
  color: var(--cream);
  background: var(--ink);
  border-bottom: 1px solid rgba(255, 250, 240, 0.15);
}

.market-ribbon__track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 1.2rem;
  padding: 0.5rem 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  animation: ribbon-slide 34s linear infinite;
}

.market-ribbon__track i {
  color: var(--saffron);
  font-style: normal;
}

@keyframes ribbon-slide {
  to { transform: translateX(-50%); }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 15;
  display: flex;
  min-height: 84px;
  align-items: center;
  justify-content: space-between;
  padding: 1rem max(4vw, 1.25rem);
  background: rgba(244, 239, 228, 0.88);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px);
  transition: min-height 200ms ease, border-color 200ms ease;
}

.site-header.is-scrolled {
  min-height: 68px;
  border-color: var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}

.brand__mark {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
}

.brand__mark::before,
.brand__mark::after,
.brand__mark span::before,
.brand__mark span::after {
  position: absolute;
  width: 12px;
  height: 18px;
  content: "";
  background: var(--paprika);
  border-radius: 100% 0 100% 0;
  transform-origin: 100% 100%;
}

.brand__mark::before { transform: translate(-5px, -7px) rotate(-5deg); }
.brand__mark::after { transform: translate(5px, -7px) rotate(85deg); }
.brand__mark span::before { transform: translate(-5px, 7px) rotate(-95deg); }
.brand__mark span::after { transform: translate(5px, 7px) rotate(175deg); }

.brand__type {
  display: grid;
  line-height: 1;
}

.brand__type strong {
  font-size: 0.83rem;
  letter-spacing: 0.15em;
}

.brand__type small {
  margin-top: 0.45rem;
  font-size: 0.59rem;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.65rem, 1.6vw, 1.8rem);
  font-size: 0.82rem;
  font-weight: 600;
}

.site-nav a {
  position: relative;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -0.3rem;
  left: 0;
  height: 1px;
  content: "";
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-favorites {
  padding: 0.55rem 0.8rem;
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: 99px;
}

.nav-favorites [data-favorite-count] {
  display: inline-grid;
  min-width: 1.2rem;
  min-height: 1.2rem;
  margin-left: 0.25rem;
  place-items: center;
  color: var(--cream);
  background: var(--paprika);
  border-radius: 50%;
  font-size: 0.65rem;
}

.language-switch {
  display: inline-flex;
  padding: 0.18rem;
  align-items: center;
  gap: 0.1rem;
  border: 1px solid var(--line);
  border-radius: 99px;
}

.language-switch > span {
  color: rgba(23, 35, 29, 0.34);
  font-size: 0.66rem;
}

.language-switch button {
  min-width: 2.25rem;
  padding: 0.3rem 0.48rem;
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: 99px;
  font-size: 0.68rem;
  font-weight: 700;
}

.language-switch button[aria-pressed="true"] {
  color: var(--cream);
  background: var(--ink);
}

.nav-toggle {
  display: none;
}

.hero {
  display: grid;
  width: min(var(--max), calc(100% - 8vw));
  min-height: calc(100vh - 118px);
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 8rem) 0 clamp(5rem, 8vw, 8rem);
  align-items: center;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(3rem, 8vw, 8rem);
}

.eyebrow {
  margin: 0 0 1.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.eyebrow span {
  color: var(--paprika);
}

.hero h1,
.section-heading h2,
.story h2,
.guide h2,
.closing h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 0.95;
}

.hero h1 {
  max-width: 720px;
  font-size: clamp(3.5rem, 7.8vw, 7.9rem);
}

h1 em,
h2 em {
  color: var(--paprika);
  font-weight: 500;
}

.hero__lede {
  max-width: 590px;
  margin: 2.2rem 0 0;
  font-size: clamp(1rem, 1.4vw, 1.16rem);
}

.hero__cn {
  max-width: 580px;
  margin: 0.7rem 0 0;
  color: rgba(23, 35, 29, 0.67);
  font-size: 0.86rem;
}

.hero__actions {
  display: flex;
  margin-top: 2.4rem;
  align-items: center;
  gap: 1.5rem;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover { transform: translateY(-2px); }
.button--dark { color: var(--cream); background: var(--ink); }
.button--dark:hover { background: var(--paprika); }
.button--light { color: var(--ink); background: var(--cream); }
.button--light:hover { color: var(--cream); background: var(--paprika); }

.text-link {
  padding-block: 0.4rem;
  border-bottom: 1px solid var(--ink);
  font-size: 0.8rem;
  font-weight: 700;
}

.hero__visual {
  position: relative;
  padding: 0 2.5rem 2.8rem 0;
}

.hero__visual::before {
  position: absolute;
  top: -2rem;
  right: 0;
  width: 43%;
  aspect-ratio: 1;
  content: "";
  background: var(--saffron);
  border-radius: 50%;
}

.hero__image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--paper-deep);
  border-radius: 48% 48% 3px 3px / 30% 30% 3px 3px;
  box-shadow: var(--shadow);
}

.hero__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__image-label {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  padding: 0.55rem 0.7rem;
  color: var(--cream);
  background: rgba(23, 35, 29, 0.82);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.hero__note {
  position: absolute;
  right: 0;
  bottom: 0;
  display: flex;
  width: min(310px, 75%);
  padding: 1.1rem 1.2rem;
  align-items: center;
  gap: 0.8rem;
  color: var(--cream);
  background: var(--plum);
  box-shadow: 0 16px 36px rgba(82, 54, 67, 0.25);
}

.hero__note-mark {
  color: var(--saffron);
  font-size: 1.25rem;
}

.hero__note p {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.4;
}

.material-line {
  display: flex;
  width: min(var(--max), calc(100% - 8vw));
  margin: 0 auto;
  align-items: center;
  gap: 1rem;
  color: rgba(23, 35, 29, 0.7);
}

.material-line p {
  margin: 0;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  white-space: nowrap;
}

.material-line span {
  width: 100%;
  height: 1px;
  background: var(--line);
}

.section {
  width: min(var(--max), calc(100% - 8vw));
  margin: 0 auto;
  padding: clamp(6rem, 10vw, 10rem) 0;
}

.section-heading {
  display: grid;
  align-items: end;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 4rem;
}

.section-heading h2,
.story h2,
.guide h2,
.closing h2 {
  font-size: clamp(3rem, 6vw, 6.4rem);
}

.section-heading__aside > p:first-child {
  max-width: 470px;
  margin: 0 0 0.5rem;
  color: rgba(23, 35, 29, 0.72);
}

.concept-note {
  max-width: 470px;
  margin: 1.2rem 0 0;
  padding-top: 1rem;
  color: rgba(23, 35, 29, 0.78);
  border-top: 1px solid var(--line);
  font-size: 0.74rem;
}

.concept-note strong {
  color: var(--paprika);
}

.filter-bar {
  display: flex;
  margin: 3.2rem 0 2rem;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.filter-chip {
  padding: 0.65rem 1rem;
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 700;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.filter-chip:hover,
.filter-chip.is-active {
  color: var(--cream);
  background: var(--ink);
  border-color: var(--ink);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 3rem);
}

.product-card {
  min-width: 0;
  border-top: 1px solid var(--ink);
}

.product-card[hidden] {
  display: none;
}

.product-card--wide {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
}

.product-card__image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 5 / 4;
  background: var(--paper-deep);
}

.product-card--wide .product-card__image {
  min-height: 500px;
  aspect-ratio: auto;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(.2,.7,.2,1);
}

.product-card:hover .product-card__image img {
  transform: scale(1.035);
}

.product-card__image--textile-two img { object-position: 80% center; }
.product-card__image--stone img { object-position: left center; }
.product-card__image--folk-jewelry img { object-position: 65% center; }
.product-card__image--nature img { object-position: right center; }

.product-card__number {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  display: grid;
  width: 2.6rem;
  height: 2.6rem;
  place-items: center;
  color: var(--cream);
  background: var(--ink);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 0.95rem;
}

.save-button {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  place-items: center;
  cursor: pointer;
  background: rgba(255, 250, 240, 0.9);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 7px 22px rgba(23, 35, 29, 0.17);
  font-size: 1.35rem;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.save-button:hover { transform: scale(1.06); }
.save-button[aria-pressed="true"] { color: var(--cream); background: var(--paprika); }

.product-card__body {
  position: relative;
  padding: 1.5rem 0 2rem;
}

.product-card--wide .product-card__body {
  display: flex;
  padding: clamp(2rem, 5vw, 4rem);
  flex-direction: column;
  justify-content: center;
  background: var(--cream);
}

.product-card__kicker {
  margin: 0 0 1.25rem;
  color: var(--paprika);
  font-size: 0.61rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.product-card h3 {
  max-width: 580px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.product-card__cn {
  margin: 0.55rem 0 1.1rem;
  color: var(--paprika);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.product-card__body > p:not([class]) {
  max-width: 550px;
  margin: 0;
  color: rgba(23, 35, 29, 0.7);
}

.product-card__tag {
  display: inline-flex;
  width: max-content;
  margin-top: 1.5rem;
  padding: 0.4rem 0.65rem;
  color: var(--forest);
  background: rgba(109, 121, 85, 0.13);
  border-radius: 99px;
  font-size: 0.66rem;
  font-weight: 700;
}

.story {
  display: grid;
  width: 100%;
  max-width: none;
  padding-right: max(4vw, calc((100vw - var(--max)) / 2));
  padding-left: 0;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: clamp(3rem, 8vw, 8rem);
  color: var(--cream);
  background: var(--forest);
}

.story__visual {
  position: relative;
  overflow: hidden;
  min-height: 760px;
  align-self: stretch;
}

.story__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story__stamp {
  position: absolute;
  right: 2rem;
  bottom: 2rem;
  display: grid;
  width: 116px;
  height: 116px;
  place-items: center;
  color: var(--ink);
  background: var(--saffron);
  border-radius: 50%;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  transform: rotate(-8deg);
}

.story__stamp strong { font-size: 1.4rem; line-height: 0; }

.story__copy {
  max-width: 580px;
  padding-block: 2rem;
}

.story__copy .eyebrow { color: var(--saffron); }

.story__lead {
  margin: 2.3rem 0 1rem;
  font-family: var(--serif);
  font-size: 1.45rem;
}

.story__copy > p:not(.eyebrow, .story__lead) {
  color: rgba(255, 250, 240, 0.72);
}

.story__values {
  display: grid;
  margin-top: 2.5rem;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(255, 250, 240, 0.25);
}

.story__values li {
  display: flex;
  padding: 0.85rem 0;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 250, 240, 0.25);
  font-size: 0.78rem;
}

.story__values b { color: var(--saffron); }

.guide__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
}

.guide__header .eyebrow { margin-top: 0.7rem; }
.guide__header h2 { text-align: right; }

.guide__steps {
  display: grid;
  margin: 5rem 0 0;
  padding: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  border-top: 1px solid var(--ink);
}

.guide__steps li {
  position: relative;
  min-height: 300px;
  padding: 1.2rem 1.5rem 1.5rem;
  border-right: 1px solid var(--line);
}

.guide__steps li:first-child { padding-left: 0; }
.guide__steps li:last-child { border-right: 0; }

.guide__number {
  color: var(--paprika);
  font-family: var(--serif);
  font-size: 1.2rem;
}

.guide__steps li > div {
  position: absolute;
  right: 1.5rem;
  bottom: 1.8rem;
  left: 1.5rem;
}

.guide__steps li:first-child > div { left: 0; }

.guide__steps h3 {
  margin: 0 0 0.7rem;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 500;
}

.guide__steps h3 small {
  display: block;
  margin-top: 0.25rem;
  color: var(--paprika);
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.guide__steps p {
  margin: 0;
  color: rgba(23, 35, 29, 0.66);
  font-size: 0.83rem;
}

.guide__note {
  display: flex;
  max-width: 650px;
  margin: 3rem 0 0 auto;
  padding: 1rem 0;
  align-items: flex-start;
  gap: 1rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.guide__note span { color: var(--paprika); }
.guide__note p { margin: 0; font-size: 0.78rem; }

.closing {
  width: 100%;
  max-width: none;
  padding: clamp(6rem, 11vw, 11rem) 4vw;
  color: var(--cream);
  background:
    linear-gradient(90deg, rgba(82, 54, 67, 0.98), rgba(82, 54, 67, 0.84)),
    url("./assets/jewelry-collection.jpg") center / cover;
  text-align: center;
}

.closing__inner {
  max-width: 850px;
  margin: 0 auto;
}

.closing .eyebrow { color: var(--saffron); }

.closing p:not(.eyebrow) {
  max-width: 570px;
  margin: 2rem auto;
  color: rgba(255, 250, 240, 0.75);
}

.closing .button [data-favorite-count] {
  display: inline-grid;
  min-width: 1.3rem;
  min-height: 1.3rem;
  margin-left: 0.55rem;
  place-items: center;
  color: var(--cream);
  background: var(--paprika);
  border-radius: 50%;
  font-size: 0.65rem;
}

html[data-locale="zh"] .hero h1,
html[data-locale="zh"] .section-heading h2,
html[data-locale="zh"] .story h2,
html[data-locale="zh"] .guide h2,
html[data-locale="zh"] .closing h2,
html[data-locale="zh"] .transparency h2,
html[data-locale="zh"] .product-card h3,
html[data-locale="zh"] .story__lead,
html[data-locale="zh"] .guide__steps h3,
html[data-locale="zh"] .favorites-dialog__top h2,
html[data-locale="zh"] .favorites-list span {
  font-family: var(--zh-display);
  font-style: normal;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

html[data-locale="zh"] h1 em,
html[data-locale="zh"] h2 em {
  font-style: normal;
}

html[data-locale="zh"] .eyebrow,
html[data-locale="zh"] .product-card__kicker {
  letter-spacing: 0.1em;
}

.transparency {
  display: grid;
  padding-block: 4rem;
  grid-template-columns: 0.4fr 1fr;
  gap: 3rem;
  border-bottom: 1px solid var(--line);
}

.transparency h2 {
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}

.transparency > div p {
  max-width: 700px;
  margin: 0;
  color: rgba(23, 35, 29, 0.67);
}

.site-footer {
  display: grid;
  width: min(var(--max), calc(100% - 8vw));
  min-height: 240px;
  margin: 0 auto;
  padding: 3rem 0;
  align-items: end;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.site-footer > p {
  margin: 0;
  font-size: 0.76rem;
}

.site-footer > p:nth-child(2) { text-align: center; }
.site-footer__meta { text-align: right; }

.favorite-fab {
  position: fixed;
  right: 1.3rem;
  bottom: 1.3rem;
  z-index: 12;
  display: none;
  min-height: 48px;
  padding: 0.6rem 0.75rem;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  color: var(--cream);
  background: var(--ink);
  border: 0;
  border-radius: 99px;
  box-shadow: 0 10px 30px rgba(23, 35, 29, 0.25);
  font-size: 0.7rem;
  font-weight: 700;
}

.favorite-fab b {
  display: grid;
  width: 1.4rem;
  height: 1.4rem;
  place-items: center;
  background: var(--paprika);
  border-radius: 50%;
  font-size: 0.65rem;
}

.favorites-dialog {
  position: fixed;
  inset: 0;
  z-index: 30;
  width: min(590px, calc(100% - 2rem));
  max-height: min(760px, calc(100vh - 2rem));
  padding: 0;
  margin: auto;
  overflow: hidden;
  color: var(--ink);
  background: var(--paper);
  border: 0;
  box-shadow: var(--shadow);
}

.favorites-dialog::backdrop {
  background: rgba(23, 35, 29, 0.65);
  backdrop-filter: blur(5px);
}

.favorites-dialog__top {
  display: flex;
  padding: 1.6rem;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.favorites-dialog__top .eyebrow { margin-bottom: 0.5rem; color: var(--paprika); }

.favorites-dialog__top h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 2.6rem;
  font-weight: 500;
}

.dialog-close {
  width: 2.6rem;
  height: 2.6rem;
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-size: 1.4rem;
}

.favorites-dialog__body {
  min-height: 180px;
  max-height: 390px;
  padding: 1.5rem;
  overflow-y: auto;
}

.favorites-dialog__empty {
  max-width: 370px;
  color: rgba(23, 35, 29, 0.72);
}

.favorites-list {
  margin: 0;
  padding: 0;
  counter-reset: saved;
  list-style: none;
}

.favorites-list li {
  display: flex;
  padding: 1rem 0;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  counter-increment: saved;
}

.favorites-list li::before {
  color: var(--paprika);
  content: "0" counter(saved);
  font-family: var(--serif);
}

.favorites-list span { flex: 1; font-family: var(--serif); font-size: 1.15rem; }

.favorites-list button {
  cursor: pointer;
  color: rgba(23, 35, 29, 0.72);
  background: transparent;
  border: 0;
  font-size: 0.68rem;
  text-decoration: underline;
}

.favorites-dialog__actions {
  display: flex;
  padding: 1.3rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
}

.text-button {
  padding: 0.6rem;
  cursor: pointer;
  background: transparent;
  border: 0;
  font-size: 0.75rem;
  text-decoration: underline;
}

.reveal {
  opacity: 1;
  transform: none;
}

.animations-enabled .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(.2,.7,.2,1);
}

.animations-enabled .reveal[data-delay="1"] { transition-delay: 100ms; }
.animations-enabled .reveal[data-delay="2"] { transition-delay: 200ms; }
.animations-enabled .reveal[data-delay="3"] { transition-delay: 300ms; }
.animations-enabled .reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  .hero {
    width: min(100% - 2.5rem, 760px);
    grid-template-columns: 1fr;
  }

  .hero__copy { max-width: 690px; }
  .hero__visual { max-width: 680px; margin: 0 auto; }
  .hero__image-wrap { aspect-ratio: 5 / 4; border-radius: 48% 48% 3px 3px / 45% 45% 3px 3px; }

  .section-heading { grid-template-columns: 1fr; gap: 2rem; }
  .product-card--wide { grid-template-columns: 1fr; }
  .product-card--wide .product-card__image { min-height: 450px; }

  .story {
    padding: 0;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .story__visual { min-height: 560px; }
  .story__copy { max-width: 760px; padding: 6rem 2.5rem; }

  .guide__steps { grid-template-columns: repeat(2, 1fr); }
  .guide__steps li:nth-child(2) { border-right: 0; }
  .guide__steps li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }

  .transparency { grid-template-columns: 1fr; gap: 1rem; }
}

@media (max-width: 720px) {
  .market-ribbon__track { padding-block: 0.42rem; }

  .site-header { min-height: 70px; padding-inline: 1.1rem; }
  .brand__mark { width: 38px; height: 38px; }

  .nav-toggle {
    position: relative;
    z-index: 2;
    display: grid;
    width: 44px;
    height: 44px;
    padding: 0;
    place-content: center;
    gap: 6px;
    cursor: pointer;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 50%;
  }

  .nav-toggle > span:not(.sr-only) {
    width: 18px;
    height: 1px;
    background: var(--ink);
    transition: transform 180ms ease;
  }

  .nav-toggle[aria-expanded="true"] > span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] > span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    display: flex;
    width: min(330px, 88vw);
    height: 100vh;
    height: 100dvh;
    padding: clamp(5.5rem, 18vh, 7rem) 2rem 2rem;
    align-items: flex-start;
    flex-direction: column;
    overflow-y: auto;
    background: var(--paper);
    box-shadow: -20px 0 50px rgba(23, 35, 29, 0.16);
    transform: translateX(110%);
    transition: transform 250ms ease;
  }

  .site-nav.is-open { transform: translateX(0); }
  .site-nav a { font-family: var(--serif); font-size: 1.8rem; font-weight: 500; }
  html[data-locale="zh"] .site-nav a { font-family: var(--zh-display); }

  .language-switch {
    margin-top: 0.25rem;
  }

  .hero {
    width: calc(100% - 2rem);
    min-height: auto;
    padding: 4.5rem 0 5rem;
    gap: 3rem;
  }

  .hero h1 { font-size: clamp(3.45rem, 16vw, 5.8rem); }
  .hero__actions { align-items: flex-start; flex-direction: column; }
  .hero__visual { padding-right: 1rem; padding-bottom: 2rem; }
  .hero__image-wrap { aspect-ratio: 4 / 5; }
  .hero__note { width: 82%; }

  .material-line { width: calc(100% - 2rem); gap: 0.45rem; overflow: hidden; }
  .material-line p { font-size: 0.5rem; }

  .section { width: calc(100% - 2rem); padding-block: 5.5rem; }
  .section-heading h2,
  .story h2,
  .guide h2,
  .closing h2 { font-size: clamp(3rem, 15vw, 4.8rem); }

  .filter-bar {
    margin-right: -1rem;
    padding-right: 1rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .filter-chip { flex: 0 0 auto; }

  .product-grid { grid-template-columns: 1fr; }
  .product-card,
  .product-card--wide { display: block; grid-column: span 1; }
  .product-card--wide .product-card__image { min-height: 0; aspect-ratio: 5 / 4; }
  .product-card--wide .product-card__body { padding: 1.5rem 0 2rem; background: transparent; }

  .story { width: 100%; }
  .story__visual { min-height: 460px; }
  .story__copy { padding: 5rem 1rem; }

  .guide__header { flex-direction: column; }
  .guide__header h2 { text-align: left; }
  .guide__steps { grid-template-columns: 1fr; }
  .guide__steps li,
  .guide__steps li:first-child {
    min-height: 230px;
    padding: 1.2rem 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .guide__steps li > div,
  .guide__steps li:first-child > div { right: 0; left: 0; }

  .closing { width: 100%; padding-inline: 1rem; }
  .transparency { width: calc(100% - 2rem); }

  .site-footer {
    width: calc(100% - 2rem);
    min-height: 320px;
    align-content: end;
    grid-template-columns: 1fr;
  }
  .site-footer > p:nth-child(2),
  .site-footer__meta { text-align: left; }

  .favorite-fab { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .market-ribbon, .site-header, .favorite-fab, .filter-bar, .save-button { display: none !important; }
  body { background: white; }
}
