@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+TC:wght@500;600;700;800&display=swap');
:root{--paper:#f6f2e9;--ink:#283c32;--red:#b84832;--muted:#52604e;--line:#d8d8c9;--serif:'Noto Serif TC','Songti TC',serif}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:2rem}
body{margin:0;padding-bottom:calc(4.25rem + env(safe-area-inset-bottom));background:var(--paper);color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,'PingFang TC','Microsoft JhengHei',sans-serif;line-height:1.8}
::selection{background:#dce7d2;color:var(--ink)}
a{color:inherit;text-decoration:none;text-underline-offset:.25em}
button,input,textarea,select{font:inherit}
button{cursor:pointer}
a,button{-webkit-tap-highlight-color:transparent}
:is(a,button,input,textarea,select,summary):focus-visible{outline:3px solid var(--red);outline-offset:4px}
button:disabled{cursor:default}
h1,h2,h3,p,figure{margin-top:0}
h1,h2,h3{font-family:var(--serif);text-wrap:balance}
h2{font-size:clamp(1.75rem,3vw,2.25rem);line-height:1.6;font-weight:600}
h3{font-size:1.375rem;line-height:1.65;font-weight:600}
p{margin-bottom:1rem}
summary{cursor:pointer;min-height:2.75rem;padding-block:.75rem}
[hidden]{display:none!important}
.skip{position:fixed;top:-6rem;left:1rem;z-index:30;background:var(--ink);color:white;padding:.75rem 1rem}
.skip:focus{top:1rem}
.header{max-width:1440px;margin-inline:auto;padding:1rem 6%;display:flex;align-items:center;justify-content:space-between;gap:1.5rem;border-bottom:1px solid var(--line)}
.brand{display:flex;align-items:center;gap:.75rem;font-size:1rem;font-weight:700;white-space:nowrap}
.brand-en{display:block;font-size:.75rem;font-weight:400;letter-spacing:.04em;color:var(--muted)}
.site-logo{width:5rem;height:3.25rem;object-fit:cover;object-position:center;mix-blend-mode:multiply;flex-shrink:0}
.header nav{display:none;gap:1.5rem;align-items:center;font-size:.875rem}
.header nav a{display:flex;align-items:center;min-height:2.75rem}
.header nav a:hover{color:var(--red)}
.hero{max-width:1280px;margin-inline:auto;padding:2.5rem 6% 3rem;display:grid;gap:2rem;align-items:center}
h1{font-size:clamp(2.75rem,5vw,4rem);line-height:1.4;font-weight:800;letter-spacing:.02em;margin-bottom:1.25rem}
h1 span{color:var(--red)}
.hero-intro{font-size:1rem;color:var(--muted);max-width:28rem;margin-bottom:1.5rem}
.text-button{display:inline-flex;align-items:center;min-height:2.75rem;padding:.5rem 0;border:0;border-bottom:1px solid currentColor;background:transparent;color:inherit;font-size:.875rem;line-height:1.8}
.text-button:hover{color:var(--red)}
.hero-art{margin:0;min-width:0}
.hero-art img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:contain}
.hero-art figcaption{font-size:.875rem;color:var(--muted);margin-top:.75rem}
.section{max-width:1280px;margin:0 auto;padding:3rem 6%}
.section-heading{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:1rem 2rem;margin-bottom:2rem}
.section-heading h2{margin-bottom:.5rem}
.section-heading p{color:var(--muted);font-size:1rem;margin-bottom:0}
/* The calendar remains a standalone, centered reading experience. */
.daily-calendar{--red:#a13e2a}
.daily-calendar :is(.daily-hint,.daily-note,.daily-date-control){font-size:.875rem;color:var(--muted)}
.daily-calendar .daily-transcript summary,.daily-calendar .daily-figure figcaption,.daily-calendar .daily-controls button{font-size:.875rem}
/* One ceremony chapter combines its facts, sequence and illustrated rituals. */
.program{border-bottom:1px solid var(--line)}
.program-layout{display:grid;gap:2.5rem}
.program-heading h3{margin-bottom:1.25rem}
.event-facts{display:grid;grid-template-columns:1fr;gap:1rem;margin:0 0 1.25rem}
.event-facts>div{display:grid;grid-template-columns:2.5rem minmax(0,1fr);gap:.75rem}
.event-facts dt{color:var(--muted);font-size:.875rem}
.event-facts dd{margin:0;font-size:1rem}
.timeline{margin:0;padding:0;list-style:none}
.timeline li{position:relative;display:flex;gap:1rem;padding:0 0 1.5rem}
.timeline li:not(:last-child)::before{content:'';position:absolute;left:1.125rem;top:2.5rem;bottom:.25rem;width:1px;background:var(--line)}
.timeline li>span{width:2.25rem;height:2.25rem;flex-shrink:0;display:grid;place-items:center;border:1px solid #bac4ae;border-radius:50%;font-size:.875rem;font-variant-numeric:tabular-nums;color:var(--muted)}
.timeline h3{font-size:1.125rem;margin:0 0 .35rem}
.timeline p{font-size:1rem;color:var(--muted);margin:0;max-width:44ch}
.timeline li:last-child{padding-bottom:0}
.ceremony-illustration{margin:2.5rem 0 0}
.ceremony-illustration img{display:block;width:100%;height:auto}
.ceremony-illustration figcaption{font-size:.875rem;color:var(--muted);margin-top:.75rem}
/* The supplied postcard and charm share one keepsake chapter. */
.keepsake-item{width:100%;max-width:56rem;margin-inline:auto}
.keepsake-item+.keepsake-item{margin-top:3rem;padding-top:2.5rem;border-top:1px solid var(--line)}
.keepsake .aspiration{border-top:0;padding:0}
.keepsake-subheading{width:100%;max-width:56rem;margin:0 auto 1.5rem}
.keepsake-subheading h3{margin-bottom:.5rem}
.keepsake-subheading p{font-size:1rem;color:var(--muted);margin-bottom:0}
.keepsake-subheading p+p{margin-top:.5rem}
.keepsake-photo{margin:0;min-width:0}
.keepsake-photo>a{display:block}
.keepsake-photo img{display:block;width:100%;height:auto}
.keepsake-photo figcaption{font-size:.875rem;color:var(--muted);margin-top:.75rem}
.closing{text-align:center;padding:2.5rem 6%}
.closing>p{font-family:var(--serif);font-size:1.375rem;margin-bottom:.75rem}
footer{max-width:1120px;margin:0 6%;border-top:1px solid var(--line);padding:1.5rem 0;display:flex;flex-wrap:wrap;justify-content:space-between;gap:.5rem 2rem;font-size:.875rem;color:var(--muted)}
.mobile-nav{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:15;background:var(--paper);border-top:1px solid var(--line);padding:.5rem .5rem calc(.5rem + env(safe-area-inset-bottom));gap:.25rem}
.mobile-nav a{flex:1;display:grid;place-content:center;min-height:2.75rem;font-size:.875rem;text-align:center;white-space:nowrap}
.mobile-nav a:first-child{background:var(--ink);color:var(--paper);border-radius:.25rem}
body.embedded .header nav{display:none}
body.embedded footer span:last-child{display:none}
@media(min-width:600px){.event-facts{grid-template-columns:1fr 1fr}.event-facts>div{display:block}}
@media(min-width:768px){
  body{padding-bottom:0}.header nav{display:flex}.site-logo{width:6.25rem;height:4rem}
  .hero{grid-template-columns:1fr 1.1fr;gap:3rem;padding-block:3rem}.section{padding-block:4rem}.mobile-nav{display:none}
  .program-layout{grid-template-columns:1fr 1.15fr;gap:4rem}
  .event-facts{grid-template-columns:1fr}.event-facts>div{display:grid}
  footer{margin-inline:auto;width:88%}
}
@media(min-width:1024px){.daily-calendar .section-heading{margin-bottom:2rem}.hero{padding-block:3.5rem}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{transition:none!important}}
