/* ==========================================================================
   Tarentuba – tijdelijke website (in aanbouw)
   ========================================================================== */

/* Poppins (SIL Open Font License 1.1), zelf gehost: geen verzoeken naar Google */
@font-face {
  font-family: "Poppins";
  src: url("fonts/poppins-regular-latin.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("fonts/poppins-bold-latin.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Kleuren, rechtstreeks uit het logo gemeten */
  --pek: #0b0b0b;       /* achtergrond van het logo */
  --messing: #ebab42;   /* goud van de tuba-spin en "TUBA" */
  --brons: #3c2c15;     /* schaduwen op de poten */
  --ivoor: #f2ece2;     /* "TAREN" */
  --zilver: #9a9998;    /* "GAME DEVELOPMENT" */

  --font: "Poppins", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --gutter: clamp(1.25rem, 5vw, 5rem);
  --content: 72rem;
}

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

html {
  color-scheme: dark;
  background: var(--pek);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(1rem, 0.94rem + 0.25vw, 1.125rem);
  line-height: 1.65;
  color: var(--zilver);
  background: var(--pek);
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--messing);
  color: var(--pek);
}

/* --- Opbouw ------------------------------------------------------------- */

.page {
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden; /* het web loopt door tot buiten beeld */
}

.hero,
.footer {
  width: 100%;
  max-width: calc(var(--content) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.hero {
  display: grid;
  align-items: center;
  justify-items: center;
  gap: clamp(2.5rem, 6vw, 6rem);
  padding-block: clamp(2.5rem, 8vh, 6rem) clamp(2rem, 5vh, 4rem);
}

@media (min-width: 60rem) {
  .hero {
    grid-template-columns: minmax(0, 30rem) minmax(0, 34rem);
    justify-content: space-between;
  }
}

/* --- Logo met web ------------------------------------------------------- */

.brand {
  position: relative;
  isolation: isolate;
  width: min(100%, 30rem);
}

.logo {
  margin: 0;
}

.logo img {
  display: block;
  width: 100%;
  height: auto;
}

/* Het web draait om het lijf van de spin (--hub-x / --hub-y binnen het logo) */
.web {
  --hub-x: 50%;
  --hub-y: 45%;
  position: absolute;
  z-index: -1;
  left: var(--hub-x);
  top: var(--hub-y);
  width: 260%;
  height: auto;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  color: var(--messing);
  pointer-events: none;
  -webkit-mask-image: radial-gradient(closest-side, transparent 16%, #000 30%, #000 58%, transparent 96%);
  mask-image: radial-gradient(closest-side, transparent 16%, #000 30%, #000 58%, transparent 96%);
}

.web path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-dasharray: 1 1;
  stroke-dashoffset: 1;
  animation: spin-thread 1s cubic-bezier(0.3, 0.7, 0.3, 1) var(--delay, 0s) forwards;
}

.web .radial {
  stroke-opacity: 0.24;
}

.web .spiral {
  --delay: 0.9s;
  stroke-opacity: 0.5;
  animation-duration: 2.4s;
  animation-timing-function: cubic-bezier(0.45, 0.1, 0.3, 1);
}

@keyframes spin-thread {
  to {
    stroke-dashoffset: 0;
  }
}

/* --- Tekst -------------------------------------------------------------- */

.intro {
  max-width: 34rem;
}

.intro h2 {
  margin: 0 0 1.5rem;
  font-size: clamp(2.25rem, 1.4rem + 3vw, 4rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--ivoor);
  text-wrap: balance;
}

.intro p {
  max-width: 32rem;
  margin: 0;
  text-wrap: pretty;
}

.intro p + p {
  margin-top: 1rem;
}

a {
  color: var(--messing);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

a:hover {
  color: var(--ivoor);
}

a:focus-visible {
  outline: 2px solid var(--messing);
  outline-offset: 4px;
  border-radius: 2px;
}

/* --- Footer ------------------------------------------------------------- */

.footer {
  padding-bottom: 1.75rem;
  font-size: 0.875rem;
  color: #868584;
}

.footer p {
  margin: 0;
}

/* --- Minder beweging ---------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .web path {
    animation: none;
    stroke-dashoffset: 0;
  }
}
