/* The studio uses the same dark surface and viewport grid on every public page. */
:root {
  color-scheme: dark;
  --grid-line: #cd95eb12;
  --grid-tile: 0 0 / 32px 32px;
  --site-grid: linear-gradient(to right, var(--grid-line) 1px, transparent 1px) var(--grid-tile),
               linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px) var(--grid-tile);
}
body { isolation: isolate; }
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: var(--site-grid);
}
html.studio-product :is(main, .hero, .overview, .story-sticky, .journey-viewport, .journey-screen, .final-download) {
  background: transparent;
}

.studio-masthead, html:not(.studio-product) body:not(.story-home) > .header {
  background: var(--site-grid), #0b0b0d;
}
.header:not(:has(nav)) > #language { margin-inline-start: auto; }
@media (max-width: 400px) {
  .header .brand-name { display: none; }
}

/* Indicate keyboard focus inside the control, without a floating ring. */
:root { --keyboard-ink: #e0b4f4; }
:root :is(a, summary, button, input, select, textarea):focus-visible { outline: none; }
:root :is(a, summary):focus-visible {
  text-decoration: underline 2px;
  text-underline-offset: .25em;
}
:root :is(button, input, select, textarea, a.product-buy, a.buy-button, a.download-secondary):not(.ig-close, .ig-retry):focus-visible {
  box-shadow: inset 0 -3px var(--keyboard-ink);
}
:root dialog [tabindex="-1"]:focus { outline: none; }
