:root {
  --ink: #281a39;
  --paper: #f6f6f6;
  --blue: #2061b7;
  --sky: #bde9fb;
  --sand: #eae0da;
  --white: #ffffff;
  --font: "Avenir Next", Avenir, Figtree, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(20px, 3.3vw, 48px);
  --max: 1440px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.2;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

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

h1,
h2,
h3 {
  font-weight: 700;
  line-height: 1.1;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  padding: 8px 12px;
  background: var(--ink);
  color: var(--paper);
  z-index: 100;
}

.skip:focus {
  left: 8px;
}

.wrap {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Header */

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

.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 118px;
}

.masthead__logo img {
  width: 203px;
}

.masthead__nav {
  display: flex;
  align-items: center;
  gap: 48px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.masthead__nav a {
  display: inline-block;
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 35px;
  padding: 6px 28px;
  border: 0;
  border-radius: 18px;
  background: var(--ink);
  color: var(--paper);
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  opacity: 0.85;
}

.btn--pill {
  min-width: 160px;
}

.btn--light {
  background: var(--paper);
  color: var(--ink);
  border-radius: 0;
  padding: 9px 28px;
}

.btn--square {
  border-radius: 0;
  min-width: 140px;
}

/* Hero */

.hero {
  padding: 24px 0 0;
  text-align: center;
}

.hero h1 {
  max-width: 800px;
  margin: 0 auto;
  font-size: clamp(48px, 6.9vw, 100px);
}

.hero__lede {
  max-width: 880px;
  margin: 28px auto 0;
  font-size: clamp(18px, 1.7vw, 24px);
}

.hero__figure {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  margin: 68px 0 0;
  padding-bottom: 0;
}

.hero__photo {
  width: min(537px, 70vw);
  aspect-ratio: 537 / 843;
  object-fit: cover;
}

.hero__stat {
  position: absolute;
  left: calc(50% + 284px);
  top: 50%;
  transform: translateY(-50%);
  text-align: left;
  white-space: nowrap;
}

.hero__stat strong {
  display: block;
  font-size: 35px;
  line-height: 1.1;
  color: var(--blue);
}

.hero__stat span {
  display: block;
  margin-top: 6px;
  font-size: 13px;
}

/* How it works */

.how {
  background: var(--blue);
  color: var(--ink);
  overflow: hidden;
}

.how__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 528px);
  gap: 48px;
  padding-top: 56px;
  padding-bottom: 64px;
}

.how__label {
  grid-column: 2;
  color: var(--paper);
  font-size: 18px;
}

.how__text {
  grid-column: 2;
  display: grid;
  gap: 40px;
  font-size: clamp(24px, 2.7vw, 39px);
  font-weight: 700;
  line-height: 1.1;
}

.how__figure {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: start;
  position: relative;
  margin: 70px 0 0 calc(-1 * var(--gutter) - 240px);
  width: 825px;
  max-width: none;
}

.how__figure img {
  width: 825px;
  aspect-ratio: 825 / 523;
  object-fit: cover;
}

.how__caption {
  position: absolute;
  left: 690px;
  top: 60px;
  color: var(--paper);
  font-size: 13px;
}

/* Explore */

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

.explore__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  padding-top: 60px;
  padding-bottom: 56px;
}

.explore h2 {
  font-size: clamp(44px, 5.6vw, 80px);
  max-width: 5em;
}

.explore__copy {
  max-width: 400px;
  margin-top: 80px;
}

.explore__cta {
  margin-top: 46px;
}

.features {
  display: grid;
  gap: 60px;
  margin: 0;
  padding: 50px 0 0 clamp(0px, 4vw, 80px);
  list-style: none;
}

.feature {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 72px;
  align-items: start;
}

.feature img {
  width: 76px;
}

.feature h3 {
  font-size: 18px;
}

.feature p {
  margin-top: 8px;
  max-width: 260px;
  font-size: 13px;
  line-height: 1.55;
}

/* Shop on the go */

.shop {
  position: relative;
  isolation: isolate;
  background: var(--ink) url("images/woman-phone.webp") center / cover no-repeat;
  color: var(--paper);
  text-align: center;
}

.shop::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(40, 26, 57, 0.28);
}

.shop__inner {
  padding-top: 200px;
  padding-bottom: 60px;
}

.shop h2 {
  font-size: clamp(44px, 5.6vw, 80px);
}

.shop__copy {
  max-width: 500px;
  margin: 40px auto 0;
  color: var(--white);
}

.shop__note {
  max-width: 440px;
  margin: 40px auto 0;
}

.stores {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 56px;
}

.stores img {
  width: 111px;
}

.stores span {
  display: inline-block;
}

/* Testimonial */

.voices {
  background: var(--sand) url("images/bag-of-groceries.webp") center / cover no-repeat;
}

.voices__inner {
  display: flex;
  justify-content: flex-end;
  padding-top: 192px;
  padding-bottom: 80px;
  min-height: 931px;
}

.voices__panel {
  width: min(670px, 100%);
}

.voices h2 {
  font-size: clamp(44px, 5.6vw, 80px);
}

.voices blockquote {
  margin: 150px 0 0;
}

.voices blockquote p {
  font-size: clamp(24px, 2.8vw, 40px);
  font-weight: 700;
  line-height: 1.1;
}

.voices cite {
  display: block;
  margin-top: 36px;
  font-style: normal;
}

/* Newsletter */

.signup {
  background: var(--sky);
  text-align: center;
}

.signup__inner {
  padding-top: 80px;
  padding-bottom: 106px;
}

.signup h2 {
  font-size: clamp(44px, 5.6vw, 80px);
}

.signup__copy {
  max-width: 400px;
  margin: 66px auto 0;
}

/* Forms */

.form {
  margin: 0;
}

.form--newsletter {
  max-width: 570px;
  margin: 52px auto 0;
}

.field {
  display: block;
  text-align: left;
}

.field span {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
}

.field input,
.field textarea {
  display: block;
  width: 100%;
  padding: 8px 4px;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
}

.field textarea {
  min-height: 90px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: 0;
  border-bottom-width: 2px;
}

.form--newsletter .field span {
  text-align: center;
}

.form--newsletter .btn {
  margin-top: 48px;
  min-width: 165px;
}

.form__status {
  display: block;
  margin-top: 20px;
  min-height: 1.2em;
}

.form__status[hidden] {
  display: none;
}

/* Vendor page */

.vendor__intro {
  padding-top: 40px;
  padding-bottom: 60px;
  text-align: center;
}

.vendor__intro h1 {
  font-size: clamp(40px, 4.6vw, 66px);
}

.vendor__intro p {
  max-width: 660px;
  margin: 40px auto 0;
  line-height: 1.8;
}

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

.vendor__photo {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.vendor__panel {
  background: var(--sky);
  padding: 60px clamp(24px, 9vw, 136px) 72px;
}

.vendor__panel address {
  font-style: normal;
  line-height: 1.6;
}

.vendor__panel address a {
  display: inline-block;
  margin-top: 8px;
}

.form--vendor {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 20px;
  margin-top: 56px;
}

.form--vendor .field--wide,
.form--vendor .form__actions,
.form--vendor .form__status {
  grid-column: 1 / -1;
}

.form--vendor .form__actions {
  margin-top: 40px;
}

.form--vendor .btn {
  font-size: 13px;
  font-weight: 600;
}

/* Legal pages */

.legal__inner {
  max-width: 990px;
  margin: 0 auto;
  padding-top: 96px;
  padding-bottom: 140px;
}

.legal h1 {
  max-width: 10em;
  margin: 0 auto;
  font-size: clamp(48px, 5.6vw, 80px);
  text-align: center;
}

.legal__body {
  margin-top: 88px;
  line-height: 1.2;
}

.legal__body h2 {
  font-size: 18px;
  font-weight: 600;
  margin-top: 30px;
}

.legal__body p {
  margin-top: 20px;
}

.legal__body h2 + p {
  margin-top: 0;
}

.legal__body ul {
  margin: 0;
  padding-left: 32px;
}

.legal__body li {
  margin-top: 2px;
}

.legal__body a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Footer */

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

.footer__inner {
  display: grid;
  grid-template-columns: 265px minmax(0, 1fr) auto;
  gap: 24px;
  padding-top: 36px;
  padding-bottom: 60px;
  padding-left: 35px;
}

.footer__col h2 {
  font-size: 18px;
  font-weight: 700;
}

.footer__col p,
.footer__col ul {
  margin: 68px 0 0;
  padding: 0;
  list-style: none;
  max-width: 240px;
}

.footer__col li + li {
  margin-top: 6px;
}

.footer__col address {
  font-style: normal;
}

.footer__logo {
  align-self: end;
  margin-top: 60px;
}

.footer__logo img {
  width: 233px;
}

.footer__copy {
  padding-top: 24px;
  padding-bottom: 8px;
  padding-left: 35px;
}

/* Responsive */

@media (max-width: 1100px) {
  .how__figure {
    margin-left: calc(-1 * var(--gutter));
    width: min(825px, 100vw);
  }

  .how__figure img {
    width: 100%;
  }

  .how__caption {
    left: auto;
    right: 20px;
  }

  .hero__stat {
    position: static;
    transform: none;
    margin-top: 24px;
    text-align: center;
  }

  .hero__figure {
    flex-direction: column;
  }
}

@media (max-width: 860px) {
  .masthead__inner {
    min-height: 90px;
  }

  .masthead__logo img {
    width: 130px;
  }

  .masthead__nav {
    gap: 16px;
    font-size: 15px;
  }

  .btn--pill {
    min-width: 0;
    padding: 6px 22px;
  }

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

  .how__label,
  .how__text,
  .how__figure {
    grid-column: 1;
  }

  .how__figure {
    grid-row: auto;
    margin-top: 0;
  }

  .explore__copy {
    margin-top: 40px;
  }

  .features {
    padding-left: 0;
    gap: 40px;
  }

  .feature {
    gap: 28px;
  }

  .shop__inner {
    padding-top: 120px;
  }

  .voices__inner {
    min-height: 0;
    padding-top: 120px;
    justify-content: flex-start;
  }

  .voices blockquote {
    margin-top: 80px;
  }

  .signup__copy {
    margin-top: 36px;
  }

  .vendor__photo {
    min-height: 320px;
  }

  .form--vendor {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .legal__inner {
    padding-top: 56px;
    padding-bottom: 80px;
  }

  .legal__body {
    margin-top: 48px;
  }

  .footer__inner {
    grid-template-columns: 1fr 1fr;
    padding-left: var(--gutter);
  }

  .footer__col p,
  .footer__col ul {
    margin-top: 28px;
  }

  .footer__logo {
    grid-column: 1 / -1;
    margin-top: 12px;
  }

  .footer__copy {
    padding-left: var(--gutter);
  }
}
