/* Veydr Labs demo kit — shared by every demo in public/demos/.
   It gives each demo the site's colours and type as --vl-* variables, and draws the bar at the
   top left: the "Back to Veydr Labs" button and the name of the format being shown.
   Each demo's own restyle is in the file beside this one that carries the demo's name. */

@font-face {
  font-family: 'Archivo Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(archivo.woff2) format('woff2-variations');
}

:root {
  /* The site's palette (src/styles/global.css). --vl-accent is Vermilion. */
  --vl-accent: #f2330d;
  --vl-on-accent: #0b0b0b;
  --vl-black: #0b0b0b;
  --vl-white: #f4f3ef;
  --vl-grey: #c9c8c3;
  --vl-muted: #9b9a96;
  --vl-surface: #161616;
  --vl-line: rgba(244, 243, 239, 0.16);
  --vl-panel: rgba(11, 11, 11, 0.8);
  --vl-blur: blur(14px);

  --vl-font: 'Archivo Variable', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --vl-wide: 122%;                     /* font-stretch for headings */
  --vl-ease: cubic-bezier(0.16, 1, 0.3, 1);

  /* Where the bar sits, so a demo can place its own pieces around it. */
  --vl-edge: 16px;
  --vl-top: calc(14px + env(safe-area-inset-top, 0px));
  --vl-left: max(var(--vl-edge), env(safe-area-inset-left, 0px));
  --vl-right: max(var(--vl-edge), env(safe-area-inset-right, 0px));
  --vl-bar: 50px;                      /* the bar's height */
  --vl-below: calc(var(--vl-top) + var(--vl-bar) + 10px);   /* first free line under the bar */
}

.vl-kit {
  position: fixed; z-index: 60; top: var(--vl-top); left: var(--vl-left);
  box-sizing: border-box; height: var(--vl-bar); max-width: calc(100vw - var(--vl-left) - var(--vl-right));
  display: flex; align-items: center; gap: 14px; margin: 0; padding: 5px 22px 5px 5px;
  border: 1px solid var(--vl-line); border-radius: 999px;
  background: var(--vl-panel); -webkit-backdrop-filter: var(--vl-blur); backdrop-filter: var(--vl-blur);
  color: var(--vl-white); font-family: var(--vl-font); font-stretch: 100%; font-size: 13px; line-height: 1.1; letter-spacing: 0;
  text-align: left; text-transform: none; -webkit-font-smoothing: antialiased;
  animation: vl-in 0.9s var(--vl-ease) 0.15s both;
}
.vl-kit *, .vl-kit *::before, .vl-kit *::after { box-sizing: border-box; }

.vl-back {
  flex: none; display: inline-flex; align-items: center; gap: 9px; height: 100%; padding: 0 17px 0 13px;
  border-radius: 999px; background: var(--vl-accent); color: var(--vl-on-accent);
  font-size: 13px; font-weight: 650; letter-spacing: 0.01em; white-space: nowrap; text-decoration: none; cursor: pointer;
  transition: background-color 0.4s var(--vl-ease);
}
.vl-back svg { display: block; width: 15px; height: 15px; flex: none; transition: transform 0.4s var(--vl-ease); }
.vl-back:hover { background: var(--vl-white); }
.vl-back:hover svg { transform: translateX(-3px); }
.vl-back:focus-visible { outline: 2px solid var(--vl-white); outline-offset: 3px; }
.vl-back__short { display: none; }

.vl-topic { min-width: 0; margin: 0; padding: 0; display: grid; gap: 3px; }
.vl-topic__label { display: flex; align-items: center; gap: 7px; font-size: 9.5px; font-weight: 550; letter-spacing: 0.16em; text-transform: uppercase; color: var(--vl-muted); white-space: nowrap; }
.vl-topic__label::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--vl-accent); flex: none; }
.vl-topic__name { font-size: clamp(17px, 1.5vw, 22px); font-weight: 700; font-stretch: var(--vl-wide); letter-spacing: -0.025em; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@keyframes vl-in { from { opacity: 0; transform: translateY(-14px); } }

/* Phones: the bar takes the first row; the button shortens to "Veydr Labs". */
@media (max-width: 720px) {
  :root { --vl-edge: 12px; --vl-top: calc(10px + env(safe-area-inset-top, 0px)); --vl-bar: 46px; }
  .vl-kit { gap: 11px; padding-right: 17px; }
  .vl-back { padding: 0 13px 0 10px; gap: 7px; font-size: 12.5px; }
  .vl-back__long { display: none; }
  .vl-back__short { display: inline; }
  .vl-topic__label { font-size: 8.5px; letter-spacing: 0.14em; }
  .vl-topic__name { font-size: 15px; }
}
@media (max-width: 350px) {
  .vl-back__short { display: none; }
  .vl-back { padding: 0 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .vl-kit { animation: none; }
  .vl-back, .vl-back svg { transition: none; }
}
