@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Instrument+Serif:ital@0;1&family=Noto+Serif+TC:wght@400;600;700&display=swap');

:root {
  color-scheme: light;
  --paper:#f7f3eb;
  --ink:#271c1b;
  --wine:#522739;
  --rose:#bb777d;
  --fog:#aebdbb;
  --cream:#e9dcc8;
  --rule:#c9b8ac;
  --muted:#665353;
  --display:'Instrument Serif',Georgia,serif;
  --cut:'Noto Serif TC','Songti TC',serif;
  --body:'DM Sans','PingFang TC','Microsoft JhengHei',system-ui,sans-serif;
}
* { box-sizing:border-box; }
body { margin:0; background:var(--paper); color:var(--ink); font:15px/1.65 var(--body); }
main { min-height:67vh; }
h1,h2,p,figure,ul { margin:0; }
button,input,select,textarea { font:inherit; color:inherit; }
button { cursor:pointer; }
button:disabled { cursor:not-allowed; }
a { color:inherit; text-decoration:none; }
img { display:block; width:100%; }
[hidden] { display:none!important; }
:focus-visible { outline:2px solid #90607c; outline-offset:4px; }
.skip { position:fixed; top:10px; left:10px; transform:translateY(-200%); z-index:5; padding:10px; background:var(--paper); }
.skip:focus { transform:none; }

.mast { border-bottom:1px solid var(--rule); background:var(--paper); position:relative; z-index:2; }
.mast-inner,.foot-inner { display:grid; grid-template-columns:1fr auto 1fr; align-items:center; max-width:1600px; min-height:77px; padding:0 clamp(24px,4vw,72px); margin:auto; gap:20px; }
.wordmark { justify-self:start; font:clamp(32px,3.35vw,55px)/.78 var(--display); letter-spacing:-.055em; white-space:nowrap; }
.wordmark i { color:var(--wine); }
.wordmark sup { font: .45em var(--body); color:var(--rose); margin-left:.23em; vertical-align:top; }
.mast nav,.foot-inner nav { display:flex; gap:30px; align-items:center; flex-wrap:wrap; }
.mast nav a { position:relative; padding:8px 0; font-size:13px; }
.mast nav a[aria-current]::after,.mast nav a:hover::after { content:""; position:absolute; inset:auto 0 4px; height:1px; background:var(--wine); }
.bag-link { justify-self:end; display:flex; align-items:center; gap:8px; font-size:13px; }
.bag-link b { display:grid; min-width:27px; height:27px; place-items:center; border:1px solid var(--rule); border-radius:50%; font-size:11px; }
.glyph { display:inline-block; font-family:system-ui,sans-serif; }

.cover { display:grid; grid-template-columns:minmax(290px,.89fr) minmax(360px,1.15fr); min-height:clamp(600px,49vw,750px); margin:0 auto; max-width:1600px; }
.cover-type { position:relative; background:var(--wine); color:#f7ecdd; padding:clamp(40px,6vw,94px) clamp(28px,5.7vw,96px) 65px; display:flex; flex-direction:column; align-items:flex-start; justify-content:center; overflow:hidden; }
.cover-type::after { content:""; pointer-events:none; border:1px solid #f7ecdd34; position:absolute; inset:14px; border-radius:44% 44% 0 0 / 11% 11% 0 0; }
.cover-label { font-size:11px; letter-spacing:.16em; margin-bottom:30px; color:#edd4c8; }
.cover h1 { font:clamp(84px,10.3vw,160px)/.79 var(--display); letter-spacing:-.046em; position:relative; z-index:1; animation:type-in .62s cubic-bezier(.15,.63,.32,1) both; }
.cover h1 em { font-weight:400; color:#f3c8bb; }
.cover-copy { font:600 clamp(18px,2vw,27px)/1.45 var(--cut); margin:26px 0; }
.cover-copy span { font:400 13px/1.7 var(--body); color:#f4ded2; }
.cover-bottom { display:flex; justify-content:space-between; align-items:center; position:absolute; left:clamp(28px,5.7vw,96px); right:clamp(28px,5.7vw,96px); bottom:26px; font-size:10px; letter-spacing:.18em; color:#efd4ce; }
.cover-bottom span+span { font-size:20px; }
.cover-frame { background:#eadbc8; padding:clamp(24px,4.5vw,68px) clamp(24px,4.5vw,68px) 29px; display:grid; grid-template-rows:1fr auto; overflow:hidden; }
.cover-image { display:block; position:relative; overflow:hidden; min-height:0; border-radius:47% 47% 3px 3px / 14% 14% 3px 3px; outline:1px solid #9d76689e; outline-offset:6px; }
.cover-image img { position:absolute; height:100%; object-fit:cover; object-position:43% 50%; animation:photo-in .85s cubic-bezier(.22,.68,.33,1) both; transition:scale .42s ease; }
.cover-image:hover img { scale:1.04; }
.cover-frame figcaption { display:flex; justify-content:space-between; align-items:center; gap:8px; padding-top:17px; font-size:10px; letter-spacing:.15em; color:#58403d; }

.pill-link { border:1px solid transparent; min-height:48px; display:inline-flex; align-items:center; justify-content:space-between; gap:18px; border-radius:50px; padding:10px 20px; text-align:left; font-weight:600; line-height:1.3; transition:background .18s ease,color .18s ease,transform .18s ease; font-size:14px; }
.pill-link:hover { transform:translateY(-2px); }
.pill-link:active { transform:translateY(0); }
.pill-link:disabled { opacity:.6; }
.pill-link.light { background:#f1e2cf; color:#3c222b; }
.pill-link.light:hover { background:#fff4e8; }
.pill-link.primary { background:var(--wine); color:#fff5e9; }
.pill-link.primary:hover { background:#703a4d; }
.line-link { display:inline-flex; align-items:center; gap:12px; border-bottom:1px solid currentColor; padding:3px 0; color:var(--wine); }
.line-link span { transition:transform .2s ease; }
.line-link:hover span { transform:translateX(4px); }
.frame { max-width:1320px; width:calc(100% - clamp(40px,10vw,148px)); margin-inline:auto; }
.front-feature { display:grid; grid-template-columns:1.22fr .78fr; align-items:center; gap:clamp(30px,8vw,100px); padding:86px 0; }
.feature-photos { display:grid; grid-template-columns:1.15fr .85fr; align-items:center; gap:12px; }
.feature-photos figure { background:var(--fog); padding:10px; }
.feature-photos figure+figure { margin-top:75px; background:#e5ddd1; }
.feature-photos img { aspect-ratio:1; object-fit:cover; object-position:42% 50%; }
.feature-photos figure+figure img { aspect-ratio:3/4; }
.feature-note h2,.page-lead h1,.piece h1,.story-copy h1,.confirmation h1 { font:600 clamp(36px,5.35vw,79px)/1.19 var(--cut); letter-spacing:-.072em; }
.feature-note p { margin:19px 0 23px; max-width:28ch; color:var(--muted); }
.mini-rule { width:56px; height:1px; margin-bottom:18px; background:var(--wine); }
.footer { border-top:1px solid var(--rule); }
.foot-inner { min-height:108px; }
.foot-inner>span { justify-self:end; font-size:12px; color:var(--muted); }
.foot-inner nav { font-size:12px; }

.page-lead { padding:57px 0 32px; }
.page-lead h1 { font-size:clamp(42px,6vw,82px); }
.page-lead p { color:var(--muted); margin-top:17px; }
.page-lead>.line-link { margin-bottom:18px; font-size:13px; }
.catalogue { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:28px; padding-bottom:80px; }
.catalogue-item { border-top:1px solid var(--rule); padding-top:13px; }
.catalogue-photo { display:block; overflow:hidden; padding:15px; background:#e2ceca; }
.catalogue-photo.blue { background:var(--fog); }
.catalogue-photo img { aspect-ratio:5/4; object-fit:cover; transition:scale .35s ease; }
.catalogue-photo:hover img { scale:1.025; }
.catalogue-info { display:flex; justify-content:space-between; gap:15px; padding:18px 0; }
.catalogue-info h2 { font:600 26px var(--cut); }
.catalogue-info p { color:var(--muted); font:italic 26px var(--display); }
.catalogue-price { text-align:right; }
.palette { display:flex; gap:12px; margin-top:10px; justify-content:flex-end; }
.dot { display:inline-block; width:18px; height:18px; border-radius:50%; border:1px solid #5426386a; vertical-align:middle; background:#a99d86; }
.dot.pink { background:#c0868b; }
.dot.blue { background:#9fbdc8; }

.product-trail { padding:26px 0 12px; font-size:13px; color:var(--muted); }
.piece { display:grid; grid-template-columns:1.14fr .86fr; gap:clamp(28px,5vw,74px); align-items:start; padding-bottom:65px; }
.piece-gallery { background:#e6d9cf; padding:clamp(12px,2.5vw,33px); transition:background .3s ease; min-width:0; }
.piece-gallery.blue { background:#c6d2ce; }
.piece-gallery.pink { background:#e9d4d0; }
.piece-photo { display:block; position:relative; width:100%; aspect-ratio:1.13; padding:0; border:0; background:#dad0c3; overflow:hidden; }
.piece-photo img { height:100%; object-fit:contain; }
.piece-photo span,.photo-close { position:absolute; right:12px; top:12px; width:40px; height:40px; display:grid; place-items:center; background:var(--paper); border-radius:50%; border:0; }
.thumbs { display:flex; margin-top:15px; gap:9px; flex-wrap:wrap; }
.thumbnail { width:58px; padding:2px; border:1px solid transparent; background:transparent; }
.thumbnail[aria-pressed=true] { border-color:var(--wine); }
.thumbnail img { aspect-ratio:1.12; object-fit:cover; }
.piece-copy { padding:11px 0; }
.script-label { font:italic 33px/1.12 var(--display); color:var(--wine); }
.piece h1 { font-size:clamp(43px,5vw,74px); margin-top:6px; }
.piece-price { display:flex; gap:12px; align-items:center; margin:13px 0 17px; font-size:21px; }
.piece-price span { font-size:11px; padding:3px 8px; background:#eadecd; }
.piece-description { max-width:47ch; color:var(--muted); white-space:pre-line; }
.pickers { margin-top:22px; }
.pickers fieldset { padding:0; border:0; margin:0 0 16px; }
.pickers legend { font-weight:700; margin:0 0 6px; font-size:13px; }
.pickers legend strong { color:var(--muted); margin-left:6px; font-weight:400; }
.choices { display:flex; flex-wrap:wrap; gap:8px; }
.choices button { border:1px solid var(--rule); background:transparent; padding:8px 10px; min-width:48px; min-height:44px; }
.choices button[aria-pressed=true] { background:var(--wine); border-color:var(--wine); color:var(--paper); }
.choices button:disabled { opacity:.45; text-decoration:line-through; }
.color-choice .dot { margin-right:7px; }
.fit-note,.hint { color:var(--muted); font-size:13px; margin:8px 0; white-space:pre-line; }
.pickers .pill-link { width:100%; margin-top:8px; }
.inline-error { color:#8e2741; font-size:13px; margin-top:7px; }
.inline-error:empty { display:none; }
.piece-note { padding:12px 0; border-block:1px solid var(--rule); margin-top:18px; font-size:13px; }
.piece-note p { color:var(--muted); margin-top:4px; }
#modal { background:#261a20; color:white; border:0; padding:0; max-width:min(94vw,950px); max-height:90vh; }
#modal::backdrop { background:#291925ba; }
.photo-dialog img { width:auto; max-width:100%; max-height:88vh; object-fit:contain; }
.photo-close { color:var(--ink); font-size:24px; }

.bag-layout,.checkout-layout { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(240px,.65fr); align-items:start; gap:clamp(27px,6vw,90px); padding-bottom:65px; }
.bag-row { display:grid; grid-template-columns:94px 1fr auto; gap:18px; padding:19px 0; border-block-start:1px solid var(--rule); }
.bag-row img { aspect-ratio:1; object-fit:cover; }
.bag-row h2,.receipt h2,.faq-layout h2 { font:600 23px var(--cut); }
.bag-row p,.receipt p,.form-note { font-size:13px; color:var(--muted); }
.bag-amount { text-align:right; white-space:nowrap; }
.bag-amount button { display:block; margin-left:auto; background:none; border:0; padding:10px 0 0; text-decoration:underline; font-size:12px; }
.qty { display:flex; gap:10px; margin-top:7px; align-items:center; }
.qty button { display:grid; width:34px; height:34px; place-items:center; background:transparent; border:1px solid var(--rule); }
.qty button:disabled { opacity:.35; }
.receipt { padding:22px; background:#eee3d5; border:1px solid #cbb4a1; }
.receipt .pill-link { width:100%; margin-top:15px; }
.receipt-row,.summary-lines li { display:flex; justify-content:space-between; gap:12px; padding:12px 0; border-bottom:1px solid var(--rule); }
.receipt-row:last-child { border-bottom:0; }
.receipt p { padding-top:8px; }
.summary-lines { list-style:none; padding:0; margin-top:10px; }
.summary-lines small { display:block; color:var(--muted); }
.checkout-form { display:grid; grid-template-columns:1fr 1fr; gap:15px; }
.checkout-form label { display:grid; gap:4px; font-weight:600; font-size:13px; }
.checkout-form :is(input,select,textarea) { width:100%; min-height:44px; padding:9px; border:1px solid var(--rule); background:#fffbf3; border-radius:0; font-size:16px; }
.checkout-form textarea { min-height:80px; resize:vertical; }
.checkout-form .full { grid-column:1/-1; }
.form-note a { text-decoration:underline; }
.empty-state,.prose { display:grid; gap:14px; align-items:start; justify-items:start; padding-block:22px 70px; }
.confirmation { padding:55px 0 79px; display:grid; justify-items:start; gap:15px; }
.confirmation-symbol { font-size:36px; color:var(--rose); }
.confirmation p { overflow-wrap:anywhere; }

.story-layout { display:grid; grid-template-columns:1fr .85fr; gap:clamp(25px,7vw,104px); padding:56px 0; align-items:center; }
.story-photo { padding:18px; background:#ead6cd; }
.story-photo img { aspect-ratio:4/3; object-fit:cover; }
.story-copy h1 { margin:.25em 0 .5em; }
.story-copy p+p,.story-copy .line-link { margin-top:15px; }
.faq-layout { display:grid; grid-template-columns:.6fr 1fr; gap:36px; padding-bottom:65px; }
.faq-layout p { color:var(--muted); margin:10px 0; }
.faq-layout details { border-top:1px solid var(--rule); padding:13px 0; }
.faq-layout details:last-child { border-bottom:1px solid var(--rule); }
.faq-layout summary { cursor:pointer; display:flex; justify-content:space-between; gap:15px; font-weight:600; padding:5px 2px; list-style:none; }
.faq-layout summary::-webkit-details-marker { display:none; }
.faq-layout details[open] summary span { transform:rotate(45deg); }
.prose { max-width:75ch; }

#toast { position:fixed; z-index:7; right:20px; bottom:20px; border:1px solid #edd3cb; background:var(--wine); color:white; padding:12px 17px; opacity:0; transform:translateY(8px); pointer-events:none; transition:opacity .24s,transform .24s; }
#toast.show { opacity:1; transform:translateY(0); }
@keyframes type-in { from{ opacity:0;transform:translateY(17px); } }
@keyframes photo-in { from{ opacity:.34;scale:1.055; } }
@media (max-width:880px) {
  .cover { min-height:500px; }
  .cover h1 { font-size:clamp(71px,10.5vw,115px); }
  .mast-inner,.foot-inner { padding-inline:21px; }
  .mast nav,.foot-inner nav { gap:15px; }
}
@media (max-width:660px) {
  .mast-inner { grid-template-columns:1fr auto; padding:15px 19px 0; gap:5px 12px; }
  .mast .wordmark { font-size:39px; }
  .mast nav { grid-row:2; grid-column:1/-1; min-height:36px; gap:21px; }
  .mast nav a { font-size:12px; padding:7px 0; }
  .bag-link { grid-row:1; grid-column:2; }
  .cover { grid-template-columns:1fr; min-height:0; }
  .cover-type { padding:36px 29px 47px; }
  .cover-type::after { inset:9px; }
  .cover-label { margin-bottom:17px; }
  .cover h1 { font-size:clamp(69px,17vw,103px); }
  .cover-copy { margin:15px 0; }
  .cover-bottom { bottom:11px; }
  .cover-frame { padding:20px 22px 12px; }
  .cover-image { aspect-ratio:1.25; }
  .cover-frame figcaption { padding-top:11px; font-size:9px; }
  .front-feature,.piece,.bag-layout,.checkout-layout,.story-layout,.faq-layout { grid-template-columns:1fr; gap:19px; }
  .front-feature,.story-layout { padding-block:36px; }
  .feature-photos figure+figure { margin-top:36px; }
  .feature-note h2 { font-size:38px; }
  .page-lead { padding-block:34px 22px; }
  .catalogue { grid-template-columns:1fr; }
  .piece-copy { padding:0; }
  .piece h1 { margin-top:2px; }
  .bag-row { grid-template-columns:67px minmax(0,1fr) auto; gap:10px; }
  .bag-row h2 { font-size:17px; }
  .checkout-form { grid-template-columns:1fr; }
  .foot-inner { grid-template-columns:1fr auto; padding-block:21px; gap:16px; }
  .foot-inner nav { grid-column:1/-1; grid-row:2; }
  .foot-inner>span { grid-column:2; grid-row:1; }
}
@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after { animation:none!important; transition:none!important; scroll-behavior:auto!important; }
}
@media (max-width:420px) {
  .mast-inner { grid-template-columns:minmax(0,1fr) auto; }
  .mast .wordmark { font-size:clamp(29px,8.7vw,37px); }
  .bag-link { white-space:nowrap; }
}
.piece-gallery,.catalogue,.story-photo { animation:page-appear .32s ease-out both; }
@keyframes page-appear { from { opacity:.72; transform:translateY(7px); } }
.piece-price strong { font-weight:600; }
.visually-hidden { position:absolute; width:1px; height:1px; overflow:hidden; white-space:nowrap; clip-path:inset(50%); }
