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

.skip-link {
  position: absolute; top: -100%; left: 16px; z-index: 200;
  padding: 10px 18px; background: #1a5f8a; color: #fff;
  font-family: 'DM Sans', sans-serif; font-size: 0.9rem; font-weight: 600;
  text-decoration: none; border-radius: 0 0 6px 6px; transition: top 0.15s;
}
.skip-link:focus { top: 0; }

:focus { outline: none; }
:focus-visible { outline: 3px solid #e8a225; outline-offset: 3px; border-radius: 3px; }
.map-link:focus-visible { outline: 3px solid #e8a225; outline-offset: 5px; border-radius: 5px; }

@media (prefers-reduced-motion: reduce) {
  .skip-link, .map-shape, .lang-list a { transition: none; }
}

body {
  font-family: 'DM Sans', Arial, sans-serif;
  background: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  background-color: #015D91;
  padding: 21px 24px;
  display: flex; align-items: center; justify-content: center;
}

.logo img {
  height: 34px; display: block; mix-blend-mode: screen;
}

main {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; padding: 56px 24px 64px;
}

.welcome-heading {
  font-family: 'DM Serif Text', Georgia, serif;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 400; color: #1a1a2e;
  text-align: center; line-height: 1.2; margin-bottom: 40px;
}

.choose-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem; color: #232323;
  margin-bottom: 52px; letter-spacing: 0.01em;
}

.countries {
  display: flex; gap: 48px; justify-content: center;
  flex-wrap: wrap; max-width: 900px; width: 100%;
}

.country-card {
  display: flex; flex-direction: column; align-items: center; width: 120px;
}

.map-link {
  display: block; text-decoration: none; margin-bottom: 14px; border-radius: 4px;
}

.map-wrap {
  width: 110px; height: 110px; position: relative;
}

/* Country silhouettes — PNG files used as CSS masks */
.map-wrap.nl { --mask: url('../img/Nederland.png'); }
.map-wrap.be { --mask: url('../img/Belgie.png'); }
.map-wrap.fr { --mask: url('../img/Frankrijk.png'); }

.map-shape {
  position: absolute; inset: 0;
  background-color: #e8e3e0;
  transition: background-color 0.25s ease;
  mask-image: var(--mask);
  -webkit-mask-image: var(--mask);
  mask-mode: alpha;
  -webkit-mask-mode: alpha;
  mask-repeat: no-repeat; mask-position: center; mask-size: contain;
  -webkit-mask-repeat: no-repeat; -webkit-mask-position: center; -webkit-mask-size: contain;
}

.map-link:hover .map-shape { background-color: #e8a225; }

.country-code {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  font-family: 'DM Serif Text', Georgia, serif;
  font-size: 0.72rem; font-weight: 400; color: #232323;
  letter-spacing: 0.08em; pointer-events: none; padding-top: 8px;
}

.lang-list { list-style: none; text-align: center; display: flex; flex-direction: column; gap: 3px; }

.lang-list a {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem; font-weight: 500; color: #1a1a2e;
  text-decoration: none; line-height: 1.6; display: inline-block;
}
.lang-list a:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 540px) {
  main { padding: 36px 20px 48px; }
  .welcome-heading { font-size: 1.45rem; }
  .choose-label { display: none; }
  .countries { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 24px; max-width: 340px; }
  .country-card { width: auto; align-items: center; }
  .map-wrap { width: 90px; height: 90px; }
  .country-code { font-size: 0.62rem; }
}
