:root {
  --wine:#582838;
  --wine-deep:#421d2b;
  --rose:#9c4e60;
  --paper:#f6eff0;
  --ink:#492f36;
  --muted:#765660;
  --line:#d6bcc3;
  --white:#fff7f6;
  --serif:"Songti SC","STSong","Noto Serif CJK SC",serif;
  --sans:"PingFang SC","Microsoft YaHei",sans-serif;
}
* {
  box-sizing:border-box;
}
html {
  scroll-behavior:smooth;
  scroll-padding-top:90px;
}
body {
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:var(--serif);
  -webkit-font-smoothing:antialiased;
}
a {
  color:inherit;
  text-underline-offset:6px;
}
button,a,summary {
  -webkit-tap-highlight-color:transparent;
}
a:focus-visible,summary:focus-visible {
  outline:2px solid currentColor;
  outline-offset:7px;
}
h1,h2,p,figure {
  margin:0;
}
h1,h2 {
  text-wrap:balance;
  font-weight:400;
}
p {
  text-wrap:pretty;
}
::selection {
  background:#dab5bd;
  color:#421d2b;
}
.skip-link {
  position:fixed;
  left:16px;
  top:-100px;
  padding:14px;
  background:var(--white);
  z-index:30;
}
.skip-link:focus {
  top:16px;
}
.topbar {
  position:absolute;
  inset:0 0 auto;
  z-index:10;
  display:flex;
  justify-content:space-between;
  gap:20px;
  padding:calc(24px + env(safe-area-inset-top)) clamp(24px,5vw,80px);
  color:#eed7dd;
  font-family:var(--sans);
  font-size:12px;
}
.topbar a {
  display:inline-flex;
  align-items:center;
  min-height:44px;
  text-decoration:none;
}
.topbar a:last-child {
  gap:16px;
}
.cover {
  position:relative;
  min-height: min(900px,100svh);
  padding:150px max(6vw,24px) 130px;
  background:var(--wine);
  color:var(--white);
  display:grid;
  grid-template-columns:1.1fr 1fr;
  align-items:center;
  gap:6vw;
  overflow:hidden;
}
.cover-copy {
  justify-self:end;
  max-width:620px;
  width:100%;
}
.cover-date {
  font-family:var(--sans);
  font-size:12px;
  color:#e2bcc7;
  font-variant-numeric:tabular-nums;
}
.cover-date span {
  padding:0 20px;
}
.cover h1 {
  font-size:clamp(44px,5.6vw,80px);
  line-height:1.35;
  margin:30px 0;
}
.cover-intro {
  font-size:clamp(17px,1.6vw,21px);
  line-height:1.9;
  color:#ead1d8;
}
.start-walk {
  display:inline-flex;
  align-items:center;
  gap:44px;
  margin-top:44px;
  min-height:48px;
  padding-block:12px;
  border-bottom:1px solid #bc8998;
  text-decoration:none;
  font-size:15px;
}
.start-walk span {
  transition:transform .2s ease-out;
}
.start-walk:hover span {
  transform:translateY(5px);
}
.cover-bottom {
  position:absolute;
  bottom:34px;
  left:6vw;
  font-size:12px;
  color:#d7afb9;
}
.cover-memento {
  width:min(100%,390px);
  height:390px;
  position:relative;
  margin-top:50px;
  transform:rotate(5deg);
}
.memento-letter {
  position:absolute;
  inset:0 25px 75px;
  background:#f7e9e7;
  color:var(--wine);
  padding:35px 30px;
  transform:rotate(-9deg);
  box-shadow:0 4px 8px #30101d30;
}
.memento-letter>span {
  font-size:12px;
}
.memento-letter p {
  font-size:23px;
  line-height:1.8;
  margin:24px 0;
}
.memento-sign {
  font-size:13px!important;
}
.memento-envelope {
  position:absolute;
  inset:145px 0 20px;
  background:#bd8897;
  box-shadow:0 5px 8px #2a0b1840;
}
.memento-envelope:before,.memento-envelope:after {
  content:"";
  position:absolute;
  inset:0;
  background:#ce9eaa;
  clip-path:polygon(0 0,55% 55%,0 100%);
}
.memento-envelope:after {
  background:#d6a8b3;
  clip-path:polygon(100% 0,45% 55%,100% 100%);
}
.memento-fold {
  position:absolute;
  inset:0;
  background:#ddb7bf;
  clip-path:polygon(0 100%,50% 40%,100% 100%);
  z-index:1;
}
.seal {
  display:grid;
  place-items:center;
  width:64px;
  height:64px;
  border-radius:50%;
  background:#803e51;
  color:#f9dee4;
  border:4px double #b97587;
  font-size:25px;
  font-style:italic;
  box-shadow:0 3px 5px #481b2a40;
}
.memento-envelope .seal {
  position:absolute;
  left:calc(50% - 32px);
  top:42%;
  z-index:2;
}
.memento-caption {
  position:absolute;
  bottom:-20px;
  right:0;
  font-size:12px;
  color:#e5c4ce;
  transform:rotate(-5deg);
}
.journey-intro {
  text-align:center;
  padding:110px 24px 80px;
  scroll-margin-top:0;
}
.journey-intro>p:first-child {
  font-size:28px;
  margin-bottom:22px;
}
.journey-intro>p:last-child {
  font-size:16px;
  color:var(--muted);
  line-height:2;
}
.journey {
  max-width:1080px;
  margin:auto;
  position:relative;
  padding:20px 32px 70px;
}
.journey-path {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  pointer-events:none;
  overflow:visible;
}
.path-thread {
  stroke:#d6bdc5;
  stroke-width:1;
  fill:none;
  stroke-dasharray:2 7;
}
.footprints use {
  fill:#955266;
  opacity:.15;
  transition:opacity .4s ease-out;
}
.footprints use.walked {
  opacity:.78;
}
.memory {
  position:relative;
  display:grid;
  grid-template-columns:1fr 1fr;
  column-gap:140px;
  min-height:460px;
  padding:44px 0 70px;
}
.memory-copy {
  grid-column:1;
  min-width:0;
}
.memory:nth-of-type(even) .memory-copy {
  grid-column:2;
}
.path-anchor {
  position:absolute;
  top:42px;
  left:calc(50% - 21px);
  width:42px;
  height:42px;
  background:var(--paper);
  display:grid;
  place-items:center;
  border:1px solid #c6a2ae;
  border-radius:50%;
  color:var(--muted);
  font-size:12px;
  font-family:var(--sans);
  font-variant-numeric:tabular-nums;
  z-index:1;
}
.memory.is-current .path-anchor {
  background:var(--wine);
  color:var(--white);
  border-color:var(--wine);
}
.memory-date {
  font-family:var(--sans);
  font-size:12px;
  color:var(--muted);
  margin-bottom:22px;
  line-height:1.8;
}
.memory h2 {
  font-size:clamp(26px,2.8vw,37px);
  line-height:1.5;
  margin-bottom:28px;
}
.memory-body {
  font-size:16px;
  line-height:2.15;
  color:#66474f;
}
.memory blockquote {
  margin:0 0 24px;
  padding:0;
}
.memory blockquote p {
  font-size:20px;
  line-height:1.9;
  color:#803e51;
}
.memory cite {
  display:block;
  margin-top:8px;
  font:12px var(--sans);
  color:var(--muted);
}
.memory-note {
  margin-top:24px;
  font-size:17px;
  color:#7d3b4e;
  line-height:1.9;
}
.text-link {
  display:inline-flex;
  gap:24px;
  min-height:44px;
  align-items:center;
  margin-top:20px;
  font-size:12px;
  font-family:var(--sans);
  text-decoration:none;
  border-bottom:1px solid var(--line);
}
.text-link:hover {
  color:var(--rose);
}
.train-ticket {
  margin-top:35px;
  padding:24px 22px;
  background:#ecdee1;
  border-block:1px solid #c9a8b2;
  transform:rotate(-3deg);
  position:relative;
}
.train-ticket:before,.train-ticket:after {
  content:"";
  position:absolute;
  top:50%;
  width:16px;
  height:16px;
  border-radius:50%;
  background:var(--paper);
  left:-8px;
}
.train-ticket:after {
  left:auto;
  right:-8px;
}
.train-ticket>span {
  font:11px var(--sans);
  color:var(--muted);
}
.train-ticket strong {
  display:flex;
  justify-content:space-between;
  font-size:22px;
  font-weight:400;
  margin:20px 0;
}
.train-ticket i {
  font-style:normal;
  color:var(--rose);
}
.train-ticket>div {
  display:flex;
  justify-content:space-between;
  gap:15px;
  font:10px var(--sans);
  color:var(--muted);
}
.memory--cinema {
  min-height:460px;
}
.memory--keepsake blockquote p {
  font-size:18px;
}
.memory-photo {
  margin:32px 0 0;
  width:min(100%,300px);
  padding:10px 10px 18px;
  background:#fffaf9;
  transform:rotate(-3deg);
  box-shadow:0 3px 7px #492f3620;
}
.memory:nth-of-type(even) .memory-photo {
  transform:rotate(3deg);
}
.memory-photo img {
  display:block;
  width:100%;
  height:auto;
  max-height:350px;
  object-fit:cover;
}
.memory-photo figcaption {
  font-size:12px;
  color:var(--muted);
  text-align:center;
  margin-top:14px;
}
.memory--flowers .memory-photo img {
  aspect-ratio:4/5;
  object-fit:cover;
}
.memory--breakfast {
  padding-top:70px;
  min-height:420px;
}
.memory--breakfast .path-anchor {
  top:70px;
}
.arrival {
  padding:100px 24px 80px;
  background:#ead8df;
  text-align:center;
}
.arrival-date {
  font:12px var(--sans);
  color:var(--muted);
}
.arrival>h2 {
  font-size:clamp(34px,5vw,54px);
  line-height:1.5;
  margin:28px 0;
}
.arrival-intro {
  font-size:16px;
  line-height:2;
  color:#6b4854;
}
.letter-envelope {
  margin:64px auto 0;
  max-width:860px;
}
.letter-envelope summary {
  display:block;
  width:min(100%,380px);
  margin:auto;
  cursor:pointer;
  list-style:none;
}
.letter-envelope summary::-webkit-details-marker {
  display:none;
}
.envelope-visual {
  position:relative;
  display:block;
  height:235px;
  background:#be8b9c;
  box-shadow:0 4px 8px #50213325;
  isolation:isolate;
}
.envelope-visual:before,.envelope-visual:after {
  content:"";
  position:absolute;
  inset:0;
  background:#cfa3b1;
  clip-path:polygon(0 0,100% 100%,0 100%);
  z-index:1;
}
.envelope-visual:after {
  background:#d9b3bf;
  clip-path:polygon(100% 0,0 100%,100% 100%);
}
.envelope-flap {
  position:absolute;
  inset:0;
  background:#e6c6cf;
  clip-path:polygon(0 0,100% 0,50% 57%);
  transform-origin:top;
  transition:transform .6s ease-out;
  z-index:2;
}
.envelope-visual .seal {
  position:absolute;
  left:calc(50% - 32px);
  top:calc(50% - 20px);
  z-index:3;
  transition:opacity .2s ease-out;
}
.envelope-note {
  position:absolute;
  inset:25px 30px;
  background:#fff7f6;
  color:var(--wine);
  padding:24px;
  font-size:22px;
  transition:transform .6s ease-out;
}
.open-label,.opened-label {
  display:block;
  margin-top:26px;
  font-size:14px;
  color:var(--wine);
  padding:12px;
}
.opened-label {
  display:none;
}
.letter-envelope[open] .envelope-flap {
  transform:rotateX(180deg);
  z-index:0;
}
.letter-envelope[open] .seal {
  opacity:0;
}
.letter-envelope[open] .envelope-note {
  transform:translateY(-50px);
}
.letter-envelope[open] .open-label {
  display:none;
}
.letter-envelope[open] .opened-label {
  display:block;
}
.letter-paper {
  margin-top:50px;
  padding:clamp(30px,7vw,90px);
  background:#fffaf9;
  text-align:left;
  box-shadow:0 3px 8px #492f3610;
  scroll-margin-top:45px;
}
.letter-heading {
  padding-bottom:48px;
  margin-bottom:45px;
  border-bottom:1px solid #deccd0;
}
.letter-heading>p {
  font-size:12px;
  color:var(--muted);
}
.letter-heading h2 {
  font-size:clamp(29px,4vw,42px);
  line-height:1.5;
  margin:24px 0;
}
.letter-heading time {
  font:11px var(--sans);
  color:var(--muted);
}
.letter-prose {
  font-size:18px;
  line-height:2.15;
  max-width:36em;
  margin:auto;
  overflow-wrap:break-word;
}
.letter-prose p {
  margin:0 0 1.65em;
}
.letter-prose p:first-child {
  font-size:22px;
  margin-bottom:2em;
}
.letter-prose p:last-child {
  color:var(--wine);
  font-size:21px;
  margin-block:2.5em 0;
}
.letter-signature {
  text-align:right;
  font-size:21px;
  line-height:2;
  margin-top:55px;
}
.letter-signature span {
  display:block;
  font:11px var(--sans);
  color:var(--muted);
  margin-top:12px;
}
.ending {
  padding:90px 24px 120px;
  text-align:center;
  background:var(--wine);
  color:#f3dce3;
}
.ending>p {
  font-size:clamp(23px,3vw,32px);
  line-height:1.7;
}
.ending nav {
  display:flex;
  justify-content:center;
  gap:15px 30px;
  flex-wrap:wrap;
  margin:36px 0 60px;
}
.ending a {
  font-size:12px;
  font-family:var(--sans);
  display:inline-flex;
  align-items:center;
  min-height:44px;
  text-decoration:none;
  border-bottom:1px solid #976474;
}
.ending>span {
  font-size:12px;
  color:#dbb4c1;
}
.walk-progress {
  position:fixed;
  bottom:max(20px,env(safe-area-inset-bottom));
  left:50%;
  transform:translateX(-50%);
  background:var(--wine-deep);
  color:#fbeaf0;
  padding:12px 19px;
  display:flex;
  gap:16px;
  align-items:center;
  z-index:20;
  box-shadow:0 3px 7px #421d2b20;
  font:11px var(--sans);
  border-radius:30px;
  opacity:0;
  transition:opacity .2s ease-out;
  pointer-events:none;
  white-space:nowrap;
}
.walk-progress.visible {
  opacity:1;
}
.progress-day b {
  font-variant-numeric:tabular-nums;
  font-weight:400;
}
.progress-track {
  display:block;
  width:96px;
  height:1px;
  background:#956776;
}
.progress-track>span {
  display:block;
  width:100%;
  height:100%;
  background:#f1c5d4;
  transform-origin:left;
  transform:scaleX(0);
}
@media(min-width:1400px) {
  .cover {
    padding-inline:calc((100vw - 1220px)/2);
  }
  .cover-bottom {
    left:calc((100vw - 1220px)/2);
  }
}
@media(max-width:700px) {
  html {
    scroll-padding-top:35px;
  }
  .topbar {
    padding:calc(12px + env(safe-area-inset-top)) 24px;
    font-size:11px;
  }
  .cover {
    min-height:100svh;
    padding:112px 28px 70px;
    grid-template-columns:1fr;
    gap:25px;
  }
  .cover-copy {
    justify-self:start;
  }
  .cover h1 {
    font-size:clamp(38px,10.5vw,65px);
    margin:24px 0;
  }
  .cover-intro {
    font-size:16px;
  }
  .cover-date {
    font-size:10px;
  }
  .cover-date span {
    padding:0 12px;
  }
  .start-walk {
    margin-top:24px;
    font-size:13px;
    gap:45px;
  }
  .cover-memento {
    width:245px;
    height:252px;
    justify-self:end;
    margin:0 14px 32px 0;
  }
  .memento-letter {
    inset:0 16px 45px;
    padding:22px 19px;
  }
  .memento-letter>span {
    font-size:10px;
  }
  .memento-letter p {
    font-size:17px;
    line-height:1.75;
    margin:16px 0;
  }
  .memento-sign {
    font-size:10px!important;
  }
  .memento-envelope {
    inset:95px 0 5px;
  }
  .memento-envelope .seal {
    width:48px;
    height:48px;
    left:calc(50% - 24px);
    font-size:20px;
  }
  .memento-caption {
    font-size:10px;
    bottom:-23px;
  }
  .cover-bottom {
    font-size:10px;
    left:28px;
    bottom:24px;
  }
  .journey-intro {
    padding:80px 25px 55px;
  }
  .journey-intro>p:first-child {
    font-size:25px;
  }
  .journey-intro>p:last-child {
    font-size:14px;
  }
  .journey {
    padding:15px 24px 40px;
  }
  .memory {
    display:block;
    min-height:0;
    padding:35px 0 80px 52px;
  }
  .path-anchor {
    left:-7px;
    top:34px;
    width:33px;
    height:33px;
    font-size:10px;
  }
  .memory-date {
    font-size:10px;
    margin-bottom:18px;
  }
  .memory h2 {
    font-size:clamp(24px,6.4vw,34px);
    margin-bottom:25px;
    line-height:1.55;
  }
  .memory-body {
    font-size:15px;
    line-height:2.1;
  }
  .memory blockquote p {
    font-size:18px;
  }
  .memory--keepsake blockquote p {
    font-size:16px;
  }
  .memory-note {
    font-size:15px;
  }
  .memory-photo {
    width:min(100%,280px);
  }
  .train-ticket {
    padding:20px 16px;
  }
  .train-ticket strong {
    font-size:18px;
  }
  .train-ticket>div {
    font-size:9px;
    gap:8px;
  }
  .memory--breakfast .path-anchor {
    top:34px;
  }
  .arrival {
    padding:75px 22px 55px;
  }
  .arrival>h2 {
    font-size:34px;
  }
  .arrival-intro {
    font-size:14px;
  }
  .letter-envelope {
    margin-top:65px;
  }
  .envelope-visual {
    height:200px;
  }
  .letter-paper {
    margin-inline:-6px;
    padding:32px 24px;
  }
  .letter-heading {
    padding-bottom:30px;
    margin-bottom:32px;
  }
  .letter-heading h2 {
    font-size:28px;
  }
  .letter-prose {
    font-size:17px;
    line-height:2.05;
  }
  .letter-prose p {
    margin-bottom:1.6em;
  }
  .ending {
    padding:70px 24px 100px;
  }
  .ending nav {
    gap:8px 22px;
  }
  .walk-progress {
    bottom:max(14px,env(safe-area-inset-bottom));
  }
}
@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior:auto;
  }
  *,*:before,*:after {
    transition:none!important;
    animation:none!important;
  }
}
@media print {
  .topbar,.cover,.journey-intro,.journey,.arrival>p,.arrival>h2,.letter-envelope summary,.ending,.walk-progress {
    display:none!important;
  }
  .arrival,.letter-envelope,.letter-paper {
    padding:0;
    margin:0;
    background:white;
    box-shadow:none;
  }
  .letter-envelope::details-content {
    content-visibility:visible;
  }
  .letter-paper {
    display:block;
  }
  .letter-prose {
    font-size:12pt;
    line-height:1.8;
  }
  body {
    background:white;
  }
}
