:root {
  color-scheme: light;
  --ink: oklch(18% 0.012 270);
  --muted: oklch(43% 0.014 270);
  --paper: oklch(98.5% 0.008 88);
  --paper-deep: oklch(94.5% 0.015 88);
  --line: oklch(22% 0.012 270);
  --blue: oklch(64% 0.17 263);
  --blue-deep: oklch(43% 0.17 263);
  --pink: oklch(68% 0.18 350);
  --yellow: oklch(86% 0.09 86);
  --green: oklch(73% 0.13 150);
  --shadow: oklch(18% 0.012 270 / 0.14);
  --font: "Comic Sans MS", "Comic Sans", "Comic Neue", "Marker Felt", cursive;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, oklch(82% 0.018 270 / 0.28) 1px, transparent 1px),
    linear-gradient(0deg, oklch(82% 0.018 270 / 0.24) 1px, transparent 1px),
    var(--paper);
  background-size: 42px 42px;
  color: var(--ink);
  font-family: var(--font);
  letter-spacing: 0;
}

a {
  color: inherit;
}

.site-header {
  display: flex;
  max-width: 1180px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 auto;
  padding: 18px 22px 6px;
}

.brand,
nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand {
  font-size: 22px;
  font-weight: 900;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: var(--yellow);
  transform: rotate(-5deg);
}

nav a {
  min-height: 36px;
  padding: 7px 12px;
  border: 1.8px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 22px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(26px, 5vw, 58px);
  align-items: center;
  min-height: calc(100vh - 88px);
  padding-bottom: 48px;
}

.eyebrow {
  width: fit-content;
  margin: 0 0 14px;
  padding: 6px 11px;
  border: 1.8px solid var(--line);
  border-radius: 999px;
  background: var(--green);
  font-size: 13px;
  font-weight: 900;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 11ch;
  margin-bottom: 18px;
  font-size: clamp(50px, 7vw, 92px);
  line-height: 0.94;
}

.scribble {
  background: linear-gradient(180deg, transparent 58%, var(--yellow) 58% 96%, transparent 96%);
  padding: 0 4px;
  white-space: nowrap;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.lede {
  max-width: 52ch;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.35;
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 2px solid var(--line);
  border-radius: 18px 15px 20px 14px / 15px 20px 14px 18px;
  box-shadow: 3px 4px 0 var(--shadow);
  font-weight: 900;
  text-decoration: none;
  transition: transform 140ms ease-out, box-shadow 140ms ease-out;
}

.button:hover,
nav a:hover {
  transform: rotate(-0.6deg) translateY(-1px);
}

.button:hover {
  box-shadow: 4px 5px 0 var(--shadow);
}

.primary {
  background: var(--ink);
  color: var(--paper);
}

.secondary {
  background: var(--paper);
}

.hero-proof {
  position: relative;
  min-height: 570px;
}

.shot {
  position: absolute;
  width: min(82%, 700px);
  margin: 0;
  padding: 12px 12px 14px;
  border: 2px solid var(--line);
  background: var(--paper);
  box-shadow: 5px 6px 0 var(--shadow);
}

.shot::after {
  content: "";
  position: absolute;
  inset: -4px 3px 3px -3px;
  z-index: -1;
  border: 1.4px solid oklch(18% 0.012 270 / 0.6);
  border-radius: inherit;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1.5px solid var(--line);
  background: var(--paper);
}

.shot .tag {
  position: absolute;
  top: -18px;
  left: 18px;
  padding: 6px 12px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--yellow);
  font-size: 15px;
  font-weight: 900;
}

.shot figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
}

.before {
  top: 14px;
  left: 0;
  border-radius: 24px 19px 22px 17px / 17px 23px 18px 24px;
  transform: rotate(-2.2deg);
}

.after {
  right: 0;
  bottom: 8px;
  border-radius: 19px 24px 17px 22px / 24px 17px 23px 18px;
  transform: rotate(2deg);
}

.after .tag {
  background: var(--pink);
  color: var(--paper);
}

.comparison,
.install,
.does {
  position: relative;
  margin: 24px 0;
  padding: clamp(22px, 4vw, 34px);
  border: 2px solid var(--line);
  background: var(--paper);
  box-shadow: 4px 5px 0 var(--shadow);
}

.comparison {
  border-radius: 26px 21px 24px 19px / 19px 25px 20px 24px;
}

.install {
  border-radius: 20px 25px 18px 24px / 24px 18px 25px 20px;
  background: var(--paper-deep);
}

.does {
  border-radius: 22px 18px 25px 19px / 19px 24px 18px 23px;
  background: var(--paper);
  transform: rotate(-0.4deg);
}

.does-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.does-grid li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 19px;
  font-weight: 800;
  color: var(--ink);
}

.does-tag {
  flex: none;
  padding: 4px 9px;
  border: 1.6px solid var(--line);
  border-radius: 999px;
  background: var(--green);
  font-size: 12px;
  font-weight: 900;
  text-transform: lowercase;
  letter-spacing: 0.02em;
  transform: rotate(-2deg);
}

.does-tag.does-not {
  background: var(--pink);
  color: var(--paper);
  transform: rotate(2deg);
}

h2 {
  max-width: 18ch;
  margin-bottom: 22px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

article {
  min-height: 190px;
  padding: 18px;
  border: 1.8px solid var(--line);
  border-radius: 18px 16px 20px 15px / 15px 20px 16px 18px;
  background: oklch(97% 0.01 88);
}

article:nth-child(2) {
  background: oklch(95% 0.025 150);
}

h3 {
  margin-bottom: 10px;
  font-size: 25px;
}

article p,
.install p,
li {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.35;
}

.install {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(260px, 0.9fr);
  gap: 22px 30px;
  align-items: start;
}

.install-copy {
  grid-row: span 2;
}

ol {
  margin: 0;
  padding-left: 24px;
}

.install-actions {
  align-self: end;
}

li + li {
  margin-top: 9px;
}

code {
  padding: 2px 5px;
  border: 1px solid oklch(22% 0.012 270 / 0.24);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9em;
}

footer {
  display: flex;
  max-width: 1180px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 auto;
  padding: 34px 22px 42px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
}

footer a {
  color: var(--blue-deep);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

a:focus-visible,
.button:focus-visible,
nav a:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 8px;
}

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

  .button,
  nav a,
  .does,
  .does-tag,
  .brand-mark,
  .before,
  .after {
    transition: none;
  }

  .button:hover,
  nav a:hover {
    transform: none;
  }
}

@media (max-width: 860px) {
  .site-header,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .install {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-proof {
    min-height: auto;
  }

  .shot {
    position: relative;
    width: 100%;
  }

  .after {
    margin-top: 26px;
  }

  .comparison-grid,
  .does-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  main {
    padding-inline: 14px;
  }

  .site-header {
    padding-inline: 14px;
  }

  h1 {
    max-width: 9ch;
    font-size: 48px;
  }

  .lede {
    font-size: 18px;
  }

  .actions,
  .install-actions,
  .button {
    width: 100%;
  }
}
