:root {
  color-scheme: light;
  --paper: #faf4e6;
  --ivory: #fffaf1;
  --ink: #203b31;
  --muted: #5d6452;
  --rust: #9d3f2d;
  --line: #d8cbb3;
  --gold: #f3d086;
  --sans: "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
  --serif: "Songti TC", "Noto Serif TC", "PMingLiU", "PingFang TC", serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.65 var(--sans); }
h1, h2, h3, p, figure { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 800; }
a { color: inherit; text-underline-offset: .25em; }
button { font: inherit; color: inherit; }
button:not([hidden]) { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #a34d28; outline-offset: 4px; }
img { display: block; max-inline-size: 100%; }
.wrap { width: min(1120px, 100% - 104px); margin-inline: auto; }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip, .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { inset: 8px auto auto 8px; z-index: 2; width: auto; height: auto; clip-path: none; padding: 10px 15px; background: var(--ivory); }
.masthead { min-height: 72px; display: flex; justify-content: space-between; gap: 16px; align-items: center; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; font: 700 1.18rem/1 Georgia, serif; text-decoration: none; }
.brand svg { width: 25px; height: 25px; color: var(--rust); }
.masthead-right { display: flex; align-items: center; gap: 22px; }
.masthead-right a { display: inline-flex; align-items: center; gap: 5px; font-size: .91rem; min-height: 44px; text-decoration: none; font-weight: 700; }
.masthead-right a:hover { text-decoration: underline; }
.edition, .step, .post-no { font: 700 .78rem/1.45 ui-monospace, monospace; }
.edition { color: var(--muted); letter-spacing: .11em; }
.hero { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, .88fr); align-items: center; gap: 7.5%; padding-block: 45px 62px; }
.hero-copy { padding-block: 12px; }
.eyebrow { color: var(--rust); font-size: .83rem; line-height: 1.6; font-weight: 800; letter-spacing: .07em; }
.eyebrow span { opacity: .7; }
.hero-eyebrow { padding-bottom: 16px; }
h1 { font-size: 6rem; line-height: 1.03; }
h1 > span { display: block; white-space: nowrap; }
.dot { color: var(--rust); font-size: .61em; }
.lede { margin-block: 24px 13px; font-weight: 750; font-size: 1.29rem; line-height: 1.62; }
.intro { color: var(--muted); max-width: 25em; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 25px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 9px; padding: 10px 16px; border: 1px solid var(--ink); border-radius: 4px; font-size: .94rem; font-weight: 800; text-decoration: none; transition: background .16s, color .16s; }
.button svg { width: 16px; height: 16px; flex: 0 0 16px; }
.primary { background: var(--ink); color: var(--ivory); }
.primary:hover { background: #305146; }
.secondary { background: transparent; color: var(--ink); }
.secondary:hover { background: #eee4d1; }
.share-status { min-height: 1.35em; margin-top: 6px; font-size: .81rem; color: var(--ink); }
.cover { position: relative; margin: 0 13px 0 0; padding: 9px 9px 0; background: var(--ivory); border: 1px solid var(--line); border-radius: 5px; box-shadow: 5px 8px 0 #e7d9bd, 0 9px 28px #54321315; }
.cover img { width: 100%; height: auto; aspect-ratio: 4 / 4.7; object-fit: cover; object-position: center 76%; border-radius: 2px; background: #2c383a; }
.cover figcaption, .fridge-photo figcaption { display: flex; justify-content: space-between; gap: 8px; padding: 9px 2px; font-size: .8rem; font-weight: 700; color: var(--muted); }
.stamp { position: absolute; right: -15px; top: 23px; display: grid; place-content: center; justify-items: center; gap: 3px; width: 78px; height: 78px; border-radius: 50%; border: double 4px var(--rust); background: var(--gold); color: #723322; transform: rotate(11deg); font-size: .66rem; font-weight: 900; }
.stamp svg { width: 27px; height: 27px; }
.day { background: #eee4cd; border-block: 1px solid var(--line); }
.day-inner { padding-block: 33px 37px; display: grid; grid-template-columns: minmax(190px, .8fr) minmax(0, 2.1fr); align-items: start; gap: 24px; }
.day h2 { font-size: 1.92rem; line-height: 1.3; margin-top: 4px; }
.day ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; padding: 0; margin: 0; list-style: none; }
.day li { padding-left: 15px; border-left: 1px solid #bfb094; }
.step { display: block; color: #763928; margin-bottom: 5px; }
.day strong { display: block; line-height: 1.45; }
.day li p { margin-top: 4px; font-size: .88rem; color: #515946; line-height: 1.55; }
.album { padding-block: 74px 83px; scroll-margin-top: 15px; }
.album-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.album-heading h2, .home h2, .end h2 { font-size: 2.75rem; line-height: 1.22; margin-block: 4px 0; }
.album-heading > p { color: var(--muted); font-size: .94rem; }
.postcards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 21px; }
.postcard { padding: 8px 8px 0; border: 1px solid var(--line); border-radius: 5px; background: var(--ivory); box-shadow: 0 3px 0 #3b352214; }
.photo { display: block; position: relative; border-radius: 2px; overflow: hidden; background: #e5ddca; }
.photo img { width: 100%; height: auto; transition: transform .24s; }
.photo:hover img { transform: scale(1.025); }
.zoom { position: absolute; bottom: 8px; right: 8px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 3px; color: var(--ink); background: var(--ivory); }
.zoom svg { width: 21px; height: 21px; }
.postcard figcaption { display: flex; align-items: start; gap: 12px; padding: 10px 6px 13px; }
.post-no { color: var(--rust); padding-top: 4px; }
.postcard h3 { font-size: 1.13rem; line-height: 1.5; }
.postcard figcaption p { color: var(--muted); font-size: .85rem; line-height: 1.5; }
.home { background: #244136; color: var(--ivory); }
.home-inner { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr); gap: 7%; align-items: center; padding-block: 56px; }
.home .eyebrow, .margin-note { color: var(--gold); }
.home h2 + p { margin-top: 12px; color: #f0e8d4; }
.margin-note { font-family: var(--serif); font-size: 1.17rem; font-weight: 700; margin-top: 17px; }
.fridge-photo { position: relative; padding: 7px 7px 0; border-radius: 3px; background: var(--ivory); box-shadow: 4px 7px 0 #162c25; }
.fridge-photo::after { content: ""; width: 58px; height: 17px; background: var(--gold); opacity: .86; position: absolute; top: -7px; left: calc(50% - 29px); transform: rotate(-6deg); }
.end { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; padding-block: 57px 41px; }
.end h2 + p { color: var(--muted); margin-top: 11px; }
.permalink { display: block; width: fit-content; margin-top: 9px; font-size: .84rem; overflow-wrap: anywhere; }
.footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 2px 15px; min-height: 65px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.footer nav { display: flex; flex-wrap: wrap; gap: 2px 19px; }
.footer a { display: inline-flex; align-items: center; min-height: 44px; }
dialog { width: min(960px, 100% - 32px); max-height: calc(100% - 32px); overflow: auto; border: 1px solid var(--line); border-radius: 6px; padding: 12px; background: var(--ivory); color: var(--ink); }
dialog::backdrop { background: #172921dc; }
body:has(dialog[open]) { overflow: hidden; }
.viewer-bar, .viewer-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.viewer-bar { margin-bottom: 8px; }
.viewer-bar h2 { font: 800 1.05rem/1.45 var(--sans); }
.viewer-bar button, .viewer-nav button { min-width: 44px; min-height: 44px; border: 1px solid var(--line); border-radius: 3px; padding: 5px 10px; background: transparent; font-weight: 700; }
.viewer-bar button:hover, .viewer-nav button:hover { background: #eee4d1; }
#viewer-image { width: 100%; height: auto; max-height: calc(100vh - 160px); max-height: calc(100dvh - 160px); object-fit: contain; background: #dfd5c2; }
.viewer-nav { justify-content: center; margin-top: 8px; }
#viewer-count { min-width: 70px; text-align: center; font-size: .88rem; }

@media (max-width: 1080px) {
  .wrap { width: calc(100% - 72px); }
  h1 { font-size: 5rem; }
  .hero { gap: 6%; }
}
@media (max-width: 870px) {
  .wrap { width: calc(100% - 56px); }
  h1 { font-size: 4.25rem; }
  .hero { gap: 4%; }
  .day-inner { grid-template-columns: minmax(0, 1fr); gap: 15px; }
  .album-heading h2, .home h2, .end h2 { font-size: 2.32rem; }
}
@media (max-width: 740px) {
  .wrap { width: calc(100% - 44px); }
  .masthead { min-height: 58px; }
  .edition { display: none; }
  .hero { grid-template-columns: 1fr; gap: 14px; padding-block: 29px 37px; }
  h1 { font-size: 3.75rem; }
  .hero-copy { padding: 0; }
  .lede { margin-block: 14px 7px; font-size: 1.14rem; }
  .intro { line-height: 1.55; }
  .actions { margin-top: 17px; }
  .cover { margin-inline: 0 9px; }
  .cover img { aspect-ratio: 4 / 3.7; object-position: center 74%; }
  .stamp { width: 63px; height: 63px; top: 15px; right: -10px; }
  .stamp svg { width: 21px; height: 21px; }
  .album { padding-block: 47px 52px; }
  .postcards { gap: 13px; }
  .home-inner { padding-block: 39px; }
  .end { padding-block: 39px 23px; }
}
@media (max-width: 560px) {
  .day ol, .postcards, .home-inner, .end { grid-template-columns: minmax(0, 1fr); }
  .day-inner { padding-block: 25px 28px; }
  .day ol { gap: 14px; }
  .album-heading { align-items: start; flex-direction: column; gap: 8px; margin-bottom: 18px; }
  .album-heading > p br { display: none; }
  .home-inner { gap: 21px; }
  .home-inner > div { grid-row: 1; }
  .footer { padding-block: 12px; }
}
@media (max-width: 355px) {
  .wrap { width: calc(100% - 32px); }
  .masthead-right a { font-size: .8rem; }
  h1 { font-size: 3.35rem; }
  .button { padding-inline: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
