html[data-theme="light"] a[href*="set-theme/light"],
html[data-theme="dark"] a[href*="set-theme/dark"] {
  display: none;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme]) a[href*="set-theme/dark"] {
    display: none;
  }
}

@media (prefers-color-scheme: light) {
  html:not([data-theme]) a[href*="set-theme/light"] {
    display: none;
  }
}

/* Hide the allergy input field initially */
.allergy-input input {
  pointer-events: none;
}

/* Show the input field when the checkbox is checked */
input[type="checkbox"]:checked + span + .allergy-input input {
  pointer-events: auto;
}

.averia-serif-libre-light {
  font-family: "Averia Serif Libre", serif;
  font-weight: 300;
  font-style: normal;
}

.averia-serif-libre-regular {
  font-family: "Averia Serif Libre", serif;
  font-weight: 400;
  font-style: normal;
}

.averia-serif-libre-bold {
  font-family: "Averia Serif Libre", serif;
  font-weight: 700;
  font-style: normal;
}

.averia-serif-libre-light-italic {
  font-family: "Averia Serif Libre", serif;
  font-weight: 300;
  font-style: italic;
}

.averia-serif-libre-regular-italic {
  font-family: "Averia Serif Libre", serif;
  font-weight: 400;
  font-style: italic;
}

.averia-serif-libre-bold-italic {
  font-family: "Averia Serif Libre", serif;
  font-weight: 700;
  font-style: italic;
}

.aboreto-regular {
  font-family: "Aboreto", system-ui;
  font-weight: 400;
  font-style: normal;
}

/* ... */
html {
  scroll-behavior: smooth;
}

.background {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: -1;
}

.background::before,
.background::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fffcf4;
  background-repeat: no-repeat;
  background-position: left -50px bottom -120px;
  background-size: 64%;
  background-blend-mode: multiply;
  will-change: opacity;
  transition: opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.background::before {
  background-image: url(/static/images/background-bw.png);
  opacity: 1;
}

.background::after {
  background-image: url(/static/images/background.png);
  opacity: 0;
}

.background.colored::before {
  opacity: 0;
}

.background.colored::after {
  opacity: 1;
}

@media (max-width: 768px) {
  .background::before,
  .background::after {
    background-position: left -40px bottom -50px;
    background-size: 100%;
  }
}

article header h3 {
  margin: 0;
}
.noscript-check {
  text-align: center;
}

/* Intro */

.intro-screen {
  height: calc(100vh - 160px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  scroll-snap-align: start; /* optional */
}

.intro-container {
  display: flex;
  justify-content: center;
  text-align: center;
}

.intro {
  max-width: 300px;

  font-family: "Averia Serif Libre", serif;
  font-weight: 300;
  font-style: italic;
}

.title {
  font-family: "Aboreto", system-ui;
  font-weight: 400;
  font-style: normal;

  font-size: 3rem;
  line-height: 3rem;

  margin: 4rem 0;
  display: inline-grid; /* shrink to fit */
  grid-auto-rows: auto;
  gap: 0.25rem; /* optional spacing */
  text-align: start; /* default for left alignment */
}

.title .row:first-child {
  justify-self: start;
}

.title .row:last-child {
  justify-self: end;
}

.title b {
  font-weight: 400;
  font-size: 3.2rem;
  vertical-align: baseline;
}

.title span {
  font-size: 1.6rem;
  vertical-align: middle;
  margin: 0 auto;

  font-family: "Averia Serif Libre", serif;
  font-weight: 300;
  font-style: italic;
}

.rsvp-cta {
  margin-top: 6em;
  justify-self: end;
}

.scroll-caret {
  text-align: center;
  font-size: 1.5rem;
  opacity: 0.7;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(5px);
  }
}

.header {
  padding-top: 80px;
}

html.js-enabled .attendance-submit {
  display: none;
}

html.js-enabled .noscript-check {
  display: none;
}

.saved-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: 0.95em;
  font-weight: 500;
  opacity: 0;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
  transform: scale(1) translateY(0);
}
html.js-enabled .saved-indicator {
  opacity: 1;
}
.saved-indicator.dirty {
  opacity: 0 !important;
}
.saved-indicator.animate {
  animation: pulse 0.5s ease;
  animation-fill-mode: none;
}

@keyframes pulse {
  0% {
    transform: scale(1) translateY(0);
  }
  50% {
    transform: scale(1.2) translateY(-2px);
  }
  100% {
    transform: scale(1) translateY(0);
  }
}
.check-icon {
  stroke: black;
}

.radio-group {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}
article header {
  display: flex;
  align-items: baseline;
}
article header span {
  margin-left: auto;
}
