@import url('/assets/ds/styles.css');

:root {
  --story-width: min(1380px, calc(100vw - 48px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--jds-milk);
  color: var(--jds-blueberry);
  font-family: var(--font-body);
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 4px solid var(--jds-teal-400);
  outline-offset: 4px;
}

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

.skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  min-height: 44px;
  padding: 12px 16px;
  background: var(--jds-milk);
  color: var(--jds-blueberry);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
}

.skip:focus {
  transform: translateY(0);
}

.story-nav {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: var(--story-width);
  padding: 22px 0;
  transform: translateX(-50%);
}

.story-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  background: var(--jds-milk);
  background: color-mix(in srgb, var(--jds-milk) 88%, transparent);
  box-shadow: var(--shadow-card);
  text-decoration: none;
  backdrop-filter: blur(10px);
}

.story-mark {
  padding: 7px 13px 6px;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.story-mark span {
  color: var(--jds-teal-500);
}

.story-back {
  gap: 8px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 800;
}

.story-world {
  position: relative;
  z-index: 0;
  display: grid;
  min-height: max(100svh, 900px);
  padding: 104px 0 72px;
  isolation: isolate;
}

.story-art {
  position: fixed;
  inset: 0;
  z-index: -1;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.story-art::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--jds-blueberry) 24%, transparent),
    transparent 58%
  );
  content: "";
}

.story-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.story-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(32px, 6vw, 96px);
  width: var(--story-width);
  margin: 0 auto;
}

.story-sheet {
  width: min(620px, calc(100vw - 48px));
  padding: clamp(30px, 4vw, 52px);
  background: var(--jds-milk);
  background: color-mix(in srgb, var(--jds-milk) 94%, transparent);
  border: 1px solid color-mix(in srgb, var(--jds-blueberry) 18%, transparent);
  border-left: 8px solid var(--jds-teal-400);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-pop);
  backdrop-filter: blur(12px) saturate(.8);
}

.story-kicker,
.artifact-kicker,
.board-year {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.story-kicker {
  color: var(--jds-teal-700);
  font-size: 13px;
}

.story-kicker span {
  margin: 0 5px;
}

.story-sheet h1 {
  max-width: 560px;
  margin: 16px 0 0;
  font-size: clamp(44px, 4.6vw, 68px);
  line-height: .88;
}

.story-copy {
  margin-top: 28px;
}

.story-copy p {
  font-size: clamp(15.5px, 1.2vw, 17px);
  line-height: 1.48;
  letter-spacing: -.025em;
}

.story-copy p + p {
  margin-top: 1em;
}

.hero-builder-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 16px 20px;
  color: var(--jds-milk);
  background: color-mix(in srgb, var(--jds-blueberry) 82%, transparent);
  border: 1px solid color-mix(in srgb, var(--jds-milk) 40%, transparent);
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 32px color-mix(in srgb, var(--jds-blueberry) 32%, transparent);
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: .95;
  text-decoration: none;
  text-shadow: 0 2px 12px color-mix(in srgb, var(--jds-blueberry) 72%, transparent);
  -webkit-backdrop-filter: blur(10px) saturate(1.08);
  backdrop-filter: blur(10px) saturate(1.08);
}

.hero-builder-link strong {
  color: var(--jds-teal-300);
}

.hero-builder-link span {
  transition: transform 150ms ease;
}

.hero-builder-link:hover span {
  transform: translateX(4px);
}

.board-artifacts {
  position: relative;
  z-index: 2;
  padding: clamp(76px, 9vw, 132px) 0;
  background: var(--jds-milk);
  box-shadow: 0 -24px 70px color-mix(in srgb, var(--jds-blueberry) 16%, transparent);
}

.artifacts-inner {
  width: min(1240px, calc(100vw - 48px));
  margin: 0 auto;
}

.artifact-intro {
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(280px, .28fr);
  column-gap: clamp(44px, 8vw, 108px);
}

.artifact-kicker {
  grid-column: 1 / -1;
  color: var(--jds-teal-700);
  font-size: 13px;
}

.artifact-intro h2 {
  margin-top: 14px;
  font-size: clamp(52px, 7vw, 92px);
  line-height: .86;
}

.artifact-intro > p:last-child {
  align-self: end;
  margin: 14px 0 4px;
  color: var(--jds-neutral-600);
  font-size: 17px;
  line-height: 1.55;
}

.board-grid {
  display: grid;
  margin-top: 52px;
}

.original-board {
  max-width: 760px;
}

.board-figure {
  min-width: 0;
  margin: 0;
}

.board-image-link {
  display: block;
  min-height: 44px;
  overflow: hidden;
  padding: clamp(10px, 1.2vw, 16px);
  background: var(--jds-white);
  border: 1px solid color-mix(in srgb, var(--jds-blueberry) 14%, transparent);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.board-image-link:hover {
  box-shadow: var(--shadow-pop);
  transform: translateY(-3px);
}

.board-image-link img {
  width: 100%;
  height: auto;
  background: var(--jds-white);
  border-radius: var(--radius-sm);
}

.board-figure figcaption {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  margin-top: 18px;
}

.board-year {
  padding-top: 3px;
  color: var(--jds-teal-700);
  font-size: 12px;
}

.board-figure figcaption strong {
  display: block;
  font-size: 17px;
}

.board-figure figcaption p {
  margin-top: 6px;
  color: var(--jds-neutral-600);
  font-size: 14px;
  line-height: 1.5;
}

.champion-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  max-width: 720px;
  margin: 56px 0 0;
  padding-top: 22px;
  border-top: 1px solid color-mix(in srgb, var(--jds-blueberry) 18%, transparent);
}

.champion-note > span {
  color: var(--jds-teal-500);
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 900;
  line-height: .8;
}

.champion-note p {
  color: var(--jds-neutral-700);
  font-size: 15px;
  line-height: 1.55;
}

.builder-proof {
  margin-top: clamp(70px, 9vw, 118px);
  padding-top: clamp(34px, 5vw, 58px);
  border-top: 1px solid color-mix(in srgb, var(--jds-blueberry) 18%, transparent);
}

.builder-proof h2 {
  margin: 14px 0 0;
  font-size: clamp(42px, 5.4vw, 72px);
  line-height: .9;
}

.builder-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 32px);
  margin-top: 38px;
}

.builder-shot {
  min-width: 0;
  margin: 0;
}

.builder-shot img {
  /* The three screenshots are different shapes, so letting them size
     naturally left the row ragged and pushed each caption to a different
     line. A shared box with contain keeps every screenshot whole and lines
     the captions up. */
  width: 100%;
  height: auto;
  aspect-ratio: 13 / 12;
  object-fit: contain;
  padding: 6px;
  background: var(--jds-white);
  border: 1px solid color-mix(in srgb, var(--jds-blueberry) 14%, transparent);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
}

.builder-shot figcaption {
  margin-top: 14px;
  color: var(--jds-neutral-600);
  font-size: 14px;
  line-height: 1.5;
}

.builder-shot figcaption strong {
  display: block;
  color: var(--jds-blueberry);
  font-size: 16px;
}

.story-footer {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px max(24px, calc((100vw - 1240px) / 2));
  background: var(--jds-white);
  border-top: 1px solid color-mix(in srgb, var(--jds-blueberry) 12%, transparent);
  color: var(--jds-neutral-600);
  font-size: 13px;
}

.story-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--jds-blueberry);
  font-weight: 700;
}

@media (max-width: 1020px) {
  .story-sheet {
    width: min(590px, calc(100vw - 48px));
  }

  .story-sheet h1 {
    font-size: clamp(42px, 5.8vw, 60px);
  }
}

@media (max-width: 820px) {
  :root {
    --story-width: calc(100vw - 32px);
  }

  .story-nav {
    padding-top: 14px;
  }

  .story-world {
    display: block;
    min-height: 0;
    padding: 0 16px 62px;
    background: var(--jds-milk);
  }

  .story-art {
    position: absolute;
    inset: 0 0 auto;
    z-index: 0;
    height: min(68svh, 560px);
  }

  .story-art::after {
    background: linear-gradient(
      180deg,
      color-mix(in srgb, var(--jds-blueberry) 14%, transparent),
      transparent 50%,
      color-mix(in srgb, var(--jds-blueberry) 24%, transparent)
    );
  }

  .story-art img {
    object-position: 63% center;
  }

  .story-layout {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    padding-top: min(68svh, 560px);
  }

  .story-sheet {
    width: 100%;
    margin-top: -38px;
    padding: clamp(26px, 7vw, 38px);
    background: var(--jds-milk);
    backdrop-filter: none;
  }

  .hero-builder-link {
    margin-top: 20px;
    padding: 12px 14px;
    color: var(--jds-blueberry);
    background: var(--jds-teal-400);
    border: 0;
    border-radius: var(--radius-sm);
    box-shadow: none;
    text-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .hero-builder-link strong {
    color: inherit;
  }

  .story-sheet h1 {
    font-size: clamp(39px, 11.7vw, 58px);
  }

  .story-copy p {
    font-size: 16px;
    line-height: 1.52;
  }

  .artifact-intro {
    display: block;
  }

  .artifact-intro > p:last-child {
    max-width: 620px;
    margin-top: 20px;
  }

  .builder-gallery {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .story-footer {
    padding-inline: 24px;
  }
}

@media (max-width: 520px) {
  .story-back {
    padding-inline: 11px;
  }

  .story-sheet {
    border-left-width: 6px;
  }

  .artifacts-inner {
    width: calc(100vw - 32px);
  }

  .artifact-intro h2 {
    font-size: 52px;
  }

  .board-figure figcaption {
    grid-template-columns: 44px 1fr;
  }

}

@media (min-width: 821px) and (max-width: 1120px) {
  .builder-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .board-image-link,
  .hero-builder-link span {
    transition: none;
  }
}
