/* ============================================================
   The Mountain Nook — site.css
   Visual system V1.0: 云母白 paper · 苍山青 · 墨 · 青瓷 · 苔 · 黄铜 (one corner)
   Content upper-left, lower-right left empty. One focal point per view.
   ============================================================ */
:root {
  --paper: #ECEBE4; --paper-2: #E2E1D8; --paper-3: #F4F3EE;
  --ink: #181D1C; --ink-2: #3B4342; --ink-3: #5E6765;
  --cang: #23413F; --cang-2: #3A5E5A; --cang-3: #8FA8A2;
  --celadon: #A9BBB2; --moss: #5F7A5C; --brass: #A98A55; --brass-text: #86693B;
  --cinnabar: #B23A2C; --line: #C9CBC3; --line-2: #DAD9D0;
  --f-disp: "Cormorant Garamond", "Cormorant", "TeX Gyre Pagella", Georgia, "Times New Roman", serif;
  --f-text: "Source Sans 3", "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;
  --f-cn: "Noto Serif SC", "Noto Serif CJK SC", "Songti SC", "STSong", "SimSun", serif;
  --maxw: 1240px; --pad: clamp(20px, 5vw, 72px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f-text); font-weight: 300; font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-weight: 400; margin: 0; }
p { margin: 0 0 1em; }
em { font-style: italic; }
.cn, .hanzi, .zh, .book-cn, .way-cn, .corner-card-cn, .brand-cn { font-family: var(--f-cn); }
.zh { color: var(--ink-3); font-size: .92em; }

/* ---------- artwork: <picture> in a figure, with a transparent shield over it ---------- */
.art { position: relative; margin: 0; overflow: hidden; background: var(--paper-2);
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.art picture, .art img { display: block; width: 100%; height: 100%; }
.art img { object-fit: cover; object-position: var(--focus, 50% 50%); pointer-events: none; }
.art-shield { position: absolute; inset: 0; z-index: 2; }     /* takes the right-click and the drag */
.art-hero { aspect-ratio: 2 / 3; background: var(--cang); }
.art-card { aspect-ratio: 4 / 5; --focus: 50% 84%; }
.art-card img { transform: scale(1.16); transform-origin: 50% 84%; }  /* bring the product forward; sources are 2000 px wide */
.art-card::after { content: ""; position: absolute; left: 0; bottom: 0; z-index: 3; width: 22px; height: 22px; border-left: 1.5px solid var(--brass); border-bottom: 1.5px solid var(--brass); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px var(--pad); border-bottom: 1px solid var(--line-2);
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--cang); flex: none; white-space: nowrap; cursor: pointer; }
.brand-mark { width: 30px; height: 30px; color: var(--cang); flex: none; transition: color .25s ease, transform .25s ease; }
.brand-cn { font-size: 19px; letter-spacing: .22em; color: var(--ink); white-space: nowrap; }
.brand-en { font-family: var(--f-text); font-weight: 400; font-size: 11px; letter-spacing: .38em; text-transform: uppercase; color: var(--ink-3); margin-left: 4px; white-space: nowrap; }
.brand:hover .brand-mark, .brand:focus-visible .brand-mark { color: var(--brass); transform: translateY(-1px); }
.menu { display: flex; gap: clamp(14px, 2.4vw, 32px); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); font-weight: 400; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.menu::-webkit-scrollbar { display: none; }
.menu a { padding: 6px 0; border-bottom: 1px solid transparent; white-space: nowrap; }
.menu a.is-current { color: var(--cang); border-bottom-color: var(--brass); }
.menu a:hover { color: var(--cang); border-bottom-color: var(--brass); }

/* ---------- layout helpers ---------- */
main > section { padding: clamp(64px, 9vw, 128px) var(--pad); max-width: var(--maxw); margin: 0 auto; scroll-margin-top: 72px; }
.collection { scroll-margin-top: 96px; }
.section-head { display: grid; grid-template-columns: 56px 1fr; gap: 12px 24px; align-items: baseline; margin-bottom: clamp(32px, 5vw, 64px); }
.section-head .num { font-family: var(--f-cn); font-size: 14px; letter-spacing: .3em; color: var(--brass-text); writing-mode: vertical-rl; line-height: 1; padding-top: .3em; }
.section-head h2 { font-family: var(--f-disp); font-size: clamp(32px, 4.2vw, 52px); line-height: 1.1; letter-spacing: -.005em; }
.section-head h2 .cn { font-size: .55em; color: var(--ink-3); letter-spacing: .2em; margin-left: .4em; vertical-align: .18em; }
.section-lede { grid-column: 2; max-width: 620px; color: var(--ink-2); font-size: 18px; margin: 8px 0 0; }
.eyebrow { font-size: 12px; letter-spacing: .32em; text-transform: uppercase; color: var(--brass-text); font-weight: 400; margin-bottom: 22px; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 72px); align-items: center; min-height: min(88vh, 900px); }
.hero-text { padding-top: 5vh; }
.display { font-family: var(--f-disp); font-style: italic; font-weight: 400; font-size: clamp(44px, 6.4vw, 86px); line-height: 1.02; letter-spacing: -.01em; color: var(--ink); margin-bottom: 26px; }
.lede { max-width: 480px; font-size: 19px; color: var(--ink-2); }
.hanzi { color: var(--cang-3); letter-spacing: .5em; font-size: 16px; margin: 18px 0 30px; }
.link-line { display: inline-block; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--cang); border-bottom: 1px solid var(--brass); padding-bottom: 6px; font-weight: 400; }
.hero-art { justify-self: end; width: min(100%, 560px); }

/* ---------- idea ---------- */
.idea-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); padding-left: 80px; }
.idea-grid p { font-size: 18px; color: var(--ink-2); max-width: 520px; }
.rule-quote { font-family: var(--f-cn); font-size: 22px; letter-spacing: .12em; color: var(--cang); }
.stakes { list-style: none; padding: 0; margin: 24px 0 0; border-top: 1px solid var(--line); }
.stakes li { padding: 14px 0; border-bottom: 1px solid var(--line-2); color: var(--ink-2); }
.stakes b { font-weight: 600; color: var(--ink); }

/* ---------- collections ---------- */
.collections { background: var(--paper-3); max-width: none !important; }
.collections > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.collection { margin-top: clamp(40px, 6vw, 80px); }
.collection-head { display: grid; grid-template-columns: 56px 1fr; gap: 24px; align-items: baseline; margin-bottom: 28px; }
.collection-head h3 { grid-column: 2; font-family: var(--f-disp); font-size: clamp(26px, 3vw, 36px); }
.collection-head h3 .cn { font-size: .7em; color: var(--cang); letter-spacing: .2em; margin-right: .5em; }
.collection-head p { grid-column: 2; max-width: 640px; color: var(--ink-2); font-size: 17px; }
.cards { display: grid; gap: clamp(20px, 3vw, 40px); padding-left: 80px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.cards-wide { max-width: 860px; }
.card h4 { font-family: var(--f-disp); font-size: 24px; margin: 16px 0 6px; }
.card h4 .cn { font-size: .78em; color: var(--cang); letter-spacing: .16em; margin-right: .45em; }
.card .notes { color: var(--ink-2); font-size: 15.5px; margin-bottom: 6px; }
.card .source { color: var(--ink-3); font-size: 14px; font-style: italic; font-family: var(--f-disp); font-size: 16px; }

/* ---------- xiangsheng: recipes without pictures ---------- */
.recipes { margin: 0; padding-left: 80px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); max-width: 980px; }
.recipe { position: relative; border-top: 1px solid var(--line); padding: 22px 0 8px; }
.recipe::before { content: ""; position: absolute; left: 0; top: -1px; width: 22px; height: 22px; border-left: 1.5px solid var(--brass); border-top: 1.5px solid var(--brass); }
.recipe dt { font-family: var(--f-disp); font-size: 26px; margin-bottom: 8px; }
.recipe dt .cn { font-size: .74em; color: var(--cang); letter-spacing: .16em; margin-right: .45em; }
.recipe dd { margin: 0 0 8px; color: var(--ink-2); font-size: 15.5px; max-width: 46ch; }
.recipe .materials-line { color: var(--ink); font-weight: 400; }
.recipe .recipe-source { font-family: var(--f-disp); font-style: italic; font-size: 16px; color: var(--ink-3); }

/* ---------- the record ---------- */
.record { background: var(--cang); color: var(--paper); max-width: none !important; }
.record > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.record .section-head h2, .record .num { color: var(--paper); }
.record .section-head h2 .cn { color: var(--cang-3); }
.record .section-lede { color: var(--cang-3); }
.record-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); padding-left: 80px; }
.book { border-top: 1px solid rgba(236,235,228,.25); padding-top: 22px; }
.book-cn { font-size: 30px; letter-spacing: .25em; color: var(--paper); margin-bottom: 8px; }
.book h3 { font-family: var(--f-disp); font-size: 22px; line-height: 1.25; margin-bottom: 6px; }
.book-meta { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--cang-3); font-weight: 400; margin-bottom: 14px; }
.book p { color: #D9DDD8; font-size: 16px; }
.book blockquote { margin: 0 0 14px; padding: 0; }
.book blockquote p:first-child { font-family: var(--f-disp); font-size: 19px; line-height: 1.45; color: var(--paper); }
.book .zh, .record-note .zh { color: var(--cang-3); }
.book .rule { font-size: 15px; }
.record-note { padding-left: 80px; margin-top: 40px; color: #D9DDD8; font-size: 15px; }

/* ---------- ten ways ---------- */
.ways-grid { list-style: none; padding: 0 0 0 80px; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px 24px; counter-reset: way; }
.ways-grid li { border-top: 1px solid var(--line); padding-top: 16px; position: relative; }
.ways-grid li::before { counter-increment: way; content: counter(way, decimal-leading-zero); font-family: var(--f-disp); font-size: 13px; letter-spacing: .2em; color: var(--brass-text); display: block; margin-bottom: 8px; }
.way-cn { font-size: 34px; color: var(--cang); display: block; line-height: 1; margin-bottom: 10px; }
.ways-grid h4 { font-family: var(--f-disp); font-size: 21px; margin-bottom: 6px; }
.ways-grid p { font-size: 14.5px; color: var(--ink-2); }

/* ---------- the making: sixteen frames, one at a time, dissolving into the next ---------- */
.making { background: var(--paper-3); max-width: none !important; }
.making > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.making-grid { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); padding-left: 80px; align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; position: sticky; top: 92px; }
.steps .phase { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--brass-text); font-weight: 400; padding: 14px 0 6px; border-top: 1px solid var(--line); }
.steps .phase:first-child { border-top: 0; padding-top: 0; }
.step { display: grid; grid-template-columns: 28px 22px 1fr; align-items: baseline; gap: 8px; width: 100%; text-align: left; background: none; border: 0; padding: 5px 0; cursor: pointer; color: var(--ink-3); font: inherit; font-size: 14px; }
.step .step-n { font-family: var(--f-disp); font-size: 13px; letter-spacing: .1em; }
.step .step-cn { font-family: var(--f-cn); font-size: 13px; color: var(--cang-3); }
.step .step-t { border-bottom: 1px solid transparent; }
.step:hover { color: var(--ink); }
.step.is-active { color: var(--ink); }
.step.is-active .step-cn { color: var(--cang); }
.step.is-active .step-t { border-bottom-color: var(--brass); }
.step:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
.stage-wrap { min-width: 0; }
.stage { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink); }
.stage .frame { position: absolute; inset: 0; opacity: 0; transition: opacity 1.5s ease; will-change: opacity; }
.stage .frame.is-active { opacity: 1; z-index: 1; }
.stage .frame .art { height: 100%; background: transparent; }
.stage .frame img { transform: scale(1.045); transition: transform 7s ease-out; }
.stage .frame.is-active img { transform: scale(1); }
.stage-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(236,235,228,.18); z-index: 4; }
.stage-progress i { display: block; height: 100%; width: 0; background: var(--brass); }
.stage-progress.is-running i { animation: progress var(--interval, 5s) linear forwards; }
@keyframes progress { from { width: 0 } to { width: 100% } }
.captions { position: relative; min-height: 118px; margin-top: 18px; }
.cap { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; display: grid; grid-template-columns: 70px 34px 1fr; column-gap: 14px; align-items: baseline; pointer-events: none; }
.cap.is-active { opacity: 1; pointer-events: auto; }
.cap .cap-n { font-family: var(--f-disp); font-size: 13px; letter-spacing: .12em; color: var(--brass-text); }
.cap .cap-cn { font-family: var(--f-cn); font-size: 22px; color: var(--cang); line-height: 1; }
.cap h4 { font-family: var(--f-disp); font-size: 26px; grid-column: 3; }
.cap p { grid-column: 3; color: var(--ink-2); font-size: 16px; max-width: 58ch; margin: 4px 0 0; }
.stage-ctl { display: flex; gap: 10px; margin-top: 8px; }
.ctl { font: inherit; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); background: none; border: 1px solid var(--line); padding: 8px 14px; cursor: pointer; }
.ctl:hover { color: var(--cang); border-color: var(--brass); }
.ctl:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
.making-notes { padding-left: 80px; margin-top: clamp(32px, 4vw, 56px); max-width: 720px; }
.making-notes p { font-size: 17px; color: var(--ink-2); }
.craft-place { font-family: var(--f-disp); font-style: italic; font-size: 22px; color: var(--cang); margin-top: 10px; }
@media (prefers-reduced-motion: reduce) {
  .stage .frame { transition: none; }
  .stage .frame img { transform: none; transition: none; }
  .cap { transition: none; }
  .stage-progress.is-running i { animation: none; width: 100%; }
}

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); padding-left: 80px; }
.contact-grid p { font-size: 18px; color: var(--ink-2); max-width: 520px; }
.contact-line { font-family: var(--f-disp); font-size: 24px; }
.contact-line a { border-bottom: 1px solid var(--brass); color: var(--cang); }
.corner-card { position: relative; background: var(--paper-3); padding: 32px 32px 28px; border: 1px solid var(--line-2); }
.corner-card::after { content: ""; position: absolute; left: -1px; bottom: -1px; width: 36px; height: 36px; border-left: 2px solid var(--brass); border-bottom: 2px solid var(--brass); }
.corner-card-cn { font-size: 26px; letter-spacing: .3em; color: var(--cang); margin-bottom: 12px; }
.corner-card .small { font-size: 14px; color: var(--ink-3); margin-bottom: 0; }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: var(--paper); padding: 56px var(--pad) 40px; }
.foot-brand { display: flex; align-items: center; gap: 12px; letter-spacing: .18em; font-size: 14px; color: var(--paper); margin-bottom: 22px; }
.foot-brand .brand-mark { color: var(--paper); width: 26px; height: 26px; }
.foot-line { font-family: var(--f-disp); font-style: italic; font-size: 24px; margin-bottom: 26px; }
.foot-small { font-size: 12.5px; color: var(--cang-3); max-width: 560px; margin: 0; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .ways-grid { grid-template-columns: repeat(3, 1fr); }
  .record-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1000px) {
  .brand-en { display: none; }
  .menu { font-size: 12px; letter-spacing: .1em; gap: 16px; }
}
@media (max-width: 820px) {
  body { font-size: 16px; }
  .nav { flex-wrap: wrap; gap: 10px 20px; padding: 12px var(--pad); }
  .brand-en { display: none; }
  .menu { width: 100%; gap: 18px; font-size: 12px; -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
  main > section { scroll-margin-top: 100px; }
  .hero { grid-template-columns: 1fr; min-height: 0; gap: 32px; }
  .hero-text { padding-top: 24px; }
  .hero-art { width: 100%; justify-self: stretch; }
  .art-hero { aspect-ratio: 3 / 4; }
  .section-head { grid-template-columns: 1fr; gap: 6px; }
  .section-head .num { writing-mode: horizontal-tb; padding-top: 0; }
  .section-lede { grid-column: 1; }
  .idea-grid, .cards, .record-grid, .ways-grid, .craft-grid, .contact-grid, .record-note, .recipes, .making-grid, .making-notes { padding-left: 0; }
  .recipes { grid-template-columns: 1fr; }
  .making-grid { grid-template-columns: 1fr; }
  .steps { position: static; display: flex; overflow-x: auto; gap: 4px; padding-bottom: 6px; scrollbar-width: none; }
  .steps::-webkit-scrollbar { display: none; }
  .steps .phase { display: none; }
  .step { grid-template-columns: auto auto; white-space: nowrap; padding: 6px 8px; border: 1px solid var(--line-2); }
  .step .step-t { display: none; }
  .step.is-active { border-color: var(--brass); }
  .cap { grid-template-columns: 60px 30px 1fr; }
  .captions { min-height: 150px; }
  .idea-grid, .contact-grid { grid-template-columns: 1fr; }
  .collection-head { grid-template-columns: 1fr; gap: 8px; }
  .collection-head h3, .collection-head p { grid-column: 1; }
  .cards-3, .cards-2 { grid-template-columns: 1fr 1fr; }
  .ways-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .cards-3, .cards-2 { grid-template-columns: 1fr; }
  .materials { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
