/* Magnetic Memory: quiet, editorial, museum-shop feel.
   Brand: green #23422F, cream #F5E7C7, gold #C9A24A · Lora / Poppins / Noto Sans SC */
:root {
  --paper: #F6EFDF;      /* warm cream page */
  --paper-2: #EFE5CF;    /* image wells */
  --green: #23422F;
  --green-deep: #1B3324;
  --cream: #F5E7C7;
  --gold: #C9A24A;
  --gold-text: #8E6F27;  /* gold that passes contrast on cream */
  --ink: #23302A;
  --muted: #6B7068;
  --rule: rgba(35, 66, 47, .16);
  --rule-light: rgba(245, 231, 199, .16);
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Poppins", system-ui, -apple-system, sans-serif;
  --zh: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --gutter: clamp(16px, 5vw, 64px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 300 16px/1.7 var(--sans); overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; line-height: 1.12; letter-spacing: -.01em; }
em { font-style: italic; }
::selection { background: var(--gold); color: var(--green-deep); }

/* Language */
html:not(.zh) body [lang="zh-Hans"] { display: none !important; }
html.zh body [lang="en"] { display: none !important; }
[lang="zh-Hans"] { font-family: var(--zh); }
html.zh h1, html.zh h2, html.zh h3 { font-family: var(--zh); font-weight: 500; letter-spacing: .02em; }
html.zh em { font-style: normal; }

.wrap { max-width: 1240px; margin: 0 auto; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 32px;
  padding: 14px var(--gutter);
  background: rgba(246, 239, 223, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--green); }
.brand img { width: 28px; height: auto; }
.brand span { font-family: var(--serif); font-size: 19px; }
.links { display: flex; gap: 28px; margin-left: auto; }
.links a, .lang {
  font: 400 13px/1 var(--sans); letter-spacing: .04em; text-decoration: none; color: var(--ink);
}
.links a { position: relative; padding: 6px 0; }
.links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--gold);
  transition: right .3s ease;
}
.links a:hover::after { right: 0; }
.lang {
  background: none; border: 0; border-left: 1px solid var(--rule); padding: 6px 0 6px 24px; cursor: pointer; color: var(--green);
}
.lang:hover { color: var(--gold-text); }

/* Buttons and links */
.button {
  display: inline-block; padding: 15px 30px; background: var(--green); color: var(--cream);
  font: 400 14px/1 var(--sans); letter-spacing: .06em; text-decoration: none;
  border: 1px solid var(--green); transition: background .25s, color .25s;
}
.button:hover { background: transparent; color: var(--green); }
.textlink {
  font-size: 14px; letter-spacing: .03em; text-decoration: none; color: var(--green);
  border-bottom: 1px solid var(--gold); padding-bottom: 3px;
}
.textlink:hover { color: var(--gold-text); }

/* Hero */
.hero {
  max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center;
  padding: clamp(40px, 7vw, 96px) var(--gutter) clamp(56px, 8vw, 112px);
}
.kicker { margin: 0 0 28px; font-size: 13px; letter-spacing: .08em; color: var(--gold-text); }
.hero h1 { font-size: clamp(44px, 6.6vw, 88px); color: var(--green); }
.hero h1 em { color: var(--gold-text); }
.lede { margin: 32px 0 0; max-width: 44ch; font-size: 17px; color: var(--muted); }
.hero-links { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; margin-top: 44px; }

.hero-media { position: relative; margin: 0; padding: 0 0 56px 56px; }
.hero-main { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.hero-inset {
  position: absolute; left: 0; bottom: 0; width: 38%; aspect-ratio: 4 / 5; object-fit: cover;
  border: 8px solid var(--paper);
}
.hero-media figcaption {
  position: absolute; right: 0; bottom: 18px; font-size: 12px; letter-spacing: .04em; color: var(--muted);
}

/* Statement band */
.statement { background: var(--green); color: var(--cream); padding: clamp(56px, 9vw, 120px) var(--gutter); }
.statement p {
  max-width: 980px; margin: 0 auto; text-align: center;
  font: italic 400 clamp(22px, 3vw, 36px)/1.45 var(--serif);
}
html.zh .statement p { font-style: normal; font-family: var(--zh); }

/* Sections */
.section { padding: clamp(72px, 10vw, 136px) var(--gutter); }
.section.dark { background: var(--green-deep); color: var(--cream); }
.section-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px;
  padding-bottom: 28px; margin-bottom: 48px; border-bottom: 1px solid var(--rule);
}
.dark .section-head { border-color: var(--rule-light); }
h2 { font-size: clamp(34px, 4.6vw, 56px); color: var(--green); }
.dark h2 { color: var(--cream); }
.intro { margin: 0; max-width: 46ch; color: var(--muted); }
.dark .intro { color: rgba(245, 231, 199, .72); }

/* Collection */
.filters { display: flex; flex-wrap: wrap; gap: 4px 26px; }
.filters button {
  background: none; border: 0; padding: 6px 0; cursor: pointer;
  font: 400 14px/1 var(--sans); letter-spacing: .03em; color: var(--muted);
  border-bottom: 1px solid transparent;
}
.filters button:hover { color: var(--green); }
.filters button.on { color: var(--green); border-bottom-color: var(--gold); }

.grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 56px 28px;
}
.grid li[hidden] { display: none; }
.grid a { display: block; text-decoration: none; position: relative; }
.grid img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--paper-2);
  transition: transform .6s cubic-bezier(.2, .7, .2, 1), filter .4s;
}
.grid a { overflow: hidden; }
.grid a:hover img { transform: scale(1.03); }
.grid h3 { margin-top: 18px; font-size: 19px; color: var(--green); }
.grid p { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.grid .shop {
  position: absolute; top: 12px; right: 12px; padding: 7px 11px;
  background: var(--paper); color: var(--green); font-size: 11px; letter-spacing: .06em;
  opacity: 0; transform: translateY(-4px); transition: opacity .3s, transform .3s;
}
.grid a:hover .shop, .grid a:focus-visible .shop { opacity: 1; transform: none; }
.note { margin: 56px 0 0; font-size: 13px; color: var(--muted); }

/* Stores */
.stores { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(40px, 7vw, 112px); }
.list-title {
  font: 400 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 8px;
}
html.zh .list-title { letter-spacing: .1em; }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { border-bottom: 1px solid var(--rule-light); }
.rows a, .rows li.soon {
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "name go" "area go";
  align-items: center; column-gap: 20px; padding: 18px 0; text-decoration: none;
}
.r-name { grid-area: name; font-family: var(--serif); font-size: 20px; }
.r-area { grid-area: area; font-size: 13px; color: rgba(245, 231, 199, .62); }
.r-go { grid-area: go; font-size: 12px; letter-spacing: .06em; color: var(--gold); white-space: nowrap; }
.rows a:hover .r-name { color: var(--gold); }
.rows.compact a { padding: 13px 0; grid-template-areas: "name go"; }
.rows.compact .r-name { font-size: 17px; }
.rows li.soon .r-name { color: rgba(245, 231, 199, .7); font-style: italic; }
.online {
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "label go" "name go";
  align-items: center; margin-top: 40px; padding: 22px 24px; text-decoration: none;
  border: 1px solid rgba(201, 162, 74, .55);
}
.online:hover { background: rgba(201, 162, 74, .08); }
.online-label { grid-area: label; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.online-name { grid-area: name; font-family: var(--serif); font-size: 22px; }
html.zh .online-name, html.zh .r-name { font-family: var(--zh); }

/* Gifting */
.gifting { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 112px); align-items: center; }
.gift-media { margin: 0; }
.gift-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.gift-text h2 { margin-bottom: 24px; }
.occasions { list-style: none; counter-reset: o; margin: 28px 0; padding: 0; border-top: 1px solid var(--rule); }
.occasions li {
  counter-increment: o; display: flex; gap: 20px; padding: 15px 0; border-bottom: 1px solid var(--rule);
  font-size: 16px;
}
.occasions li::before {
  content: counter(o, decimal-leading-zero); font: italic 400 15px/1.7 var(--serif); color: var(--gold-text); min-width: 24px;
}
.gift-text .button { margin-top: 36px; }

/* Footer */
.foot { background: var(--green); color: var(--cream); padding: clamp(56px, 8vw, 96px) var(--gutter) 28px; }
.foot-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; align-items: start; }
.foot-brand img { width: 56px; height: auto; }
.foot-brand p { margin: 14px 0 0; font: 400 22px/1.2 var(--serif); }
.foot-list { margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.foot-list dt { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.foot-list dd { margin: 6px 0 0; font-size: 15px; }
.foot-list a { text-decoration: none; border-bottom: 1px solid transparent; }
.foot-list a:hover { border-color: var(--gold); }
.legal {
  max-width: 1240px; margin: 64px auto 0; padding-top: 22px; border-top: 1px solid var(--rule-light);
  font-size: 12px; color: rgba(245, 231, 199, .55);
}

a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Tablet */
@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .foot-list { grid-template-columns: repeat(2, 1fr); }
}

/* Phone */
@media (max-width: 820px) {
  .links { display: none; }
  .lang { margin-left: auto; border: 0; padding-left: 0; }
  .hero { grid-template-columns: 1fr; padding-top: 28px; }
  .hero-media { order: -1; padding: 0 0 36px 36px; }
  .hero-main { aspect-ratio: 1 / 1; max-height: 48vh; }
  .hero-inset { width: 30%; border-width: 6px; }
  .hero-media figcaption { bottom: 10px; font-size: 11px; }
  .lede { font-size: 16px; margin-top: 24px; }
  .hero-links { margin-top: 32px; }
  .hero-links .button { width: 100%; text-align: center; }
  .section-head { margin-bottom: 32px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; width: 100%; scrollbar-width: none; gap: 22px; }
  .filters::-webkit-scrollbar { display: none; }
  .filters button { flex: none; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 36px 14px; }
  .grid h3 { margin-top: 12px; font-size: 16px; }
  .grid p { font-size: 12px; }
  .grid .shop { display: none; }
  .stores, .gifting { grid-template-columns: 1fr; }
  .r-name { font-size: 18px; }
  .gift-text .button { width: 100%; text-align: center; }
  .foot-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
