:root {
  --bg: #0e0e0d;
  --ink: #ece9e2;
  --muted: #8d8a83;
  --line: rgba(236, 233, 226, 0.22);
  --sans: "General Sans", "Inter Variable", system-ui, sans-serif;
  --display: "Cabinet Grotesk", "General Sans", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; min-height: 100svh; margin: 0; }
body {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.skip {
  position: absolute;
  z-index: 2;
  left: 12px;
  top: 12px;
  padding: 10px 14px;
  transform: translateY(-160%);
  background: var(--ink);
  color: var(--bg);
}
.skip:focus { transform: translateY(0); }
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.demo-bar {
  min-height: 84px;
  display: grid;
  grid-template-columns: 1fr minmax(260px, 1.4fr) auto;
  align-items: center;
  gap: 24px;
  padding: 12px clamp(16px, 3vw, 32px);
  border-bottom: 1px solid var(--line);
}
.demo-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.demo-brand svg { flex: 0 0 auto; }
.demo-heading h1 {
  margin: 0;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
}
.demo-heading p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.demo-actions { display: flex; align-items: center; gap: 8px; }
.demo-back {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid rgba(236, 233, 226, 0.4);
  border-radius: 99px;
  font-size: 12px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: background-color 180ms ease, border-color 180ms ease;
}
.demo-back:hover { background: rgba(236, 233, 226, 0.08); }
main { min-height: 0; }
iframe { display: block; width: 100%; height: 100%; border: 0; background: #07060b; }

@media (max-width: 760px) {
  .demo-bar {
    min-height: 126px;
    grid-template-columns: 1fr auto;
    grid-template-areas: "brand actions" "heading heading";
    gap: 9px 14px;
    padding: 10px 14px;
  }
  .demo-brand { grid-area: brand; }
  .demo-heading { grid-area: heading; }
  .demo-heading h1 { font-size: 17px; }
  .demo-heading p { max-width: 62ch; font-size: 11px; line-height: 1.4; }
  .demo-actions { grid-area: actions; gap: 6px; }
  .demo-back { min-height: 44px; padding: 0 10px; font-size: 11px; }
}

@media (max-width: 360px) {
  .demo-bar { padding-inline: 10px; gap: 8px; }
  .demo-brand { gap: 6px; font-size: 16px; }
  .demo-brand svg { width: 20px; height: 20px; }
  .demo-actions { gap: 4px; }
  .demo-back { padding-inline: 8px; font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
