:root {
  --ink: #25211e;
  --muted: #6e6963;
  --paper: #fffaf2;
  --white: #ffffff;
  --terracotta: #bd5d38;
  --terracotta-dark: #8d3e25;
  --teal: #246b68;
  --line: #ded7cd;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

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

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

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 48px));
  height: 82px;
  margin: 0 auto;
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, .35);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 750;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 14px;
  font-weight: 650;
}

nav a:hover,
.footer-links a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.nav-cta {
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 6px;
}

.hero {
  position: relative;
  min-height: 84svh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  background: url("assets/story-coast.jpg") center 45% / cover no-repeat;
  overflow: hidden;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: rgba(24, 30, 28, .52);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 160px 0 90px;
}

.eyebrow {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, .82);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--terracotta);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(72px, 11vw, 150px);
  font-weight: 500;
  line-height: .92;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 650px;
  margin: 24px 0 0;
  font-size: 20px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 750;
}

.button-primary {
  color: var(--white);
  background: var(--terracotta);
}

.button-primary:hover {
  background: var(--terracotta-dark);
}

.button-quiet {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, .7);
}

.photo-caption {
  position: absolute;
  z-index: 1;
  right: 24px;
  bottom: 18px;
  margin: 0;
  font-size: 11px;
  color: rgba(255, 255, 255, .75);
}

.intro {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 110px 0 90px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, .8fr);
  column-gap: 70px;
  align-items: end;
}

.section-heading .eyebrow {
  grid-column: 1 / -1;
}

h2 {
  margin: 0;
  max-width: 760px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 5vw, 68px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: 0;
}

.section-heading > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  margin-top: 70px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.feature-list article {
  display: grid;
  grid-template-columns: 32px 1fr;
  column-gap: 16px;
}

.feature-number {
  grid-row: 1 / 3;
  color: var(--terracotta);
  font-size: 12px;
  font-weight: 800;
}

.feature-list h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.feature-list p {
  margin: 0;
  color: var(--muted);
}

.story-gallery {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  grid-template-rows: repeat(2, minmax(260px, 33vw));
  gap: 8px;
  padding: 0 8px;
  background: var(--paper);
}

.story-card {
  position: relative;
  overflow: hidden;
}

.story-large {
  grid-row: 1 / 3;
}

.story-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.story-card:hover img {
  transform: scale(1.025);
}

.story-meta {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 42px 24px 22px;
  color: var(--white);
  background: rgba(24, 25, 23, .58);
}

.story-meta p {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
}

.story-meta h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(20px, 2.4vw, 34px);
  font-weight: 500;
  line-height: 1.15;
}

.connection {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 680px;
  background: var(--white);
}

.connection-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.connection-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px clamp(40px, 8vw, 130px);
}

.connection-copy > p:not(.eyebrow) {
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.connection-copy ul {
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.connection-copy li {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 650;
}

.safety {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: end;
  padding: 100px max(24px, calc((100% - 1180px) / 2));
  color: var(--white);
  background: var(--teal);
}

.safety > p {
  margin: 0 0 7px;
  max-width: 560px;
  color: rgba(255, 255, 255, .82);
  font-size: 17px;
}

.download {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 36px;
  align-items: center;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 100px 0;
}

.download > img {
  width: 140px;
  height: 140px;
  border-radius: 28px;
  box-shadow: 0 16px 38px rgba(63, 44, 31, .15);
}

.download h2 {
  max-width: 700px;
  font-size: clamp(34px, 4vw, 54px);
}

.download div > p:last-child {
  margin: 18px 0 0;
  color: var(--muted);
}

.store-badge {
  min-width: 182px;
  padding: 10px 18px;
  color: var(--white);
  background: var(--ink);
  border-radius: 7px;
  font-size: 11px;
  line-height: 1.25;
  text-align: center;
}

.store-badge strong {
  font-size: 19px;
  font-weight: 650;
}

footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 48px max(24px, calc((100% - 1180px) / 2));
  color: var(--white);
  background: var(--ink);
}

.footer-brand img {
  width: 34px;
  height: 34px;
}

footer > p {
  margin: 0;
  color: rgba(255, 255, 255, .68);
  font-size: 13px;
}

.footer-links {
  display: flex;
  gap: 20px;
  font-size: 13px;
  font-weight: 650;
}

.copyright {
  grid-column: 1 / -1;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .16);
}

@media (max-width: 820px) {
  .site-header {
    width: min(100% - 32px, 1180px);
    height: 70px;
  }

  nav a:not(.nav-cta) {
    display: none;
  }

  .hero {
    min-height: 82svh;
  }

  .hero-content,
  .intro,
  .download {
    width: min(100% - 32px, 1180px);
  }

  .hero-content {
    padding-bottom: 70px;
  }

  .hero-copy {
    font-size: 17px;
  }

  .intro {
    padding: 78px 0 64px;
  }

  .section-heading,
  .feature-list,
  .connection,
  .safety,
  .download,
  footer {
    grid-template-columns: 1fr;
  }

  .section-heading {
    gap: 24px;
  }

  .feature-list {
    gap: 28px;
    margin-top: 48px;
  }

  .story-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, 58vw);
  }

  .story-large {
    grid-row: auto;
  }

  .connection {
    min-height: 0;
  }

  .connection-image {
    height: 70vw;
    max-height: 520px;
  }

  .connection-copy {
    padding: 64px 24px 72px;
  }

  .safety {
    gap: 28px;
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .download {
    justify-items: start;
    padding: 76px 0;
  }

  .download > img {
    width: 112px;
    height: 112px;
    border-radius: 22px;
  }

  footer {
    justify-items: start;
  }

  .copyright {
    grid-column: auto;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .story-card img {
    transition: none;
  }
}
