:root {
  color-scheme: light dark;
  font-family:
    ui-serif,
    Iowan Old Style,
    Georgia,
    serif;
  background: #f2f0eb;
  color: #171714;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

main {
  width: min(100% - 40px, 680px);
  margin: 0 auto;
  padding: 88px 0 120px;
}

img {
  display: block;
  margin-bottom: 32px;
  filter: invert(1);
}

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

.install-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 28px;
  align-items: center;
  width: min(100%, 360px);
  margin-top: 36px;
  padding: 17px 18px 16px;
  border: 1px solid #171714;
  background: #171714;
  color: #f2f0eb;
  text-decoration: none;
  transition:
    background-color 140ms ease,
    color 140ms ease;
}

.install-cta span:first-child {
  font-size: 18px;
  font-weight: 600;
}

.install-cta small {
  grid-column: 1;
  color: inherit;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 11px;
  letter-spacing: 0.07em;
  opacity: 0.68;
  text-transform: uppercase;
}

.install-cta__arrow {
  grid-row: 1 / span 2;
  grid-column: 2;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 21px;
  font-weight: 400;
  transition: transform 140ms ease;
}

.install-cta:hover {
  background: transparent;
  color: #171714;
}

.install-cta:hover .install-cta__arrow {
  transform: translate(2px, -2px);
}

.install-cta:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

h1 {
  margin-bottom: 14px;
  font-size: clamp(48px, 10vw, 76px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.96;
}

h2 {
  margin: 48px 0 12px;
  font-size: 22px;
  font-weight: 600;
}

p {
  color: #57564f;
  font-size: 18px;
  line-height: 1.65;
}

.lede {
  color: #171714;
  font-size: 26px;
  line-height: 1.35;
}

nav {
  display: flex;
  gap: 24px;
  margin-top: 44px;
}

section {
  margin-top: 48px;
  padding-block: 28px;
  border-block: 1px solid color-mix(in srgb, currentColor 20%, transparent);
}

section h2 {
  margin-top: 0;
}

.plan {
  padding-top: 20px;
}

.plan + .plan {
  margin-top: 24px;
  border-top: 1px solid color-mix(in srgb, currentColor 14%, transparent);
}

.plan-name {
  margin-bottom: 6px;
  color: inherit;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.plan .price {
  margin-bottom: 8px;
}

.price strong {
  color: #171714;
  font-size: 28px;
  font-weight: 500;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.back {
  display: inline-block;
  margin-bottom: 64px;
}

.fine {
  margin-top: 56px;
  font-size: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    background: #11110f;
    color: #f2f0eb;
  }

  p {
    color: #aaa79f;
  }

  .lede {
    color: #f2f0eb;
  }

  .price strong {
    color: #f2f0eb;
  }

  img {
    filter: none;
  }

  .install-cta {
    border-color: #f2f0eb;
    background: #f2f0eb;
    color: #11110f;
  }

  .install-cta:hover {
    background: transparent;
    color: #f2f0eb;
  }
}

@media (prefers-reduced-motion: reduce) {
  .install-cta,
  .install-cta__arrow {
    transition: none;
  }
}
