:root {
  color-scheme: light;
  --paper: #f6eee6;
  --ink: #322036;
  --plum: #5b326b;
  --gutter: clamp(1.25rem, 5.5vw, 5.5rem);
  font-family: system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

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

body {
  margin: 0;
}

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

img {
  display: block;
}

.page {
  min-height: 100vh;
  padding-block: clamp(2rem, 3.65vw, 3.5rem) 1.75rem;
  overflow: clip;
  background-color: var(--paper);
  background-image:
    url("assets/hero-arcs.webp"),
    url("assets/footer-pastels.webp"),
    url("assets/eucalyptus-sprig.webp"),
    radial-gradient(ellipse at 25% 60%, #fff5ed 0, transparent var(--paper-gradient-end, 65%)),
    radial-gradient(ellipse at 78% 24%, #efddd5 0, transparent 62%);
  background-repeat: no-repeat;
  background-position: top -13rem right -9rem, bottom -2.35rem right -5rem, bottom -1.5rem right 16rem, center, center;
  background-size: clamp(22rem, 31vw, 31rem), clamp(15rem, 20vw, 22rem), clamp(12rem, 18vw, 17rem), 100%, 100%;
}

.content {
  width: min(100% - 2 * var(--gutter), 85.375rem);
  margin-inline: auto;
}

.hero {
  display: grid;
  grid-template-columns: 39% minmax(0, 1fr);
  gap: clamp(0.75rem, 1.7vw, 1.625rem);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.28em;
  font-size: clamp(1.85rem, 3vw, 2.875rem);
  font-weight: 750;
  line-height: 1;
}

.brand-mark {
  display: block;
  position: relative;
  width: 1.36em;
  height: 1.36em;
  overflow: hidden;
}

.brand-mark img {
  position: absolute;
  top: -44%;
  left: -39%;
  width: 178%;
  height: auto;
}

h1 {
  margin-block: clamp(1.8rem, 3.1vw, 3rem) clamp(1.5rem, 3.25vw, 3.1rem);
  font-size: clamp(2.5rem, 4.45vw, 4.25rem);
  font-weight: 750;
  line-height: 0.99;
}

.tagline {
  color: #512449;
  font-size: clamp(1.1rem, 2.02vw, 1.94rem);
  font-weight: 530;
  line-height: 1.28;
}

.steps {
  --step-gap: clamp(1.375rem, 3.1vw, 3.125rem);
  --step-arrow-width: clamp(0.75rem, 1.8vw, 1.75rem);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--step-gap);
  margin-block: clamp(1.4rem, 2.25vw, 2.2rem) clamp(1.65rem, 3.35vw, 3.2rem);
  padding: 0;
  list-style: none;
  font-size: clamp(0.925rem, 1.53vw, 1.475rem);
  font-weight: 500;
  line-height: 1.18;
}

.steps li {
  position: relative;
  text-align: center;
  text-wrap: balance;
}

.steps li:first-child {
  flex-shrink: 1.2;
}

.steps li+li::before,
.steps li+li::after {
  position: absolute;
  top: 50%;
  right: calc(100% + (var(--step-gap) - var(--step-arrow-width)) / 2);
  content: "";
  color: var(--plum);
}

.steps li+li::before {
  width: var(--step-arrow-width);
  border-top: 2px solid;
  transform: translateY(-50%);
}

.steps li+li::after {
  width: 0.46em;
  height: 0.46em;
  margin-right: 0.1em;
  border-top: 2px solid;
  border-right: 2px solid;
  transform: translateY(-50%) rotate(45deg);
}

.beta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.57em clamp(1.5rem, 4.65vw, 4.5rem) 0.63em;
  color: #fff8f2;
  background: var(--plum);
  border-radius: 0.68em;
  font-size: clamp(1.125rem, 1.95vw, 1.875rem);
  font-weight: 620;
  line-height: 1.25;
  text-decoration: none;
}

.beta[href]:hover {
  background: #482654;
}

.beta-note {
  margin-top: 0.625rem;
  color: #6a5369;
  font-size: clamp(0.875rem, 1.25vw, 1.05rem);
  line-height: 1.4;
}

a[href]:focus-visible {
  outline: 2px solid var(--plum);
  outline-offset: 4px;
}

.screens {
  position: relative;
  align-self: start;
  aspect-ratio: 1.23;
  margin-top: clamp(0.5rem, 1.05vw, 1rem);
}

.screen {
  position: absolute;
  overflow: hidden;
  border: 1.5px solid var(--plum);
  border-radius: clamp(0.65rem, 1.15vw, 1.125rem);
  background: #f8f5fa;
  box-shadow: 0 1rem 1.5rem -0.9rem #52352850;
}

.screen img {
  width: 100%;
  height: auto;
  /* Move the Android status bar above the frame. */
  margin-top: -5.75%;
}

.screen-week {
  z-index: 1;
  top: 0;
  left: 27.5%;
  width: 37.5%;
  aspect-ratio: 1080 / 2338;
}

.screen-entry {
  top: 9.7%;
  left: 0;
  width: 29%;
  aspect-ratio: 1080 / 2338;
}

.screen-collection {
  top: 10.3%;
  right: 0;
  width: 35.25%;
  aspect-ratio: 0.48;
}

.collection {
  max-width: 48rem;
  margin-top: clamp(3rem, 4vw, 4rem);
}

h2 {
  margin-bottom: 0.35em;
  font-size: clamp(2rem, 3.6vw, 3.45rem);
  line-height: 1.13;
  font-weight: 780;
  text-wrap: balance;
}

.collection p {
  font-size: clamp(1rem, 1.56vw, 1.5rem);
  line-height: 1.32;
}

.collection .privacy {
  margin-top: 0.55em;
  font-size: clamp(0.9rem, 1.25vw, 1.2rem);
}

.footer {
  margin-top: clamp(2.25rem, 4vw, 3.25rem);
  padding-top: 0.875rem;
}

.footer a {
  display: inline-block;
  padding-block: 0.2rem;
  font-size: clamp(1rem, 1.25vw, 1.2rem);
}

.beta-note a,
.footer a {
  color: var(--plum);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.beta-note a[href]:hover,
.footer a[href]:hover {
  color: var(--ink);
}

@media (max-width: 57rem) {
  .page {
    --gutter: clamp(1rem, 5vw, 3rem);
    --paper-gradient-end: 70%;
    padding-block: clamp(1.25rem, 3vw, 1.75rem) 1.65rem;
    background-position: top -6.7rem right -6.2rem, bottom -2.35rem right -5rem, top 29% right -4.25rem, center, center;
    background-size: clamp(13rem, 30vw, 19rem), clamp(10rem, 28vw, 15rem), clamp(8rem, 23vw, 14rem), 100%, 100%;
  }

  .hero {
    display: block;
    text-align: center;
  }

  .brand {
    font-size: clamp(1.6rem, 5.2vw, 2.875rem);
    color: var(--plum);
  }

  h1 {
    max-width: 10.7em;
    margin: 0.6em auto 0.41em;
    font-size: clamp(1.95rem, 7.5vw, 4.125rem);
    text-wrap: balance;
  }

  .tagline {
    font-size: clamp(1.075rem, 3.7vw, 2rem);
  }

  .steps {
    --step-gap: clamp(1.35rem, 4.7vw, 2.75rem);
    --step-arrow-width: clamp(0.75rem, 3vw, 1.75rem);
    max-width: 43rem;
    margin: clamp(1.2rem, 3vw, 1.7rem) auto;
    font-size: clamp(0.82rem, 2.75vw, 1.45rem);
  }

  .beta {
    padding-inline: clamp(1.65rem, 7.2vw, 4rem);
    border-radius: 2rem;
    font-size: clamp(1.125rem, 3.3vw, 1.75rem);
    font-weight: 700;
  }

  .screens {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(0.7rem, 3vw, 1.7rem);
    width: min(100% - 0.75rem, 40.75rem);
    aspect-ratio: auto;
    margin: clamp(1.25rem, 3.85vw, 2.1rem) auto 0;
  }

  .screen {
    position: static;
    width: 100%;
  }

  .screen-week {
    grid-column: 1 / -1;
    justify-self: center;
    width: 55%;
  }

  .screen-entry,
  .screen-collection {
    aspect-ratio: 0.70;
  }

  .collection,
  .footer {
    text-align: center;
  }

  .collection {
    max-width: 41rem;
    margin: clamp(3rem, 4vw + 1.5rem, 3.65rem) auto 0;
  }

  h2 {
    font-size: clamp(1.8rem, 5.8vw, 3.2rem);
  }

  .collection p {
    font-size: clamp(1rem, 2.75vw, 1.45rem);
  }

  .collection .privacy {
    font-size: clamp(0.9rem, 2.2vw, 1.15rem);
  }
}
