@font-face {
  font-family: "Fredoka";
  src: url("./assets/fonts/fredoka-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 700;
  font-display: block;
}

:root {
  --sky: #bfe8f5;
  --ink: #203e2b;
  --cream: #fff9db;
  --yellow: #ffe15a;
  --logo-max: 460px;
  --logo-min: 132px;
  --logo-width: min(var(--logo-max), 82vw);
  --content-delay: 1000ms;
  --content-duration: 750ms;
  color: var(--ink);
  background: var(--sky);
  font-family: "Fredoka", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; isolation: isolate; }
a { color: inherit; }

.sky,
.lemon-field {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.sky { z-index: -2; background: var(--sky); }
.lemon-field { z-index: -1; overflow: hidden; }

.lemon {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
}

.lemon img {
  display: block;
  width: 100%;
  filter: drop-shadow(0 7px 5px rgb(100 81 19 / var(--shadow)));
  animation: appear var(--lemon-duration) ease-out var(--lemon-delay) both;
}

.site-header {
  position: sticky;
  z-index: 2;
  top: 12px;
  height: 0;
  margin-inline: auto;
  width: var(--logo-width);
}

.logo {
  display: block;
  width: var(--logo-width);
  transform: translateY(var(--logo-offset, 32px)) scale(var(--logo-scale, 1));
  transform-origin: top center;
}

.logo img { display: block; width: 100%; }
.intro { animation: appear var(--content-duration) ease-out var(--content-delay) both; }
@keyframes appear {
  from { opacity: 0; translate: 0 10px; }
  to { opacity: 1; translate: 0 0; }
}

.panel {
  width: min(100% - 2rem, 68rem);
  min-height: 110svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-inline: auto;
}

.hero {
  min-height: 100svh;
  align-items: center;
  text-align: center;
  padding-block: calc(var(--logo-width) * .36 + 3rem) 2rem;
}

h1, h2, blockquote {
  margin: 0;
  font-size: clamp(3.25rem, 10vw, 9rem);
  font-weight: 950;
  line-height: .9;
  letter-spacing: -.075em;
  -webkit-text-stroke: .07em var(--cream);
  paint-order: stroke fill;
  text-shadow: 0 .065em 0 rgb(32 62 43 / 17%);
  overflow-wrap: anywhere;
}

em {
  color: var(--yellow);
  font-style: normal;
  -webkit-text-stroke-color: var(--ink);
}

p {
  max-width: 34ch;
  margin: 1.25rem 0 0;
  font-size: clamp(1.125rem, 2.3vw, 1.5rem);
  font-weight: 680;
  line-height: 1.5;
  text-shadow: 0 1px 2px var(--cream), 0 0 8px var(--cream);
}

.scroll-link {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  margin-top: 2rem;
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 50%;
  box-shadow: 0 4px 0 var(--ink);
  font-size: 1.55rem;
  text-decoration: none;
}

.story { align-items: flex-start; scroll-margin-top: 4rem; }
.story h2 { max-width: 8ch; }
.quote { text-align: center; align-items: center; }
.quote blockquote { max-width: 12ch; }
.closing { align-items: flex-end; text-align: right; }

.site-footer {
  text-align: center;
  padding: 3rem 1rem 4rem;
  font-weight: 900;
  text-shadow: 0 0 5px var(--cream);
}

@media (max-width: 600px) {
  .closing { align-items: flex-start; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .intro, .lemon img { animation: none; }
}

/* De citroenlaag behoudt zijn maat wanneer mobiele browserbalken inschuiven. */
.lemon-field { bottom: auto; height: 100lvh; }
