:root {
  --bg-start: #0b1c2e;
  --bg-end: #16304f;
  --accent: #ffcc66;
  --accent-strong: #ff9458;
  --text: #f6f7fb;
  --muted: rgba(246, 247, 251, 0.8);
  --card-bg: rgba(15, 33, 52, 0.75);
}

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

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(155deg, var(--bg-start), var(--bg-end));
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.5rem 4rem;
  font-family: 'Work Sans', sans-serif;
}

body.no-scroll {
  overflow: hidden;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.1;
}

a {
  color: inherit;
}

.page {
  max-width: 960px;
  width: 100%;
}

.hero {
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: clamp(2.75rem, 7vw, 4.5rem);
  color: var(--accent);
  text-shadow: 0 0.25rem 1.25rem rgba(0, 0, 0, 0.4);
  font-family: 'Mountains of Christmas', cursive;
}

.tagline {
  margin-top: 1rem;
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  color: var(--muted);
}

.tree-image {
  max-width: 260px;
  width: 60%;
  height: auto;
  margin: 0 auto 2.5rem;
  display: block;
  filter: drop-shadow(0 0.75rem 1.5rem rgba(0, 0, 0, 0.35));
}

.gifts {
  margin-bottom: 3rem;
}

.gifts-title {
  font-size: clamp(2rem, 5vw, 3rem);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  font-family: 'Mountains of Christmas', cursive;
}

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

.gift-card {
  background: var(--card-bg);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  backdrop-filter: blur(4px);
  transition: transform 150ms ease, border-color 150ms ease;
  cursor: pointer;
}

.gift-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-strong);
}

.gift-card:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.gift-card img {
  max-width: 140px;
  height: auto;
  margin-bottom: 1rem;
}

.gift-card-body h3 {
  font-size: 1.8rem;
  color: var(--text);
  font-family: 'Mountains of Christmas', cursive;
}

.gift-card-cta {
  margin-top: 0.75rem;
  padding: 0.45rem 1.25rem;
  border-radius: 999px;
  background: var(--accent-strong);
  color: #1b2433;
  font-weight: 600;
  display: inline-block;
  transition: background 150ms ease;
}

.gift-card:hover .gift-card-cta,
.gift-card:focus-visible .gift-card-cta {
  background: var(--accent);
}

.footer {
  margin-top: auto;
  color: var(--muted);
  font-size: 1.35rem;
  font-family: 'Mountains of Christmas', cursive;
  line-height: 1.35;
  padding: 2rem 0 0;
}

.signature {
  margin-top: 0.5rem;
  font-size: 1.6rem;
}

.audio-button {
  margin-top: 1.5rem;
  padding: 0.65rem 1.75rem;
  border-radius: 999px;
  border: none;
  background: var(--accent-strong);
  color: #1b2433;
  font-weight: 600;
  cursor: pointer;
  transition: background 150ms ease, transform 150ms ease;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.audio-button:hover,
.audio-button:focus-visible {
  background: var(--accent);
  transform: translateY(-2px);
}

#holiday-audio {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 1000;
}

.modal[aria-hidden="false"] {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 15, 24, 0.7);
  backdrop-filter: blur(3px);
}

.modal-dialog {
  position: relative;
  max-width: 420px;
  margin: 10vh auto;
  background: #0f2035;
  border-radius: 24px;
  padding: 2.5rem 2rem;
  border: 2px solid var(--accent);
  box-shadow: 0 1.25rem 2.5rem rgba(0, 0, 0, 0.45);
  text-align: left;
}

.modal-dialog h3 {
  font-size: 2.25rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
  text-align: center;
}

.modal-subtitle {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--muted);
}

.modal-image {
  width: 100%;
  max-height: 220px;
  height: auto;
  display: block;
  margin: 0 0 1.25rem;
  filter: drop-shadow(0 0.5rem 1.5rem rgba(0, 0, 0, 0.35));
  border-radius: 16px;
  object-fit: cover;
}

.modal-dialog ul {
  padding-left: 1.25rem;
  margin: 0.75rem 0 0;
  color: var(--text);
  font-size: 1.1rem;
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  font-size: 1.5rem;
  background: transparent;
  border: none;
  color: var(--accent);
  cursor: pointer;
}

.modal-close:hover,
.modal-close:focus-visible {
  color: var(--accent-strong);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 480px) {
  body {
    padding: 1.5rem 1rem 3rem;
  }

  .modal-dialog {
    margin: 15vh 1rem;
  }
}
