@font-face {
  font-family: 'Bonheur Royale';
  src: url('../fonts/BonheurRoyale-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Playfair Display';
  src: url('../fonts/PlayfairDisplay-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Playfair Display';
  src: url('../fonts/PlayfairDisplay-Italic-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --accent: #ae1725;
  --page-bg: #fff5e6;
  --text-color: #1b1b1b;
  --card-bg: rgba(255, 255, 255, 0.88);
  --max-width: 760px;
  --bg-band-width: 100%;
  --bg-top-space: clamp(200px, 32vh, 480px);
  --bg-bottom-space: clamp(230px, 36vh, 500px);
}

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

body {
  margin: 0;
  min-height: max(100vh, 500px);
  font-family: 'Playfair Display', 'Times New Roman', serif;
  color: var(--text-color);
  background-color: var(--page-bg);
  background-image: url('../images/top.png'),
    url('../images/bottom.png');
  background-repeat: no-repeat, no-repeat;
  background-position: top center, bottom center;
  background-size: var(--bg-band-width) auto, var(--bg-band-width) auto;
  display: flex;
  flex-direction: column;
}

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

header {
  display: flex;
  justify-content: flex-end;
  padding: 0.75rem 1.5rem 0;
  position: relative;
  z-index: 1;
  width: 100%;
}

h1 {
  margin: 0;
  font-family: 'Bonheur Royale', 'Brush Script MT', cursive;
  font-size: 4.2rem;
  color: var(--accent);
  font-weight: 400;
  /*letter-spacing: 0.08em;*/
}

.tagline {
  margin: 3rem 0 0;
  font-size: 2rem;
  color: var(--accent);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.page-nav {
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
}

.page-nav select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 0.65rem 2.75rem 0.65rem 1rem;
  font-size: 0.95rem;
  font-family: inherit;
  background-color: #fff;
  background-image: linear-gradient(45deg, transparent 50%, var(--accent) 50%),
    linear-gradient(135deg, var(--accent) 50%, transparent 50%);
  background-position: calc(100% - 1.3rem) 0.9rem, calc(100% - 0.9rem) 0.9rem;
  background-size: 0.5rem 0.5rem, 0.5rem 0.5rem;
  background-repeat: no-repeat;
  cursor: pointer;
  color: var(--text-color);
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(3rem, 7vw, 6rem);
  padding: calc(var(--bg-top-space) + clamp(2rem, 5vw, 4.5rem)) 1rem
    calc(var(--bg-bottom-space) + clamp(3.5rem, 6.5vw, 7rem));
}

.content-card {
  max-width: var(--max-width);
  margin: 0 auto;
  background-color: transparent;
  padding: 2.75rem 2.25rem;
  border-radius: 1.5rem;
  text-align: center;
  box-shadow: none;
  backdrop-filter: none;
}

hr {
  border: none;
  height: 1px;
  background-color: #000;
  max-width: 320px;
  margin: 1.75rem auto;
}

.date-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 600;
}

.date-grid span {
  display: block;
}

.location {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-decoration: none;
  color: var(--text-color);
  text-align: center;
  transition: color 0.2s ease;
}

.location:hover,
.location:focus-visible {
  color: var(--accent);
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2rem;
  padding: 0.85rem 2.5rem;
  border-radius: 999px;
  background-color: #ceae53;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.14em;
  font-weight: 600;
  text-transform: uppercase;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-button:focus,
.cta-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.content-card h2 {
  margin-top: 0;
  font-size: 1.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.content-card p,
.content-card li {
  line-height: 1.6;
  /*margin: 0 0 1.25rem;*/
}

.content-card ul {
  padding-left: 1.25rem;
  text-align: left;
}

footer {
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

@media (max-width: 640px) {
  :root {
    --bg-top-space: clamp(20px, 10vh, 90px);
    --bg-bottom-space: clamp(80px, 15vh, 180px);
  }

  header {
    padding: 1rem 1rem 0;
  }

  .tagline {
    letter-spacing: 0.12em;
    font-size: 24px;
    font-family: 'Playfair Display', 'Times New Roman', serif;
  }

  main {
    gap: clamp(1.75rem, 6vw, 3rem);
    padding: calc(var(--bg-top-space) + 0.5rem) 1rem
      calc(var(--bg-bottom-space) + 1rem);
  }

  .content-card {
    padding: 2.25rem 1.75rem;
  }

  .date-grid {
    gap: 0.75rem;
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  :root {
    --bg-top-space: clamp(150px, 28vh, 340px);
    --bg-bottom-space: clamp(180px, 30vh, 360px);
  }

  main {
    gap: clamp(2rem, 5vw, 4rem);
    padding: calc(var(--bg-top-space) + clamp(1.5rem, 4vw, 3.25rem)) 1rem
      calc(var(--bg-bottom-space) + clamp(2.5rem, 5.5vw, 4rem));
  }
}
