.story-page {
  --story-pink: #f50093;
  --story-blue: #05b9df;
  --story-ink: #171735;
  --story-muted: #625f75;
  min-height: 100vh;
  color: var(--story-ink);
  background:
    radial-gradient(ellipse at 5% 20%, rgb(245 0 147 / 5%), transparent 32rem),
    radial-gradient(ellipse at 95% 65%, rgb(5 185 223 / 5%), transparent 30rem),
    #fff;
}

.story-header {
  width: min(1120px, calc(100% - 48px));
  min-height: 96px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid #f1d8e7;
}

.story-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 850 19px/1.1 Manrope, 'Trebuchet MS', sans-serif;
  letter-spacing: -.4px;
  white-space: nowrap;
}

.story-brand img { width: 62px; height: 62px; object-fit: contain; }
.story-brand small { display: block; margin-top: 4px; color: #ad0064; font-size: 12px; letter-spacing: .1px; }

.story-header nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.5vw, 30px);
  font-size: 12px;
  font-weight: 700;
}

.story-header nav a { padding-block: 10px; white-space: nowrap; }
.story-header nav a:hover, .story-header nav a[aria-current="page"] { color: #ad0064; }
.story-header nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--story-pink); text-underline-offset: 6px; }

.story-main {
  width: min(790px, calc(100% - 40px));
  margin-inline: auto;
  padding: clamp(48px, 7vw, 76px) 0 72px;
}

.story-intro { max-width: 700px; margin: 0 auto 34px; text-align: center; }
.story-kicker { color: #8f2361; font-size: 10px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; }
.story-kicker span { padding-inline: 7px; color: var(--story-pink); }
.story-intro h1 { margin: 13px 0 16px; font-size: clamp(38px, 6.5vw, 58px); letter-spacing: -2.6px; line-height: 1.08; }
.story-lead { max-width: 620px; margin-inline: auto; color: #403c53; font-size: clamp(16px, 2vw, 19px); font-weight: 650; line-height: 1.6; }

.story-content {
  padding: clamp(24px, 5vw, 46px) clamp(22px, 5vw, 48px);
  border: 1px solid #f0dce8;
  border-radius: 22px;
  background: rgb(255 255 255 / 94%);
  box-shadow: 0 18px 50px rgb(34 19 43 / 7%);
}

.story-content > p {
  margin: 0 0 24px;
  color: #403c50;
  font-size: 16px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}

.story-content > p:last-child { margin-bottom: 0; }

.story-content > .story-matthew {
  margin: 4px 0 26px;
  padding: 20px 22px;
  border-left: 4px solid var(--story-pink);
  border-radius: 0 14px 14px 0;
  background: linear-gradient(100deg, #fff1f8, #fffafd);
}

.story-content > .story-ending {
  margin-top: 2px;
  padding-top: 24px;
  border-top: 1px solid #f0dce8;
  color: var(--story-ink);
  font-family: Manrope, 'Trebuchet MS', sans-serif;
  font-size: 17px;
  font-weight: 650;
  line-height: 1.75;
}

.story-shop {
  display: flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 30px auto 0;
  padding: 14px 24px;
  border-radius: 30px;
  background: #b90070;
  box-shadow: 0 3px 0 #79024b;
  color: white;
  font-size: 13px;
  font-weight: 800;
}

.story-shop:hover { background: #96005b; }
.story-shop:focus-visible, .story-header a:focus-visible, .story-footer a:focus-visible { outline: 3px solid var(--story-blue); outline-offset: 4px; }

.story-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid #f1d8e7;
  background: #fff9fc;
  padding: 20px max(20px, calc((100% - 1120px) / 2));
  color: var(--story-muted);
  font-size: 11px;
}

.story-footer a { color: var(--story-ink); font-weight: 700; white-space: nowrap; }

@media (max-width: 650px) {
  .story-header { width: calc(100% - 32px); min-height: 72px; gap: 10px; }
  .story-brand { gap: 7px; font-size: 15px; }
  .story-brand img { width: 46px; height: 46px; }
  .story-brand small { margin-top: 3px; font-size: 10px; }
  .story-header nav { gap: clamp(9px, 2.8vw, 15px); font-size: 10px; }
  .story-header nav a:nth-last-child(-n+2) { display: none; }
  .story-main { width: calc(100% - 32px); padding: 38px 0 48px; }
  .story-intro { margin-bottom: 26px; }
  .story-intro h1 { margin-block: 11px 13px; font-size: clamp(36px, 10vw, 44px); letter-spacing: -1.8px; }
  .story-lead { font-size: 15px; }
  .story-content { padding: 23px 20px; border-radius: 17px; }
  .story-content > p { margin-bottom: 20px; font-size: 15px; line-height: 1.78; }
  .story-content > .story-matthew { margin: 2px 0 22px; padding: 17px 15px; }
  .story-content > .story-ending { padding-top: 20px; font-size: 15px; line-height: 1.75; }
  .story-shop { margin-top: 24px; }
  .story-footer { padding: 16px; font-size: 10px; }
}

@media (max-width: 360px) {
  .story-header nav { gap: 8px; font-size: 9px; }
  .story-brand { font-size: 13px; }
  .story-brand img { width: 40px; height: 40px; }
  .story-content { padding-inline: 17px; }
  .story-content > p { font-size: 14px; }
}

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