:root {
  --deep-berry: #3f1d38;
  --mulled-wine: #5c2a4f;
  --frosted-rose: #e2a9c1;
  --winter-cream: #f8f1ec;
  --gold: #f2c94c;
  --shadow: rgba(28, 11, 23, 0.35);
  --font-body: 'Nunito', sans-serif;
  --font-script: 'Alex Brush', cursive;
}

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

[hidden] {
  display: none !important;
}

body {
  font-family: var(--font-body);
  background: linear-gradient(180deg, #12040f 0%, var(--deep-berry) 35%, #140818 100%);
  color: var(--winter-cream);
  min-height: 100vh;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

.hero {
  position: relative;
  height: 60vh;
  min-height: 360px;
  background: url('https://images.unsplash.com/photo-1486427944299-d1955d23e34d?auto=format&fit=crop&w=1600&q=80')
      center/cover no-repeat;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(63, 29, 56, 0.85), rgba(18, 4, 15, 0.75));
}

.hero__content {
  position: relative;
  padding: 2rem;
  max-width: 680px;
}

.hero__subtitle {
  font-size: 1rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  color: var(--gold);
}

.hero__title {
  font-family: var(--font-script);
  font-size: clamp(3rem, 8vw, 5.5rem);
  margin-bottom: 1rem;
}

.hero__text {
  font-size: 1.1rem;
  color: var(--winter-cream);
}

.calendar {
  max-width: 1100px;
  margin: -5rem auto 0;
  padding: 0 1.5rem 4rem;
}

.calendar__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.door {
  position: relative;
  border: none;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2), transparent 70%),
    linear-gradient(135deg, rgba(226, 169, 193, 0.2), rgba(63, 29, 56, 0.9));
  color: var(--winter-cream);
  height: 150px;
  border-radius: 1.25rem;
  box-shadow: 0 20px 40px var(--shadow);
  cursor: pointer;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  overflow: hidden;
}

.door:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.door__number {
  font-family: var(--font-script);
  font-size: 3rem;
  pointer-events: none;
}

.door__message {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  text-align: center;
  opacity: 0;
  transform: translateY(10%);
  transition: opacity 0.5s ease, transform 0.5s ease;
  background: rgba(20, 8, 24, 0.85);
  font-size: 1.05rem;
  line-height: 1.4;
}

.door--opened {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
}

.door--opened .door__number {
  opacity: 0;
}

.door--opened .door__message {
  opacity: 1;
  transform: translateY(0);
}

.calendar__hint {
  text-align: center;
  margin-top: 2.5rem;
  font-size: 1rem;
  letter-spacing: 0.05em;
  color: rgba(248, 241, 236, 0.75);
}

.playlist,
.wishlist {
  max-width: 860px;
  margin: 0 auto 4rem;
  padding: 0 1.5rem;
}

.playlist h2,
.wishlist h2 {
  font-family: var(--font-script);
  font-size: clamp(2.2rem, 5vw, 3rem);
  color: var(--gold);
  margin-bottom: 1rem;
}

.playlist p,
.wishlist p,
.wishlist li {
  font-size: 1.05rem;
  color: rgba(248, 241, 236, 0.9);
}

.wishlist ul {
  margin-top: 1rem;
  padding-left: 1.25rem;
}

.wishlist li {
  margin-bottom: 0.75rem;
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(10, 3, 14, 0.85);
  padding: 1rem;
  backdrop-filter: blur(2px);
  z-index: 100;
}

.modal__dialog {
  background: var(--mulled-wine);
  border-radius: 1.5rem;
  max-width: 500px;
  width: min(90%, 500px);
  padding: 2.5rem 2rem 2rem;
  position: relative;
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.5);
}

.modal__title {
  font-family: var(--font-script);
  font-size: 2.5rem;
  color: var(--gold);
  margin-bottom: 1rem;
  text-align: center;
}

.modal__body {
  font-size: 1.1rem;
  text-align: center;
}

.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: none;
  background: transparent;
  color: var(--winter-cream);
  font-size: 2rem;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.modal__close:hover {
  transform: scale(1.1);
}

.footer {
  text-align: center;
  padding: 2rem 1rem 3rem;
  font-size: 0.95rem;
  color: rgba(248, 241, 236, 0.6);
}

@media (hover: hover) {
  .door:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 26px 56px rgba(0, 0, 0, 0.5);
  }
}

@media (max-width: 600px) {
  .calendar__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .door {
    height: 120px;
  }

  .door__number {
    font-size: 2.5rem;
  }
}
