@font-face {
  font-family: "Super Mellow";
  src: url("../fonts/super-mellow.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("../fonts/atkinson-hyperlegible-next.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --ink: #1f2540;
  --edge: #12162b;
  --paper: #ffffff;
  --frost: #eef2f8;
  --line: #c9d1de;
  --night: #2c2457;
  --chrome: #2b6ff2;
  --chrome-deep: #1e4ea9;
  --chrome-hover: #4a85f4;
  --chrome-ink: #2b6ff2;
  --gold: #ffc53d;
  --gold-deep: #c78c0c;
  --gold-hover: #ffd36b;
  --white: #ffffff;
  --display: "Super Mellow", "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible Next", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --outline-text: 0 3px 0 var(--edge), 3px 0 0 var(--edge), -3px 0 0 var(--edge), 0 -3px 0 var(--edge),
    2px 2px 0 var(--edge), -2px 2px 0 var(--edge), 2px -2px 0 var(--edge), -2px -2px 0 var(--edge),
    0 7px 0 var(--edge), 3px 6px 0 var(--edge), -3px 6px 0 var(--edge);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f3f5f9;
    --paper: #1b2030;
    --frost: #262d40;
    --line: #3b445c;
    --chrome-ink: #6e9cf6;
    color-scheme: dark;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
}

.translating body {
  visibility: hidden;
}

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

body {
  margin: 0;
  background: var(--frost);
  color: var(--ink);
  font: 400 19px/1.55 var(--body);
}

img {
  pointer-events: none;
  -khtml-user-select: none;
  -o-user-select: none;
  -moz-user-select: none;
  -webkit-user-select: none;
  user-select: none;
}

img,
video {
  max-width: 100%;
}

a {
  color: var(--chrome-ink);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 3px solid var(--chrome-ink);
  outline-offset: 4px;
  border-radius: 6px;
}

::selection {
  background: var(--chrome);
  color: var(--white);
}

.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 10;
  padding: 10px 16px;
  background: var(--paper);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 10px;
  font: 18px/1 var(--display);
  text-decoration: none;
}

.skip:focus {
  top: 16px;
}

.button {
  --fill: var(--paper);
  --shade: var(--line);
  --hover: var(--frost);
  --on: var(--ink);
  display: inline-block;
  margin-bottom: 5px;
  padding: 15px 26px 14px;
  border: 3px solid var(--shade);
  border-radius: 14px;
  background: var(--fill);
  box-shadow: 0 5px 0 var(--shade);
  color: var(--on);
  font: 22px/1.1 var(--display);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 80ms linear;
}

.button:hover {
  background: var(--hover);
}

.button:active {
  transform: translateY(5px);
  box-shadow: 0 0 0 var(--shade);
}

.button-gold {
  --fill: var(--gold);
  --shade: var(--gold-deep);
  --hover: var(--gold-hover);
  --on: #1f2540;
}

.button-chrome {
  --fill: var(--chrome);
  --shade: var(--chrome-deep);
  --hover: var(--chrome-hover);
  --on: var(--white);
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: clamp(640px, 94vh, 980px);
  overflow: hidden;
  background: var(--night);
  border-bottom: 6px solid var(--edge);
}

.hero :focus-visible {
  outline-color: var(--white);
}

.hero-plate {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 40% 62%;
}

.nav {
  padding: 20px var(--gutter);
}

.nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a {
  display: block;
  padding: 6px 12px;
  color: var(--white);
  font: 21px/1.2 var(--display);
  text-decoration: none;
  text-shadow: 0 2px 0 var(--edge), 2px 0 0 var(--edge), -2px 0 0 var(--edge), 0 -2px 0 var(--edge),
    0 4px 0 var(--edge);
}

.nav a:hover {
  color: var(--gold);
}

.pitch {
  align-self: start;
  width: min(100%, max(680px, 46vw));
  padding: clamp(8px, 4vh, 56px) var(--gutter) 40px;
}

.logo {
  margin: 0;
}

.logo img {
  display: block;
  width: 100%;
  height: auto;
  margin-left: -1.5%;
}

.tagline {
  margin: 4px 0 28px;
  color: var(--white);
  font: clamp(26px, 3.2vw, 36px)/1.15 var(--display);
  text-shadow: var(--outline-text);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
}

.status {
  margin: 18px 0 0;
  color: var(--white);
  font-weight: 700;
  font-size: 18px;
  text-shadow: 0 2px 0 var(--edge), 2px 0 0 var(--edge), -2px 0 0 var(--edge), 0 -2px 0 var(--edge);
}

.crew {
  position: absolute;
  right: clamp(0px, 5vw, 96px);
  bottom: 0;
  z-index: -1;
  --crew-height: min(70vh, 660px);
  display: flex;
  align-items: flex-end;
  height: var(--crew-height);
  transform: translateY(24%);
  pointer-events: none;
}

.crew img {
  width: auto;
  height: 100%;
}

.crew .crew-restocker {
  height: 94%;
  margin-right: calc(var(--crew-height) * -0.08);
}

.crew .crew-customer {
  height: 92%;
  margin-left: calc(var(--crew-height) * -0.07);
}

@media (prefers-reduced-motion: no-preference) {
  .js .crew img {
    transform: translateY(100%);
  }

  .js .crew.is-up img {
    animation: rise 680ms cubic-bezier(0.2, 1.4, 0.45, 1) both;
  }

  .js .crew.is-up .crew-cashier {
    animation-delay: 250ms;
  }

  .js .crew.is-up .crew-restocker {
    animation-delay: 400ms;
  }

  .js .crew.is-up .crew-customer {
    animation-delay: 550ms;
  }
}

@keyframes rise {
  from {
    transform: translateY(100%);
  }

  to {
    transform: none;
  }
}

.section {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 104px) var(--gutter) 0;
}

.card {
  overflow: hidden;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 20px;
}

.band {
  margin: 0;
  padding: 14px 24px 12px;
  background: var(--chrome);
  border-bottom: 3px solid var(--ink);
  color: var(--white);
  font: 400 26px/1.2 var(--display);
}

.card-body {
  padding: 24px;
}

.card-body > p {
  margin: 0 0 20px;
}

.card-body > p:last-child {
  margin-bottom: 0;
}

.trailer-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--edge);
}

.intro {
  max-width: 62ch;
  margin: 36px 0 0;
  font-size: 21px;
}

.title {
  margin: 0 0 44px;
  font: 400 clamp(36px, 5vw, 52px)/1.08 var(--display);
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  gap: 28px clamp(24px, 4vw, 56px);
  margin-bottom: clamp(56px, 7vw, 96px);
}

.feature:nth-of-type(even) {
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
}

.feature:nth-of-type(even) .clip {
  order: 2;
}

.feature:last-child {
  margin-bottom: 0;
}

.clip {
  position: relative;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--edge);
  border: 3px solid var(--ink);
  border-radius: 20px;
}

.clip video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.clip-toggle {
  position: absolute;
  right: 14px;
  bottom: 17px;
  padding: 7px 12px 6px;
  background: #ffffff;
  border: 2px solid #1f2540;
  border-radius: 8px;
  box-shadow: 0 3px 0 #1f2540;
  color: #1f2540;
  font: 16px/1 var(--display);
  cursor: pointer;
}

.clip-toggle:hover {
  background: #eef2f8;
}

.clip-toggle:active {
  transform: translateY(3px);
  box-shadow: 0 0 0 #1f2540;
}

.clip-toggle:focus-visible {
  outline-color: var(--white);
}

.feature-text h3 {
  margin: 0 0 12px;
  font: 400 clamp(30px, 3.4vw, 38px)/1.1 var(--display);
}

.feature-text p {
  margin: 0 0 18px;
}

.feature-text ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 18px;
}

.feature-text li {
  position: relative;
  padding-left: 28px;
}

.feature-text li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.45em;
  width: 13px;
  height: 13px;
  background: var(--chrome);
  border: 2px solid var(--ink);
  border-radius: 4px;
}

.get {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 24px;
  padding-bottom: clamp(64px, 9vw, 112px);
}

.card-store {
  grid-row: span 2;
}

.notice {
  grid-column: 1 / -1;
  padding: 18px 22px 20px;
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: 14px;
  font-size: 17px;
}

.notice-title {
  margin: 0 0 6px;
  font: 400 22px/1.2 var(--display);
}

.notice p {
  max-width: 78ch;
  margin: 0;
}

.stores {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.store {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding: 20px 20px 18px;
  background: var(--frost);
  border: 2px solid var(--line);
  border-radius: 14px;
}

.store h3 {
  margin: 0;
  font: 400 30px/1.1 var(--display);
}

.store p {
  margin: 4px 0 0;
}

.facts {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  margin: 24px 0 0;
}

.facts div {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: subgrid;
  gap: 4px 20px;
  padding: 14px 0;
  border-top: 2px solid var(--line);
}

.facts div:last-child {
  padding-bottom: 0;
}

.facts dt {
  font-weight: 700;
}

.facts dd {
  margin: 0;
}

.footer {
  padding: 36px var(--gutter) 44px;
  background: var(--ink);
  color: var(--paper);
  font-size: 16px;
}

.footer p {
  max-width: 1160px;
  margin: 0 auto 8px;
}

.languages ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  max-width: 1160px;
  margin: 0 auto 20px;
  padding: 0;
  list-style: none;
}

.languages a {
  color: inherit;
  font-size: 17px;
}

.languages a[aria-current] {
  font-weight: 700;
  text-decoration: none;
}

@media (prefers-color-scheme: dark) {
  .footer {
    background: var(--edge);
    color: var(--ink);
  }
}

@media (max-width: 900px) {
  .feature,
  .feature:nth-of-type(even),
  .get {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature:nth-of-type(even) .clip {
    order: 0;
  }

  .card-store {
    grid-row: auto;
  }
}

@media (max-width: 760px) {
  .hero {
    grid-template-rows: auto auto 1fr;
    min-height: max(100svh, 640px);
  }

  .hero-plate {
    object-position: 30% 50%;
  }

  .nav ul {
    justify-content: center;
  }

  .nav a {
    font-size: 18px;
    padding: 6px 7px;
  }

  .nav-trailer {
    display: none;
  }

  .pitch {
    justify-self: center;
    padding: 4px var(--gutter) 24px;
    text-align: center;
  }

  .tagline {
    font-size: clamp(22px, 6.6vw, 36px);
  }

  .logo img {
    margin: 0 auto;
  }

  .actions {
    justify-content: center;
  }

  .crew {
    --crew-height: min(46svh, 400px, 96vw);
    position: relative;
    right: auto;
    justify-self: center;
    align-self: end;
    transform: translateY(22%);
  }

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

  .card-body,
  .store {
    padding: 18px;
  }
}

.lost .section {
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding-bottom: clamp(56px, 8vw, 104px);
}

.lost-card {
  width: min(100%, 520px);
}
