:root {
  --olive: #556b2f;
  --cream: #fcfaf7;
  --accent: #b8860b;
}

html {
  box-sizing: border-box;
}

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

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  font-family: 'Gruppo', sans-serif;
  background-color: var(--cream);
  color: var(--olive);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-y: scroll;
  border: 8px solid var(--olive);
  padding: 1rem;
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  padding: 2rem 1rem;
  position: relative;
  z-index: 0;
  --hero-logo-frame-size: min(204px, 54vw);
  --hero-logo-size: min(148px, 38vw);
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.hero::before {
  z-index: -2;
  background: url('/rsvp/assets/hoeve.svg') no-repeat center top /
    clamp(680px, calc(100vh * 1.05), 1200px) auto;
  filter: blur(2.5px);
}

.hero::after {
  background: rgba(252, 250, 247, 0.55);
}

.content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
  width: min(42rem, 100%);
  --gift-actions-width: min(42rem, 100%);
}

.hero-logo-frame,
.hero__logo-frame {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--hero-logo-frame-size);
  aspect-ratio: 1;
  border-radius: 50%;
  margin-bottom: 1.75rem;
}

.hero-logo-orb,
.hero__logo-orb {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(
    circle at 34% 34%,
    #fcfaf7ed,
    #fcfaf780 68%,
    #fcfaf700 100%
  );
  box-shadow: 0 18px 36px #556b2f38;
  filter: blur(0.15px);
  pointer-events: none;
}

.hero-logo,
.hero__logo {
  position: relative;
  width: var(--hero-logo-size);
  height: auto;
  filter: drop-shadow(0 8px 18px #556b2f4d);
  mix-blend-mode: normal;
}

.hero.hero--invitation {
  --hero-logo-frame-size: 100px;
  --hero-logo-size: 94px;
}

.title,
.hero__title {
  font-family: 'Barlow', sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  margin: 0;
  letter-spacing: 0.16em;
}

.names,
.hero__names {
  font-family: 'Unna', serif;
  font-size: 2rem;
  margin: 0.5rem 0 2rem;
}

.date,
.hero__date {
  font-family: 'Gruppo', sans-serif;
  font-size: 2.25rem;
  margin: 0.5rem 0;
  letter-spacing: 0.1em;
}

.subtitle,
.hero__subtitle {
  font-family: 'Unna', serif;
  font-size: 1.25rem;
  margin: 0 auto 2rem;
  max-width: 32rem;
  line-height: 1.6;
}

.highlight {
  color: var(--accent);
  font-weight: bold;
}

.actions,
.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  justify-content: center;
  width: 100%;
}

.btn {
  background-color: var(--olive);
  color: var(--cream);
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border: none;
  border-radius: 4px;
  font-family: 'Gruppo', sans-serif;
  font-weight: bold;
  display: inline-block;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 2px solid transparent;
  width: 100%;
}

.btn:hover,
.btn:focus {
  background-color: var(--accent);
  color: var(--cream);
}

.btn.secondary {
  background-color: var(--cream);
  border: 2px solid var(--olive);
  color: var(--olive);
  padding: calc(0.75rem - 2px) calc(1.5rem - 2px);
  box-shadow: 0 4px 12px #556b2f1f;
}

.btn.secondary:hover,
.btn.secondary:focus {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--cream);
}

.invite-search {
  background-color: rgba(252, 250, 247, 0.94);
  border: 2px solid rgba(85, 107, 47, 0.45);
  border-radius: 10px;
  padding: 1.5rem clamp(1.25rem, 4vw, 2rem);
  box-shadow: 0 18px 36px rgba(85, 107, 47, 0.22);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.invite-search:has(.invite-search__result-list[hidden]) {
  padding-bottom: 1.1rem;
}

.invite-search__title {
  font-family: 'Unna', serif;
  font-size: 1.35rem;
  margin: 0;
}

.invite-search__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.invite-search__fields {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.invite-search__field {
  display: flex;
  flex-direction: column;
  text-align: left;
  gap: 0.35rem;
}

.invite-search__label {
  font-family: 'Gruppo', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.invite-search__field input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  border: 2px solid rgba(85, 107, 47, 0.45);
  background-color: rgba(252, 250, 247, 0.95);
  font-family: 'Unna', serif;
  font-size: 1.05rem;
  color: rgba(45, 56, 23, 0.95);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.invite-search__field input:focus {
  outline: none;
  border-color: rgba(184, 134, 11, 0.75);
  box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.2);
}

.invite-search__submit {
  width: 100%;
  font-size: 1.1rem;
}

.invite-search__help-link {
  text-align: center;
  font-size: 0.95rem;
}

.invite-search__results {
  text-align: left;
  color: rgba(45, 56, 23, 0.9);
}

.invite-search__results p {
  margin: 0;
  font-family: 'Unna', serif;
}

.invite-search__result-list {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  gap: clamp(0.75rem, 2.5vw, 1rem);
}

.invite-search__result-item {
  margin: 0;
}

.invite-search__result-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-decoration: none;
  padding: clamp(0.85rem, 2.2vw, 1rem) clamp(1rem, 3vw, 1.35rem);
  border-radius: 4px;
  border: 2px solid rgba(85, 107, 47, 0.55);
  background-color: rgba(252, 250, 247, 0.95);
  color: rgba(45, 56, 23, 0.95);
  box-shadow: 0 12px 26px rgba(85, 107, 47, 0.18);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background-color 0.2s ease,
    color 0.2s ease;
}

.invite-search__result-link:hover,
.invite-search__result-link:focus {
  border-color: rgba(184, 134, 11, 0.8);
  background-color: rgba(184, 134, 11, 0.14);
  box-shadow: 0 16px 32px rgba(184, 134, 11, 0.22);
  color: rgba(45, 56, 23, 0.95);
  transform: translateY(-1px);
  outline: none;
}

.invite-search__result-name {
  font-family: 'Unna', 'Times New Roman', Times, serif;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.invite-search__result-meta {
  font-family: 'Gruppo', 'Trebuchet MS', 'Gill Sans', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(45, 56, 23, 0.7);
}

.footer-note {
  text-align: center;
  font-family: 'Unna', serif;
  margin-top: 2rem;
}

.site-footer {
  flex-shrink: 0;
  width: min(960px, 100%);
  margin-top: clamp(2rem, 5vw, 3rem);
  margin-inline: auto;
}

.site-footer__inner {
  max-width: 420px;
  margin: 0 auto;
  display: grid;
  justify-items: center;
  gap: 0.85rem;
  text-align: center;
}

.site-footer__logo {
  display: block;
  height: 32px;
}

.site-footer__logo svg {
  display: block;
  width: 92px;
  height: auto;
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-note {
  font-family: 'Unna', serif;
  margin: 0;
  line-height: 1.6;
}

.hero-note a {
  color: inherit;
  font-weight: bold;
}

@media (min-width: 600px) {
  .subtitle {
    font-size: 1.5rem;
  }

  .title {
    font-size: 2.5rem;
  }

  .invite-search__fields {
    flex-direction: row;
  }

  .invite-search__field {
    flex: 1;
  }
}
.hero.hero--cadeautips {
  --hero-logo-frame-size: 100px;
  --hero-logo-size: 94px;
}

.hero.hero--cadeautips .content {
  width: min(54rem, 100%);
  --gift-actions-width: min(54rem, 100%);
}

.gift-intro {
  background-color: rgba(252, 250, 247, 0.88);
  border: 1px solid rgba(85, 107, 47, 0.35);
  border-radius: 12px;
  padding: 0 clamp(1.25rem, 4vw, 2rem);
  margin: 0 0 clamp(2rem, 6vw, 2.5rem);
  font-family: 'Unna', serif;
  line-height: 1.7;
  box-shadow: 0 18px 32px rgba(85, 107, 47, 0.18);
  width: 100%;
  max-width: 54rem;
}

.gift-grid {
  display: grid;
  gap: clamp(1.25rem, 4vw, 1.75rem);
  width: 100%;
  max-width: 54rem;
  margin-bottom: clamp(2.5rem, 7vw, 3.5rem);
}

.gift-card {
  background: rgba(252, 250, 247, 0.95);
  border: 1px solid rgba(85, 107, 47, 0.28);
  border-radius: 16px;
  padding: clamp(1.5rem, 4vw, 2rem);
  text-align: left;
  box-shadow: 0 22px 36px rgba(85, 107, 47, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 100%;
  overflow-wrap: anywhere;
}

.gift-card:hover,
.gift-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(184, 134, 11, 0.55);
  box-shadow: 0 28px 48px rgba(184, 134, 11, 0.22);
}

.gift-card__title {
  font-family: 'Barlow', sans-serif;
  font-size: clamp(1.4rem, 4vw, 1.8rem);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0;
  word-break: break-word;
}

.gift-card__description {
  font-family: 'Unna', serif;
  margin: 0;
  line-height: 1.7;
  color: rgba(45, 56, 23, 0.94);
  overflow-wrap: anywhere;
  hyphens: auto;
  word-break: break-word;
}

.giftlist-status {
  width: 100%;
  max-width: 54rem;
  font-family: 'Unna', serif;
  text-align: center;
  min-height: 1.25rem;
  color: rgba(45, 56, 23, 0.9);
  margin-bottom: 0.75rem;
}

.giftlist-status[data-variant='error'] {
  color: rgba(150, 38, 29, 0.92);
}

.giftlist-grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2rem);
  width: 100%;
  max-width: 54rem;
  margin-bottom: clamp(2.5rem, 7vw, 3.5rem);
}

.giftlist-card {
  background: rgba(252, 250, 247, 0.95);
  border: 1px solid rgba(85, 107, 47, 0.28);
  border-radius: 18px;
  padding: clamp(1.05rem, 3vw, 1.5rem);
  box-shadow: 0 22px 36px rgba(85, 107, 47, 0.18);
  display: grid;
  gap: 1rem;
  align-items: center;
  overflow: hidden;
}

.giftlist-card__media {
  position: relative;
  display: grid;
  gap: 0.5rem;
}

.giftlist-card__image-wrapper {
  position: relative;
}

.giftlist-card--mine {
  border-color: rgba(184, 134, 11, 0.6);
  box-shadow: 0 24px 40px rgba(184, 134, 11, 0.22);
}

.giftlist-card--reserved {
  border-color: rgba(85, 107, 47, 0.4);
  opacity: 0.65;
  filter: grayscale(0.55);
}

.giftlist-card--fully-reserved {
  opacity: 0.5;
  filter: grayscale(0.75);
}

.giftlist-card__image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(85, 107, 47, 0.2);
}

.giftlist-card__content {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.giftlist-card__title {
  font-family: 'Barlow', sans-serif;
  font-size: clamp(1.2rem, 3.5vw, 1.6rem);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0;
}

.giftlist-card__badge {
  font-family: 'Barlow', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(85, 107, 47, 0.25);
  background: #fdfbf7;
  color: rgba(45, 56, 23, 0.9);
}

.giftlist-card__badge--availability {
  position: absolute;
  top: 12px;
  left: 12px;
}

.giftlist-card__badge--price {
  position: absolute;
  right: 12px;
  bottom: 12px;
  font-weight: 700;
}

.giftlist-card__badge--mine {
  border-color: rgba(184, 134, 11, 0.6);
  color: rgba(120, 79, 0, 0.95);
  background: #f5e2b8;
}

.giftlist-card__badge--reserved {
  border-color: rgba(85, 107, 47, 0.4);
  background: #e1e9d6;
}

.giftlist-card__badge--available {
  border-color: rgba(85, 107, 47, 0.2);
  background: #fcfaf7;
}

.giftlist-card__status {
  font-family: 'Unna', serif;
  margin: 0;
  line-height: 1.6;
  color: rgba(45, 56, 23, 0.9);
}

.giftlist-card__contribution {
  font-family: 'Unna', serif;
  margin: 0;
  color: rgba(45, 56, 23, 0.85);
}

.giftlist-progress {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(85, 107, 47, 0.12);
  overflow: hidden;
}

.giftlist-progress__bar {
  display: block;
  height: 100%;
  background: rgba(184, 134, 11, 0.7);
  border-radius: 999px;
}

.giftlist-progress__text {
  font-family: 'Unna', serif;
  margin: 0;
  color: rgba(45, 56, 23, 0.85);
}

.giftlist-card__link {
  width: 100%;
  text-align: center;
}

.giftlist-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
}

.giftlist-card__contribution-row {
  display: flex;
  gap: 0.5rem;
  width: 100%;
  align-items: center;
  justify-content: center;
}

.giftlist-card__amount {
  flex: 0 1 180px;
  width: 100%;
  max-width: 180px;
  min-width: 140px;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(85, 107, 47, 0.35);
  background: rgba(255, 255, 255, 0.75);
  color: rgba(45, 56, 23, 0.9);
  font-family: 'Unna', serif;
  line-height: 1.2;
}

.giftlist-card__button {
  width: fit-content;
}

.giftlist-card__button--danger {
  border-color: rgba(231, 76, 60, 0.6);
  color: rgba(140, 38, 34, 0.95);
  background: rgba(231, 76, 60, 0.12);
}

.giftlist-card__button--danger:hover,
.giftlist-card__button--danger:focus {
  background: rgba(231, 76, 60, 0.2);
}

.giftlist-card__taken {
  font-family: 'Unna', serif;
  font-weight: bold;
  color: rgba(85, 107, 47, 0.9);
}

.giftlist-empty {
  font-family: 'Unna', serif;
  text-align: center;
  margin: 0;
  padding: 1rem;
  color: rgba(45, 56, 23, 0.9);
}

.action-cluster {
  width: var(--gift-actions-width);
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: clamp(0.75rem, 2vw, 1rem);
}

.action-cluster > div,
.action-cluster .actions {
  box-sizing: border-box;
  width: 100%;
}

.action-cluster .gift-actions {
  width: 100%;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  row-gap: clamp(0.65rem, 2vw, 0.9rem);
  column-gap: clamp(0.5rem, 2vw, 0.75rem);
  padding-block: 0;
}

.gift-actions .btn {
  width: 100%;
  display: block;
}

.actions--return {
  width: 100%;
  margin: 0;
}

.actions--return .btn {
  width: 100%;
  max-width: none;
  margin: 0;
}

.btn.cadeaulijst {
  background-color: rgba(184, 134, 11, 0.12);
  border-color: rgba(184, 134, 11, 0.65);
  color: rgba(184, 134, 11, 0.9);
}

.btn.cadeaulijst:hover,
.btn.cadeaulijst:focus {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--cream);
}

.modal-open {
  overflow: hidden;
}

.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 2rem);
  z-index: 9999;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(32, 41, 17, 0.65);
  backdrop-filter: blur(4px);
}

.modal__dialog {
  position: relative;
  background: var(--cream);
  color: var(--olive);
  border-radius: 18px;
  border: 2px solid rgba(85, 107, 47, 0.35);
  box-shadow: 0 28px 52px rgba(32, 41, 17, 0.45);
  width: min(28rem, 100%);
  padding: clamp(1.5rem, 4vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.modal__title {
  font-family: 'Barlow', sans-serif;
  font-size: 1.35rem;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.modal__close {
  background: none;
  border: none;
  font-size: 1.75rem;
  line-height: 1;
  color: inherit;
  cursor: pointer;
}

.modal__body {
  font-family: 'Unna', serif;
  line-height: 1.7;
}

.modal__iban {
  font-size: 1.35rem;
  font-weight: bold;
  letter-spacing: 0.15em;
  text-align: center;
  margin: 0.5rem 0 1rem;
}

.modal__amount {
  font-family: 'Unna', serif;
  font-weight: bold;
  text-align: center;
  margin: 0 0 1rem;
}

.modal__footer {
  display: flex;
  justify-content: flex-end;
}

.gift-amount-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.gift-amount-form__label {
  font-family: 'Unna', serif;
  font-weight: 600;
}

.gift-amount-form__input {
  width: min(240px, 100%);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(85, 107, 47, 0.35);
  background: rgba(255, 255, 255, 0.85);
  color: rgba(45, 56, 23, 0.9);
  font-family: 'Unna', serif;
  line-height: 1.2;
}

.gift-amount-form__error {
  margin: 0;
  color: rgba(159, 43, 34, 0.95);
  font-family: 'Unna', serif;
  font-size: 0.95rem;
}

@media (min-width: 640px) {
  .gift-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .giftlist-card {
    grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
  }

  .giftlist-card__image {
    height: 100%;
  }
}

@media (max-width: 639px) {
  .giftlist-card__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .giftlist-card__button,
  .giftlist-card__link {
    width: 100%;
  }

  .giftlist-card__amount {
    flex: 1 1 auto;
    max-width: none;
    min-width: 0;
    padding: 0.35rem 0.6rem;
  }

  .giftlist-card__contribution-row {
    flex-direction: row;
  }

  .gift-card {
    text-align: center;
  }

  .gift-card__description {
    text-align: left;
  }
}
