:root {
  color-scheme: light;
  --paper: #f4f1ea;
  --ink: #0a0a0a;
  --muted: #5f5b52;
  --line: #dcd7cb;
  --accent: #10a56a;
  /* The accent, deepened so large type stays readable on paper. */
  --accent-ink: #0c8a58;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--paper);
  color: var(--ink);
  font: 1.0625rem/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

ol,
ul {
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* The logo: the green stitch crosses over the ink stitch, with a paper-colored gap. */

.defs {
  position: absolute;
  width: 0;
  height: 0;
}

.mark-gap {
  stroke: var(--paper);
}

.mark-over {
  stroke: var(--accent);
}

.wrap {
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* Header and footer */

.header,
.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand svg {
  width: 1.75rem;
  height: 1.75rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
  font-size: 0.95rem;
}

.nav a:not(.button) {
  color: var(--muted);
}

.nav a:not(.button):hover {
  color: var(--ink);
}

/* The hero repeats this button, so phones show only Sign in. */
.header .button {
  display: none;
}

.footer {
  padding-block: 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Buttons */

.button {
  display: inline-block;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.15s;
}

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

.button-lg {
  padding: 0.9rem 1.6rem;
  font-size: 1.1rem;
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3rem;
  padding-block: 2rem 4rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.85rem;
}

.dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
}

h1 {
  margin-block: 1.25rem 1.5rem;
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.055em;
}

h1 em {
  color: var(--accent-ink);
  font-style: normal;
}

.lead {
  max-width: 30rem;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1.5;
}

/* Photo reel: two rows on phones, two columns on desktop. */

.reel {
  display: grid;
  gap: 0.75rem;
  margin-inline: -1.25rem;
  overflow: hidden;
}

.reel-track {
  display: flex;
  width: max-content;
}

.reel figure {
  position: relative;
  flex: none;
  width: 9rem;
  margin-inline-end: 0.75rem;
  border-radius: 1rem;
  overflow: hidden;
  background: var(--line);
}

.reel img {
  display: block;
  width: 100%;
  height: auto;
}

.reel figcaption {
  position: absolute;
  left: 0.5rem;
  bottom: 0.5rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: #fff;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
}

@media (prefers-reduced-motion: no-preference) {
  .is-looping .reel-track {
    animation: reel-x 45s linear infinite;
  }

  .is-looping .reel-track + .reel-track {
    animation-direction: reverse;
  }
}

@keyframes reel-x {
  to {
    transform: translateX(-50%);
  }
}

@keyframes reel-y {
  to {
    transform: translateY(-50%);
  }
}

/* Sections */

.section {
  padding-block: 3.5rem;
  border-top: 1px solid var(--line);
}

.section > h2 {
  margin-bottom: 2rem;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

.grid {
  display: grid;
  gap: 2rem;
}

.grid h3 {
  margin-bottom: 0.4rem;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.grid p {
  color: var(--muted);
  font-size: 1rem;
}

.steps {
  counter-reset: step;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  display: block;
  margin-bottom: 0.5rem;
  color: var(--accent-ink);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
}

/* Closing: the logo as oversized art, rising from the bottom edge. */

.closing {
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.closing .wrap {
  position: relative;
  padding-block: 4rem 13rem;
}

.closing h2 {
  margin-bottom: 1rem;
  font-size: 3rem;
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.closing p {
  max-width: 30rem;
  margin-bottom: 2rem;
  color: var(--muted);
}

.closing-art {
  position: absolute;
  right: -2rem;
  bottom: -5rem;
  width: 16rem;
  height: 16rem;
}

/* Tablet */

@media (min-width: 768px) {
  .wrap {
    padding-inline: 2rem;
  }

  .header .button {
    display: inline-block;
  }

  h1 {
    font-size: 6.5rem;
  }

  .reel {
    margin-inline: -2rem;
  }

  .reel figure {
    width: 12rem;
  }

  .reel figcaption {
    font-size: 0.8rem;
  }

  .grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }

  .section {
    padding-block: 4.5rem;
  }

  .section > h2 {
    font-size: 2.5rem;
  }

  .closing .wrap {
    padding-block: 6rem;
  }

  .closing h2 {
    font-size: 5rem;
  }

  .closing-art {
    right: -3rem;
    bottom: -9rem;
    width: 30rem;
    height: 30rem;
  }
}

/* Desktop */

@media (min-width: 1024px) {
  .hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 4rem;
    align-items: center;
    padding-block: 3rem 5rem;
  }

  h1 {
    font-size: 5.5rem;
  }

  .reel {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    max-height: 40rem;
    margin-inline: 0;
    mask-image: linear-gradient(transparent, #000 10%, #000 90%, transparent);
  }

  .reel-track {
    flex-direction: column;
    width: auto;
  }

  .reel figure {
    width: auto;
    margin-inline-end: 0;
    margin-block-end: 1rem;
    border-radius: 1.25rem;
  }

  .is-looping .reel-track {
    animation-name: reel-y;
  }
}

/* Wide desktop */

@media (min-width: 1280px) {
  h1 {
    font-size: 6.5rem;
  }
}
