/* P-0215/P-0215.001: base.css, design tokens, reset, typography, links, focus.
   Owns: P-0196 header, :root tokens, box-sizing reset, html scroll behavior,
   body and heading and paragraph and link and image base rules, :focus-visible,
   reduced motion guard, [hidden] gate guard. Cascade order: first of four. */

/* P-0196/P-0196.017: FlipSide marketing site styles.
   Palette from docs/DESIGN/theme-1-playful-geometric.md (light mode).
   Design decision: light-only, the app's default free theme is light and
   playful; the marketing site intentionally mirrors it. */

:root {
  --bg: #FFFDF5;
  --surface: #FFFFFF;
  --primary: #8B5CF6;        /* decorative / large text */
  --primary-strong: #7C3AED; /* buttons & links: AA on white */
  --primary-ink: #6D28D9;    /* small link text: AAA-leaning */
  --secondary: #F472B6;
  --tertiary: #FBBF24;
  --success: #34D399;
  --error: #EF4444;
  --ink: #1E1B4B;
  --ink-soft: #5B5875;       /* secondary text: 4.5:1+ on bg */
  --border: #E9D5FF;
  --shadow-color: #1E1B4B;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --font-heading: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --container: 1120px;
  --space: 8px;
  --shadow-hard: 4px 4px 0 var(--shadow-color);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 800;
}

h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); }
h3 { font-size: clamp(1.12rem, 2.4vw, 1.3rem); font-weight: 700; }

.section-lede {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 40em;
}

p { margin: 0 0 1em; }

a { color: var(--primary-ink); }
a:hover { color: var(--primary-strong); }

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

:focus-visible {
  outline: 3px solid var(--primary-strong);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Reduced motion ---------- */

@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;
  }
  .deco { display: none !important; }
  .mock-float, .mock-tilter { animation: none !important; }
}

/* P-0214/P-0214.002: guard for JS gate toggling. The hidden attribute must
   win over any future display rules on gated sections. */
[hidden]{display:none!important}
