:root {
  color-scheme: light;
  --cream: #fcf8f4;
  --white: #fffcf9;
  --ink: #422c36;
  --muted: #73646a;
  --berry: #a64360;
  --line: #ebdbd8;
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", "SimSun", Georgia, serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
}
* { box-sizing: border-box }
[hidden] { display: none !important }
html { scroll-behavior: smooth; scroll-padding-top: 85px }
body { margin: 0; background: var(--cream); color: var(--ink); font: 1rem/1.55 var(--sans) }
a { color: inherit; text-decoration: none }
button { color: inherit; font: inherit; cursor: pointer }
:focus-visible { outline: 2px solid var(--berry); outline-offset: 4px }
p, h1, h2, figure { margin: 0 }
.wrap { width: min(1120px, calc(100% - 72px)); margin-inline: auto }
.symbols { width: 0; height: 0; position: absolute; overflow: hidden; pointer-events: none }
.icon { width: 22px; height: 22px; display: block; flex: none; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round }
.top { position: sticky; z-index: 4; top: 0; background: #fcf8f4f2; border-bottom: 1px solid #ede1df; backdrop-filter: blur(14px) }
.top-inner { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 20px }
.brand, nav { display: flex; align-items: center }
.brand { gap: 9px; font: 700 1.25rem var(--serif); letter-spacing: .07em; white-space: nowrap }
.brand .icon { color: var(--berry); width: 24px; height: 24px }
nav { gap: 25px; font-size: .91rem; color: #634f57 }
nav a { white-space: nowrap; border-radius: 999px; padding: 7px 10px }
nav a:hover { background: #f6e6e9; color: var(--berry) }
.hero {
  position: relative; isolation: isolate; text-align: center; overflow: hidden;
  margin-top: 30px; padding: 34px 24px 24px; border: 1px solid #eedbde; border-radius: 28px;
  background:
    radial-gradient(ellipse at 18% 24%, #f7d5dd 0%, #f7d5dd00 48%),
    radial-gradient(ellipse at 88% 57%, #dcecec 0%, #dcecec00 54%),
    linear-gradient(119deg, #faedf0, #fff7ef 54%, #ebf4ee);
  box-shadow: 0 14px 40px -27px #906a7275;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background: url("grain.png"); mix-blend-mode: multiply; opacity: .075;
}
.hero-decoration { position: absolute; inset: 0; z-index: -1; pointer-events: none; font-family: Georgia, serif }
.hero-decoration span { position: absolute; line-height: 1 }
.hero-decoration span:nth-child(1) { left: 15%; top: 26%; color: #bd6985; font-size: 2.1rem; transform: rotate(9deg) }
.hero-decoration span:nth-child(2) { left: 22%; top: 41%; color: #b37489; font-size: .95rem }
.hero-decoration span:nth-child(3) { right: 13%; top: 25%; color: #749b98; font-size: 3.25rem; transform: rotate(14deg) }
.hero-decoration span:nth-child(4) { right: 21%; top: 44%; color: #9e777f; font-size: .7rem }
.hero-decoration span:nth-child(5) { left: 9%; top: 65%; color: #ae8790; font-size: 1.02rem }
.kicker { font: 600 .74rem/1.4 Georgia, serif; letter-spacing: .17em; text-transform: uppercase; color: var(--berry) }
.hero-kicker { display: flex; align-items: center; justify-content: center; gap: 10px }
.hero-kicker span { width: 24px; height: 1px; background: #b7647d; opacity: .62 }
h1 { font: 700 clamp(2.1rem, 5.25vw, 4.15rem)/1.18 var(--serif); letter-spacing: .075em; margin: 13px 0 26px; color: #49323e }
.couple { display: flex; align-items: center; justify-content: center; gap: clamp(18px, 4.2vw, 55px) }
.portrait img {
  display: block; width: clamp(94px, 12.5vw, 150px); height: auto; aspect-ratio: 1;
  border-radius: 50%; border: 6px solid #fffaf8; box-shadow: 0 4px 16px #6e56642a;
}
.portrait-sensen img { outline: 1px solid #9bc3c9 }
.portrait-jiamei img { outline: 1px solid #e4a6b4 }
.portrait figcaption { margin-top: 10px; font: 700 1.22rem/1.4 var(--serif); letter-spacing: .16em }
.couple-heart { display: grid; place-items: center; align-self: center; margin-top: -32px; width: 48px; height: 48px; border-radius: 50%; background: #fff9f5b8; border: 1px solid #fffdf9; box-shadow: 0 1px 8px #ae718324; color: #c06080; transform: rotate(-9deg) }
.couple-heart .icon { fill: #c06080 }
.anniversary {
  display: flex; align-items: center; text-align: left; justify-content: space-between; gap: 22px;
  max-width: 640px; padding: 15px 19px; margin: 26px auto 0; border: 1px solid #fffdfb; border-radius: 19px;
  background: #fffdfaab; box-shadow: 0 5px 16px #89667513;
}
.anniversary-copy { display: flex; align-items: center; gap: 13px }
.anniversary-icon, .section-icon { display: grid; place-items: center; width: 45px; height: 45px; border-radius: 14px; color: var(--berry); background: #f6e2e8; flex: none }
.anniversary h2 { font: 700 1.25rem var(--serif); white-space: nowrap }
.anniversary time { color: var(--muted); font: 500 .9rem/1.5 Georgia, serif; letter-spacing: .12em }
.clock { text-align: center }
#clock-title { color: #75545f; font-size: .88rem; margin-bottom: 6px }
.clock-grid { display: grid; grid-template-columns: repeat(4, minmax(51px, auto)); gap: 7px }
.clock-grid div { padding: 4px 7px; border-radius: 9px; background: #fffaf9; border: 1px solid #f2e1e3; text-align: center; white-space: nowrap }
.clock-grid strong { font: 600 clamp(1.2rem, 2.7vw, 1.65rem)/1.1 Georgia, serif; color: var(--berry); font-variant-numeric: lining-nums tabular-nums }
.clock-grid span { margin-left: 3px; font-size: .77rem; color: var(--muted) }
#next-anniversary { margin-top: 6px; color: var(--muted); font-size: .8rem }
.content-section { padding-top: 48px }
.section-heading, .section-title, .book-link { display: flex; align-items: center }
.section-heading { justify-content: space-between; gap: 10px; margin-bottom: 19px }
.section-title { gap: 13px }
.section-title h2 { font: 700 clamp(1.55rem, 3.1vw, 2.12rem)/1.25 var(--serif); margin-top: 2px }
.mint { color: #3d746d; background: #dbece6 }
.book-link { gap: 8px; font-size: .88rem; border: 1px solid var(--line); background: #fffaf8; padding: 8px 12px; border-radius: 999px; white-space: nowrap }
.book-link .icon { width: 16px; height: 16px; color: var(--berry) }
.book-link:hover { border-color: #c78c9d }
#month-dialog {
  width: min(990px, calc(100% - 34px)); max-width: none; max-height: 90dvh;
  padding: 0; border: 1px solid #e8d7d7; border-radius: 20px;
  color: var(--ink); background: #faf5ef; box-shadow: 0 20px 78px #34242f50;
  overscroll-behavior: contain;
}
#month-dialog::backdrop { background: #3a2a36a8; backdrop-filter: blur(3px) }
body:has(#month-dialog[open]) { overflow: hidden }
.month-dialog-inner { padding: 0 22px 20px }
.month-dialog-header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  position: sticky; top: 0; z-index: 1; padding: 16px 0;
  background: #faf5eff5; border-bottom: 1px solid #e8d7d7; backdrop-filter: blur(12px);
}
#month-dialog-title { font: 700 clamp(1.65rem, 3.5vw, 2.3rem)/1.22 var(--serif) }
#month-dialog-count { font-size: .88rem; color: var(--berry); margin-bottom: 4px }
#month-dialog-close {
  display: grid; place-items: center; width: 42px; height: 42px; flex: none;
  border-radius: 50%; border: 1px solid #e8d7d7; background: var(--white); color: var(--berry);
}
#month-dialog-close:hover { background: #f6e6e9 }
#month-dialog-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 20px; padding: 20px 0 }
#month-dialog-grid[data-count="1"] { grid-template-columns: minmax(0, 1fr) }
.month-expanded-photo {
  margin: 0 auto; min-width: 0; max-width: 100%; width: fit-content; padding: 8px;
  border-radius: 7px; border: 1px solid #eee0d9; background: #fffcf8; box-shadow: 0 4px 12px #62414b12;
}
.month-expanded-photo a { display: block; cursor: zoom-in; border-radius: 2px }
.month-expanded-photo img { display: block; width: auto; height: auto; max-width: 100%; max-height: min(53dvh, 510px); object-fit: contain; border-radius: 2px }
#month-dialog-grid[data-count="1"] img { max-height: min(58dvh, 640px) }
.month-expanded-photo figcaption { padding: 11px 4px 4px; text-align: center; color: #5f4a53; font-size: .96rem; line-height: 1.6 }
#month-dialog-album { width: fit-content; margin-inline: auto }
.checklist-panel { background: var(--white); border: 1px solid var(--line); border-radius: 19px; box-shadow: 0 5px 20px #6b4b5511; padding: 22px }
.checklist-top { display: flex; gap: 22px; justify-content: space-between; align-items: center; margin-bottom: 18px }
.checklist-meter { max-width: 435px; flex: 1; min-width: 110px }
#checklist-count { font-weight: 700; font-size: .9rem; color: #623e4b; margin-bottom: 7px }
#checklist-progress { appearance: none; display: block; width: 100%; border: 0; height: 8px; border-radius: 99px; overflow: hidden; background: #f0e2e6; color: var(--berry) }
#checklist-progress::-webkit-progress-bar { background: #f0e2e6 }
#checklist-progress::-webkit-progress-value { background: var(--berry); border-radius: 99px }
#checklist-progress::-moz-progress-bar { background: var(--berry); border-radius: 99px }
.filters { display: flex; gap: 3px; padding: 3px; background: #f6edee; border-radius: 999px }
.filters button { background: transparent; border: 1px solid transparent; padding: 5px 12px; white-space: nowrap; border-radius: 999px; font-size: .88rem }
.filters button[aria-pressed="true"] { color: var(--berry); background: #fffcfa; border-color: #eedee2; box-shadow: 0 1px 3px #623e4b14 }
.checklist-items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; max-height: 425px; overflow: auto; scrollbar-color: #c79da8 #f5eded; align-content: start; padding: 2px 7px 3px 2px }
.checklist-item { min-height: 48px; display: flex; align-items: center; gap: 9px; border: 1px solid #f0e1e3; border-radius: 9px; padding: 8px; background: #fffbfa; font-size: .94rem; cursor: pointer }
.checklist-item:hover { border-color: #c78c9d }
.checklist-item:has(input:checked) { background: #f5e8ec; color: #6d4a57 }
.checklist-item input { accent-color: var(--berry); inline-size: 17px; block-size: 17px; margin: 0; flex: none; cursor: pointer }
.checklist-item input:checked + span { text-decoration: line-through; text-decoration-color: #a46d80 }
.empty { color: var(--muted); padding: 18px 0; text-align: center }
.storage { margin-top: 12px; color: var(--muted); font-size: .88rem }
.foot { display: flex; justify-content: center; align-items: center; gap: 7px; color: #786571; font-size: .9rem; padding: 28px 0 }
.foot .icon { width: 16px; color: var(--berry) }
@media (max-width: 850px) {
  .wrap { width: calc(100% - 40px) }
  .checklist-items { grid-template-columns: repeat(2, minmax(0, 1fr)) }
}
@media (max-width: 675px) {
  html { scroll-padding-top: 102px }
  .top-inner { height: auto; min-height: 77px; flex-direction: column; justify-content: center; gap: 2px; padding-block: 6px }
  nav { justify-content: center; flex-wrap: wrap; gap: 3px }
  nav a { padding: 5px 7px }
}
@media (max-width: 590px) {
  .wrap { width: calc(100% - 28px) }
  .brand { font-size: 1rem; gap: 5px; letter-spacing: 0 }
  .brand .icon { width: 19px; height: 19px }
  nav { gap: 2px; font-size: .83rem }
  nav a { padding: 5px 6px }
  .hero { margin-top: 13px; padding: 24px 12px 15px; border-radius: 20px }
  h1 { margin: 11px 0 19px; letter-spacing: .025em; font-size: clamp(1.75rem, 7.8vw, 2.5rem) }
  .hero-decoration span:nth-child(1) { left: 6%; top: 33%; font-size: 1.1rem }
  .hero-decoration span:nth-child(2), .hero-decoration span:nth-child(5) { display: none }
  .hero-decoration span:nth-child(3) { right: 6%; top: 37%; font-size: 1.6rem }
  .hero-decoration span:nth-child(4) { right: 8%; top: 54% }
  .couple { gap: 19px }
  .portrait img { border-width: 5px }
  .portrait figcaption { font-size: 1.07rem }
  .couple-heart { width: 36px; height: 36px; margin-top: -28px }
  .couple-heart .icon { width: 18px }
  .anniversary { flex-direction: column; gap: 9px; padding: 11px 7px 13px; margin-top: 18px }
  .anniversary-copy { gap: 9px }
  .anniversary-copy > div { display: flex; align-items: center; gap: 8px }
  .anniversary-icon { width: 30px; height: 30px; border-radius: 8px }
  .anniversary-icon .icon { width: 17px }
  .anniversary h2 { font-size: 1.08rem }
  .anniversary time { font-size: .83rem }
  .clock-grid { gap: 5px }
  .content-section { padding-top: 31px }
  .section-heading { margin-bottom: 13px }
  .section-title { gap: 9px }
  .section-icon { width: 36px; height: 36px; border-radius: 10px }
  .section-icon .icon { width: 18px }
  .kicker { font-size: .68rem }
  .book-link { gap: 4px; padding: 6px 9px; font-size: .8rem }
  .book-link .icon { width: 13px }
  .month-dialog-inner { padding: 0 12px 14px }
  .month-dialog-header { padding: 12px 0 }
  #month-dialog-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 14px 0 }
  .month-expanded-photo figcaption { font-size: .9rem; padding-top: 8px }
  .checklist-panel { padding: 13px }
  .checklist-top { gap: 6px; margin-bottom: 11px }
  .filters button { padding: 4px 7px; font-size: .8rem }
  .checklist-item { gap: 6px; padding: 7px 5px; font-size: .86rem }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto } }
