/* Two-ink risograph zine: Bridal (burgundy) and Skin Tone (peach) printed on warm paper, with grain,
   halftone dots and a little misregistration between the two inks. */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../assets/fonts/bricolage-grotesque-latin-var.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Space Mono";
  src: url("../assets/fonts/space-mono-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Space Mono";
  src: url("../assets/fonts/space-mono-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bridal: #741a2f;
  --bridal-deep: #4f0f1f;
  --skin: #ffc6a8;
  --skin-soft: #ffe3d3;
  --paper: #fff8f2;
  --bg: var(--paper);
  --surface: #fffdfb;
  --text: var(--bridal);
  --muted: rgb(116 26 47 / 0.64);
  --line: var(--bridal);
  --ink1: var(--bridal);
  --ink2: var(--skin);
  --grain-blend: multiply;
  --font: "Bricolage Grotesque", system-ui, sans-serif;
  --mono: "Space Mono", ui-monospace, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-reel]) {
    --bg: #1f070d;
    --surface: #2b0c15;
    --text: var(--skin);
    --muted: rgb(255 198 168 / 0.66);
    --line: var(--skin);
    --ink1: var(--skin);
    --ink2: #c23a55;
    --grain-blend: screen;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html, body { height: 100%; margin: 0; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* Paper grain over everything, like ink on uncoated stock. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.28;
  mix-blend-mode: var(--grain-blend);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.45 0 0 0 0 0.1 0 0 0 0 0.18 0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Normal (non-reel) mode: the component centred, with a small toolbar. */
.demo-page {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 40px 16px 120px;
}

.toolbar {
  position: fixed;
  left: 50%;
  bottom: 22px;
  translate: -50% 0;
  display: flex;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 0 0 2px var(--line);
}

.toolbar a {
  white-space: nowrap;
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 650;
  padding: 8px 14px;
}

.toolbar a:hover, .toolbar a:focus-visible { background: var(--ink1); color: var(--bg); outline: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
