:root {
  background: #6d9eeb;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

main {
  display: grid;
  overflow: hidden;
  place-items: center;
}

.title-card {
  width: min(86vw, 66rem);
}

.title-card[data-loading] {
  visibility: hidden;
}

.word {
  position: relative;
  aspect-ratio: 875 / 109;
}

.word + .word {
  aspect-ratio: 875 / 162;
}

.word img {
  position: absolute;
  top: 0;
  left: var(--left);
  display: block;
  width: var(--width);
  height: auto;
}

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

.studio-header {
  padding: env(safe-area-inset-top, 0px) clamp(16px, 3.6vw, 48px) 0;
  background: #000;
  border-bottom: 1px solid #222;
}

.studio-header nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 28px);
  min-height: 37px;
}

.studio-header a {
  display: flex;
  align-items: center;
  min-height: 37px;
}

.studio-header img {
  display: block;
  height: 17px;
  width: auto;
  filter: brightness(0) invert(1);
}

.studio-header a:hover {
  opacity: .75;
}

.studio-header a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.studio-bars {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  height: clamp(26px, 6.5svh, 52px);
}

.bar { display: block; }
.bar-black { background: #0b0b0b; }
.bar-blue { background: #0000ff; }
.bar-cyan { background: #00ffff; }
.bar-green { background: #00ff00; }
.bar-magenta { background: #ff00ff; }
.bar-red { background: #ff0000; }
.bar-white { background: #fff; }
.bar-yellow { background: #ffe100; }

.studio-bars a:focus-visible {
  outline: 2px solid #111;
  outline-offset: -5px;
  box-shadow: inset 0 0 0 3px #fff;
}

@media (max-width: 820px) {
  .studio-header img { height: 14px; }
}

.byline {
  margin: clamp(1rem, 3vw, 2rem) auto 0;
  color: #102340;
  font: 600 clamp(1.125rem, 2.6vw, 1.85rem)/1.3 system-ui, sans-serif;
  text-align: left;
  text-wrap: balance;
}

@media (prefers-reduced-motion: no-preference) {
  .byline {
    opacity: 0;
  }
}
