/* ==========================================================================
   Brains teaser site — shared tokens (every concept)
   Layout: one quiet gray canvas; the hero background is the show, pink is
   the only color, purple #550DC8 appears only on press.
   ========================================================================== */
:root {
  /* Neutrals (light) — grays nudged a hair toward pink */
  --page: #F6F6F6;
  --surface: #FFFFFF;
  --surface-2: #FAFAFA;
  --line: #E7E4E6;          /* background motion: lines */
  --node: #D6D2D5;          /* background motion: nodes, icons */
  --node-strong: #A9A3A8;   /* a node lit by a sweep or pulse */
  --border: #E2DFE1;
  --ink: #1F1B20;
  --muted: #6E6970;
  --faint: #A39EA4;

  /* Pinks (Pepto family) + the one secondary */
  --blush: #FDEEF5;
  --pepto-light: #F9C6DC;
  --pepto: #F5A3C7;
  --pepto-deep: #EE7FB0;
  --magenta: #C2187A;
  --purple: #550DC8;

  /* Roles */
  --logo-pink: #F088B0;     /* logo letter body */
  --hot-pink: #E84880;      /* logo shading */
  --accent: var(--hot-pink);
  --accent-hover: #EE6396;
  --accent-ink: #FFFFFF;
  --link: var(--magenta);
  --glint: rgba(238, 127, 176, .55);
  --halo: rgba(253, 238, 245, .9);
  --shadow: 0 10px 30px -12px rgba(31, 27, 32, .18), 0 2px 6px -2px rgba(31, 27, 32, .06);
  --nav-bg: #FFFFFF;
  --nav-border: #E6E2E4;
  --nav-ink: var(--ink);

  /* Type */
  --font-display: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --font-body: "Onest", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --radius-pill: 999px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: light;
}

/* Dark = Discord classic greys */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page: #313338; --surface: #2B2D31; --surface-2: #1E1F22;
    --line: #3A3D43; --node: #4A4D55; --node-strong: #80848E; --border: #3F4147;
    --ink: #F2F3F5; --muted: #B5BAC1; --faint: #80848E;
    --accent: var(--logo-pink); --accent-hover: var(--pepto); --accent-ink: #1E1F22; --link: var(--pepto);
    --glint: rgba(245, 163, 199, .6); --halo: rgba(49, 51, 56, .92);
    --shadow: 0 12px 30px -12px rgba(0, 0, 0, .55), 0 2px 6px -2px rgba(0, 0, 0, .3);
    --nav-bg: #1E1F22; --nav-border: #26282C;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --page: #313338; --surface: #2B2D31; --surface-2: #1E1F22;
  --line: #3A3D43; --node: #4A4D55; --node-strong: #80848E; --border: #3F4147;
  --ink: #F2F3F5; --muted: #B5BAC1; --faint: #80848E;
  --accent: var(--logo-pink); --accent-hover: var(--pepto); --accent-ink: #1E1F22; --link: var(--pepto);
  --glint: rgba(245, 163, 199, .6); --halo: rgba(49, 51, 56, .92);
  --shadow: 0 12px 30px -12px rgba(0, 0, 0, .55), 0 2px 6px -2px rgba(0, 0, 0, .3);
    --nav-bg: #1E1F22; --nav-border: #26282C;
  color-scheme: dark;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body {
  background: var(--page);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
a { color: var(--link); }
a:hover { color: var(--accent-hover); }
h1, h2, h3 { text-wrap: balance; color: var(--ink); }
::selection { background: var(--pepto-light); color: #1F1B20; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 20px; }
.mono { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }


/* Scroll reveal: visible by default, only enhanced when JS marks it */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.in { animation: rise 1s var(--ease) both; }
.in-1 { animation-delay: .5s; } .in-2 { animation-delay: .75s; } .in-3 { animation-delay: .95s; }
.in-4 { animation-delay: 1.15s; } .in-5 { animation-delay: 1.35s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
