/*
 * Demo page chrome only: colours, fonts and the top bar of each recipe page.
 * You do NOT need this file to use a recipe. Copy the recipe's style.css
 * (and script.js if it has one) plus the motion-tokens stylesheet.
 */

:root {
  color-scheme: dark;
  --bg: #0f0e0c;
  --surface: #171512;
  --surface-2: #1f1c18;
  --line: #2d2924;
  --text: #f0ebe2;
  --muted: #9c9488;
  --accent: #ff6a3d;
  --accent-ink: #160d08;
  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --font-ui: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.55 var(--font-ui);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.demo-bar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 24px;
  font-size: 13px;
  background: linear-gradient(var(--bg), color-mix(in srgb, var(--bg) 0%, transparent));
}
.demo-bar a { color: var(--muted); text-decoration: none; }
.demo-bar a:hover { color: var(--text); }
.demo-bar strong { font-weight: 600; }
.demo-bar .demo-code { margin-left: auto; }

/* inside the gallery preview: no bar, no scrollbar */
.is-embed .demo-bar { display: none; }
.is-embed { scrollbar-width: none; }
.is-embed::-webkit-scrollbar { display: none; }

.demo-note {
  color: var(--muted);
  font: 500 12px/1 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
