/* He thong thiet ke: xem design-system/MASTER.md */
:root {
  --son: #7a1420; --son-deep: #560c16; --paper: #f4ead8; --paper-2: #eadcc2; --ink: #2a1210; --ink-soft: #5e4238;
  --cream: #f0e0be; --gold: #8a5206; --matcha: #55701f; --line: rgba(122,20,32,.26);
  --display: "Cormorant", Georgia, serif; --sans: "Montserrat", system-ui, sans-serif;
  --ease: cubic-bezier(.2,.7,.2,1); --gut: clamp(16px, 6vw, 96px);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .2 0 0 0 0 .1 0 0 0 .13 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--paper) var(--grain); color: var(--ink); font: 400 16px/1.75 var(--sans); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(2.5rem, 5.4vw, 4.8rem); line-height: 1.04; letter-spacing: -.012em; color: var(--son); }
:focus-visible { outline: 2px solid var(--son); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip { position: fixed; left: 12px; top: -60px; z-index: 50; background: var(--son); color: #fff; padding: 8px 14px; }
.skip:focus { top: 12px; }
.eyebrow { margin: 0 0 18px; font-size: .76rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }

.chapter { display: flex; align-items: center; gap: 14px; margin: 0 0 26px; font-size: .76rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--son); }
.chapter span { font: italic 500 1.5rem/1 var(--display); letter-spacing: 0; display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid currentColor; border-radius: 50%; }
.chapter-light { color: var(--cream); }

.nav { position: fixed; inset: 0 0 auto; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 12px var(--gut); transition: background .3s, box-shadow .3s; }
.nav .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--son); font: 600 1.2rem var(--display); }
.nav:not(.solid) .brand { visibility: hidden; }
.nav.solid { background: rgba(244,234,216,.95); box-shadow: 0 1px 0 var(--line); }
#menu { display: flex; gap: clamp(14px, 2.2vw, 32px); }
#menu a { color: var(--ink); text-decoration: none; font-size: .84rem; font-weight: 500; padding: 10px 0; background: linear-gradient(var(--son), var(--son)) 0 85%/0 1px no-repeat; transition: background-size .3s var(--ease); }
#menu a:hover { background-size: 100% 1px; }
.burger { display: none; width: 44px; height: 44px; border: 0; background: none; position: relative; cursor: pointer; color: var(--son); }
.burger i { position: absolute; left: 10px; right: 10px; top: 18px; height: 1.5px; background: currentColor; transition: transform .25s; }
.burger i + i { top: 26px; }
.burger[aria-expanded="true"] i { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] i + i { transform: translateY(-4px) rotate(-45deg); }

.btn { display: inline-flex; gap: 12px; align-items: center; min-height: 52px; padding: 0 30px; background: var(--son); color: #fff5e2; text-decoration: none; font-size: .88rem; font-weight: 500; letter-spacing: .03em; transition: background .25s, gap .25s var(--ease); }
.btn:hover { background: var(--son-deep); gap: 18px; }

/* HERO: tam giay do cat chong len giay kem */
.hero { display: grid; grid-template-columns: minmax(340px, 42%) 1fr; grid-template-rows: 1fr auto; min-height: 100svh; position: relative; }
.hero-red { grid-row: 1 / 3; background: var(--son) url(../shared/img/red-paper.webp) center/360px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 76px 7% 48px; box-shadow: 8px 0 26px rgba(50,10,10,.25); z-index: 2; position: relative; }
.hero-emblem { width: min(74%, 58vh); animation: turn 120s linear infinite; }
.hero-word { width: min(66%, 46vh); }
@keyframes turn { to { rotate: 360deg; } }
.hero-paper { padding: clamp(92px, 13vh, 150px) var(--gut) 34px clamp(30px, 6vw, 96px); align-self: center; }
h1 { font-size: clamp(3.4rem, 8.4vw, 8rem); line-height: .94; color: var(--son); font-weight: 400; letter-spacing: -.02em; }
h1 em { font-weight: 400; color: var(--ink); padding-left: .55em; }
.lead { max-width: 46ch; margin: 24px 0 30px; color: var(--ink-soft); font-size: 1.03rem; }
.hero-photo { margin: 0 var(--gut) 0 clamp(30px, 6vw, 96px); height: clamp(150px, 27vh, 300px); overflow: hidden; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 58%; }

.cut { height: 34px; background: radial-gradient(circle at 24px -6px, transparent 24px, var(--son) 25px) 0 0/48px 34px repeat-x; opacity: .95; }

.story { padding: clamp(80px, 11vw, 160px) var(--gut); }
.story-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 36px 24px; }
.story-grid h2 { grid-column: 1 / 8; }
.story-text { grid-column: 7 / 12; grid-row: 2; align-self: start; color: var(--ink-soft); }
.story-text p { margin: 0 0 18px; }
.drop::first-letter { font: 500 4.3rem/.8 var(--display); float: left; padding: 7px 10px 0 0; color: var(--son); }
.story-pot { grid-column: 1 / 6; grid-row: 2 / 4; margin-top: 8px; aspect-ratio: 4/4.4; overflow: hidden; box-shadow: 14px 14px 0 var(--paper-2); }
.story-pot img { width: 100%; height: 100%; object-fit: cover; }

.essence { position: relative; overflow: hidden; background: var(--son) url(../shared/img/red-paper.webp) center/360px; color: var(--cream); padding: clamp(80px, 10vw, 150px) var(--gut); }
.essence h2 { color: #fff0d3; max-width: 15ch; }
.essence-inner { position: relative; z-index: 1; }
.essence-mark { position: absolute; right: -11%; top: -14%; width: min(66vw, 780px); opacity: .12; pointer-events: none; }
.process { list-style: none; margin: 60px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.process li { padding: 24px 26px 8px 0; border-top: 1px solid rgba(240,224,190,.42); }
.process span { font: italic 400 1.9rem/1 var(--display); color: var(--cream); font-variant-numeric: lining-nums; }
.process h3 { font-size: 2rem; line-height: 1.15; margin: 6px 0 10px; color: #fff0d3; }
.process p { margin: 0; font-size: .92rem; line-height: 1.65; }

.catalog { padding: clamp(80px, 11vw, 160px) var(--gut); }
.catalog-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 44px; }
.catalog-note { margin: 0; font-size: .84rem; color: var(--ink-soft); }
.catalog-body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(26px, 5vw, 76px); align-items: start; }
.preview { position: sticky; top: 92px; aspect-ratio: 4/4.6; overflow: hidden; background: var(--paper-2); box-shadow: 14px 14px 0 var(--son); }
.preview img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s; }
.preview img.swap { opacity: 0; }
.ledger { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.item { display: grid; grid-template-columns: 1fr auto; gap: 24px; padding: 28px 12px; border-top: 1px solid var(--line); transition: background .3s, padding .3s var(--ease); }
.item.active { background: rgba(122,20,32,.055); padding-left: 22px; }
.item-img { display: none; }
.item h3 { font-size: clamp(2rem, 3vw, 2.7rem); line-height: 1.1; color: var(--son); }
.item-grade { margin: 0 0 4px; color: var(--matcha); font-size: .76rem; font-weight: 600; letter-spacing: .08em; }
.item-grade b { color: var(--gold); }
.item-note { margin: 8px 0 0; max-width: 46ch; font-size: .92rem; line-height: 1.65; color: var(--ink-soft); }
.item-side { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.item-side strong { font: 500 1.65rem/1.2 var(--display); font-variant-numeric: lining-nums; }
.item-side span { font-size: .76rem; color: var(--ink-soft); max-width: 15ch; line-height: 1.4; }
.item-side a { margin-top: auto; padding: 12px 0 2px; color: var(--son); font-size: .84rem; font-weight: 600; text-underline-offset: 5px; min-height: 44px; display: flex; align-items: flex-end; }

.ritual { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 96px); align-items: center; padding: clamp(60px, 8vw, 120px) var(--gut); background: var(--paper-2) var(--grain); }
.ritual figure { aspect-ratio: 1; overflow: hidden; border-radius: 50%; }
.ritual figure img { width: 100%; height: 100%; object-fit: cover; }
.ritual h2 { font-size: clamp(2.3rem, 4.2vw, 3.8rem); }
.brew { list-style: none; margin: 30px 0 0; padding: 0; }
.brew li { display: grid; grid-template-columns: 74px 1fr; gap: 12px; padding: 15px 0; border-top: 1px solid var(--line); }
.brew b { font: italic 500 1.5rem/1.3 var(--display); color: var(--son); font-variant-numeric: lining-nums; }
.brew h3 { font-size: 1.5rem; line-height: 1.25; }
.brew p { margin: 2px 0 0; font-size: .92rem; line-height: 1.65; color: var(--ink-soft); }

.contact { display: grid; justify-items: center; text-align: center; gap: 20px; padding: clamp(70px, 9vw, 120px) var(--gut); background: var(--son) url(../shared/img/red-paper.webp) center/360px; color: var(--cream); }
.contact h2 { color: #fff0d3; }
.contact dl { width: min(760px, 100%); display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 30px; margin: 12px 0 0; }
.contact dl div { padding: 14px 0; border-top: 1px solid rgba(240,224,190,.36); }
.contact dt { font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.contact dd { margin: 2px 0 0; font: 500 1.3rem var(--display); }
.contact dd a { color: inherit; }
.contact em { font: italic 400 1.15rem var(--display); }

.foot { padding: 28px var(--gut); background: var(--son-deep); color: var(--cream); text-align: center; font-size: .82rem; }
.foot p { margin: 4px 0; }
.foot summary { cursor: pointer; padding: 8px; }
.foot ul { text-align: left; max-width: 760px; margin: 8px auto; }

.rv { opacity: 0; translate: 0 22px; transition: opacity .85s var(--ease) var(--d, 0ms), translate .85s var(--ease) var(--d, 0ms); }
.rv.in { opacity: 1; translate: 0 0; }

@media (max-width: 1000px) {
  .process { grid-template-columns: repeat(2, 1fr); }
  .story-grid h2 { grid-column: 1 / -1; }
  .story-pot { grid-column: 1 / 6; grid-row: 2; }
  .story-text { grid-column: 6 / -1; grid-row: 2; }
}
@media (max-width: 760px) {
  .burger { display: block; }
  .nav { padding: 6px 16px; }
  .nav:not(.solid) .burger { color: #fff0d3; }
  #menu { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; padding: 8px 16px 16px; background: var(--paper); box-shadow: 0 12px 20px rgba(50,10,10,.15); display: none; }
  #menu.open { display: flex; }
  #menu a { font-size: 1rem; padding: 11px 0; }
  .hero { grid-template-columns: 1fr; grid-template-rows: auto; min-height: 0; }
  .hero-red { grid-row: auto; padding: 66px 18% 30px; gap: 14px; box-shadow: 0 6px 18px rgba(50,10,10,.25); }
  .hero-emblem { width: 72%; }
  .hero-word { width: 72%; }
  .hero-paper { padding: 36px 16px 28px; }
  h1 { font-size: clamp(3.3rem, 17vw, 5rem); }
  .hero-photo { margin: 0 16px; height: 200px; }
  .story-pot, .story-text { grid-column: 1 / -1; grid-row: auto; }
  .process { grid-template-columns: 1fr; margin-top: 34px; }
  .catalog-body { display: block; }
  .preview { display: none; }
  .item { grid-template-columns: 1fr; padding: 22px 0; gap: 12px; }
  .item.active { padding-left: 0; background: none; }
  .item-img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
  .item-side { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: center; text-align: left; gap: 2px 12px; }
  .item-side span { max-width: none; order: 3; flex-basis: 100%; }
  .item-side a { margin: 0; padding: 0; align-items: center; }
  .ritual { grid-template-columns: 1fr; }
  .ritual figure { max-width: 320px; width: 100%; margin: auto; }
  .contact dl { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .rv { opacity: 1; translate: 0 0; }
}
