@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../fonts/onest-cyrillic-ext-wght-normal.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../fonts/onest-cyrillic-wght-normal.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../fonts/onest-latin-ext-wght-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../fonts/onest-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light dark;

  --color-ink: light-dark(#1F1F1F, #F4F0F2);
  --color-ink-hover: light-dark(#3A3838, #DAD5D8);
  --color-muted: light-dark(#66605F, #A9A2A6);
  --color-paper: light-dark(#FFFAFB, #131215);
  --color-surface: light-dark(#FFFFFF, #201E23);
  --color-line: light-dark(rgb(31 31 31 / .1), rgb(255 255 255 / .1));
  --color-soft: light-dark(#F4F0F2, #2B292F);
  --color-soft-hover: light-dark(#ECE6E9, #37343C);
  --color-tile: light-dark(#F8F5F6, #27252B);
  --color-hover: light-dark(#F1EEEF, #2F2D34);
  --color-focus: light-dark(#3563E9, #8AA5FF);
  --color-shadow: light-dark(rgb(31 41 80 / .24), rgb(0 0 0 / .5));
  --color-band-warm: light-dark(#F3EEF0, #1A181C);
  --color-band-cool: light-dark(#EDF0F6, #171920);
  --color-tint-sky: light-dark(#E2EFFF, #1D2C47);
  --color-tint-lilac: light-dark(#ECE6FF, #2A2547);
  --color-tint-peach: light-dark(#FFE9DA, #3E291D);
  --color-tint-lime: light-dark(#EEF6CF, #2B3419);
  --color-logo: light-dark(#FFFFFF, #EFEBED);
  --color-chip: light-dark(rgb(255 255 255 / .7), rgb(255 255 255 / .14));
  --color-chip-hover: light-dark(#FFFFFF, rgb(255 255 255 / .24));
  --color-glass: light-dark(rgb(255 255 255 / .4), rgb(255 255 255 / .12));
  --color-glass-hover: light-dark(rgb(255 255 255 / .65), rgb(255 255 255 / .2));
  --color-chrome: light-dark(rgb(31 31 31 / .72), rgb(14 13 16 / .72));
  --color-on-chrome: #FFFAFB;
  --color-on-chrome-hover: #FFFFFF;
  --color-chrome-ink: #1F1F1F;

  --sky-1: light-dark(#A6CFFF, #0C1330);
  --sky-2: light-dark(#C8E1FF, #141C46);
  --sky-3: light-dark(#E5F0FF, #1D2357);
  --sky-4: light-dark(#F3EEFF, #2A2563);
  --sky-glow: light-dark(#F7EDFF, #3B2F7C);
  --sky-ground: light-dark(#BFDCFF, #10173A);
  --sky-dusk: light-dark(#B9C9FF, #1B1650);
  --sky-hover: light-dark(#EEF4FF, #2A3158);
  --sky-blob-1: light-dark(rgb(255 255 255 / .8), rgb(110 150 255 / .28));
  --sky-blob-2: light-dark(rgb(250 214 240 / .7), rgb(205 120 225 / .2));
  --sky-blob-3: light-dark(rgb(226 216 255 / .8), rgb(130 110 255 / .26));

  --font-sans: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --header-height: 72px;
  --gutter: clamp(20px, 7vw, 140px);
  --gutter-compact: clamp(16px, 5.5vw, 80px);
  --edge: clamp(10px, 1.4vw, 20px);
  --container: 1200px;
  --section-gap: clamp(56px, 6vw, 96px);

  --radius-control: 8px;
  --radius-card: clamp(26px, 3vw, 40px);
  --radius-band: clamp(28px, 3.4vw, 52px);
  --radius-panel: clamp(36px, 7vw, 110px);

  --ease-out: cubic-bezier(.22, .8, .24, 1);
}

:root:has(> head > meta[name="color-scheme"][content="light"]) {
  color-scheme: light;
}

:root:has(> head > meta[name="color-scheme"][content="dark"]) {
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-padding-top: calc(var(--header-height) + 16px);
  background: var(--sky-1);
}

html:has(.drawer[open]) {
  overflow: hidden;
}

body {
  margin: 0;
  background: var(--sky-ground);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

button {
  color: inherit;
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  flex: none;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: -100px;
  left: 16px;
  padding: 12px 18px;
  border-radius: var(--radius-control);
  background: var(--color-ink);
  color: var(--color-paper);
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

.btn {
  --btn-bg: var(--color-surface);
  --btn-bg-hover: var(--color-hover);
  --btn-fg: var(--color-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--radius-control);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 500 1rem/1 var(--font-sans);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s ease, scale .2s var(--ease-out);
}

.btn:hover {
  background: var(--btn-bg-hover);
}

.btn--primary {
  --btn-bg: var(--color-ink);
  --btn-bg-hover: var(--color-ink-hover);
  --btn-fg: var(--color-paper);
}

.btn--glass {
  --btn-bg: var(--color-glass);
  --btn-bg-hover: var(--color-glass-hover);
  --btn-fg: var(--color-ink);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.btn--small {
  gap: 10px;
  height: 40px;
  padding: 0 14px;
  font-size: .9375rem;
}

.btn--small .icon {
  width: 14px;
  height: 14px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -.015em;
  white-space: nowrap;
  text-decoration: none;
}

.logo__mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  object-fit: cover;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.icon-button .icon {
  width: 24px;
  height: 24px;
  stroke-width: 1.6;
}

.menu-button,
.drawer__close {
  margin-right: -8px;
}

.icon-button[hidden] {
  display: none;
}

.theme-toggle .icon {
  grid-area: 1 / 1;
}

.icon-button.theme-toggle .icon {
  width: 20px;
  height: 20px;
}

.theme-toggle__moon {
  stroke: light-dark(currentColor, transparent);
}

.theme-toggle__sun {
  stroke: light-dark(transparent, currentColor);
}

.socials {
  display: flex;
  gap: 10px;
}

.socials :is(a, button) {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 15px;
  background: var(--color-surface);
  cursor: pointer;
  transition: background-color .2s ease, scale .2s var(--ease-out);
}

.socials :is(a, button):hover {
  background: var(--sky-hover);
}

.site-header {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto;
  color: var(--color-ink);
  transition: transform .4s var(--ease-out), background-color .3s ease, color .4s ease;
}

.site-header.is-scrolled {
  background: var(--color-chrome);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  backdrop-filter: blur(20px) saturate(1.3);
  color: var(--color-on-chrome);
}

.site-header.is-scrolled :focus-visible {
  outline-color: var(--color-on-chrome);
}

.site-header.is-scrolled .btn--glass {
  --btn-bg: var(--color-on-chrome);
  --btn-bg-hover: var(--color-on-chrome-hover);
  --btn-fg: var(--color-chrome-ink);
}

.site-header__bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  height: var(--header-height);
  padding: 0 var(--gutter);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-self: end;
}

.nav {
  display: flex;
  gap: clamp(18px, 2vw, 30px);
  justify-self: start;
}

.nav a {
  white-space: nowrap;
  text-decoration: none;
  transition: opacity .2s ease;
}

.nav a:hover {
  opacity: .6;
}

.menu-button {
  display: none;
}

.drawer {
  inset: 0;
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: transparent;
  color: var(--color-ink);
}

.drawer::backdrop {
  background: transparent;
}

.drawer__sheet {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 0 var(--gutter-compact) max(28px, env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  background: var(--color-paper);
}

.drawer__top {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.drawer__nav {
  display: grid;
  margin-top: clamp(16px, 3vh, 32px);
}

.drawer__nav a {
  padding: 10px 0;
  font-size: clamp(1.75rem, 7vw, 2.25rem);
  letter-spacing: -.03em;
  line-height: 1.1;
  text-decoration: none;
  transition: opacity .2s ease;
}

.drawer__nav a:hover {
  opacity: .55;
}

.drawer__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--color-line);
}

.drawer .socials :is(a, button) {
  background: var(--color-soft);
}

.drawer .socials :is(a, button):hover {
  background: var(--color-soft-hover);
}

.page {
  position: relative;
  z-index: 1;
  overflow: clip;
  border-radius: 0 0 var(--radius-panel) var(--radius-panel);
  background: var(--color-paper);
}

.sky {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.sky i {
  position: absolute;
  border-radius: 50%;
}

.sky i:nth-child(1) {
  top: 4%;
  left: -14%;
  width: 62%;
  height: 58%;
  background: radial-gradient(closest-side, var(--sky-blob-1), transparent);
}

.sky i:nth-child(2) {
  top: 20%;
  right: -12%;
  width: 56%;
  height: 52%;
  background: radial-gradient(closest-side, var(--sky-blob-2), transparent);
}

.sky i:nth-child(3) {
  bottom: -16%;
  left: 16%;
  width: 72%;
  height: 52%;
  background: radial-gradient(closest-side, var(--sky-blob-3), transparent);
}

.hero {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(130% 60% at 50% 112%, var(--sky-glow) 0 34%, transparent 64%),
    linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 40%, var(--sky-3) 70%, var(--sky-4) 100%);
}

.hero__content {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--header-height) var(--gutter) calc(var(--radius-panel) + clamp(36px, 8vh, 96px));
  text-align: center;
}

.hero__title {
  max-width: 20ch;
  font-size: clamp(2.75rem, 6.2vw, 6.6rem);
  font-weight: 400;
  letter-spacing: -.048em;
  line-height: .95;
  text-wrap: balance;
}

.hero__word {
  display: inline-block;
}

.hero__word:nth-child(2) {
  --i: 1;
}

.hero__word:nth-child(3) {
  --i: 2;
}

.hero__word:nth-child(4) {
  --i: 3;
}

.hero__text {
  max-width: 42ch;
  margin-top: clamp(16px, 2.4vh, 26px);
  font-size: clamp(1.0625rem, 1.3vw, 1.3125rem);
  line-height: 1.45;
  text-wrap: balance;
  opacity: .82;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: clamp(18px, 2.8vh, 30px);
}

.made-with {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: clamp(16px, 2.4vh, 22px);
  font-size: .9375rem;
}

.made-with span {
  margin-right: 2px;
  opacity: .7;
}

.made-with a {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--color-chip);
  transition: background-color .2s ease, scale .2s var(--ease-out);
}

.made-with a:hover {
  background: var(--color-chip-hover);
}

.made-with svg,
.made-with img {
  width: 16px;
  height: 16px;
}

.toys {
  position: absolute;
  inset: var(--header-height) 0 var(--radius-panel);
  pointer-events: none;
}

.toy {
  position: absolute;
  top: var(--y);
  left: var(--x);
  width: var(--size);
  rotate: var(--tilt);
  filter: drop-shadow(0 12px 14px var(--color-shadow));
}

.toy--browser {
  --x: 4%;
  --y: 7%;
  --size: clamp(72px, 10.5vw, 160px);
  --tilt: -10deg;
  --i: 0;
}

.toy--gear {
  --x: 85.5%;
  --y: 5%;
  --size: clamp(58px, 8.4vw, 126px);
  --tilt: 12deg;
  --i: 1;
}

.toy--bag {
  --x: 12%;
  --y: 62%;
  --size: clamp(62px, 9vw, 136px);
  --tilt: 8deg;
  --i: 2;
}

.toy--toggle {
  --x: 76%;
  --y: 60%;
  --size: clamp(66px, 9.6vw, 146px);
  --tilt: -8deg;
  --i: 3;
}

.panel {
  position: relative;
  z-index: 2;
  margin-top: calc(-1 * var(--radius-panel));
  padding-bottom: clamp(28px, 3.4vw, 48px);
  border-radius: var(--radius-panel) var(--radius-panel) 0 0;
  background: var(--color-paper);
}

.section {
  padding: var(--section-gap) var(--gutter) 0;
}

.section--band {
  margin: var(--section-gap) var(--edge) 0;
  padding: clamp(44px, 5vw, 76px) calc(var(--gutter) - var(--edge));
  border-radius: var(--radius-band);
}

.section--band + .section--band {
  margin-top: 12px;
}

.section--warm {
  background: var(--color-band-warm);
}

.section--cool {
  background: var(--color-band-cool);
}

.section__title,
.about__statement {
  font-size: clamp(2.4rem, 4.8vw, 4.25rem);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: 1.02;
  text-align: center;
  text-wrap: balance;
}

.section__title {
  margin-bottom: clamp(24px, 2.8vw, 40px);
}

.card {
  max-width: var(--container);
  margin-inline: auto;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  background: var(--color-surface);
}

.about {
  display: grid;
  justify-items: center;
  padding-top: clamp(64px, 7vw, 104px);
  text-align: center;
}

.about__photo {
  width: clamp(140px, 14vw, 200px);
  aspect-ratio: 1;
  margin-bottom: clamp(28px, 3vw, 40px);
  border-radius: clamp(20px, 2vw, 28px);
  object-fit: cover;
}

.about__statement {
  max-width: 20ch;
  line-height: 1.06;
}

.about__text {
  max-width: 52ch;
  margin: 24px 0 32px;
  color: var(--color-muted);
  font-size: 1.1875rem;
  text-wrap: pretty;
}

.accordion {
  padding: 4px clamp(18px, 3vw, 40px);
}

.accordion__item + .accordion__item {
  border-top: 1px solid var(--color-line);
}

.accordion__summary {
  display: grid;
  grid-template-columns: 1fr 40px;
  align-items: center;
  gap: 20px;
  padding: clamp(16px, 2vw, 22px) 0;
  list-style: none;
  cursor: pointer;
}

.accordion--rich .accordion__summary {
  grid-template-columns: 64px 1fr 40px;
}

.accordion__summary::-webkit-details-marker {
  display: none;
}

.accordion__title {
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  font-weight: 400;
  letter-spacing: -.03em;
  line-height: 1.15;
}

.accordion--rich .accordion__title {
  font-size: clamp(1.375rem, 2.2vw, 1.875rem);
  line-height: 1.1;
}

.accordion__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 18px;
}

.accordion__icon img {
  width: 46px;
  transition: scale .45s var(--ease-out), rotate .45s var(--ease-out);
}

.accordion__icon--sky {
  background: var(--color-tint-sky);
}

.accordion__icon--lilac {
  background: var(--color-tint-lilac);
}

.accordion__icon--peach {
  background: var(--color-tint-peach);
}

.accordion__icon--lime {
  background: var(--color-tint-lime);
}

.accordion__toggle {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-control);
  background: var(--color-soft);
  transition: background-color .2s ease, scale .2s var(--ease-out);
}

.accordion__toggle::before,
.accordion__toggle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 15px;
  height: 1.5px;
  background: var(--color-ink);
  translate: -50% -50%;
  transition: background-color .2s ease;
}

.accordion__toggle::after {
  rotate: 90deg;
}

.accordion__summary:hover .accordion__toggle {
  background: var(--color-soft-hover);
}

.accordion__item[open]:not(.is-closing) .accordion__toggle {
  background: var(--color-ink);
}

.accordion__item[open]:not(.is-closing) .accordion__toggle::before,
.accordion__item[open]:not(.is-closing) .accordion__toggle::after {
  background: var(--color-paper);
}

.accordion__item[open]:not(.is-closing) .accordion__toggle::after {
  rotate: 0deg;
}

.accordion--rich .accordion__toggle::before,
.accordion--rich .accordion__toggle::after {
  width: 9px;
  border-radius: 1px;
}

.accordion--rich .accordion__toggle::before {
  translate: calc(-50% - 3px) -50%;
  rotate: 45deg;
}

.accordion--rich .accordion__toggle::after {
  translate: calc(-50% + 3px) -50%;
  rotate: -45deg;
}

.accordion--rich .accordion__item[open]:not(.is-closing) .accordion__toggle::before {
  rotate: -45deg;
}

.accordion--rich .accordion__item[open]:not(.is-closing) .accordion__toggle::after {
  rotate: 45deg;
}

.accordion__item::details-content {
  display: grid;
  grid-template-rows: 0fr;
}

.accordion__item[open]:not(.is-closing)::details-content {
  grid-template-rows: 1fr;
}

.accordion__body {
  display: grid;
  justify-items: start;
  gap: 14px;
  min-height: 0;
  padding-right: 60px;
  overflow: hidden;
}

.accordion__body > :last-child {
  margin-bottom: 24px;
}

.accordion--rich .accordion__body {
  padding-left: 84px;
}

.accordion__body p {
  color: var(--color-muted);
  font-size: 1.0625rem;
  text-wrap: pretty;
}

.accordion__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.accordion__tags li {
  padding: 6px 12px;
  border-radius: var(--radius-control);
  background: var(--color-soft);
  font-size: .9375rem;
}

.stack {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  padding: clamp(12px, 1.4vw, 18px);
}

.stack__item {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 20px 8px 16px;
  border-radius: 20px;
  background: var(--color-tile);
  font-size: .9375rem;
  text-align: center;
  transition: background-color .25s ease;
}

.stack__logo {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid var(--color-line);
  border-radius: 16px;
  background: var(--color-logo);
  transition: translate .35s var(--ease-out), box-shadow .35s var(--ease-out);
}

.stack__logo svg {
  width: 28px;
  height: 28px;
}

.site-footer {
  position: sticky;
  z-index: 0;
  bottom: 0;
  overflow: hidden;
  isolation: isolate;
  padding: 0 var(--gutter);
  background: linear-gradient(180deg, var(--sky-ground) 0%, var(--sky-1) 55%, var(--sky-dusk) 100%);
}

.site-footer__bar {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(36px, 4vw, 52px) 0 clamp(36px, 4vw, 48px);
}

.site-footer .logo {
  font-size: 1.5rem;
}

@media (hover: hover) {
  .stack__item:hover {
    background: var(--color-hover);
  }
}

@keyframes drift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(9%, -7%, 0) scale(1.08);
  }

  100% {
    transform: translate3d(-7%, 5%, 0) scale(.94);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(var(--rise, 18px));
  }
}

@keyframes word-in {
  from {
    opacity: 0;
    transform: translateY(.42em);
  }
}

@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(10px) scale(.96);
  }
}

@keyframes hero-away {
  to {
    opacity: .35;
    transform: translateY(-6vh) scale(.95);
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  .btn:active {
    scale: .96;
  }

  .socials :is(a, button):active,
  .made-with a:active {
    scale: .92;
  }

  .drawer__sheet {
    clip-path: inset(0);
    transition: clip-path .5s var(--ease-out);
  }

  .drawer__nav a,
  .drawer__footer {
    transition: opacity .45s ease, translate .55s var(--ease-out);
  }

  .drawer__nav a:nth-child(1) {
    transition-delay: .12s;
  }

  .drawer__nav a:nth-child(2) {
    transition-delay: .16s;
  }

  .drawer__nav a:nth-child(3) {
    transition-delay: .2s;
  }

  .drawer__nav a:nth-child(4) {
    transition-delay: .24s;
  }

  .drawer__nav a:nth-child(5) {
    transition-delay: .28s;
  }

  .drawer__footer {
    transition-delay: .34s;
  }

  .drawer__nav a:hover {
    transition-delay: 0s;
  }

  @starting-style {
    .drawer[open] .drawer__sheet {
      clip-path: inset(0 0 100% 0);
    }

    .drawer[open] :is(.drawer__nav a, .drawer__footer) {
      opacity: 0;
      translate: 0 -10px;
    }
  }

  .drawer.is-closing .drawer__sheet {
    clip-path: inset(0 0 100% 0);
  }

  .drawer.is-closing :is(.drawer__nav a, .drawer__footer) {
    opacity: 0;
    translate: 0 -10px;
    transition: opacity .25s ease, translate .25s ease;
  }

  .hero__word {
    animation: word-in 1s var(--ease-out) both;
    animation-delay: calc(.12s + var(--i, 0) * .07s);
  }

  .hero__text {
    animation: rise .9s var(--ease-out) .6s both;
  }

  .hero__actions {
    animation: rise .9s var(--ease-out) .72s both;
  }

  .made-with {
    animation: rise .9s var(--ease-out) .84s both;
  }

  .toy {
    animation: pop .7s var(--ease-out) both;
    animation-delay: calc(1s + var(--i) * 90ms);
  }

  .js .reveal {
    --rise: 28px;
  }

  .js .reveal:not(.is-visible) {
    opacity: 0;
  }

  .js .reveal.is-visible {
    animation: rise 1s var(--ease-out);
  }

  .js .stack.is-visible .stack__item {
    animation: pop .6s var(--ease-out) both;
    animation-delay: calc(.15s + var(--i, 0) * 45ms);
  }

  .accordion__item::details-content {
    transition: grid-template-rows .45s var(--ease-out);
  }

  .accordion__item[open]:not(.is-closing) .accordion__icon img {
    scale: 1.1;
    rotate: -5deg;
  }

  .accordion__summary:active .accordion__toggle {
    scale: .9;
  }

  .accordion__toggle::before,
  .accordion__toggle::after {
    transition: background-color .2s ease, rotate .35s var(--ease-out);
  }

  @media (hover: hover) {
    .accordion__summary:hover .accordion__icon img {
      scale: 1.1;
      rotate: -5deg;
    }

    .stack__item:hover .stack__logo {
      translate: 0 -4px;
      box-shadow: 0 10px 18px -10px var(--color-shadow);
    }
  }

  @media (min-width: 761px) and (pointer: fine) {
    .site-header.is-hidden:not(:has(:focus-visible)) {
      transform: translateY(-100%);
    }

    .hero .sky i {
      animation: drift 40s ease-in-out infinite alternate;
    }

    .hero .sky i:nth-child(2) {
      animation-duration: 48s;
      animation-delay: -14s;
    }

    .hero .sky i:nth-child(3) {
      animation-duration: 56s;
      animation-delay: -26s;
    }

    @supports ((animation-timeline: scroll()) and (animation-range: 0% 100%)) {
      .hero__content,
      .toys {
        animation: hero-away linear both;
        animation-timeline: scroll(root);
        animation-range: 0 100vh;
      }
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .drawer__sheet {
    transition: opacity .15s ease;
  }

  @starting-style {
    .drawer[open] .drawer__sheet {
      opacity: 0;
    }
  }

  .drawer.is-closing .drawer__sheet {
    opacity: 0;
  }
}

@media (max-width: 1180px) {
  .site-header__bar {
    display: flex;
    justify-content: space-between;
    padding: 0 var(--gutter-compact);
  }

  .nav {
    display: none;
  }

  .menu-button {
    display: grid;
  }

  .site-footer {
    padding: 0 var(--gutter-compact);
  }
}

@media (max-width: 1000px) {
  .stack {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 760px), (pointer: coarse) {
  .js .reveal {
    --rise: 14px;
  }

  .js .reveal.is-visible {
    animation-duration: .7s;
  }
}

@media (max-width: 640px) {
  .hero__actions {
    flex-wrap: nowrap;
    gap: 8px;
    width: 100%;
  }

  .hero__actions .btn {
    flex: 1 1 0;
    min-width: 0;
    gap: 8px;
    padding: 0 12px;
    font-size: .9375rem;
  }

  .hero__actions .icon {
    width: 14px;
    height: 14px;
  }

  .toy--browser {
    --x: 6%;
    --y: 3%;
    --size: 76px;
  }

  .toy--gear {
    --x: 76%;
    --y: 5%;
    --size: 62px;
  }

  .toy--bag {
    --x: 8%;
    --y: 78%;
    --size: 66px;
  }

  .toy--toggle {
    --x: 72%;
    --y: 76%;
    --size: 72px;
  }

  .accordion__summary {
    gap: 14px;
  }

  .accordion--rich .accordion__summary {
    grid-template-columns: 52px 1fr 40px;
  }

  .accordion__icon {
    width: 52px;
    height: 52px;
    border-radius: 15px;
  }

  .accordion__icon img {
    width: 38px;
  }

  .accordion__body,
  .accordion--rich .accordion__body {
    padding-inline: 0;
  }
}

@media (max-width: 520px) {
  .site-header .theme-toggle {
    display: none;
  }

  .stack {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 380px) {
  .hero__actions .btn {
    font-size: .875rem;
  }

  .toy--browser {
    --y: 0%;
    --size: 60px;
  }

  .toy--gear {
    --y: 1%;
    --size: 50px;
  }
}

@media (max-width: 340px) {
  .hero__actions .icon {
    display: none;
  }
}
