:root,
[data-theme="dark"] {
  color-scheme: dark;
  --pico-background-color: rgb(19, 22.5, 30.5);
  --pico-color: #c2c7d0;
  --pico-muted-color: #8891a4;
  --pico-primary: #e48500;
  --pico-primary-hover: #ffa23a;
  --pico-font-family:
    system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --pico-font-size: 100%;
  --pico-line-height: 1.5;
}

* {
  box-sizing: border-box;
}

html {
  font-size: var(--pico-font-size);
  overflow-x: hidden;

}

body {
  margin: 0;
  min-width: 320px;
  background: var(--pico-background-color);
  color: var(--pico-color);
  font-family: var(--pico-font-family);
  line-height: var(--pico-line-height);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 1rem;
  color: #f0f1f3;
  line-height: 1.2;
}

p,
ul,
address {
  margin: 0 0 1rem;
}

ul {
  padding-left: 1.25rem;
}

a {
  color: var(--pico-primary);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

a:hover,
a:focus {
  color: var(--pico-primary-hover);
}

small {
  font-size: 0.875em;
}

img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 700px) {
  .container {
    width: min(100%, 100%);
  }
}

html {
  scroll-behavior: smooth;
}

:root {
  --pico-font-size: 99%;
}

body {
  padding: 0;
  font-family:
    system-ui,
    -apple-system,
    sans-serif;
}

main {
  display: block;
}

.container {
  width: min(100%, 1000px);
  margin-inline: auto;
}

main {
  margin: 0 auto;
  padding: 2.5rem;
  margin-top: 2rem;
  max-width: 1000px;
}

footer {
  margin: 0 auto;
  padding: 2.5rem;
  margin-top: 2rem;
  max-width: 1000px;
}

section {
  margin-bottom: 3rem;
}

#intro {
  margin-bottom: 6rem;
  font-size: 1.15rem;
}

/* Speciaal font titels */

h1,
h2,
h3 {
  font-family: "Lora", serif;
  font-weight: 600;
}

h2 {
  margin-top: 5rem;
  margin-bottom: 2rem;
}

#intro h2 {
  margin-top: 0;
}

p,
li {
  line-height: 1.7;
}

li {
  padding-bottom: 0.3em;
}

/* Inline image */

.inline-img-right {
  float: right;
  margin: 0 0 2rem 2rem;
  width: 35%;
  height: auto;
  border-radius: 2px;
  max-width: 300px;
}

@media (max-width: 700px) {
  .inline-img-right {
    float: right;
    width: auto;
    height: 180px;
    margin: 0 0 2rem 2rem;
  }
}

.inline-img-left {
  float: left;
  margin: 3em 0 -4em 0;
  border-radius: 2px;
}

/* Witte kadertjes */
.inline-img-left,
.inline-img-right,
.fotos img {
  border: 1px solid rgb(255, 255, 255);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  background: white;
}

/* Zorg dat float netjes cleared wordt bij de sectie */
section::after {
  content: "";
  display: block;
  clear: both;
}

/* Fotogalerij netjes vierkant en responsive */
.fotos .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

@media (max-width: 700px) {
  .fotos .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.fotos img {
  width: 100%;
  aspect-ratio: 1 / 1;
  /* dit maakt ze altijd vierkant */
  object-fit: cover;
  border-radius: 2px;
  cursor: pointer;
  transition: 0.3s ease;
}

.fotos img:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Hero */

.hero {
  background-image: url("../images/perdido-summer.webp");
  background-size: cover;
  background-position: center bottom;
  height: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  position: relative;
  width: 100dvw;
  margin-left: 50%;
  transform: translateX(-50%);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.2);
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 35%;
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0),
      var(--pico-background-color));
  z-index: 0;
  pointer-events: none;
}

.language-switcher {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.language-switcher a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

.language-switcher a:hover,
.language-switcher a:focus-visible {
  color: rgba(255, 255, 255, 0.95);
}

.language-switcher a[aria-current="page"] {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

@media (max-width: 700px) {
  .language-switcher {
    top: 0.7rem;
    right: 0.8rem;
    font-size: 0.72rem;
    gap: 0.35rem;
  }
}

.hero h1 {
  position: relative;
  z-index: 1;
  font-size: 3rem;
  margin: 0;
}

@media (max-width: 1000px) {
  .hero {
    height: 320px;
  }
}

@media (max-width: 700px) {
  .hero {
    height: 220px;
  }
}

/* Logo */

.site-title {
  position: relative;
  margin: 0;
}

.site-title .logo {
  display: block;
  width: 220px;
  height: auto;
}

.site-title span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Kleiner adres en regio-kaartje */

address {
  font-size: 0.9rem;
  border-left: 3px dotted rgb(167, 167, 167);
  padding-left: 1.5em;
  margin: 3em 0 2em 0;
  font-style: normal;
}

.smaller {
  margin-top: 4em;
  padding-left: 1em;
  font-size: 0.9rem;
  border-left: 3px dotted rgb(167, 167, 167);
}

.smaller li {
  padding: 0;
}

/* Fade animatie; incl js script op html pagina */

.fade {
  opacity: 0;
  transform: translateY(20px);
  transition: 0.6s ease;
}

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