/* Veltavo — splash. Brand v1 tokens (petrol accent unused here by design:
   the splash is mark + wordmark only, monochrome per brand). */

:root {
  --base: #F6F6F4;   /* light base / page */
  --ink:  #14161A;   /* light ink · 16.4:1 on base (AAA) */
}
@media (prefers-color-scheme: dark) {
  :root {
    --base: #0D0F11; /* dark base / page */
    --ink:  #EDEEF0; /* dark ink · 15.8:1 on base (AAA) */
  }
}

@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 900;            /* variable wght axis */
  font-display: swap;
  src: url("/assets/schibsted-grotesk-var.woff2") format("woff2");
}

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

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--base);
  color: var(--ink);
  font-family: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont,
               "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.splash {
  min-height: 100vh;
  min-height: 100svh;              /* stable mobile viewport (no URL-bar jump) */
  display: grid;
  place-items: center;
  padding: max(24px, env(safe-area-inset-top)) 24px
           max(24px, env(safe-area-inset-bottom));
}

/* The wordmark is the page's only content. */
.wordmark {
  margin: 0;
  font-weight: 500;                /* Medium — the wordmark weight */
  font-size: clamp(1.75rem, 8vw, 3.25rem);
  letter-spacing: 0.16em;          /* +16% tracking, per brand */
  margin-right: -0.16em;           /* recentre the trailing track */
  text-transform: uppercase;       /* DOM stays "Veltavo" for a11y */
  line-height: 1;
  white-space: nowrap;
  text-align: center;
  animation: rise 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .wordmark { animation: none; }
}
