:root {
  color-scheme: light;
  font-family: "Noto Serif SC", "Songti SC", "STSong", serif;
  --paper: #eeeae2;
  --ink: #171615;
  --muted: #777168;
  --accent: #9d334d;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; background: var(--paper); }
body { color: var(--ink); }
button { font: inherit; }

.album {
  position: relative;
  min-height: 100svh;
  padding: 28px clamp(24px, 4vw, 68px) 22px;
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 38%, rgba(255,255,255,.72), transparent 34%),
    repeating-linear-gradient(90deg, rgba(40,32,24,.018) 0 1px, transparent 1px 5px),
    var(--paper);
}

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(23,22,21,.24);
  font-family: Arial, sans-serif;
  font-size: 10px;
  letter-spacing: .2em;
}

.brand { color: inherit; font-weight: 700; text-decoration: none; }
.issue { color: var(--muted); }

.spread {
  display: grid;
  grid-template-columns: minmax(280px, .82fr) minmax(420px, 1.18fr);
  align-items: center;
  gap: clamp(42px, 7vw, 120px);
  width: min(1240px, 100%);
  min-height: calc(100svh - 150px);
  margin: 0 auto;
  padding: 28px 0;
}

.copy { align-self: center; padding-left: clamp(0px, 2vw, 28px); }
.kicker {
  margin: 0 0 30px;
  color: var(--accent);
  font: 600 10px/1.2 Arial, sans-serif;
  letter-spacing: .25em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(48px, 5.8vw, 86px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.06em;
}

h1 i { color: var(--accent); font-style: italic; }

.lead {
  margin: 32px 0 44px;
  color: #504c47;
  font-size: clamp(14px, 1.25vw, 18px);
  line-height: 2;
  letter-spacing: .08em;
}

.meta {
  display: flex;
  gap: 28px;
  color: var(--muted);
  font: 9px/1 Arial, sans-serif;
  letter-spacing: .18em;
}

.photo-frame {
  position: relative;
  width: min(100%, 640px);
  margin: 0 auto;
  padding: clamp(12px, 1.6vw, 20px);
  background: #fbfaf6;
  box-shadow: 0 28px 80px rgba(40, 31, 24, .16), 0 2px 6px rgba(40,31,24,.12);
  transform: rotate(.7deg);
  transition: transform .5s cubic-bezier(.2,.8,.2,1), box-shadow .5s ease;
  cursor: pointer;
}

.photo-frame:hover { transform: rotate(0deg) translateY(-5px); box-shadow: 0 35px 90px rgba(40,31,24,.22); }

.photo-wrap { position: relative; overflow: hidden; background: #151317; aspect-ratio: 4 / 5; }
.photo-wrap img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: 52% 50%; filter: saturate(.84) contrast(1.04); transition: transform 1.2s ease; }
.photo-frame:hover img { transform: scale(1.018); }

.nav {
  position: absolute;
  z-index: 2;
  top: 50%;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 50%;
  color: white;
  background: rgba(14,12,14,.28);
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(-50%);
  cursor: pointer;
  transition: opacity .25s ease, background .25s ease;
}
.photo-frame:hover .nav, .nav:focus-visible { opacity: 1; }
.nav:hover { background: rgba(14,12,14,.58); }
.prev { left: 14px; }
.next { right: 14px; }

.grain {
  position: absolute;
  inset: 0;
  opacity: .15;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

figcaption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 18px 4px 2px;
}
.caption-title { font-size: clamp(13px, 1.1vw, 16px); letter-spacing: .08em; }
.counter { color: var(--muted); font: 9px/1 Arial, sans-serif; letter-spacing: .16em; }

.tape {
  position: absolute;
  z-index: 3;
  top: -12px;
  width: 72px;
  height: 25px;
  background: rgba(208,198,177,.62);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
  backdrop-filter: blur(2px);
}
.tape-left { left: 10%; transform: rotate(-7deg); }
.tape-right { right: 9%; transform: rotate(5deg); }

.album-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(23,22,21,.24);
  padding-top: 16px;
  color: var(--muted);
  font: 10px/1 Arial, sans-serif;
  letter-spacing: .12em;
}
.album-footer p { margin: 0; }

.dots { display: flex; align-items: center; justify-content: center; gap: 8px; }
.dot { width: 6px; height: 6px; padding: 0; border: 0; border-radius: 50%; background: #b9b1a6; cursor: pointer; transition: width .25s ease, background .25s ease; }
.dot.active { width: 22px; border-radius: 5px; background: var(--accent); }

#heart-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: none;
  cursor: pointer;
}
.heart-icon { color: var(--accent); font-size: 20px; transition: transform .25s ease; }
#heart-button:hover .heart-icon { transform: scale(1.25); }

#heart-layer { position: fixed; inset: 0; z-index: 10; overflow: hidden; pointer-events: none; }
.heart {
  --size: 18px;
  position: absolute;
  left: var(--x);
  top: var(--y);
  color: var(--color);
  font-size: var(--size);
  line-height: 1;
  animation: float-heart var(--duration) cubic-bezier(.18,.7,.28,1) forwards;
}

@keyframes float-heart {
  0% { opacity: 0; transform: translate(-50%, 0) scale(.45) rotate(0deg); }
  15% { opacity: .9; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--drift)), -30vh) scale(1.05) rotate(var(--turn)); }
}

@media (max-width: 760px) {
  .album { padding: 18px 18px max(20px, env(safe-area-inset-bottom)); overflow: visible; }
  .spread { display: flex; flex-direction: column; min-height: 0; gap: 24px; padding: 28px 0 22px; }
  .copy { width: 100%; padding: 0 8px; }
  .kicker { margin-bottom: 14px; font-size: 8px; }
  h1 { font-size: clamp(40px, 13vw, 58px); line-height: 1.06; }
  .lead { margin: 18px 0 20px; font-size: 13px; line-height: 1.8; }
  .meta { display: none; }
  .photo-frame { order: -1; width: min(88vw, 430px); padding: 11px; transform: rotate(.5deg); }
  .photo-wrap { aspect-ratio: 3 / 4; }
  .photo-wrap img { object-position: 51% 48%; }
  .nav { opacity: .76; width: 36px; height: 36px; }
  figcaption { padding: 13px 2px 1px; }
  .album-footer p { display: none; }
  .album-footer { justify-content: center; padding-top: 18px; }
  .issue { font-size: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
