:root {
  color-scheme: light;
  --paper: #f8f3e7;
  --ink: #352820;
  --wine: #8d2d23;
  --wine-dark: #662018;
  --gold: #986b31;
  --line: #d9c9ac;
  --serif: "Gala Display", "Noto Serif TC", "Noto Serif CJK TC", "Songti TC", "Songti SC", "PMingLiU", "SimSun", Georgia, serif;
  --sans: "Inter", "Noto Sans TC", "PingFang TC", "PingFang SC", "Microsoft JhengHei", "Microsoft YaHei", system-ui, sans-serif;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
}
@font-face{font-family:"Gala Display";src:url("assets/gala-display.woff2") format("woff2");font-style:normal;font-weight:200 900;font-display:swap}
@font-face{font-family:"Gala Display";src:url("assets/gala-display-sc.woff2") format("woff2");font-style:normal;font-weight:200 900;font-display:swap;unicode-range:U+8D35,U+5BBE,U+8BF7,U+573A,U+7231,U+65F6,U+8BDA,U+631A,U+4E34}
*{box-sizing:border-box}
body{margin:0;min-width:280px}
button,a{color:inherit;font:inherit;-webkit-tap-highlight-color:rgba(164,105,55,.2);touch-action:manipulation}
button{border:0;background:none;cursor:pointer}
a{color:var(--wine);text-underline-offset:.28em}
:focus-visible{outline:3px solid #ae6b16;outline-offset:5px}
[hidden]{display:none!important}
.sr,.symbol-bank{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.ic{display:inline-block;width:1.2em;height:1.2em;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex:none;vertical-align:-.13em}
.masthead{border-bottom:1px solid #d9c8ab;background:#faf7ee}
.header-inner,.hero-inner,.section-inner,.footer-inner{width:min(100% - 9.5vw,1280px);margin-inline:auto}
.header-inner{display:flex;align-items:center;justify-content:space-between;min-height:76px;gap:16px}
.wordmark{display:flex;align-items:center;gap:10px;color:#211f1c;white-space:nowrap}
.wordmark img{display:block;width:32px;height:32px}
.wordmark-en{font:800 1.25rem/1 var(--sans);letter-spacing:.09em}
.wordmark-zh{font-size:1.12rem;font-weight:750;letter-spacing:.12em}
.venues{display:flex;border:1px solid #cab799;padding:4px;border-radius:30px;gap:3px;background:#f4eee1}
.venues a{border-radius:24px;display:grid;place-items:center;padding:8px 21px;color:#5d4e3e;text-decoration:none;font-size:.875rem;line-height:1.45;font-weight:600;letter-spacing:.08em;transition:background .2s,color .2s}
.venues a[aria-current=page]{background:var(--wine);color:#fff6e7;box-shadow:inset 0 0 0 1px #9b4030}
.venues a:not([aria-current]):hover{background:#e7ddca}
.venue-badge{font-size:.94rem;color:#722a20;letter-spacing:.12em;border:1px solid #ba9670;border-radius:3px;padding:6px 13px;line-height:1.3;background:#fff5e5d9;white-space:nowrap}
/* The welcome scene is the entire viewport; the invitation is mounted for reading after entry. */
.entry-locked,.entry-locked body{height:100%;overflow:hidden;overscroll-behavior:none}
.entry-locked .masthead{position:absolute;inset:0 0 auto;z-index:5;border-bottom:0;background:linear-gradient(to bottom,#fff7e9ed,#fff7e980 72%,transparent)}
.entry-locked .header-inner{min-height:clamp(66px,10dvh,90px)}
.entry-locked .venues{background:#fcf4e5eb}
.hero{position:fixed;inset:0;height:100vh;height:100dvh;overflow:hidden;isolation:isolate;background:#efe0be}
.journey-world,.journey-world picture,.journey-world img,.stage,.journey-fx{position:absolute;inset:0;width:100%;height:100%}
.journey-world{z-index:0;pointer-events:none}
.journey-world img{display:block;object-fit:cover;object-position:center}
.stage{z-index:1;pointer-events:none}
.mascot-position{position:absolute;right:4%;bottom:7%;width:min(49vw,76vh,780px);width:min(49vw,76dvh,780px);aspect-ratio:1}
.mascot-position:before{content:"";position:absolute;left:15%;right:11%;bottom:-1%;height:10%;border-radius:50%;background:radial-gradient(ellipse,#74321b52,transparent 70%);transform:rotate(-5deg)}
#mascot{width:100%;height:100%;pointer-events:auto}
.hero-inner{height:100%;position:relative;z-index:2;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;padding:clamp(66px,10vh,90px) 2.1% 8vh;pointer-events:none}
.intro,.hero-bottom{max-width:46%}
.edition,.overline{display:flex;align-items:center;gap:13px;color:#805126;font:600 .78rem/1.4 Georgia,"Times New Roman",serif;letter-spacing:.22em}
.rule,.little-rule{display:inline-block;width:37px;height:1px;background:#9b6b35}
.title-row{display:flex;align-items:flex-start;gap:14px;margin-top:clamp(13px,2.8vh,30px);width:max-content;max-width:100%}
h1,h2,h3,p,figure{margin:0}
h1,.section-heading h2,.letter-text>h2{font-family:var(--serif)}
h1{font-weight:740;color:#70261e}
.title-main,.title-sub{display:block;white-space:nowrap}
.title-main{font-size:clamp(4.3rem,min(8.5vw,14vh),8.7rem);line-height:1.08;letter-spacing:.035em}
.title-sub{font-weight:540;font-size:clamp(2.3rem,min(4.15vw,8vh),4rem);line-height:1.42;letter-spacing:.14em;color:#472f25;margin-top:2px}
.chop{display:grid;place-items:center;border:1px solid #965441;box-shadow:inset 0 0 0 2px #f7e9cc,inset 0 0 0 3px #a36c52;color:#8d3b2a;border-radius:3px 5px 3px 4px;writing-mode:vertical-rl;font:650 1rem/1.05 var(--serif);letter-spacing:.18em;padding:7px 4px 6px;transform:rotate(3deg);margin-top:10px}
.salute{margin-top:clamp(12px,2.5vh,25px);max-width:20em;color:#553725;text-wrap:pretty;font:550 clamp(1rem,1.4vw,1.18rem)/1.8 var(--serif);letter-spacing:.05em}
.hero-bottom{margin-top:clamp(17px,3.5vh,36px)}
.primary,.map-pill,.quiet-button,.image-action{display:inline-flex;justify-content:center;align-items:center;gap:9px}
.primary{position:relative;isolation:isolate;overflow:hidden;background:linear-gradient(135deg,#9f372a,#7f241d 77%);color:#fff7e9;border:1px solid #ad734a;border-radius:6px;padding:15px 26px;min-height:52px;font-weight:650;letter-spacing:.1em;box-shadow:inset 0 0 0 3px #853025,inset 0 0 0 4px #d7a46b99,0 6px 17px -5px #66251a5c;transition:filter .2s,transform .2s;pointer-events:auto}
.primary:hover{filter:brightness(1.12);transform:translateY(-2px)}
.primary .ic{color:#f6dca8}
.gesture-hint{display:flex;align-items:center;gap:6px;margin-top:13px;color:#51351f;font-size:.84rem;letter-spacing:.025em}
.gesture-hint .ic{width:15px;height:15px}
.journey-fx{z-index:4;pointer-events:none;overflow:hidden}
body[data-phase="entering"] .masthead{opacity:0;transition:opacity .3s;pointer-events:none}
.text-link{display:inline-block;padding-block:7px;color:#725534;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:5px;text-decoration-color:#b69b72;font-size:.94rem;font-weight:570}
.text-link:hover,.address:hover{color:var(--wine-dark);text-decoration-color:currentColor}
.letter:after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:url("assets/paper-grain.png");opacity:.48;mix-blend-mode:multiply}
#letter-greeting{font:650 1.13rem/1.7 var(--serif);color:#6a392b;margin-bottom:10px}
.reading-actions{display:flex;align-items:center;gap:18px;flex-wrap:wrap}
.section-inner{max-width:1180px}
.details,.letter{scroll-margin-top:18px}
.details{background:#fcf9f1;padding:clamp(44px,5vw,78px) 0 clamp(52px,6vw,88px)}
.section-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;border-bottom:1px solid var(--line);padding-bottom:21px}
.overline{font-size:.75rem;letter-spacing:.21em;gap:10px}
.little-rule{width:27px}
.section-heading h2,.letter-text>h2{font-size:clamp(2rem,3.2vw,2.85rem);line-height:1.42;letter-spacing:.09em;font-weight:650;margin-top:10px;color:#532e25}
.region-note{font-family:var(--serif);font-size:1rem;letter-spacing:.17em;color:#855535;padding-bottom:6px}
.details-grid{display:grid;grid-template-columns:1.08fr .92fr;gap:clamp(32px,6vw,96px);margin-top:30px;align-items:start}
.detail-row{display:flex;align-items:flex-start;gap:16px;padding-block:4px 23px}
.detail-row+.detail-row{border-top:1px solid #e4d9c6;padding-top:22px;padding-bottom:0}
.detail-icon{display:grid;place-items:center;color:#926232;background:#f2e8d5;border:1px solid #ddc9a7;width:39px;height:39px;flex:none;border-radius:50%}
.detail-copy h3{color:#76614b;font-weight:550;font-size:.9rem;letter-spacing:.12em;line-height:1.5;margin-bottom:4px}
.detail-copy p{line-height:1.8;font-size:1.02rem}
.detail-copy .detail-strong{font-family:var(--serif);font-weight:650;font-size:1.28rem;color:#4f342a}
.address{display:inline-block;margin:4px 0 2px;font-size:1rem;line-height:1.7;font-weight:500}
.map-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:13px}
.map-pill{padding:8px 14px;min-height:42px;border:1px solid #b8906c;border-radius:4px;color:#793d2e;text-decoration:none;font-size:.9rem;background:#fffcf5;font-weight:600}
.map-pill:hover,.quiet-button:hover{background:#eee1c9}
.location-figure{max-width:540px;width:100%;text-align:center}
.map-preview{border:1px solid #dac8a6;border-radius:6px;background:#f8f1e3;display:grid;width:100%;height:250px;padding:12px;place-items:center;position:relative;overflow:hidden}
.map-preview img{max-width:100%;width:auto;height:100%;max-height:226px;object-fit:contain}
.map-zoom{width:33px;height:33px;border:1px solid #d7c4a5;border-radius:50%;display:grid;place-items:center;background:#fff9eb;color:#70482c;position:absolute;right:10px;bottom:10px}
.location-figure figcaption{margin-top:8px;color:#796953;font-size:.85rem}
.letter{position:relative;isolation:isolate;background:#f6efdf;padding:clamp(44px,5vw,76px) 0;border-bottom:1px solid var(--line)}
.letter-grid{display:grid;grid-template-columns:1fr 1fr;gap:clamp(24px,5.2vw,85px);align-items:center}
.letter-text>h2{font-size:2rem;margin:14px 0 18px}
#letter-message p{line-height:1.95;margin-bottom:.6em;color:#4f3d30}
#letter-message .closing{font-family:var(--serif);font-weight:650;color:var(--wine)}
#letter-sign{margin:20px 0;color:#644e3e;font-size:.92rem;line-height:1.75}
.signatory{display:inline-block;white-space:nowrap}
.quiet-button{border:1px solid #c1a785;border-radius:4px;font-size:.9rem;min-height:40px;padding:7px 13px;color:#78422e}
.paper-preview{position:relative;display:block;width:100%;padding:7px;background:#fffaf0;border:1px solid #d1bb96;box-shadow:0 10px 22px -15px #62421e;transform:rotate(1deg)}
.paper-preview img{width:100%;display:block}
.image-action{position:absolute;right:12px;bottom:12px;color:#fff8e9;background:#6e2b23ed;border-radius:4px;padding:8px 12px;font-size:.875rem}
footer{background:#592b23;color:#f1dfbf}
.footer-inner{min-height:80px;display:flex;align-items:center;justify-content:space-between;gap:15px}
.footer-brand{font-weight:750;letter-spacing:.06em}.footer-brand b{font-size:.9rem;letter-spacing:.12em;margin-left:8px}
.footer-inner>span:last-child{font:normal .76rem/1.5 Georgia,serif;letter-spacing:.16em}
dialog{border:1px solid #ad8e65;border-radius:7px;color:var(--ink);background:#faf5e8;width:min(1050px,94vw);padding:0;max-height:94vh;max-height:94dvh;box-shadow:0 20px 60px #25150755}
dialog::backdrop{background:rgb(36 25 19 / 73%)}
.viewer-head,.viewer-foot{padding:11px 16px;display:flex;align-items:center;justify-content:space-between;gap:10px}
.viewer-head h2{font:650 1rem/1.6 var(--serif);letter-spacing:.035em}
.viewer-picture{display:grid;place-items:center;padding:0 10px}
.viewer-picture img{display:block;max-width:100%;max-height:calc(90vh - 120px);max-height:calc(90dvh - 120px);object-fit:contain}
.viewer-foot{justify-content:flex-end;padding-block:2px 6px}
@media (hover:hover) and (pointer:fine){
  html,body,a,button,button *,a *,#mascot{cursor:url("assets/cursor-logo.png") 15 15,auto}
  .map-preview:hover .map-zoom,.paper-preview:hover .image-action{transform:scale(1.06)}
}
@media(max-width:700px){
  .header-inner,.hero-inner,.section-inner,.footer-inner{width:calc(100% - 36px)}
  .header-inner{min-height:65px;gap:8px}.wordmark{gap:6px}.wordmark img{width:26px;height:26px}.wordmark-en{font-size:1rem;letter-spacing:.065em}.wordmark-zh{font-size:.88rem;letter-spacing:0}
  .venues{padding:3px;gap:1px}.venues a{font-size:.84rem;letter-spacing:0;padding:8px 11px}
  .details-grid,.letter-grid{grid-template-columns:minmax(0,1fr);gap:28px}
  .details,.letter{padding-block:35px 42px}.details-grid{margin-top:22px}.section-heading{padding-bottom:15px}
  .map-preview{height:240px}.map-preview img{max-height:216px}.location-figure{margin:auto}.footer-inner{min-height:69px}.footer-inner>span:last-child{font-size:.68rem;letter-spacing:.085em}
}
@media(max-aspect-ratio:4/5), (max-width:600px) and (orientation:portrait){
  /* Let the real height of the invitation and controls determine the available artwork space. */
  .hero{
    display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto;
    row-gap:clamp(6px,1.3dvh,14px);
  }
  .hero-inner,.hero .stage{display:contents}
  .intro,.hero-bottom{grid-column:1;position:relative;z-index:2;max-width:100%;text-align:center}
  .intro{grid-row:1;padding:clamp(72px,9.5dvh,112px) 16px 0}
  .hero-bottom{grid-row:3;margin:0;padding:0 12px max(env(safe-area-inset-bottom),4dvh)}
  .edition{justify-content:center;gap:10px;font-size:.74rem}.edition .rule,.edition:after{width:25px}.edition:after{content:"";height:1px;background:#9b6b35}
  .title-row{position:relative;display:block;margin:clamp(8px,1.4dvh,16px) auto 0}
  .title-main{font-size:clamp(3rem,min(13vw,8dvh),6.5rem);line-height:1.07;letter-spacing:.08em}
  .title-sub{font-size:clamp(1.62rem,min(7vw,4.5dvh),3.2rem);line-height:1.38;letter-spacing:.15em}
  .chop{position:absolute;top:4px;left:100%;margin:0 0 0 4px;font-size:.77rem;padding:5px 3px}
  .salute{max-width:24em;margin:clamp(4px,1dvh,12px) auto 0;font-size:clamp(.95rem,2.7vw,1.12rem);line-height:1.55}
  .mascot-position{
    grid-area:2/1;place-self:center;position:relative;inset:auto;z-index:1;
    height:min(92%,88vw,630px);width:auto;min-height:0;
  }
  .gesture-hint{width:max-content;max-width:100%;margin:8px auto 0;justify-content:center;padding:3px 9px;color:#fff7e4;background:#512b20d9;border-radius:20px}
  .hero .primary{box-shadow:inset 0 0 0 3px #853025,inset 0 0 0 4px #e4bc8680,0 3px 14px #3c1c1999}
}
@media(min-width:601px) and (min-aspect-ratio:4/5) and (max-aspect-ratio:1/1){
  .hero-inner{padding-inline:0}.title-main{font-size:8.75vw}
}
@media(max-height:500px) and (orientation:landscape){
  .header-inner,.entry-locked .header-inner{min-height:48px}.wordmark img{width:25px;height:25px}.venues a{padding:5px 15px}
  .hero-inner{padding:45px 1% 0}.title-row{margin-top:5px}.title-main{font-size:clamp(2.4rem,12dvh,4.1rem)}.title-sub{font-size:clamp(1.3rem,6.8dvh,2.25rem)}
  .chop{margin-top:3px;font-size:.72rem}.edition{font-size:.69rem}.salute{font-size:.9rem;line-height:1.4;margin-top:5px}
  .hero-bottom{margin-top:10px}.primary{min-height:41px;padding:8px 15px;font-size:.92rem}.gesture-hint{margin-top:5px;font-size:.73rem}
  .mascot-position{width:min(47vw,77dvh);right:4%;bottom:4%}
}
@media(max-width:380px){.wordmark-zh{display:none}.header-inner,.section-inner,.footer-inner{width:calc(100% - 28px)}.venues a{padding:6px 7px;white-space:nowrap;letter-spacing:0}.salute{font-size:.9rem}}
@media(max-height:650px) and (max-aspect-ratio:4/5), (max-height:650px) and (max-width:600px) and (orientation:portrait){
  .intro{padding-top:68px}.hero-bottom{padding-bottom:max(12px,env(safe-area-inset-bottom))}.edition{font-size:.67rem}.title-main{font-size:2.75rem}.title-sub{font-size:1.5rem}.salute{max-width:25em;font-size:.86rem}
  .primary{min-height:46px;padding-block:10px}.gesture-hint{font-size:.75rem;margin-top:4px}
}
@media(max-height:520px) and (orientation:portrait){
  .entry-locked .header-inner{min-height:48px}
  .intro{padding-top:52px}
  .title-main{font-size:clamp(1.8rem,8dvh,2.45rem)}
  .title-sub{font-size:clamp(1.1rem,4.7dvh,1.4rem)}
  .hero-bottom{padding-bottom:max(8px,env(safe-area-inset-bottom))}
}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
