﻿:root {
  --bg-rose: #2a0f16;
  --bg-wine: #1a070c;
  --card: rgba(255, 248, 245, 0.07);
  --card-border: rgba(255, 224, 205, 0.28);
  --rose: #ff7f96;
  --gold: #f0c07a;
  --text: #fff4f0;
  --paper: #fff7ec;
  --paper-ink: #472f2f;
  --frame: #f6e5cb;
  --frame-edge: #d8b585;
  --blaze: #ff2c45;
  --blaze-soft: #ff6f7f;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Cormorant Garamond', serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 127, 150, 0.16), transparent 35%),
    radial-gradient(circle at 90% 0%, rgba(240, 192, 122, 0.18), transparent 28%),
    linear-gradient(170deg, var(--bg-rose), var(--bg-wine));
  min-height: 100vh;
}

main {
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 20px 14px 90px;
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 12px;
  backdrop-filter: blur(12px);
  background: rgba(26, 7, 12, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-nav a {
  display: block;
  text-align: center;
  text-decoration: none;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.8px;
  padding: 7px 4px;
  border-radius: 999px;
}

.top-nav a:hover {
  color: var(--text);
  background: rgba(255, 127, 150, 0.18);
}

.section-block {
  scroll-margin-top: 74px;
}

.hero {
  text-align: center;
  padding: 60px 10px 38px;
}

.hero h1,
h2 {
  font-family: 'Parisienne', cursive;
  line-height: 1.1;
}

.hero h1 {
  font-size: clamp(2.8rem, 10vw, 5.6rem);
  color: #fff3f6;
  text-wrap: balance;
  line-height: 1.03;
  letter-spacing: 0.4px;
  text-shadow:
    0 2px 0 rgba(100, 10, 25, 0.35),
    0 0 18px rgba(255, 84, 114, 0.35),
    0 0 44px rgba(255, 44, 69, 0.22);
}

.section-panel {
  margin-top: 18px;
  border: 1px solid var(--card-border);
  background: var(--card);
  border-radius: 18px;
  padding: 22px 14px;
}

h2 {
  text-align: center;
  color: var(--rose);
  font-size: clamp(2rem, 7vw, 3rem);
  margin-bottom: 18px;
}

.button {
  margin-top: 22px;
  border: 1px solid var(--gold);
  background: rgba(240, 192, 122, 0.06);
  color: var(--gold);
  border-radius: 999px;
  padding: 10px 24px;
  font-size: 1.05rem;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease;
}

.hero-cta {
  margin-top: 54px;
  padding: 15px 38px;
  font-size: 1.25rem;
}

.button:hover {
  transform: translateY(-1px);
  background: rgba(240, 192, 122, 0.16);
}

.content-list {
  display: grid;
  gap: 14px;
}

.playlist-shell {
  display: grid;
  gap: 16px;
}

.playlist-main {
  display: grid;
  gap: 12px;
}

.playlist-cover {
  height: 210px;
  border: 6px solid var(--frame);
  outline: 1px solid var(--frame-edge);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32), 0 2px 5px rgba(0, 0, 0, 0.24);
}

.playlist-cover.zoomable:hover {
  transform: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32), 0 2px 5px rgba(0, 0, 0, 0.24);
  filter: none;
}

.playlist-player,
.playlist-note {
  border: 1px solid rgba(255, 127, 150, 0.35);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(84, 18, 30, 0.72), rgba(31, 7, 12, 0.85));
  padding: 16px;
}

.playlist-player {
  display: grid;
  gap: 12px;
}

.playlist-note {
  display: grid;
  align-content: center;
  gap: 10px;
}

.playlist-note-title {
  color: var(--gold);
  font-size: 1.75rem;
}

.playlist-note-desc {
  color: #ffd7dd;
  font-size: 1.08rem;
  line-height: 1.45;
}

.playlist-title {
  color: var(--gold);
  font-size: 1.55rem;
  font-weight: 700;
}

.playlist-subtitle {
  color: #ffd2d8;
  font-style: italic;
  margin-top: 4px;
  margin-bottom: 14px;
}

.player-controls {
  display: grid;
  gap: 10px;
}

.track-label {
  color: #ffd9c4;
  font-size: 1.02rem;
  font-style: italic;
}

.player-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.player-btn {
  border: 1px solid var(--gold);
  background: rgba(240, 192, 122, 0.09);
  color: var(--gold);
  border-radius: 999px;
  padding: 9px 16px;
  width: fit-content;
  min-width: 100px;
  font-size: 1rem;
  cursor: pointer;
}

.player-btn:hover {
  background: rgba(240, 192, 122, 0.2);
}

.seek-bar {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  outline: none;
}

.seek-bar::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--blaze);
  border: 2px solid #ffd4dd;
  cursor: pointer;
}

.seek-bar::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--blaze);
  border: 2px solid #ffd4dd;
  cursor: pointer;
}

.time-label {
  color: #ffd4d9;
  font-size: 0.98rem;
}

.timeline-track {
  position: relative;
  gap: 44px;
  padding: 14px 0 4px;
}

.timeline-track::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(to bottom, rgba(255, 44, 69, 0.24), rgba(255, 44, 69, 0.95), rgba(255, 44, 69, 0.24));
  box-shadow: 0 0 12px rgba(255, 44, 69, 0.45);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 86px minmax(0, 1fr);
  align-items: center;
  gap: 0;
  border: none;
  background: transparent;
  border-radius: 0;
  padding: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 38px;
  width: 11px;
  height: 11px;
  border-radius: 999px;
  transform: translateX(-50%);
  background: #ffd88f;
  box-shadow: 0 0 0 2px rgba(255, 44, 69, 0.35), 0 0 12px rgba(255, 216, 143, 0.9);
}

.timeline-content {
  padding: 8px 0;
}

.timeline-date {
  color: var(--blaze-soft);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  margin-bottom: 8px;
}

.timeline-desc {
  font-style: italic;
  font-size: clamp(1rem, 2.1vw, 1.18rem);
  line-height: 1.45;
  color: rgba(255, 230, 230, 0.92);
}

.timeline-item.left .timeline-content {
  grid-column: 1;
  padding-right: 20px;
  text-align: right;
}

.timeline-item.left .timeline-images {
  grid-column: 3;
}

.timeline-item.right .timeline-content {
  grid-column: 3;
  padding-left: 20px;
  text-align: left;
}

.timeline-item.right .timeline-images {
  grid-column: 1;
}

.timeline-images {
  display: grid;
  gap: 10px;
  margin-top: 0;
}

.zoomable {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border: 6px solid var(--frame);
  outline: 1px solid var(--frame-edge);
  border-radius: 6px;
  cursor: zoom-in;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32), 0 2px 5px rgba(0, 0, 0, 0.24);
  transition: transform 0.32s ease, box-shadow 0.32s ease, filter 0.32s ease;
}

.zoomable:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4), 0 4px 8px rgba(0, 0, 0, 0.25);
  filter: saturate(1.08);
}

#lettersList {
  grid-template-columns: 1fr;
  gap: 14px;
}

.letter-preview {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 14px;
  text-align: left;
  width: 100%;
  cursor: pointer;
  color: var(--text);
}

.letter-preview h3 {
  color: var(--gold);
  font-size: 1.35rem;
}

.letter-preview p {
  margin-top: 6px;
  font-size: 1.15rem;
  line-height: 1.4;
}

.mail-letter {
  border-color: #f2d3a0;
  background: linear-gradient(170deg, rgba(247, 235, 206, 0.22), rgba(105, 22, 36, 0.26));
  box-shadow: 0 0 0 1px rgba(255, 184, 136, 0.35), 0 14px 22px rgba(22, 3, 8, 0.35);
}

.mail-letter::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 42px;
  background: linear-gradient(135deg, rgba(255, 235, 205, 0.26), rgba(198, 51, 71, 0.25));
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.mail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.mail-to {
  font-style: italic;
  color: #ffe3c2;
  font-size: 1rem;
}

.mail-stamp {
  border: 1px dashed #ffcb98;
  color: #ffcb98;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 7px;
  border-radius: 4px;
}

.letter-preview.current-letter {
  border-color: #f2d3a0;
}

.letter-preview-text {
  color: rgba(255, 242, 236, 0.9);
}

.letter-open-hint {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.95rem;
  color: #ffdcb1;
  border-bottom: 1px solid rgba(255, 220, 177, 0.6);
}

.letter-chip {
  display: inline-block;
  margin-top: 10px;
  margin-right: 10px;
  border: 1px solid rgba(255, 207, 168, 0.8);
  color: #ffd6dd;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 0.9rem;
}

.status-text {
  text-align: center;
  margin-top: 12px;
  opacity: 0.82;
  font-size: 1rem;
}

.modal,
.image-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.modal.open,
.image-modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
}

.letter-paper {
  position: relative;
  width: min(92vw, 700px);
  max-height: 84vh;
  overflow: auto;
  margin: 8vh auto 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 248, 236, 0.98)),
    repeating-linear-gradient(to bottom, transparent 0, transparent 30px, rgba(169, 125, 83, 0.18) 31px, transparent 32px);
  color: #4a2f23;
  border: 1px solid #d8b88b;
  border-radius: 10px;
  padding: 34px 28px 26px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
  transform: translateY(18px) scale(0.97);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.modal.open .letter-paper {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.letter-paper h3 {
  font-family: 'Parisienne', cursive;
  font-size: 2.3rem;
  color: #7d2335;
}

.letter-date {
  margin: 8px 0 16px;
  font-size: 1.02rem;
  opacity: 0.72;
}

.letter-content {
  white-space: normal;
  line-height: 1.75;
  font-size: 1.2rem;
  display: grid;
  gap: 14px;
}

.letter-to {
  font-style: italic;
}

.letter-body {
  white-space: pre-wrap;
}

.letter-signoff {
  margin-top: 10px;
  justify-self: end;
  text-align: left;
}

.letter-signature {
  font-family: 'Parisienne', cursive;
  font-size: 2rem;
  color: #8b2034;
  margin-top: 4px;
}

.zoom-stage {
  position: relative;
  width: 100vw;
  height: 100vh;
  padding: 20px;
  display: grid;
  place-items: center;
}

.zoom-stage img {
  width: 100%;
  height: 100%;
  max-width: 96vw;
  max-height: 94vh;
  object-fit: contain;
  border-radius: 10px;
  transform: scale(0.76);
  opacity: 0;
  filter: drop-shadow(0 25px 44px rgba(0, 0, 0, 0.5));
  transition: transform 0.45s cubic-bezier(0.18, 0.89, 0.32, 1.28), opacity 0.32s ease;
}

.image-modal.open .zoom-stage img {
  transform: scale(1);
  opacity: 1;
}

.close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  border: none;
  border-radius: 999px;
  width: 34px;
  height: 34px;
  background: rgba(0, 0, 0, 0.45);
  color: white;
  cursor: pointer;
  font-size: 0.95rem;
  z-index: 2;
}

@media (max-width: 767px) {
  .timeline-track {
    padding-left: 0;
    gap: 34px;
  }

  .timeline-track::before {
    left: 18px;
    transform: none;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    padding-left: 40px;
    gap: 10px;
  }

  .timeline-item::before {
    left: 18px;
    top: 18px;
    transform: none;
  }

  .timeline-item.left .timeline-content,
  .timeline-item.right .timeline-content,
  .timeline-item.left .timeline-images,
  .timeline-item.right .timeline-images {
    grid-column: 1;
    text-align: left;
    padding: 0;
  }
}

@media (min-width: 768px) {
  main {
    padding: 26px 20px 80px;
  }

  .top-nav {
    gap: 12px;
    padding: 12px 18px;
  }

  .top-nav a {
    font-size: 14px;
    padding: 8px 10px;
  }

  .section-panel {
    padding: 30px 24px;
  }

  .playlist-shell {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
  }

  .playlist-cover {
    height: 260px;
  }

  .zoomable {
    height: 220px;
  }

  #lettersList {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #lettersList .letter-preview:first-child {
    grid-column: 1 / -1;
    max-width: 620px;
    justify-self: center;
    padding: 22px;
  }
}









.hero h1 br {
  display: block;
  margin-top: 10px;
}


.site-footer {
  text-align: center;
  padding: 18px 14px 28px;
  color: rgba(255, 228, 214, 0.9);
  font-size: 1.02rem;
  letter-spacing: 0.4px;
}
