/* 旅行回忆：照片手账与自然的旅行记录。 */
:root {
  --paper: #fbf8f2;
  --ink: #445c4d;
  --muted: #899080;
  --pink: #ad7d7e;
  --line: #e5e0d5;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 105px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Serif SC", "Songti SC", SimSun, serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 6px;
}

figure, h1, h2, h3, p {
  margin: 0;
}

.skip-link {
  position: fixed;
  top: -80px;
  left: 20px;
  z-index: 20;
  padding: 12px;
  background: white;
}

.skip-link:focus {
  top: 10px;
}

.memory-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 76px;
  padding: 0 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 248, 242, .96);
  backdrop-filter: blur(12px);
}

.brand {
  font-size: 18px;
  letter-spacing: 2px;
}

.brand span {
  color: var(--pink);
  font-size: 25px;
  margin-right: 10px;
}

.back-link {
  font-size: 12px;
  letter-spacing: 1px;
}

.back-link span {
  margin-left: 12px;
}

main, .page-footer {
  width: min(1120px, 88%);
  margin: 0 auto;
}

.memory-cover {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  min-height: 570px;
  padding: 58px 0 65px;
}

.eyebrow {
  font: 10px/1.7 Arial, sans-serif;
  letter-spacing: 2.4px;
  color: var(--muted);
}

.route {
  font-size: 12px;
  margin: 26px 0 21px;
  letter-spacing: 2px;
}

.route span {
  color: var(--pink);
  margin: 0 9px;
}

h1 {
  font-size: clamp(32px, 3.9vw, 48px);
  line-height: 1.65;
  font-weight: 500;
  letter-spacing: 2px;
}

.cover-intro {
  margin-top: 21px;
  font-size: 14px;
  line-height: 2.25;
  color: #7e8176;
}

.read-link {
  display: inline-flex;
  align-items: center;
  gap: 30px;
  padding: 12px 0;
  margin-top: 21px;
  border-bottom: 1px solid #9cab95;
  font-size: 12px;
  letter-spacing: 1px;
}

.read-link:hover, .back-link:hover, .chapter-nav a:hover {
  color: var(--pink);
}

.cover-note {
  margin-top: 32px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 2px;
}

.cover-photos {
  position: relative;
  height: 435px;
}

.cover-photo, .small-photo {
  position: absolute;
  background: #fffdfa;
  padding: 11px 11px 0;
  box-shadow: 0 12px 34px #51443214;
  border: 1px solid #e8e3d8;
}

.cover-photo {
  width: 74%;
  right: 8%;
  top: 5px;
  transform: rotate(4deg);
}

.cover-photo::before, .small-photo::before {
  content: "";
  position: absolute;
  width: 86px;
  height: 25px;
  top: -11px;
  left: calc(50% - 43px);
  transform: rotate(-7deg);
  background: #d7c5a77d;
}

.cover-photo img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

.cover-photo figcaption, .small-photo figcaption {
  padding: 14px 2px;
  font-size: 12px;
  color: #858374;
  letter-spacing: 1px;
}

.cover-photo figcaption span {
  float: right;
  color: var(--pink);
}

.small-photo {
  width: 42%;
  bottom: 0;
  left: 0;
  transform: rotate(-8deg);
}

.small-photo img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.small-photo figcaption {
  font-size: 10px;
}

.postmark {
  position: absolute;
  right: 0;
  bottom: 8px;
  width: 102px;
  height: 102px;
  border: 3px double #b4878780;
  border-radius: 50%;
  text-align: center;
  padding-top: 18px;
  font-size: 10px;
  line-height: 1.8;
  letter-spacing: 2px;
  color: var(--pink);
  transform: rotate(-15deg);
}

.postmark b {
  font: 21px/1.4 Georgia, serif;
}

.chapter-nav {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 25px 0;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  font-size: 12px;
}

.chapter-label {
  color: var(--muted);
}

.chapter-nav a span {
  color: var(--pink);
  font: italic 14px Georgia, serif;
  margin-right: 10px;
}

.journal, .trip-films {
  padding-top: 66px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 37px;
}

.section-heading h2 {
  font-size: 25px;
  font-weight: 400;
  letter-spacing: 2px;
  margin-top: 12px;
}

.section-heading > p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
  padding-bottom: 4px;
}

.journal-entry {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  gap: 55px;
  align-items: center;
  padding: 38px 34px;
  margin-bottom: 30px;
  position: relative;
  background: #fffdf8;
  border: 1px solid var(--line);
}

.journal-entry:nth-of-type(even) {
  background: #f2f3eb;
}

.journal-entry::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-right: 1px solid #b9c0ad;
  border-bottom: 1px solid #b9c0ad;
  right: 12px;
  bottom: 12px;
  pointer-events: none;
}

.reverse {
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
}

.reverse .entry-photo {
  grid-column: 2;
  grid-row: 1;
}

.reverse .entry-copy {
  grid-column: 1;
  grid-row: 1;
}

.entry-photo {
  padding: 10px 10px 0;
  background: white;
  border: 1px solid #e5e1d8;
  box-shadow: 0 5px 15px #51443209;
  transform: rotate(-2deg);
}

.reverse .entry-photo {
  transform: rotate(2deg);
}

.entry-photo img {
  display: block;
  width: 100%;
  height: auto;
}

.entry-photo figcaption {
  padding: 14px 0;
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--muted);
}

.entry-location {
  font: 10px/1.6 Arial, sans-serif;
  color: var(--muted);
  letter-spacing: 1.8px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.entry-location span {
  color: var(--pink);
  font: italic 28px Georgia, serif;
}

.entry-copy h3 {
  font-size: 23px;
  font-weight: 400;
  line-height: 1.7;
  margin: 17px 0 20px;
}

.entry-copy > p:not(.entry-location) {
  font-size: 15px;
  line-height: 2.15;
  color: #65705f;
  margin-bottom: 13px;
}

.entry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}

.entry-tags span {
  font-size: 10px;
  color: #84917b;
  border: 1px solid #dce0d3;
  padding: 5px 9px;
}

.margin-note {
  font-size: 11px;
  line-height: 1.8;
  color: var(--pink);
  border-left: 2px solid #cfb2a3;
  padding-left: 12px;
  margin-top: 24px;
}

.film-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.film-card {
  border: 1px solid var(--line);
  background: #fffdf8;
  padding: 12px;
}

.film-card video {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #22291f;
}

.film-card figcaption {
  padding: 20px 13px 12px;
}

.film-card figcaption > span {
  font: 9px Arial, sans-serif;
  letter-spacing: 2px;
  color: var(--muted);
}

.film-card h3 {
  font-weight: 400;
  font-size: 20px;
  margin: 10px 0;
}

.film-card p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
}

.closing-note {
  text-align: center;
  margin: 75px 0 60px;
  padding: 40px 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.note-heart {
  display: block;
  color: var(--pink);
  font-size: 35px;
  margin-bottom: 17px;
}

.closing-note h2 {
  font-size: 25px;
  font-weight: 400;
  margin: 17px 0;
}

.closing-note > p:not(.eyebrow) {
  color: #7e8176;
  font-size: 13px;
  line-height: 2.25;
}

.page-footer {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
  gap: 15px;
  padding-bottom: 30px;
}

@media (max-width: 950px) {
  .memory-cover {
    gap: 25px;
  }

  .cover-photo img {
    height: 260px;
  }

  .cover-photos {
    height: 380px;
  }

  .small-photo img {
    height: 135px;
  }

  .journal-entry {
    gap: 30px;
    padding: 30px 25px;
  }

  .entry-copy h3 {
    font-size: 21px;
  }

  .chapter-label {
    display: none;
  }
}

@media (max-width: 650px) {
  .memory-nav {
    min-height: 68px;
  }

  .brand {
    font-size: 15px;
    letter-spacing: 1px;
  }

  .brand span {
    margin-right: 5px;
  }

  .back-link {
    font-size: 10px;
    letter-spacing: 0;
  }

  .back-link span {
    margin-left: 5px;
  }

  .memory-cover {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 40px 0;
  }

  h1 {
    font-size: 34px;
  }

  .cover-intro {
    font-size: 12px;
  }

  .cover-note {
    margin-top: 20px;
  }

  .cover-photos {
    height: 390px;
    margin: 5px 8px 0;
  }

  .cover-photo img {
    height: 275px;
  }

  .postmark {
    width: 88px;
    height: 88px;
    padding-top: 12px;
    bottom: 0;
  }

  .chapter-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    row-gap: 20px;
  }

  .journal, .trip-films {
    padding-top: 45px;
  }

  .section-heading {
    display: block;
    margin-bottom: 25px;
  }

  .section-heading > p {
    margin-top: 15px;
  }

  .journal-entry, .reverse {
    grid-template-columns: 1fr;
    padding: 25px 20px;
    gap: 30px;
  }

  .reverse .entry-photo, .reverse .entry-copy {
    grid-column: auto;
    grid-row: auto;
  }

  .entry-copy h3 {
    font-size: 22px;
  }

  .film-grid {
    grid-template-columns: 1fr;
  }

  .closing-note {
    margin-top: 45px;
  }

  .closing-note h2 {
    font-size: 23px;
  }

  .page-footer {
    flex-wrap: wrap;
    font-size: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* 只有一张照片或一段视频的回忆页。 */
.single-photo .cover-photo {
  width: 80%;
  right: 10%;
  top: 25px;
}

.single-photo .postmark {
  bottom: 0;
}

.single-film {
  max-width: 760px;
  margin: 0 auto;
  grid-template-columns: 1fr;
}

.entry-memento {
  padding: 32px 26px;
  background: #f4eedf;
  border: 1px solid #ded5bd;
  transform: rotate(-2deg);
  box-shadow: 0 6px 20px #5144320a;
}

.entry-memento h3 {
  margin-top: 20px;
  font-size: 21px;
  font-weight: 400;
  line-height: 1.7;
}

.entry-memento ul {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  font-size: 15px;
  line-height: 2;
}

.entry-memento li {
  padding: 8px 0;
  border-bottom: 1px dashed #cfc7b0;
}

.memento-foot {
  font-size: 12px;
  line-height: 1.8;
  color: var(--pink);
}

@media (max-width: 650px) {
  .single-photo {
    height: 370px;
  }

  .single-photo .cover-photo {
    width: 92%;
    right: 4%;
    top: 10px;
  }

  .single-photo .postmark {
    bottom: -8px;
    right: -5px;
  }
}
