@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400..800&display=swap');

:root {
  --paper: #f6f5f2;
  --ink: #1d1a2a;
  --rust: #452ac3;
  --line: #dbd7e2;
}
nav {
  width: min(1760px, calc(100% - 80px));
  max-width: none;
  margin-inline: auto;
  border: 0;
}
.brand { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 760; }
.opening {
  --scene: #e7e0ff;
  --scene-shadow: #9175d244;
  position: relative;
  display: grid;
  grid-template-columns: minmax(240px, .62fr) minmax(0, 1.65fr);
  align-items: center;
  gap: clamp(25px, 4vw, 85px);
  max-width: 1840px;
  margin-inline: auto;
  padding: clamp(34px, 4vw, 76px);
  background: var(--scene);
  border-radius: 22px;
  isolation: isolate;
  transition: background-color .55s ease;
}
.opening:has([data-mood="1"]) { --scene: #dfe6fa; --scene-shadow: #7291b944; }
.opening:has([data-mood="2"]) { --scene: #f6dfe7; --scene-shadow: #af627944; }
.opening::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(ellipse at 75% 42%, #fff9, transparent 65%);
}
.opening .hero {
  padding: 0;
  width: auto;
  margin: 0;
  overflow: visible;
}
.opening .hero-composition {
  display: block;
  padding: 0;
  transform: none;
}
.opening h1 {
  font: 660 clamp(54px, 6vw, 108px)/.89 'Bricolage Grotesque', Manrope, sans-serif;
  letter-spacing: -.085em;
}
.opening h1 em {
  color: #452ac3;
  font: inherit;
  letter-spacing: inherit;
}
.opening .hero-aside { padding: 24px 0 0; }
.opening .hero-aside p:first-of-type {
  max-width: 27ch;
  font-size: clamp(15px, 1.25vw, 19px);
  line-height: 1.55;
  color: #3b3552;
}
.opening .cta {
  border-radius: 8px;
  gap: 15px;
  background: #261b4b;
  color: #fff;
}
.opening .cta:hover { background: #452ac3; }
.opening .hero-availability { margin-top: 14px; color: #504567; }
.opening .playground {
  --ribbon-accent: #573bd0;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
  overflow: visible;
  color: var(--ink);
  background: transparent;
}
.opening .playground[data-mood="1"] { --ribbon-accent: #344b9d; }
.opening .playground[data-mood="2"] { --ribbon-accent: #a53363; }
.opening .stage { padding: 0; margin: 0; max-width: none; }
.opening .browser {
  grid-template-columns: 150px minmax(0, 1fr);
  border: 1px solid #fff;
  border-radius: 14px;
  height: clamp(420px, 36vw, 600px);
  box-shadow: 0 25px 58px -15px var(--scene-shadow), 0 4px 14px #271b4533;
}
.opening .browser.is-split { grid-template-columns: 150px repeat(2, minmax(0, 1fr)); }
.opening .browser.is-focused { grid-template-columns: minmax(0, 1fr); }
.opening .browser.is-focused.is-split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.opening .lake-story { height: clamp(404px, calc(36vw - 16px), 584px); }
.opening .demo-toolbar {
  max-width: none;
  margin-top: 13px;
  gap: 14px;
}
.opening .space-switcher { width: min(360px, 57%); }
.opening .ribbon-track { height: 43px; }
.opening .ribbon-line { inset-block-start: 20px; background: #24194029; height: 3px; }
.opening .ribbon-handle {
  top: 0;
  width: 44px;
  height: 44px;
  background: #fff;
  box-shadow: 0 3px 9px #22134d38;
}
.opening .ribbon-handle:focus-visible,
.opening .space-picker button:focus-visible,
.opening .browser-controls button:focus-visible,
.opening .demo-tools button:focus-visible { outline-color: #452ac3; }
.opening .space-picker button { color: #413957; }
.opening .space-picker button[aria-pressed="true"] { color: var(--ribbon-accent); }
.opening .space-picker button:hover,
.opening .demo-tools button:hover,
.opening .browser-controls button:hover:not(:disabled) { background: #ffffff8c; }
.opening .browser-controls button,
.opening .demo-tools button {
  color: #352b49;
  border-color: #3d2c5e47;
}
.opening .demo-tools button[aria-pressed="true"] { color: #fff; background: #261b4b; }
.opening .demo-tools { margin-top: 10px; }
.opening .caption { color: #4f4561; }
.logo-toy { top: 126px; left: max(6%, calc(50% - 810px)); width: 55px; height: 55px; }
.toy-caption { display: none; }
.rescue { background: #261b4b; }
.wordmark-end { color: #452ac3; }
@keyframes opening-window {
  from { opacity: .62; transform: translate3d(0, 23px, 0) scale(.987); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .opening .stage { animation: opening-window .75s var(--ease) both; }
  .opening .stage:focus-within { animation: none; }
}
@media (min-width: 761px) and (max-width: 1100px) {
  nav { width: 92%; }
  .opening { margin-inline: 3%; padding: 24px; gap: 20px; grid-template-columns: minmax(180px, .65fr) minmax(0, 1.6fr); }
  .opening h1 { font-size: clamp(46px, 6.5vw, 72px); }
  .opening .browser { grid-template-columns: 110px minmax(0, 1fr); }
  .opening .browser.is-split { grid-template-columns: 110px repeat(2, minmax(0, 1fr)); }
  .opening .browser.is-focused { grid-template-columns: minmax(0, 1fr); }
  .opening .browser.is-focused.is-split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .opening .demo-toolbar { flex-wrap: wrap; justify-content: center; gap: 5px; }
  .opening .space-switcher { width: min(100%, 315px); }
  .opening .browser-controls button { min-width: 38px; min-height: 38px; }
  .logo-toy { left: 6%; top: 128px; width: 42px; height: 42px; }
}
@media (max-width: 760px) {
  nav { width: 88%; }
  .opening {
    display: block;
    margin-inline: 3%;
    padding: 24px 11px 12px;
    border-radius: 14px;
  }
  .opening .hero { padding-inline: 10px; }
  .opening h1 { font-size: clamp(52px, 14vw, 84px); }
  .opening .hero-aside { padding-top: 13px; }
  .opening .hero-aside p:first-of-type { font-size: 14px; margin-bottom: 4px; }
  .opening .hero-aside .cta { font-size: 12px; padding: 9px 12px; min-height: 40px; }
  .opening .hero-availability { margin-top: 8px; }
  .opening .playground { margin-top: 20px; }
  .opening .browser { height: 340px; grid-template-columns: 88px minmax(0, 1fr); }
  .opening .lake-story { height: 328px; }
  .opening .browser.is-split:not(.is-focused) {
    grid-template-columns: 78px minmax(0, 1fr);
    grid-template-rows: repeat(2, minmax(0, 1fr));
    height: 525px;
  }
  .opening .demo-toolbar { justify-content: center; gap: 4px; }
  .opening .space-switcher { width: min(100%, 320px); }
  .opening .caption { margin-bottom: 4px; }
  .logo-toy { left: calc(89% - 42px); top: 121px; width: 42px; height: 42px; }
}

.opening h1 { font-weight: 620; letter-spacing: -.062em; word-spacing: .045em; }
.opening .ribbon-track { margin-inline: calc(100% / 6); }
.manifesto h2,
.manifesto h2 em,
.rescue h2,
.journal h2,
.end h2,
.end h2 em,
.wordmark-end {
  font-family: 'Bricolage Grotesque', Manrope, sans-serif;
}
.manifesto h2 em,
.end h2 em { font-size: 1em; }
