:root {
  --paper: #f7f8fc;
  --surface: #ffffff;
  --ink: #17191c;
  --muted: #687386;
  --rule: #cbd1dc;
  --blue: #315cff;
  --pink: #ff4f70;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Manrope", system-ui, sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

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

.skip-link {
  position: fixed;
  top: -70px;
  left: 16px;
  z-index: 10;
  border: 2px solid var(--ink);
  background: var(--surface);
  padding: 9px 13px;
  font-weight: 800;
}

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

header,
main,
footer {
  width: min(820px, calc(100vw - 32px));
  margin: 0 auto;
}

header {
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--ink);
}

.platform {
  color: var(--muted);
  font-family: "Space Mono", monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

header nav {
  display: flex;
  gap: 22px;
}

header nav a {
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

header nav a:hover,
footer a:hover {
  color: var(--blue);
}

main {
  padding: 54px 0 82px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-family: "Space Mono", monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  font-family: "Archivo", sans-serif;
  font-variation-settings: "wdth" 92;
}

h1 {
  margin-bottom: 24px;
  line-height: 1;
  text-align: center;
}

.hero-copy {
  position: relative;
  border: 2px solid var(--ink);
  background: var(--surface);
  box-shadow: 8px 8px 0 var(--blue);
  padding: 54px 28px 50px;
}

.hero-copy::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 78px;
  height: 7px;
  background: var(--pink);
  content: "";
}

h1 img {
  display: block;
  width: min(310px, 72vw);
  height: auto;
  margin: 0 auto;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2.1rem, 5vw, 3rem);
  font-weight: 850;
  letter-spacing: -0.045em;
  line-height: 1;
}

.lede {
  max-width: 660px;
  margin: 0 auto;
  color: #465064;
  font-size: 18px;
  text-align: center;
}

.button.hero-button {
  display: flex;
  width: fit-content;
  margin: 30px auto 0;
}

.story {
  display: grid;
  margin-top: 64px;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.story figure {
  min-width: 0;
  margin: 0;
}

.story img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  background: var(--surface);
}

.story figcaption {
  margin-top: 14px;
  text-align: center;
}

.story figcaption strong {
  display: block;
  font-family: "Archivo", sans-serif;
  font-size: 16px;
}

.story figcaption span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.install {
  margin-top: 92px;
  border-top: 2px solid var(--ink);
  padding-top: 44px;
}

.install-heading {
  margin-bottom: 30px;
}

.install ol {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
  list-style: none;
}

.install li {
  display: grid;
  border-bottom: 1px solid var(--rule);
  padding: 25px 0;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 18px;
}

.step-number {
  display: flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  color: white;
  font-family: "Space Mono", monospace;
  font-size: 10px;
  font-weight: 700;
}

.install h3 {
  margin-bottom: 4px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.install li p {
  max-width: 660px;
  margin: 0;
  color: #4e5869;
  font-size: 13px;
}

.install .alternate-downloads {
  margin-top: 13px;
  font-size: 10px;
}

.alternate-downloads a {
  color: var(--blue);
  font-weight: 800;
}

.button {
  display: inline-flex;
  min-height: 50px;
  margin-top: 18px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 2px solid var(--ink);
  background: var(--blue);
  box-shadow: 5px 5px 0 var(--ink);
  color: white;
  padding: 0 22px;
  font-family: "Archivo", sans-serif;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--ink);
}

.button:active {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 var(--ink);
}

kbd {
  border: 1px solid #aeb6c3;
  background: var(--surface);
  box-shadow: 0 2px 0 #aeb6c3;
  padding: 3px 7px;
  font-family: "Space Mono", monospace;
  font-size: 10px;
}

.shortcut-step {
  border-bottom: 2px solid var(--ink) !important;
}

.shortcut {
  display: flex;
  margin-top: 17px;
  align-items: center;
  gap: 8px;
}

.shortcut > span {
  color: var(--muted);
  font-family: "Space Mono", monospace;
  font-size: 11px;
}

.shortcut strong {
  margin-left: 5px;
  color: var(--blue);
  font-size: 12px;
}

footer {
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
  border-top: 2px solid var(--ink);
  color: var(--muted);
  font-size: 11px;
}

footer a {
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 640px) {
  header {
    min-height: 76px;
  }

  header nav {
    gap: 12px;
  }

  header nav a {
    font-size: 10px;
  }

  main {
    padding: 34px 0 62px;
  }

  .hero-copy {
    box-shadow: 6px 6px 0 var(--blue);
    padding: 42px 18px 38px;
  }

  .lede {
    font-size: 15px;
  }

  .story {
    width: min(330px, 100%);
    margin-right: auto;
    margin-left: auto;
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .story figcaption strong {
    font-size: 16px;
  }

  .story figcaption span {
    font-size: 11px;
  }

  .install {
    margin-top: 70px;
  }

  .install li {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
  }

  .button {
    width: 100%;
  }

  .shortcut {
    flex-wrap: wrap;
  }

  .shortcut strong {
    width: 100%;
    margin: 4px 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }
}
