:root {
  color-scheme: light;
  --paper: #f5f3ed;
  --ink: #103946;
  --muted: #42616a;
  --ocean: #082a35;
  --foam: #d9ebe6;
  --rule: #ced8d4;
  font-family: system-ui, sans-serif;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
}

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

a:focus-visible, .screens:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}

.wrap {
  width: min(100% - 3rem, 76rem);
  margin-inline: auto;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font: 1.6rem Georgia, serif;
  letter-spacing: -.04em;
}

.brand img {
  display: block;
  border-radius: .55rem;
}

.header-link {
  font-size: .9rem;
  font-weight: 650;
}

.header-link:hover {
  text-decoration: underline;
  text-underline-offset: .2em;
}

.header-link span, .button span {
  margin-inline-start: .35rem;
}

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--ocean);
  color: #fffaf0;
}

.hero-photo {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 23%;
  background:
    linear-gradient(90deg, var(--ocean), #082a3570 34%, transparent 70%),
    url("assets/boat-wake.jpg") center 46% / cover no-repeat;
}

.hero-inner {
  display: flex;
  min-height: 38rem;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-block: clamp(4rem, 9vw, 8rem);
}

.availability {
  margin: 0 0 1.35rem;
  color: var(--foam);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

h1, h2 {
  margin: 0;
  font-family: Georgia, serif;
  font-weight: 400;
  letter-spacing: -.055em;
}

h1 {
  font-size: clamp(4.25rem, 9.7vw, 8.75rem);
  line-height: .87;
}

.hero-description {
  max-width: 28ch;
  margin: 1.6rem 0 1.8rem;
  color: #ecf6f2;
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.button {
  display: inline-block;
  border-radius: 2rem;
  padding: .75rem 1.25rem;
  background: var(--foam);
  color: var(--ocean);
  font-size: .9rem;
  font-weight: 700;
}

.button:hover {
  background: white;
}

.button:focus-visible {
  outline-color: var(--foam);
}

.preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.14fr);
  align-items: center;
  gap: clamp(2rem, 7vw, 7rem);
  padding-block: clamp(4rem, 10vw, 8rem);
}

h2 {
  max-width: 12ch;
  font-size: clamp(2.75rem, 5.5vw, 5.1rem);
  line-height: .98;
}

dl {
  margin: 2rem 0 0;
}

dl div {
  border-top: 1px solid var(--rule);
  padding-block: .9rem;
}

dt {
  font-weight: 700;
}

dd {
  margin: .2rem 0 0;
  color: var(--muted);
}

.app-preview {
  margin: 0;
}

.screens {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: .6rem;
  padding: clamp(.8rem, 3vw, 2.2rem);
  border-radius: 1rem;
  background: #dce7e2;
}

.screens img {
  display: block;
  width: min(calc((100% - 1.2rem) / 3), 11rem);
  height: auto;
  border: 3px solid var(--ocean);
  border-radius: clamp(.85rem, 2vw, 1.6rem);
  box-shadow: 0 .8rem 1.4rem #082a3529;
}

.screens img:nth-child(2) {
  margin-top: clamp(.6rem, 3vw, 2.5rem);
}

.screens-hint {
  display: none;
}

figcaption {
  margin-top: .7rem;
  color: var(--muted);
  font-size: .85rem;
  text-align: center;
}

.footer {
  border-top: 1px solid var(--rule);
}

.footer-inner {
  padding-block: 1.5rem;
}

.footer p {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
}

@media (max-width: 44rem) {
  .wrap {
    width: calc(100% - 2rem);
  }

  .brand, .header-link, .button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
  }

  .hero-inner {
    min-height: 0;
    justify-content: flex-end;
    padding-top: clamp(10rem, 43vw, 17rem);
    padding-bottom: 2.5rem;
  }

  .hero-description {
    max-width: 33ch;
  }

  .hero-photo {
    inset: 0 0 auto;
    height: clamp(17rem, 66vw, 25rem);
    background:
      linear-gradient(0deg, var(--ocean) 2%, #082a35df 28%, #082a3540 68%, transparent),
      url("assets/boat-wake-mobile.jpg") center 30% / cover no-repeat;
  }

  h1 {
    font-size: clamp(3.25rem, 13.5vw, 5rem);
  }

  h2 {
    font-size: clamp(2.5rem, 9vw, 3.5rem);
  }

  .preview {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }

  .app-preview {
    width: 100%;
    max-width: 32rem;
    margin-inline: auto;
  }

  .screens {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: .75rem;
    padding: .85rem;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scroll-padding-inline: .85rem;
  }

  .screens img {
    flex: 0 0 auto;
    width: min(78%, 15rem);
    scroll-snap-align: start;
  }

  .screens img:nth-child(2) {
    margin-top: 0;
  }

  .screens:has(img + img) + .screens-hint {
    display: block;
    margin: .7rem 0 0;
    color: var(--ink);
    font-size: .875rem;
    text-align: center;
  }

  .footer-inner {
    gap: .6rem 1rem;
  }
}
