: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;
}

.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__footer {
  display: flex;
  justify-content: flex-end;
}

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

@media (max-width: 639px) {
  .gift-card {
    text-align: center;
  }

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

