@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;600;700&family=Reenie+Beanie&family=Kalam:wght@300;400;700&family=Permanent+Marker&display=swap');

:root {
  --cream: #f5efe0;
  --paper: #fdf8ef;
  --warm-white: #fefcf7;
  --rust: #c0522a;
  --dusty-rose: #d4848a;
  --sage: #7a9e7e;
  --fog-blue: #8da9b8;
  --golden: #d4a853;
  --deep-navy: #2c3e5c;
  --warm-gray: #8a7f74;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--cream);
  background-image:
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9b99a' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  font-family: 'Kalam', cursive;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── TAPE TEXTURE ── */
.tape {
  display: inline-block;
  background: rgba(212, 168, 83, 0.45);
  height: 22px;
  border-radius: 2px;
  position: absolute;
  transform-origin: center;
  z-index: 10;
  backdrop-filter: blur(1px);
}

.tape::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg,
      transparent,
      transparent 4px,
      rgba(255, 255, 255, 0.2) 4px,
      rgba(255, 255, 255, 0.2) 5px);
  border-radius: 2px;
}

/* ── HEADER ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  overflow: hidden;
}

.hero-bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-photo {
  display: block;
  /* fixed height, responsive width: the photo shrinks to fit narrow
     screens but the height stays locked; object-fit crops to fill */
  height: 320px;
  width: 100%;
  max-width: 440px;
  object-fit: cover;
  border-radius: 8px;
  margin: 24px auto 24px;
  /* cute scrapbook frame: white photo border + dashed accent outline */
  border: 6px solid var(--warm-white);
  outline: 3px dashed var(--dusty-rose);
  outline-offset: 4px;
  box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.12);
  /* smooth fade when the photo swaps */
  transition: opacity 0.6s ease;

}


.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.12;
}

.shape-1 {
  width: 500px;
  height: 500px;
  background: var(--fog-blue);
  top: -100px;
  right: -100px;
}

.shape-2 {
  width: 300px;
  height: 300px;
  background: var(--dusty-rose);
  bottom: 50px;
  left: -80px;
}

.shape-3 {
  width: 200px;
  height: 200px;
  background: var(--golden);
  top: 40%;
  left: 10%;
}

.city-silhouette {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  opacity: 0.07;
}

.hero-card {
  position: relative;
  background: var(--warm-white);
  border-radius: 4px;
  padding: 50px 60px;
  max-width: 640px;
  width: 100%;
  box-shadow:
    4px 4px 0 rgba(0, 0, 0, 0.08),
    8px 8px 0 rgba(0, 0, 0, 0.04),
    0 20px 60px rgba(0, 0, 0, 0.12);
  transform: rotate(-1.2deg);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-tape-1 {
  width: 80px;
  top: -12px;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
}

.hero-tape-2 {
  width: 60px;
  bottom: -10px;
  right: 30px;
  transform: rotate(3deg);
}

.hero-eyebrow {
  font-family: 'Caveat', cursive;
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--warm-gray);
  margin-bottom: 8px;
}

.hero-title {
  font-family: 'Permanent Marker', cursive;
  font-size: clamp(36px, 6vw, 48px);

  line-height: 1.1;
  margin-bottom: 12px;

  /* smooth fade when the title text + color swaps */
  transition: opacity 0.6s ease, color 0.6s ease;

}


.hero-subtitle {
  font-family: 'Caveat', cursive;
  font-size: 20px;
  color: var(--warm-gray);
  margin-bottom: 28px;
}

.hero-button-label {
  font-family: 'Caveat', cursive;
  font-size: 14px;
  color: var(--warm-gray);
  margin-top: 4px;
}

.hero-dates {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.date-chip {
  background: var(--fog-blue);
  color: var(--cream);
  font-family: 'Caveat', cursive;
  font-size: 16px;
  padding: 6px 16px;
  border-radius: 4px;
  letter-spacing: 1px;
  cursor: pointer;
  border: none;
}

.personal-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--warm-gray);
  font-family: 'Caveat', cursive;
  font-size: 15px;
  animation: bounce 2s ease-in-out infinite;
}

.scroll-hint svg {
  opacity: 0.5;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

/* ── FLOATING STICKERS ── */
/* absolute (not fixed) so stickers scroll with the page content
   instead of staying pinned to the viewport */
.sticker-zone {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 100;
}

.sticker {
  position: absolute;
  cursor: grab;
  pointer-events: all;
  user-select: none;
  transition: transform 0.15s ease, filter 0.15s ease;
  font-size: 36px;
  filter: drop-shadow(2px 3px 4px rgba(0, 0, 0, 0.2));
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.sticker:hover {
  transform: scale(1.15) rotate(5deg);
}

.sticker.dragging {
  cursor: grabbing;
  transform: scale(1.2);
  filter: drop-shadow(4px 6px 8px rgba(0, 0, 0, 0.3));
  z-index: 999;
}

/* ── SCHEDULE SECTION ── */
.schedule-section {
  padding: 80px 20px;
  max-width: 900px;
  margin: 0 auto;
}

.day-label {
  font-family: 'Permanent Marker', cursive;
  font-size: 48px;
  color: var(--rust);
  margin-bottom: 40px;
  position: relative;
  display: inline-block;
}

.day-label::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--rust);
  opacity: 0.3;
  transform: rotate(-0.5deg);
}

.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 20px;
  bottom: 20px;
  width: 2px;
  background: repeating-linear-gradient(to bottom,
      var(--warm-gray) 0,
      var(--warm-gray) 6px,
      transparent 6px,
      transparent 12px);
  opacity: 0.35;
}

.event-card {
  position: relative;
  background: var(--paper);
  border-radius: 3px;
  padding: 22px 28px;
  margin-bottom: 28px;
  box-shadow:
    3px 3px 0 rgba(0, 0, 0, 0.07),
    6px 6px 0 rgba(0, 0, 0, 0.03);
  transform-origin: left center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateX(-20px);
}

.event-card.visible {
  opacity: 1;
  transform: translateX(0);
}

.event-card:hover {
  box-shadow:
    5px 5px 0 rgba(0, 0, 0, 0.1),
    10px 10px 0 rgba(0, 0, 0, 0.05);
  transform: translateX(4px) rotate(0.3deg);
}

.event-card::before {
  content: '';
  position: absolute;
  left: -32px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--warm-white);
  border: 2px solid var(--warm-gray);
}

/* Card accent colors */
.event-card.transport {
  border-left: 4px solid var(--fog-blue);
}

.event-card.food {
  border-left: 4px solid var(--rust);
}

.event-card.leisure {
  border-left: 4px solid var(--sage);
}

.event-card.transport::before {
  border-color: var(--fog-blue);
}

.event-card.food::before {
  border-color: var(--rust);
}

.event-card.leisure::before {
  border-color: var(--sage);
}

.event-time {
  font-family: 'Caveat', cursive;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--warm-gray);
  margin-bottom: 4px;
}

.event-name {
  font-family: 'Kalam', cursive;
  font-weight: 700;
  font-size: 22px;
  color: var(--deep-navy);
  margin-bottom: 6px;
}

.event-note {
  font-family: 'Caveat', cursive;
  max-width: 90%;
  font-size: 16px;
  color: var(--warm-gray);
  line-height: 1.4;
}

.event-emoji {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 32px;
  opacity: 0.7;
}

/* tape on cards */
.card-tape {
  width: 55px;
  height: 18px;
  top: -10px;
  left: 20px;
  transform: rotate(-1.5deg);
}

.card-tape-2 {
  width: 45px;
  height: 18px;
  top: -9px;
  right: 30px;
  transform: rotate(2deg);
}

/* ── DIVIDER ── */
.day-divider {
  position: relative;
  text-align: center;
  margin: 60px 0 80px;
  padding: 40px 0;
}

.divider-title {
  font-size: 36px;
  color: var(--deep-navy);
  margin-bottom: 24px;
}

.divider-photo {
  position: relative;
  display: inline-block;
  background: var(--warm-white);
  padding: 14px 14px 40px;
  transform: rotate(1.5deg);
  box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.15);
  max-width: 320px;
}

.divider-photo .photo-inner {
  width: 290px;
  height: 180px;
  background: linear-gradient(135deg, var(--fog-blue) 0%, var(--deep-navy) 50%, var(--rust) 100%);
  position: relative;
  overflow: hidden;
}

.divider-photo .photo-inner svg {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

.divider-photo .photo-caption {
  font-family: 'Caveat', cursive;
  font-size: 16px;
  color: var(--warm-gray);
  text-align: center;
  margin-top: 12px;
}

.divider-tape {
  width: 70px;
  height: 20px;
  top: -12px;
  left: 50%;
  transform: translateX(-50%) rotate(-1deg);
}

/* ── FOOTER ── */
.footer-note {
  text-align: center;
  padding: 60px 20px 100px;
  font-family: 'Caveat', cursive;
  font-size: 18px;
  color: var(--warm-gray);
}

.footer-note .big-heart {
  font-size: 24px;
  display: block;
}

/* ── SCATTERED POLAROIDS ── */
.polaroid-scatter {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 20px;
  margin: 20px 0;
}

.polaroid {
  background: var(--warm-white);
  padding: 12px 12px 36px;
  transform: rotate(var(--rot, -2deg));
  box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.12);
  position: relative;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.polaroid:hover {
  transform: rotate(calc(var(--rot, -2deg) * -1)) scale(1.05);
  z-index: 5;
}

.polaroid .photo-area {
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
}

.polaroid .caption {
  font-family: 'Caveat', cursive;
  font-size: 18px;
  color: var(--warm-gray);
  text-align: center;
  margin-top: 10px;
}

/* ── STICKER PALETTE ── */
.sticker-palette {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(253, 248, 239, 0.92);
  backdrop-filter: blur(12px);
  border-radius: 50px;
  padding: 10px 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.06);
  display: flex;
  gap: 4px;
  align-items: center;
  z-index: 200;
}

.palette-label {
  font-family: 'Caveat', cursive;
  font-size: 12px;
  color: var(--warm-gray);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-right: 8px;
  white-space: nowrap;
}

.palette-sticker {
  font-size: 28px;
  cursor: copy;
  padding: 6px;
  border-radius: 8px;
  transition: transform 0.15s, background 0.15s;
  border: none;
  background: transparent;
}

.palette-sticker:hover {
  transform: scale(1.25) rotate(10deg);
  background: rgba(0, 0, 0, 0.05);
}

/* ── SCROLL REVEAL ── */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-24px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.event-card.visible {
  animation: slideIn 0.5s ease forwards;
}

/* ── WASHI TAPE STRIPS across corners ── */
.washi-strip {
  position: fixed;
  height: 28px;
  opacity: 0.55;
  pointer-events: none;
  z-index: 50;
}

.washi-top {
  top: 0;
  left: 0;
  right: 0;
  background: repeating-linear-gradient(90deg,
      var(--dusty-rose) 0px, var(--dusty-rose) 20px,
      var(--golden) 20px, var(--golden) 40px,
      var(--sage) 40px, var(--sage) 60px,
      var(--fog-blue) 60px, var(--fog-blue) 80px);
}

.washi-bottom {
  bottom: 0;
  left: 0;
  right: 0;
  background: repeating-linear-gradient(90deg,
      var(--fog-blue) 0px, var(--fog-blue) 15px,
      var(--cream) 15px, var(--cream) 30px,
      var(--rust) 30px, var(--rust) 45px);
}

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .hero-card {
    padding: 32px 28px;
    transform: rotate(-0.5deg);
  }

  .schedule-section {
    padding: 50px 16px;
  }

  .sticker-palette {
    bottom: 36px;
    padding: 8px 14px;
    gap: 2px;
  }

  .palette-sticker {
    font-size: 22px;
  }

  .palette-label {
    display: none;
  }
}

/* ── PASSWORD GATE ── */
/* prevent the page behind the gate from scrolling while locked */
/* body.locked {
  overflow: hidden;
} */

.password-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(245, 239, 224, 0.45);
  /* blur everything behind the overlay */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.password-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.password-card {
  position: relative;
  background: var(--warm-white);
  border-radius: 4px;
  padding: 44px 48px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow:
    4px 4px 0 rgba(0, 0, 0, 0.08),
    8px 8px 0 rgba(0, 0, 0, 0.04),
    0 20px 60px rgba(0, 0, 0, 0.18);
  transform: rotate(-1deg);
}

.password-eyebrow {
  font-family: 'Caveat', cursive;
  font-size: 15px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--warm-gray);
  margin-bottom: 10px;
}

.password-title {
  font-family: 'Permanent Marker', cursive;
  font-size: 30px;
  color: var(--deep-navy);
  line-height: 1.1;
  margin-bottom: 16px;
}

.password-hint {
  font-family: 'Caveat', cursive;
  font-size: 18px;
  color: var(--warm-gray);
  margin-bottom: 24px;
}

#passwordForm {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#passwordInput {
  font-family: 'Kalam', cursive;
  font-size: 18px;
  text-align: center;
  padding: 12px 16px;
  border: 2px dashed var(--dusty-rose);
  border-radius: 3px;
  background: var(--paper);
  color: var(--deep-navy);
  outline: none;
  transition: border-color 0.2s ease;
}

#passwordInput:focus {
  border-color: var(--rust);
}

#passwordForm button {
  font-family: 'Caveat', cursive;
  font-size: 20px;
  letter-spacing: 1px;
  padding: 10px 16px;
  background: var(--deep-navy);
  color: var(--cream);
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease;
}

.password-error {
  font-family: 'Caveat', cursive;
  font-size: 17px;
  color: var(--rust);
  margin-top: 16px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.password-error.show {
  opacity: 1;
}