:root {
  --paper: #f6f0e5;
  --ink: #292720;
  --muted: #615a50;
  --red: #bd371e;
  --yellow: #e6a914;
  --line: #d7cdbd;
  --body: 'Noto Sans TC', 'PingFang TC', sans-serif;
  --hand: 'Klee One', 'Kaiti TC', 'KaiTi', serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body {
  margin: 0;
  background-color: var(--paper);
  background-image: linear-gradient(#f6f0e530, #f6f0e530), url('assets/paper-texture-v1.jpg');
  background-size: auto, 760px 760px;
  background-repeat: repeat;
  color: var(--ink);
  font: 1rem/1.9 var(--body);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-underline-offset: 5px; }
a:focus-visible { outline: 3px solid var(--red); outline-offset: 6px; }
h1, h2, p, figure { margin: 0; }
img { display: block; width: 100%; height: auto; }
::selection { background: #efce78; color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 3; background: var(--ink); color: var(--paper); padding: 12px 20px; }
.skip-link:focus { top: 12px; }
.site-header { max-width: 1120px; margin: auto; padding: 18px 32px; display: flex; align-items: center; justify-content: flex-end; gap: 24px; }
.site-header nav { display: flex; gap: 28px; }
.site-logo { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; flex: 0 0 48px; margin-right: auto; }
.site-logo img { width: 44px; height: 44px; object-fit: contain; }
.site-header nav a { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; font-size: .875rem; text-decoration: none; }
.hero { max-width: 1120px; margin: auto; padding: 0 32px; }
.invitation { width: 100%; margin: auto; }
.invitation img {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 1.25%, #000 98.75%, transparent), linear-gradient(to bottom, transparent, #000 .5%, #000 99.25%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 1.25%, #000 98.75%, transparent), linear-gradient(to bottom, transparent, #000 .5%, #000 99.25%, transparent);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
.event-info { display: flex; align-items: center; justify-content: center; gap: 36px; padding: 31px 0 37px; position: relative; }
.event-info::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 6px; background: url('assets/pencil-rule.svg') center / 100% 100% no-repeat; }
.date { display: flex; align-items: baseline; gap: 16px; font: 600 clamp(1.6rem, 3vw, 2.3rem)/1.5 var(--hand); color: var(--red); }
.date span { font: 400 .875rem/1.5 var(--body); color: var(--muted); }
.time { font: 600 clamp(1.55rem, 2.8vw, 2rem)/1.5 var(--hand); white-space: nowrap; }
.time span { color: var(--red); margin-inline: 6px; }
.small-star { display: block; width: 29px; height: 29px; color: var(--yellow); transform: rotate(-12deg); }
.small-star svg { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.information { width: min(100%, 824px); padding: 0 32px; margin: 0 auto; }
.information section { position: relative; padding: 54px 0 50px; border-bottom: 1px solid var(--line); }
h2 { display: flex; align-items: center; gap: 16px; margin-bottom: 27px; font: 600 clamp(1.7rem, 3vw, 2rem)/1.4 var(--hand); letter-spacing: .025em; }
.heading-mark { display: block; width: 34px; height: 27px; background: url('assets/hand-mark.svg') center / contain no-repeat; transform: rotate(-8deg); }
.program-flow { list-style: none; display: flex; flex-wrap: wrap; gap: 14px 0; padding: 0; margin: 0; font-size: 1.075rem; }
.program-flow li { display: inline-flex; align-items: center; white-space: nowrap; }
.program-flow li:not(:last-child)::after { content: '→'; color: var(--red); font: 600 1.25rem/1 var(--hand); margin: 0 15px; }
.program-flow .ceremony { color: var(--red); font-weight: 600; text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 9px; }
.venue { font-size: 1.375rem; font-weight: 600; }
.room { margin-top: 5px; font-size: 1rem; }
.address { margin-top: 22px; font-size: 1rem; }
.map-link { display: inline-flex; align-items: center; gap: 36px; min-height: 50px; margin-top: 25px; padding: 9px 22px; border: 1px solid var(--red); border-radius: 2px 5px 3px 2px; background: var(--red); color: var(--paper); text-decoration: none; font-size: .9375rem; }
.map-link span { font-size: 1.5rem; line-height: 1; }
.notes-list { list-style: none; padding: 0; margin: 0; }
.notes-list li { position: relative; padding-left: 24px; }
.notes-list li::before { content: ''; position: absolute; left: 1px; top: .76em; width: 8px; height: 7px; border: 1.8px solid var(--red); border-radius: 46% 55% 43% 51%; transform: rotate(-18deg); }
.notes-list li + li { margin-top: 15px; }
footer { padding: 23px 0 40px; text-align: right; }
footer a { display: inline-flex; align-items: center; gap: 18px; min-height: 44px; font-size: .8rem; text-decoration: none; }
footer a span { color: var(--red); font-size: 1.3rem; }
.doodle { position: absolute; display: block; background: center / contain no-repeat; pointer-events: none; user-select: none; }
.doodle-star { background-image: url('assets/doodle-star.svg'); }
.doodle-sprout { background-image: url('assets/doodle-sprout.svg'); }
.doodle-crown { background-image: url('assets/doodle-crown.svg'); }
.event-sprout { width: 37px; height: 43px; left: 34px; top: 27px; transform: rotate(-16deg); }
.program-crown { width: 84px; height: 68px; right: 8px; top: 34px; transform: rotate(12deg); }
.program-star { width: 34px; height: 34px; left: -66px; top: 111px; transform: rotate(-18deg); }
.location-sprout { width: 74px; height: 83px; right: 42px; top: 104px; transform: rotate(8deg); }
.location-star { width: 29px; height: 29px; right: 163px; bottom: 45px; transform: rotate(21deg); }
.notes-star { width: 53px; height: 53px; right: 21px; top: 40px; transform: rotate(-9deg); }
.notes-sprout { width: 36px; height: 43px; left: -69px; bottom: 38px; transform: rotate(-14deg); }
@media (max-width: 1000px) {
  .program-star, .notes-sprout { display: none; }
}
@media (hover: hover) {
  .site-header nav a:hover, footer a:hover { color: var(--red); }
  .map-link:hover { background: var(--ink); border-color: var(--ink); }
}
@media (max-width: 600px) {
  .site-header { padding: 10px 20px; gap: 16px; }
  .site-header nav { gap: 14px; }
  .site-header nav a { font-size: .8rem; }
  .hero { padding: 0 12px; }
  .event-info { flex-wrap: wrap; gap: 7px 15px; padding: 23px 12px 28px; }
  .date { width: 100%; justify-content: center; gap: 13px; font-size: 1.75rem; }
  .date span { font-size: .8rem; }
  .small-star { width: 22px; height: 22px; }
  .time { font-size: 1.6rem; }
  .information { padding-inline: 26px; }
  .information section { padding: 38px 0; }
  h2 { margin-bottom: 24px; font-size: 1.75rem; gap: 12px; }
  .heading-mark { width: 27px; height: 23px; }
  .program-flow { font-size: 1rem; gap: 13px 0; }
  .program-flow li:not(:last-child)::after { margin-inline: 11px; }
  .venue { font-size: 1.25rem; }
  .address { margin-top: 18px; }
  .event-sprout { display: none; }
  .program-crown { width: 52px; height: 44px; right: 3px; top: 29px; }
  .location-sprout { width: 43px; height: 49px; right: 9px; top: 28px; }
  .location-star { width: 26px; height: 26px; right: 22px; bottom: 46px; }
  .notes-star { width: 35px; height: 35px; right: 4px; top: 31px; }
  footer { padding-bottom: 24px; }
}
@media (max-width: 360px) {
  .site-header { padding-inline: 16px; }
  .site-header nav { gap: 7px; }
  .information { padding-inline: 22px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  .site-header, .map-link, footer, .skip-link, .doodle { display: none; }
  body { background: white; }
  .invitation img { -webkit-mask-image: none; mask-image: none; }
  .hero { max-width: 580px; }
  .information section { break-inside: avoid; padding-block: 24px; }
}
