/* Playful World — core tokens, reset and base typography
 * Palette and radii follow the Playful World design brief.
 */

:root {
  /* Surfaces */
  --pw-bg: #FFF9EF;
  --pw-surface: #FFFFFF;
  --pw-surface-warm: #FFF6E5;
  --pw-surface-pink: #FFF2F5;

  /* Ink */
  --pw-ink: #263238;
  --pw-ink-soft: #41545C;
  --pw-muted: #718096;
  --pw-muted-strong: #5C6E77;

  /* Lines */
  --pw-border: #F0EAE0;
  --pw-border-strong: #E6DCCB;

  /* Accents */
  --pw-pink: #FF8BA7;
  --pw-pink-deep: #F46F91;
  --pw-pink-ink: #B04864;
  --pw-pink-soft: #FFE4EB;
  --pw-blue: #74B9FF;
  --pw-blue-soft: #E4F1FF;
  --pw-yellow: #FFD166;
  --pw-yellow-soft: #FFF3CF;
  --pw-yellow-ink: #8A6200;
  --pw-green: #8DD9B5;
  --pw-green-soft: #E3F7EC;
  --pw-purple: #B8A1F5;
  --pw-purple-soft: #EEE8FF;
  --pw-orange: #FFAA65;
  --pw-orange-soft: #FFEBDD;

  /* Type */
  --pw-font-display: 'Nunito', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --pw-font-ui: 'Poppins', 'Nunito', system-ui, sans-serif;
  --pw-font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;

  /* Radii */
  --pw-r-lg: 24px;
  --pw-r-md: 16px;
  --pw-r-sm: 12px;
  --pw-r-pill: 999px;

  /* Elevation — low opacity, natural */
  --pw-shadow-1: 0 2px 8px rgba(38, 50, 56, 0.04), 0 10px 24px rgba(38, 50, 56, 0.05);
  --pw-shadow-2: 0 6px 14px rgba(38, 50, 56, 0.06), 0 20px 42px rgba(38, 50, 56, 0.09);
  --pw-shadow-pink: 0 10px 24px rgba(244, 111, 145, 0.24);

  /* Layout */
  --pw-container: 1200px;
  --pw-gutter: 16px;
  --pw-header-h: 64px;

  /* Motion */
  --pw-ease: cubic-bezier(0.2, 0.7, 0.3, 1);
  --pw-dur: 200ms;
}

@media (min-width: 720px) {
  :root {
    --pw-gutter: 24px;
    --pw-header-h: 76px;
  }
}

@media (min-width: 1220px) {
  :root {
    --pw-gutter: 32px;
    --pw-container: 1240px;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
  max-width: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--pw-font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--pw-ink);
  background: var(--pw-bg);
  overflow-x: clip;
  max-width: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--pw-font-display);
  font-weight: 800;
  color: var(--pw-ink);
  letter-spacing: -0.015em;
  line-height: 1.15;
  overflow-wrap: anywhere;
  min-width: 0;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--pw-pink-soft);
  color: var(--pw-ink);
}

:focus-visible {
  outline: 3px solid #4F93D8;
  outline-offset: 2px;
  border-radius: 4px;
}

body.yp-no-scroll {
  overflow: hidden;
  overscroll-behavior: none;
}

/* Shell */
.pw-shell {
  width: min(calc(100% - var(--pw-gutter) * 2), var(--pw-container));
  margin-inline: auto;
  min-width: 0;
}

/* Skip link */
.pw-skip {
  position: absolute;
  left: -9999px;
  top: 10px;
  z-index: 999;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--pw-ink);
  color: #fff;
  font-family: var(--pw-font-body);
  font-size: 14px;
  font-weight: 600;
}

.pw-skip:focus {
  left: 12px;
}

/* Utility */
.pw-vh {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.pw-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 7px 13px 7px 10px;
  border: 1px solid #F2E5E2;
  border-radius: var(--pw-r-pill);
  background: rgba(255, 255, 255, 0.8);
  color: var(--pw-muted-strong);
  font-family: var(--pw-font-body);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
}

.pw-eyebrow__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pw-pink);
  box-shadow: 0 0 0 4px var(--pw-pink-soft);
  flex-shrink: 0;
}

.pw-error {
  padding: 40px 0;
  color: #B23B3B;
  font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
