@import url("https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@400;600;700;900&display=swap");

:root {
  --blue: #28388e;
  --navy: #1b2452;
  --light-blue: #aebbee;
  --muted: #4a5578;
  /* Myriad Pro is de huisstijlletter; Source Sans 3 (ook van Adobe) is de vrije, bijna identieke fallback */
  --font: "Myriad Pro", "MyriadPro", "Myriad", "Source Sans 3", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  color: var(--navy);
  background: var(--navy);
}

/* Vaste achtergrondfoto met blauwe waas, zodat tekst altijd leesbaar blijft */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(27, 36, 82, 0.15) 0%, rgba(27, 36, 82, 0.35) 55%, rgba(27, 36, 82, 0.85) 100%),
    url("media/achtergrond.jpg") center / cover no-repeat;
}

[data-nl],
[data-en] {
  display: none;
}
html[data-lang="nl"] [data-nl],
html[data-lang="en"] [data-en] {
  display: revert;
}

/* Taalkeuze (in de kaartkop) */
.card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.lang-switch {
  display: flex;
  gap: 0.25rem;
  padding: 0.25rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.lang-switch button {
  border: 0;
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font: 600 0.8rem var(--font);
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.75);
  background: transparent;
  cursor: pointer;
}
.lang-switch button[aria-pressed="true"] {
  color: var(--navy);
  background: #fff;
}

/* Blok 1: afscheidsbrief op een glazen kaart */
.farewell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.25rem;
}
.card {
  width: 100%;
  max-width: 760px;
  padding: clamp(2rem, 5vw, 3.5rem);
  border-radius: 24px;
  background: rgba(20, 28, 66, 0.78);
  color: #fff;
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 30px 80px rgba(10, 14, 40, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.logo {
  display: block;
  width: 220px;
  height: auto;
}
h1,
h2 {
  margin: 0;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
}
h1 {
  font-size: clamp(1.9rem, 6vw, 4rem);
  margin-bottom: 2rem;
}
h1 .accent {
  color: var(--light-blue);
}
.letter p {
  margin: 0 0 1.1rem;
  color: rgba(255, 255, 255, 0.85);
}
.letter .salutation {
  font-weight: 600;
  color: #fff;
}
.signature {
  margin: 2rem 0 0;
  font-size: 1.3rem;
  font-weight: 700;
}
.signature small {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.85rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
}

/* Blok 2: dankjewel */
.thanks {
  padding: 6rem 1.25rem 3rem;
  text-align: center;
  color: #fff;
  background: rgba(20, 28, 66, 0.78);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
}
.thanks .heart {
  width: 34px;
  height: 34px;
  color: var(--light-blue);
  margin-bottom: 1.5rem;
}
.thanks h2 {
  font-size: clamp(2.6rem, 7vw, 4.75rem);
  margin-bottom: 1.25rem;
}
.thanks h2 .accent {
  color: var(--light-blue);
}
.thanks p {
  margin: 0 auto;
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.85);
}
.meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 2rem;
  max-width: 760px;
  margin: 5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.65);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
