:root {
  --cream: #fff8f1;
  --paper: #ffffff;
  --ink: #3d3236;
  --muted: #8a7b80;
  --peach: #ffb9a3;
  --peach-deep: #f28b73;
  --rose: #ffd8e4;
  --sage: #cfe6d6;
  --sky: #d7e8f5;
  --line: #f0e2d8;
  --shadow: 0 12px 40px -18px rgba(120, 70, 60, .35);
  --r: 22px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Nunito", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  overflow-x: hidden;
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(900px 500px at 10% -10%, #ffe9dc 0%, transparent 60%),
    radial-gradient(700px 400px at 100% 0%, #e9f1ff 0%, transparent 55%),
    var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* floating clouds */
.clouds { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.clouds span {
  position: absolute; width: 220px; height: 70px; background: #fff; border-radius: 100px;
  opacity: .55; filter: blur(2px); animation: drift 60s linear infinite;
}
.clouds span::before, .clouds span::after {
  content: ""; position: absolute; background: #fff; border-radius: 50%;
}
.clouds span::before { width: 90px; height: 90px; top: -45px; left: 35px; }
.clouds span::after  { width: 120px; height: 120px; top: -60px; right: 30px; }
.clouds span:nth-child(1) { top: 8%; left: -260px; }
.clouds span:nth-child(2) { top: 40%; left: -400px; animation-duration: 85s; transform: scale(.7); }
.clouds span:nth-child(3) { top: 72%; left: -300px; animation-duration: 105s; transform: scale(.55); }
@keyframes drift { to { left: 110%; } }

.hero, .layout, .foot { position: relative; z-index: 1; }

/* hero */
.hero {
  text-align: center;
  padding: clamp(56px, 10vw, 110px) 20px 40px;
  max-width: 720px; margin: 0 auto;
}
.hero-eyebrow {
  margin: 0 0 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  font-size: 12px; color: var(--peach-deep);
}
.hero h1 {
  font-family: var(--serif); font-weight: 400; font-style: italic;
  font-size: clamp(44px, 8vw, 76px); line-height: 1.02; margin: 0 0 14px; letter-spacing: -.01em;
}
.hero-sub { margin: 0 auto 36px; max-width: 460px; color: var(--muted); font-size: 17px; }

.countdown {
  display: inline-block; background: var(--paper); border-radius: 28px; padding: 26px 34px 22px;
  box-shadow: var(--shadow); border: 1px solid var(--line); min-width: 300px;
}
.countdown-num { display: flex; align-items: baseline; justify-content: center; gap: 10px; }
.countdown-num span { font-family: var(--serif); font-size: 64px; line-height: 1; font-weight: 500; color: var(--peach-deep); }
.countdown-num small { font-size: 15px; color: var(--muted); font-weight: 600; }
.countdown-meta { margin-top: 8px; font-size: 14px; color: var(--muted); font-weight: 600; }
.countdown-meta .dot { margin: 0 8px; }
.progress { height: 8px; background: var(--rose); border-radius: 99px; margin: 16px 0 12px; overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--peach), var(--peach-deep)); border-radius: 99px; transition: width 1.2s cubic-bezier(.2,.8,.2,1); }
.countdown-by { margin: 0; font-size: 13px; color: var(--muted); font-style: italic; }

/* layout */
.layout {
  display: grid; grid-template-columns: 220px 1fr; gap: 48px;
  max-width: 1060px; margin: 30px auto 80px; padding: 0 24px;
}

/* timeline nav (left) */
.timeline { position: sticky; top: 28px; align-self: start; min-width: 0; }
.timeline ol { list-style: none; margin: 0; padding: 0 0 0 34px; position: relative; }
.timeline ol::before {
  content: ""; position: absolute; left: 8px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(var(--peach), var(--sage));
  border-radius: 2px;
}
.timeline li { position: relative; margin: 0 0 22px; }
.timeline li::before {
  content: ""; position: absolute; left: -34px; top: 7px; width: 12px; height: 12px;
  border-radius: 50%; background: #fff; border: 3px solid var(--peach);
  transition: transform .2s, background .2s;
}
.timeline a { text-decoration: none; color: var(--ink); display: block; }
.timeline .t-week { font-family: var(--serif); font-size: 19px; font-weight: 500; line-height: 1.1; }
.timeline .t-title { font-size: 13px; color: var(--muted); margin-top: 2px; }
.timeline li.active::before { background: var(--peach-deep); transform: scale(1.25); }
.timeline li.active .t-week { color: var(--peach-deep); }
.timeline li.soon::before { border-style: dashed; border-color: var(--sage); }
.timeline li.soon .t-week { color: var(--muted); font-style: italic; }

/* entries (right) */
.entries { display: flex; flex-direction: column; gap: 36px; min-width: 0; }
.card {
  background: var(--paper); border-radius: var(--r); border: 1px solid var(--line);
  box-shadow: var(--shadow); padding: 28px; scroll-margin-top: 28px;
  opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease;
}
.card.in { opacity: 1; transform: none; }
.card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.card-emoji {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  font-size: 26px; background: var(--rose); flex: none;
}
.card-date { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--peach-deep); }
.card-title { font-family: var(--serif); font-size: 28px; font-weight: 500; margin: 2px 0 0; line-height: 1.15; }
.card-week { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--muted); background: var(--cream); padding: 6px 12px; border-radius: 99px; white-space: nowrap; }
.card-text { margin: 0 0 20px; font-size: 16.5px; color: #5a4d52; }

.media-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.media {
  position: relative; border-radius: 16px; overflow: hidden; background: #111; cursor: zoom-in;
  aspect-ratio: 4 / 3; border: 0; padding: 0; text-align: left; display: block; width: 100%;
}
.media img, .media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.media video { pointer-events: none; }
.media .cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 10px; font-size: 13px; font-weight: 600; color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,.6));
}
.media .play {
  position: absolute; top: 10px; right: 10px; background: rgba(255,255,255,.9); color: var(--ink);
  font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 99px; letter-spacing: .06em;
}
.media:hover img { transform: scale(1.03); }
.media img { transition: transform .5s ease; }

.card.soon { text-align: center; background: transparent; box-shadow: none; border: 2px dashed var(--line); color: var(--muted); font-style: italic; }

.foot { text-align: center; color: var(--muted); font-size: 14px; padding: 0 20px 60px; }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 50; background: rgba(40, 25, 30, .88);
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px;
  backdrop-filter: blur(6px);
}
.lightbox[hidden] { display: none; }
.lightbox-body { max-width: min(96vw, 1100px); max-height: 82vh; }
.lightbox-body img, .lightbox-body video { max-width: 100%; max-height: 82vh; border-radius: 14px; display: block; }
.lightbox-cap { color: #fff; margin: 14px 0 0; font-size: 15px; }
.lightbox-close {
  position: absolute; top: 16px; right: 20px; background: #fff; border: 0; width: 42px; height: 42px;
  border-radius: 50%; font-size: 26px; line-height: 1; cursor: pointer; color: var(--ink);
}

/* mobile */
@media (max-width: 760px) {
  .layout { grid-template-columns: 1fr; gap: 24px; margin-top: 10px; }
  .timeline { position: static; margin: 0 -24px; padding: 0 24px; }
  .timeline ol { display: flex; gap: 22px; overflow-x: auto; padding: 6px 4px 10px 4px; scrollbar-width: none; }
  .timeline ol::before { display: none; }
  .timeline li { margin: 0; flex: none; padding-left: 28px; }
  .timeline li::before { left: 0; top: 6px; }
  .card { padding: 20px; }
  .card-title { font-size: 24px; }
  .card-week { display: none; }
  .countdown { padding: 22px 24px 18px; min-width: 0; width: 100%; }
}
