/* ==========================================================================
   CAKE.DANCE — foundation
   Dark chocolate ground, same palette as the app icon on top of it: the peach
   (#fd9964), the cream icing (#fef5eb), the sponge (#f6bf1f), the plate gold
   and the two sprinkle colours. The page itself is the icon's chocolate ink
   taken down to near-black — warm, never grey or navy — so the yellow cake is
   the brightest thing on screen, same as in the app.

   Two kinds of token:
   - colour names (--cream, --ink, --peach …) are fixed paint. --ink is the
     chocolate and stays chocolate; it is what sits on peach and on cream.
   - semantic tokens (--bg, --surface, --text …) are what the page is made of
     and are the only ones that know we are in the dark.
   ========================================================================== */

:root {
  --cream: #fef5eb;
  --cream-2: #fbeadb;
  --icing: #fffdf9;
  --peach: #fd9964;
  --peach-2: #fcb68e;
  --peach-deep: #e8743a;
  --peach-deeper: #c65a24;
  --sponge: #f6bf1f;
  --sponge-2: #fbd463;
  --gold: #b8924a;
  --gold-2: #d6b36b;
  --red: #dc3048;
  --teal: #1aa6ad;
  --mint: #7fd9b5;

  --ink: #3b2415;
  --ink-2: #6b4a36;
  --ink-3: #8d6d58;

  /* the dark */
  --bg: #1b100a;
  --bg-2: #150c06;
  --surface: #2a1a10;
  --surface-2: #34221a;
  --text: #fef5eb;
  --text-2: #d9c2ad;
  --text-3: #9c7f6a;
  --rule: rgba(254, 245, 235, 0.08);
  --rule-2: rgba(254, 245, 235, 0.16);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max: 1120px;
  --header-h: 72px;

  --shadow-sm: 0 1px 0 rgba(254, 245, 235, 0.04) inset, 0 10px 24px -12px rgba(0, 0, 0, 0.6);
  --shadow: 0 1px 0 rgba(254, 245, 235, 0.05) inset, 0 30px 70px -28px rgba(0, 0, 0, 0.75);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --t-fast: 160ms var(--ease);
  --t: 320ms var(--ease);

  color-scheme: dark;
}

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

html {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body { min-height: 100vh; background: var(--bg); line-height: 1.65; overflow-x: hidden; }

::selection { background: var(--sponge); color: var(--ink); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 650;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
}
p { color: var(--text-2); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }
img { max-width: 100%; height: auto; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--sponge); outline-offset: 3px; border-radius: 8px; }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 500;
  padding: 0.7rem 1.1rem; border-radius: 999px;
  background: var(--sponge); color: var(--ink); font-weight: 600; font-size: 0.875rem;
  transition: top var(--t-fast);
}
.skip-link:focus { top: 1rem; }

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

.wrap { position: relative; width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 640px) { .wrap { padding: 0 2rem; } }

/* Sprinkles, scattered. Same three colours as the icon, same pill shape.
   Drawn on a pseudo-element so they can fade out behind text instead of
   running through the middle of a headline. */
.sprinkles { position: relative; isolation: isolate; }
.sprinkles::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background-size: 220px 220px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cg stroke-linecap='round' stroke-width='6' fill='none'%3E%3Cpath d='M24 30l14 -6' stroke='%23dc3048'/%3E%3Cpath d='M120 22l12 8' stroke='%231aa6ad'/%3E%3Cpath d='M180 60l-4 14' stroke='%23f6bf1f'/%3E%3Cpath d='M60 96l14 4' stroke='%23f6bf1f'/%3E%3Cpath d='M150 120l-12 8' stroke='%23dc3048'/%3E%3Cpath d='M30 170l6 12' stroke='%231aa6ad'/%3E%3Cpath d='M110 180l14 -4' stroke='%23dc3048'/%3E%3Cpath d='M196 186l-10 -10' stroke='%231aa6ad'/%3E%3C/g%3E%3C/svg%3E");
  -webkit-mask: var(--sprinkle-mask, none); mask: var(--sprinkle-mask, none);
}

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); transition-delay: var(--rd, 0ms); }
.js .reveal.seen { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
