/* Skycrest Homes design tokens.

   Brand direction is still unresolved between three identities (the blue logo
   lockup, the gold/charcoal print material, the coral title card in the film),
   so every colour, size and motion value lives here. Settling the brand has to
   stay a token edit rather than a rebuild.

   Motion tokens follow one hard rule: every value must collapse to its neutral
   state in the reduced-motion block at the bottom. Scroll-driven animations are
   progress-based, so a keyframe whose endpoint is not neutral when its token
   collapses will park content at a permanent offset instead of animating it. */

:root {
  --sk-ink: #16232b;
  --sk-ink-deep: #0b141a;
  --sk-deep: #2c5871;
  --sk-primary: #387397;
  --sk-primary-hover: #4886a9;
  --sk-sky: #88d3f2;
  --sk-slate: #515965;
  --sk-slate-muted: #6e7682;
  --sk-limestone: #efebe4;
  --sk-bone: #faf8f5;
  --sk-white: #ffffff;
  --sk-line: #dfd9d0;
  --sk-line-strong: #c6beb2;

  /* Warm paper gradients. Flat fills are what made the old sections read as
     slabs; a 2% vertical shift is enough to suggest a printed surface. */
  --sk-paper-bone: linear-gradient(180deg, #fdfcfa 0%, #faf8f5 55%, #f5f1ea 100%);
  --sk-paper-limestone: linear-gradient(180deg, #f4f1ea 0%, #efebe4 60%, #e8e2d8 100%);
  --sk-paper-dark: linear-gradient(180deg, #1b2a33 0%, #16232b 60%, #101b22 100%);

  /* Newsreader carries an optical-size axis, so font-optical-sizing (auto by
     default) retunes the hairlines between the 136px hero and 18px body from a
     single file. That is what lets one display face cover the whole range. */
  --sk-font-display: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  --sk-font-body: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Display tier. Fluid so the page never needs a breakpoint to stay in
     proportion, and so placeholder copy can change length without re-tuning. */
  --sk-display-hero: clamp(3.25rem, 8.5vw, 8.5rem);
  --sk-display-xl: clamp(2.75rem, 6vw, 5.5rem);
  --sk-display-lg: clamp(2.25rem, 4.2vw, 3.75rem);
  --sk-display-md: clamp(1.75rem, 2.8vw, 2.5rem);
  --sk-numeral: clamp(8rem, 22vw, 20rem);

  /* Text tier. Urbanist has a smaller x-height than Inter, so base moves up a
     step to hold the same apparent size. Still well clear of the 16px floor. */
  --sk-text-xs: 0.8125rem;
  --sk-text-sm: 0.9375rem;
  --sk-text-base: 1.125rem;
  --sk-text-lg: 1.25rem;
  --sk-text-xl: 1.4375rem;
  --sk-text-2xl: 1.75rem;
  --sk-text-3xl: 2.25rem;
  --sk-text-4xl: 2.875rem;
  --sk-text-5xl: 3.75rem;
  --sk-text-6xl: 4.75rem;

  --sk-leading-display: 0.96;
  --sk-leading-tight: 1.08;
  --sk-leading-snug: 1.2;
  --sk-leading-normal: 1.45;
  --sk-leading-relaxed: 1.65;

  --sk-tracking-display: -0.02em;
  --sk-tracking-tightest: -0.015em;
  --sk-tracking-tight: -0.015em;
  --sk-tracking-wide: 0.06em;
  --sk-tracking-widest: 0.18em;

  --sk-space-1: 0.5rem;
  --sk-space-2: 1rem;
  --sk-space-3: 1.5rem;
  --sk-space-4: 2rem;
  --sk-space-5: 2.5rem;
  --sk-space-6: 3rem;
  --sk-space-8: 4rem;
  --sk-space-10: 5rem;
  --sk-space-12: 6rem;
  --sk-space-16: 8rem;
  --sk-space-20: 10rem;

  --sk-radius-sm: 2px;
  --sk-radius-md: 4px;
  --sk-radius-lg: 8px;
  --sk-radius-pill: 999px;

  --sk-shadow-sm: 0 1px 2px rgba(22, 35, 43, 0.06);
  --sk-shadow-md: 0 8px 24px rgba(22, 35, 43, 0.08);
  --sk-shadow-lg: 0 24px 60px rgba(22, 35, 43, 0.12);

  --sk-container-narrow: 720px;
  --sk-container: 1200px;
  --sk-container-wide: 1440px;

  --sk-duration-instant: 120ms;
  --sk-duration-fast: 200ms;
  --sk-duration-base: 400ms;
  --sk-duration-slow: 700ms;
  --sk-duration-cinematic: 1200ms;

  --sk-ease-standard: cubic-bezier(0.22, 1, 0.36, 1);
  --sk-ease-entrance: cubic-bezier(0.16, 1, 0.3, 1);
  --sk-ease-exit: cubic-bezier(0.4, 0, 1, 1);

  --sk-distance-sm: 12px;
  --sk-distance-md: 24px;
  --sk-distance-lg: 48px;
  --sk-stagger: 80ms;

  /* Scroll-driven motion. Each of these is an animation endpoint, so each has a
     neutral counterpart in the reduced-motion block. */
  --sk-parallax-hero: 14svh;
  --sk-scale-from: 1.08;
  --sk-drift: 3rem;
  --sk-numeral-drift: 5rem;
  --sk-dim: 0.28;
  --sk-wipe-from: 100%;
  --sk-magnet: 0.22;
  --sk-grain-opacity: 0.04;

  /* The pinned process track. Runway per step times step count is the scroll
     distance the section holds for; collapsing runway to zero turns the whole
     thing back into a plain static grid with no parallel rule set. */
  --sk-track-runway: 62svh;
  --sk-track-steps: 4;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --sk-duration-instant: 1ms;
    --sk-duration-fast: 1ms;
    --sk-duration-base: 1ms;
    --sk-duration-slow: 1ms;
    --sk-duration-cinematic: 1ms;
    --sk-distance-sm: 0px;
    --sk-distance-md: 0px;
    --sk-distance-lg: 0px;
    --sk-stagger: 0ms;

    --sk-parallax-hero: 0svh;
    --sk-scale-from: 1;
    --sk-drift: 0rem;
    --sk-numeral-drift: 0rem;
    --sk-dim: 1;
    --sk-wipe-from: 0%;
    --sk-magnet: 0;
    --sk-grain-opacity: 0;
    --sk-track-runway: 0svh;
  }
}
