/* Frozen Love's story, a little page from the family sketchbook. */
.sketch-story {
  position: relative;
  isolation: isolate;
  padding: clamp(64px, 7vw, 116px) 0 clamp(64px, 6vw, 96px);
  overflow: hidden;
  color: #15365a;
  background: #fff8ec;
  scroll-margin-top: 90px;
}

.sketch-story::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .45;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23c5a982' opacity='.10' filter='url(%23n)' d='M0 0h160v160H0z'/%3E%3C/svg%3E");
  pointer-events: none;
}

.sketch-story__grid {
  width: min(1320px, calc(100% - 88px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.14fr 1fr;
  align-items: center;
  gap: clamp(16px, 3vw, 50px);
}

.sketch-story__scene {
  position: relative;
  margin: 0 -24px 0 -20px;
  transform: rotate(-1.5deg);
}

.sketch-story__scene img { display: block; width: 100%; height: auto; }

.sketch-story__scene figcaption {
  position: relative;
  margin: -25px 0 0;
  color: #1460ce;
  font-family: var(--font-hand, "Caveat", cursive);
  font-size: clamp(24px, 2.4vw, 33px);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  transform: rotate(-2deg);
}

.sketch-story__caption-heart {
  display: inline-block;
  font-size: 1.3em;
  margin-left: 4px;
  vertical-align: -2px;
}

.sketch-story__copy { position: relative; padding-bottom: 12px; }

.sketch-story__eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 17px;
  color: #15365a;
  font-family: var(--font-ui, "DM Sans", sans-serif);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.sketch-story__eyebrow svg { width: 26px; height: 24px; transform: rotate(-9deg); }

.sketch-story__heading {
  margin: 0 0 27px;
  max-width: 560px;
  color: #1460ce;
  font-family: var(--font-display, "Lilita One", sans-serif);
  font-size: clamp(48px, 5.7vw, 82px);
  font-weight: 400;
  line-height: .99;
  letter-spacing: -1.9px;
}

.sketch-story__heading span { display: block; }
.sketch-story__heading em {
  position: relative;
  display: inline-block;
  margin-top: 2px;
  z-index: 0;
  font-family: var(--font-hand, "Caveat", cursive);
  font-size: 1.13em;
  font-weight: 700;
  font-style: normal;
  letter-spacing: -3px;
  transform: rotate(-4deg);
}

.sketch-story__heading em::after {
  content: "";
  position: absolute;
  right: -4px;
  bottom: -3px;
  left: 0;
  z-index: -1;
  height: 14px;
  background: #f8bcd0;
  border-radius: 67% 33% 70% 30% / 55% 46% 54% 45%;
  transform: rotate(1deg);
}

.sketch-story__body {
  max-width: 465px;
  margin: 0 0 16px;
  font-family: var(--font-ui, "DM Sans", sans-serif);
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.8;
}

.sketch-story__body strong { font-weight: 700; }

.sketch-story__process {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: min(100%, 400px);
  margin-top: 30px;
  padding: 21px 4px 0;
}

.sketch-story__process::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='6' viewBox='0 0 400 6'%3E%3Cpath d='M1 4Q96 0 197 3T399 2' stroke='%2315365A' stroke-opacity='.24' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

.sketch-story__step { display: flex; align-items: center; gap: 8px; }
.sketch-story__step > svg { flex: 0 0 auto; width: 36px; height: 36px; }
.sketch-story__step span {
  color: #1460ce;
  font-family: var(--font-hand, "Caveat", cursive);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}
.sketch-story__arrow { flex: 0 0 auto; width: 24px; height: 15px; color: #15365a; opacity: .5; }

.sketch-story__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  min-height: 44px;
  padding-block: 6px;
  color: #15365a;
  font-family: var(--font-ui, "DM Sans", sans-serif);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  text-underline-offset: 5px;
}
.sketch-story__link svg { width: 23px; height: 20px; transition: transform .2s ease; }
.sketch-story__link:hover { color: #1460ce; text-decoration: underline; }
.sketch-story__link:hover svg { transform: translateX(4px); }
.sketch-story__link:focus-visible { outline: 3px solid #1460ce; outline-offset: 6px; border-radius: 3px; }

@media (min-width: 1440px) {
  .sketch-story__heading { font-size: 84px; }
}

@media (max-width: 860px) {
  .sketch-story__grid { width: calc(100% - 48px); grid-template-columns: 1fr 1fr; gap: 10px; }
  .sketch-story__scene { margin-inline: -25px; }
  .sketch-story__heading { font-size: 53px; }
  .sketch-story__body { font-size: 14px; line-height: 1.7; }
  .sketch-story__process { margin-top: 22px; }
  .sketch-story__step { gap: 4px; }
  .sketch-story__step > svg { width: 27px; height: 29px; }
  .sketch-story__step span { font-size: 25px; }
  .sketch-story__arrow { width: 16px; }
  .sketch-story__scene figcaption { font-size: 24px; margin-top: -10px; }
}

@media (max-width: 640px) {
  .sketch-story { padding: 50px 0 56px; }
  .sketch-story__grid { width: calc(100% - 40px); grid-template-columns: 1fr; gap: 24px; }
  .sketch-story__scene { grid-row: 2; width: min(480px, calc(100% + 28px)); margin: -8px -14px 0; justify-self: center; }
  .sketch-story__scene figcaption { margin-top: -20px; font-size: 27px; }
  .sketch-story__copy { padding: 0; text-align: center; }
  .sketch-story__eyebrow { justify-content: center; margin-bottom: 20px; font-size: 11.5px; }
  .sketch-story__heading { margin: 0 0 27px; max-width: none; font-size: clamp(53px, 12vw, 73px); }
  .sketch-story__heading span { display: inline; }
  .sketch-story__heading em { display: block; width: max-content; margin: 3px auto 0; }
  .sketch-story__body { max-width: 430px; margin-inline: auto; font-size: 14px; line-height: 1.75; }
  .sketch-story__process { margin: 24px auto 0; width: min(100%, 340px); padding-top: 22px; }
  .sketch-story__step { gap: 7px; }
  .sketch-story__step > svg { width: 31px; height: 31px; }
  .sketch-story__step span { font-size: 28px; }
  .sketch-story__link { margin-top: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .sketch-story__link svg { transition: none; }
}
