/* ==========================================================================
   Parify splash page — site-level CSS
   --------------------------------------------------------------------------
   WHY THIS FILE EXISTS
   The splash page (Home/index.html) cannot carry its own STYLE block: Kooboo
   re-serialises the managed page and drops every inline style block, so
   @font-face and @keyframes declared on the page never reach the browser.
   Everything a utility class can express is in the markup instead; only the
   two things below cannot be expressed as utilities.

   WHERE TO PUT IT
   Kooboo admin → site-level CSS (the same place the UnoCSS bundle is served
   from), or upload as /css/splash.css and link it with
       <link rel="stylesheet" href="/css/splash.css">
   in the page head. Either way it must load for the page to pick it up.

   AFTER IT IS LIVE
   Re-enable the preload line in Home/index.html (it is commented out) so the
   font starts downloading in parallel with the stylesheet instead of after it.
   ========================================================================== */

/* Inter Variable — subset, 58,732 B (17% of the 352 KB full font).
   Coverage:
     U+0020-007E  Basic Latin
     U+00A0-017F  Latin-1 Supplement + Latin Extended-A
                  (all Dutch diacritics: ë ï é è ö ü å ø æ œ ß; also covers
                   German, French, Spanish, Portuguese, Italian, Nordic,
                   Czech, Polish, Hungarian, Turkish)
     U+2000-206F  General Punctuation (all quotes, dashes, ellipsis, nbsp)
     U+20A0-20CF  Currency (€ $ £ ¥ ₹ ₽ …)
     U+2100-214F  Letterlike (™ © ® №)
     U+2190-2199, U+21D2, U+2212, U+2260, U+2264-2265, U+2713-2714
                  Arrows, minus, ≠ ≤ ≥, ✓
   Not covered — falls back per character to the next family in the stack:
     Greek, Cyrillic, Latin Extended-B, CJK, emoji.
     Note Inter never shipped CJK glyphs, so even the full 352 KB font would
     fall back for Chinese/Japanese/Korean. Subsetting did not lose that.
   Variable axis kept: wght 100–900. opsz is pinned at 16 — that second axis
   is roughly half the file size and a landing page has no text large enough
   to benefit from optical scaling.
   After editing page copy, run fonts/check-coverage.py to confirm no glyph
   is missing. Regeneration command is in that script's docstring. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src:
    url("/fonts/InterVariable-subset.woff2") format("woff2"),
    url("/fonts/InterVariable.woff2") format("woff2");
}

/* Scope the typeface to the splash page so the Vue application keeps its own
   stack. index.html carries class="splash-page" on <body>. */
.splash-page {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  font-optical-sizing: auto;
}

/* Hero entrance animation. Referenced from the markup as
   motion-safe:animate-[parify-fade-up_...].
   The 14px rise is intentional and cosmetic: transform does not participate in
   layout, so the block is drawn 14px below the space reserved for it while the
   animation runs and lands on its layout position when it ends.
   Do NOT use this to compensate for a real size change on load -- that is a
   layout shift. The mascot image had exactly that bug (see README section 6):
   its width/height attributes declared 871x879 while the SVG viewBox is
   512x512, so the element shrank ~4px the moment the image decoded and pulled
   everything below it upward. Fixed with aspect-square on the image.
   Without this rule the animation silently does nothing and the content simply
   renders normally. */
@keyframes parify-fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
