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

:root {
  --wine: #3d1014;
  --wine-deep: #2a0b0e;
  --wine-lift: #5c1c22;
  --cream: #f3ead8;
  --parchment: #e8d5c0;
  --gold: #d4b07a;
  --gold-deep: #b8924e;
  --ink: #3d1014;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-script: "Great Vibes", cursive;
  --font-sans: "Outfit", system-ui, sans-serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

html,
body {
  min-height: 100%;
  min-height: 100dvh;
  font-family: var(--font-sans);
  background: var(--wine);
  color: var(--cream);
  -webkit-tap-highlight-color: transparent;
}

.wash {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(61, 16, 20, 0.18) 0%,
      rgba(61, 16, 20, 0.55) 42%,
      var(--wine) 78%
    ),
    radial-gradient(ellipse at 70% 60%, rgba(184, 96, 88, 0.22), transparent 50%),
    url("assets/invite-mood.jpg") center 22% / cover no-repeat,
    var(--wine);
  pointer-events: none;
}

.wash::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 110%, var(--wine-deep) 0%, transparent 55%),
    repeating-linear-gradient(
      0deg,
      rgba(255, 236, 210, 0.015) 0 1px,
      transparent 1px 3px
    );
  pointer-events: none;
}

.petals {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 4;
}

.petals span {
  position: absolute;
  top: -10%;
  color: #d4b07a;
  animation: fall linear infinite;
}

@keyframes fall {
  to {
    transform: translateY(120vh) rotate(40deg);
  }
}

.mute-btn {
  position: fixed;
  top: calc(0.65rem + var(--safe-top));
  right: 0.65rem;
  z-index: 50;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.35);
  color: #f3ead8;
  cursor: pointer;
}

.home {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: calc(1.25rem + var(--safe-top)) 1.15rem calc(1.5rem + var(--safe-bottom));
  text-align: center;
}

.from {
  font-size: 0.68rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 16px rgba(61, 16, 20, 0.6);
}

h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 10vw, 4rem);
  text-shadow: 0 4px 24px rgba(61, 16, 20, 0.55);
}

h1 em {
  font-family: var(--font-script);
  font-style: normal;
  color: var(--gold);
}

.lead {
  margin: 0.7rem 0 1.4rem;
  max-width: 22rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: rgba(243, 234, 216, 0.78);
  font-weight: 300;
}

.occasions {
  width: min(420px, 100%);
  display: grid;
  gap: 0.85rem;
}

.card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  text-decoration: none;
  color: var(--ink);
  padding: 1.05rem 1.2rem 0.95rem;
  border-radius: 4px 4px 18px 18px;
  border: 1px solid rgba(212, 176, 122, 0.45);
  background:
    linear-gradient(180deg, #f7efe2 0%, #ead8c2 100%);
  box-shadow:
    0 18px 40px rgba(20, 4, 8, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
  min-height: 0;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #c9a66b, #8b3a40, #c9a66b);
}

.card:hover,
.card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--gold);
}

.card-glow {
  display: none;
}

.card-icon {
  font-size: 1.5rem;
  margin-bottom: 0.55rem;
}

.seal {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-bottom: 0.45rem;
  border-radius: 8px;
}

.card-kicker {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #8a5a28;
}

.card-title {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  margin: 0.15rem 0 0.35rem;
  color: var(--wine);
}

.card-copy {
  font-size: 0.88rem;
  line-height: 1.45;
  color: rgba(61, 16, 20, 0.72);
  max-width: 16.5rem;
}

.card-go {
  margin-top: auto;
  padding-top: 0.8rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: #8a5a28;
}

.card.birthday,
.card.marriage,
.card.letters,
.card.dump,
.card.remember {
  background: linear-gradient(180deg, #f7efe2 0%, #ead8c2 100%);
}

.card.remember {
  border-color: rgba(201, 160, 86, 0.7);
}

@media (min-width: 720px) {
  .home {
    justify-content: center;
  }

  .occasions {
    width: min(720px, 100%);
    grid-template-columns: 1fr 1fr;
  }
}
