/* ==========================================================================
   Little Play — core.css
   Design tokens, reset, typography, and the smallest shared utilities.
   ========================================================================== */

:root {
  /* — Surfaces — */
  --lp-bg: #faf7f2;
  --lp-bg-alt: #f1eee8;
  --lp-card: #ffffff;
  --lp-card-sunk: #fbf9f5;

  /* — Ink — */
  --lp-ink: #33312e;
  --lp-ink-deep: #26241f;
  /* The brief's #96918a is a hairline / decorative tone (2.9:1 on the page).
     Readable secondary copy uses this darker member of the same warm grey. */
  --lp-ink-soft: #6f6a63;
  --lp-ink-faint: #96918a;

  /* — Pastels (fills only; text on top is always --lp-ink) — */
  --lp-mint: #a9d8c5;
  --lp-mint-soft: #e7f3ee;
  --lp-cream: #f6dfa0;
  --lp-cream-soft: #fbf1d8;
  --lp-pink: #f2c8cf;
  --lp-pink-soft: #fbe9ec;
  --lp-blue: #b9d7eb;
  --lp-blue-soft: #e8f2f9;

  /* — Accent ink (mint bleeding dark enough to read as text) — */
  --lp-accent-ink: #2f6b58;
  --lp-accent-ink-soft: #3f7f6a;

  /* — Lines — */
  --lp-line: rgba(51, 49, 46, 0.09);
  --lp-line-strong: rgba(51, 49, 46, 0.16);

  /* — Radii — */
  --lp-r-xs: 10px;
  --lp-r-sm: 14px;
  --lp-r-md: 18px;
  --lp-r-lg: 22px;
  --lp-r-xl: 28px;
  --lp-r-pill: 999px;

  /* — Shadows (two-layer, low alpha) — */
  --lp-shadow-1: 0 1px 2px rgba(51, 49, 46, 0.04), 0 6px 18px rgba(51, 49, 46, 0.04);
  --lp-shadow-2: 0 2px 4px rgba(51, 49, 46, 0.05), 0 16px 34px rgba(51, 49, 46, 0.08);
  --lp-shadow-3: 0 4px 8px rgba(51, 49, 46, 0.06), 0 26px 60px rgba(51, 49, 46, 0.11);

  /* — Type — */
  --lp-font-display: 'Nunito Sans', 'Segoe UI', system-ui, sans-serif;
  --lp-font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;

  /* — Rhythm — */
  --lp-shell: 1200px;
  --lp-gutter: clamp(18px, 4vw, 40px);
  --lp-section-gap: clamp(44px, 6vw, 80px);

  /* First-screen advertising geometry.
     The first ad's top edge must land inside the 0.40–0.45 viewport band, so
     the hero is sized from the viewport rather than from its own content. */
  --lp-ad-gap: clamp(22px, 2.6vw, 34px);
  --lp-hero-band: 0.42;

  /* — Motion — */
  --lp-ease: cubic-bezier(0.22, 0.68, 0.32, 1);
  --lp-t-fast: 160ms;
  --lp-t: 220ms;

  --lp-header-h: 68px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--lp-header-h) + 16px);
  overflow-x: clip;
  max-width: 100%;
}

body {
  margin: 0;
  background: var(--lp-bg);
  color: var(--lp-ink);
  font-family: var(--lp-font-body);
  font-size: 16px;
  line-height: 1.62;
  font-feature-settings: 'kern' 1, 'liga' 1;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  max-width: 100%;
}

img, svg, video {
  display: block;
  max-width: 100%;
}

img { height: auto; }

iframe {
  display: block;
  max-width: 100%;
  border: 0;
  vertical-align: bottom;
}

a {
  color: var(--lp-accent-ink);
  text-decoration: none;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

a:hover { text-decoration: underline; }

button, input, select, textarea { font: inherit; color: inherit; }

button { cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--lp-font-display);
  color: var(--lp-ink);
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.018em;
  line-height: 1.12;
  text-wrap: balance;
}

p { margin: 0; }

ul, ol { margin: 0; padding: 0; }

:focus-visible {
  outline: 3px solid var(--lp-accent-ink);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: var(--lp-cream);
  color: var(--lp-ink-deep);
}

/* — Shell — */
.lp-shell {
  width: 100%;
  max-width: calc(var(--lp-shell) + var(--lp-gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--lp-gutter);
}

.lp-shell--narrow {
  max-width: 820px;
}

/* — Skip link — */
.lp-skip {
  position: absolute;
  left: -9999px;
  top: 10px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: var(--lp-r-pill);
  background: var(--lp-ink);
  color: var(--lp-bg);
  font-weight: 700;
  font-size: 14px;
}

.lp-skip:focus {
  left: 16px;
  text-decoration: none;
}

/* — Utilities — */
.lp-visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.lp-eyebrow {
  font-family: var(--lp-font-body);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lp-ink-soft);
}

.lp-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: var(--lp-mint);
}

.lp-dot--cream { background: var(--lp-cream); }
.lp-dot--pink { background: var(--lp-pink); }
.lp-dot--blue { background: var(--lp-blue); }
.lp-dot--mint { background: var(--lp-mint); }

.lp-no-scroll {
  overflow: hidden;
  overscroll-behavior: none;
}

.lp-note {
  font-size: 13px;
  color: var(--lp-ink-soft);
  line-height: 1.55;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
