/* Aanvullingen op Tailwind (CDN). Houd dit bestand klein. */

/* Geist, zelf gehost: geen verzoeken naar Google Fonts, passend bij "geen tracking". */
@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Geist";
  src: url("../fonts/geist.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

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

:focus-visible {
  outline: 3px solid #16a34a;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Fijne korrel over de hele pagina, tegen het steriele vlakke gevoel. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (prefers-color-scheme: dark) {
  body::before {
    opacity: 0.07;
    mix-blend-mode: screen;
  }
}

/* Zachte groene en gele gloed achter de hero. */
.hero-glow {
  background-image:
    radial-gradient(38rem 24rem at 12% -6%, rgba(22, 101, 52, 0.12), transparent 70%),
    radial-gradient(40rem 26rem at 92% 4%, rgba(251, 191, 36, 0.2), transparent 70%);
}

@media (prefers-color-scheme: dark) {
  .hero-glow {
    background-image:
      radial-gradient(38rem 24rem at 12% -6%, rgba(74, 222, 128, 0.1), transparent 70%),
      radial-gradient(40rem 26rem at 92% 4%, rgba(251, 191, 36, 0.09), transparent 70%);
  }
}

/* Gespreide intro van de hero. Alleen transform en opacity. */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.rise {
  animation: rise 600ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--d, 0ms);
}

@media (prefers-reduced-motion: reduce) {
  .rise {
    animation: none;
  }
}

/* De badge heeft een witte achtergrond en blijft ook in dark mode leesbaar. */
.badge-preview {
  background: #ffffff;
  border-radius: 12px;
}

/* Stickers onder de hero-kop: lichte kanteling, als losse labels. */
.sticker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  padding: 0.5rem 1rem;
  font-size: 0.9375rem;
  font-weight: 500;
  box-shadow: 0 10px 20px -14px rgba(28, 25, 23, 0.5);
  transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.sticker:hover {
  transform: rotate(0deg) translateY(-2px);
}

/* Tegels van het manifest. */
.tile {
  position: relative;
  border-radius: 1.75rem;
  padding: 1.75rem;
  box-shadow: inset 0 0 0 1px rgba(28, 25, 23, 0.05);
  transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.tile:hover {
  transform: translateY(-3px);
}

@media (prefers-color-scheme: dark) {
  .tile {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
  }
}

.tile-num {
  position: absolute;
  top: 1.5rem;
  right: 1.75rem;
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
  opacity: 0.4;
}

.tile-icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 8px 18px -10px rgba(28, 25, 23, 0.4), 0 0 0 1px rgba(28, 25, 23, 0.05);
}

@media (prefers-color-scheme: dark) {
  .tile-icon {
    background: rgba(28, 25, 23, 0.7);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
  }
}

.tile-title {
  margin-top: 1.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
  text-wrap: balance;
}

.tile-text {
  margin-top: 0.5rem;
  max-width: 28rem;
  text-wrap: pretty;
  color: #57534e;
}

@media (prefers-color-scheme: dark) {
  .tile-text {
    color: #a8a29e;
  }
}

/* Markeerstift onder een belangrijke zin. */
.marker {
  background: linear-gradient(transparent 58%, rgba(251, 191, 36, 0.5) 58%);
  color: inherit;
  padding: 0 0.1em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

@media (prefers-color-scheme: dark) {
  .marker {
    background: linear-gradient(transparent 58%, rgba(251, 191, 36, 0.28) 58%);
  }
}

/* Grid-kinderen mogen krimpen, zodat brede codeblokken scrollen in plaats van de pagina op te rekken. */
.grid > * {
  min-width: 0;
}

code,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
