@font-face {
  font-family: Manrope;
  src: url('manrope.ttf') format('truetype');
  font-weight: 700 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  background: #171919;
  color: #f5f2e9;
  --accent: #f9bf65;
  --gutter: clamp(24px, 8vw, 128px);
  --max-width: 1440px;
}

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

body {
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 100svh;
  margin: 0;
  background: radial-gradient(ellipse at 73% 50%, #292623 0%, transparent 57%);
}

.teaser, .footer {
  width: min(100%, var(--max-width));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.teaser {
  display: grid;
  grid-template-columns: 4fr 6fr;
  align-items: center;
  padding-block: 36px;
}

h1 {
  position: relative;
  z-index: 1;
  width: max-content;
  max-width: 100%;
  margin: 0;
  padding-inline-end: .06em;
  font: 720 clamp(3.5rem, 7vw, 6.5rem)/1 Manrope, system-ui, sans-serif;
  letter-spacing: -.058em;
}

h1 span {
  display: block;
}

.illustration {
  position: relative;
  width: min(100%, 700px);
  margin-inline: auto;
  aspect-ratio: 600 / 400;
  pointer-events: none;
}

.foundation,
.still img,
.animation,
.animation svg {
  display: block;
  width: 100%;
  height: 100%;
}

.still img, .animation {
  position: absolute;
  inset: 0;
}

.footer {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 94px;
}

.footer::before {
  content: '';
  position: absolute;
  inset: 0 var(--gutter) auto;
  height: 1px;
  background: #e8eee42b;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: .015em;
  padding-block: 12px;
  color: #f3f0eb;
  text-decoration: none;
  font: 800 1.25rem/1 Manrope, system-ui, sans-serif;
  letter-spacing: -.055em;
}

.wordmark img {
  width: .95em;
  height: .75em;
}

.domain {
  color: #a3aaa1;
  transition: color 180ms ease;
}

.motion-toggle {
  position: absolute;
  inset-inline-end: var(--gutter);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #e8eee42b;
  border-radius: 50%;
  background: transparent;
  color: #b3b9af;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease;
}

.motion-toggle[hidden],
.motion-toggle .play,
.motion-toggle[data-paused] .pause {
  display: none;
}

.motion-toggle[data-paused] .play {
  display: block;
}

.motion-toggle svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (hover: hover) and (pointer: fine) {
  .wordmark:hover .domain {
    color: var(--accent);
  }

  .motion-toggle:hover {
    border-color: currentColor;
    color: var(--accent);
  }
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}

@media (min-width: 761px) {
  .illustration {
    width: min(calc(100% + 5vw), 700px);
  }
}

@media (max-width: 760px) and (orientation: portrait), (max-width: 567px) {
  body {
    background: radial-gradient(ellipse at 50% 62%, #292623 0%, transparent 59%);
  }

  .teaser {
    --gutter: 18px;
    grid-template-columns: minmax(0, 1fr);
    align-content: center;
    justify-items: center;
    gap: clamp(12px, 2.5svh, 22px);
    padding-block: 36px 16px;
  }

  h1 {
    font-size: clamp(2.75rem, 13vw, 5rem);
    text-align: center;
  }

  .illustration {
    width: min(100%, clamp(235px, 54svh, 450px));
  }

  .footer {
    min-height: 74px;
  }

  .wordmark {
    font-size: 1.1rem;
  }
}

@media (min-width: 568px) and (max-height: 560px) and (orientation: landscape) {
  .teaser {
    padding-block: 18px;
  }

  .illustration {
    max-width: max(208px, calc((100svh - 110px) * 1.5));
  }

  h1 {
    font-size: clamp(3rem, 7vw, 6.2rem);
  }

  .footer {
    min-height: 74px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .domain, .motion-toggle {
    transition: none;
  }
}
