#hero {
  padding: 8rem calc((100vw - 72rem) / 2) 4rem;
  background: linear-gradient(to bottom, #E9F2FF, white 18rem);
  time  {
    margin: 0 2rem;
    color: #626E89;
    font-size: 1.125rem;
  }
  h1 {
    margin: 1rem 2rem 1em;
    font-size: clamp(1.75rem, 3vw + .9rem, 3rem);
  }
  img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 18 / 7;
    object-fit: cover;
    border-radius: clamp(0rem, 50vw - 36rem, 1rem);
  }
}

#story {
  display: grid;
  grid: "story glance" auto / 1fr 20rem;
  place-items: start stretch;
  gap: 4rem;
  padding: 0 max((100vw - 72rem) / 2 + 2rem, 2rem) 4rem;
  aside {
    grid-area: glance;
    background: #F1F6F8;
    margin: 0 clamp(-2rem, 72rem - 100vw, 0rem) 4rem 0;
    position: sticky;
    top: calc(var(--nav-height) + 2rem);
    border-radius: 1rem;
    h2 {
      margin: 0 0 1em;
      padding: 2rem 2rem 1em;
      font-size: 1.625rem;
      border-bottom: 1px solid #9FB3BB;
    }
    h2 span {
      display: block;
      margin-block-end: .25em;
      color: #62737a;
      font-weight: 600;
      font-size: 1.125rem;
    }
    ul {
      list-style: none;
      padding: 0 2rem 2rem 1.75rem;
      margin: 0;
    }
    li {
      padding-left: 1.25em;
      background: 0 .375em / .75em .75em no-repeat url("data:image/svg+xml, \
        %3Csvg viewBox='0 0 10 10' xmlns='http://www.w3.org/2000/svg'%3E \
          %3Cpath d='M9 5H1M6 2L9 5M6 8L9 5' stroke='%2362737a' stroke-linecap='round'/%3E \
        %3C/svg%3E \
      ");
    }
  }
  article {
    grid-area: story;
    h2 {
      margin: 2.5em 0 1em;
      font-size: clamp(1.5rem, 3vw + .8rem, 2rem);
      &:first-child { margin-top: 1em; }
    }
    & > blockquote {
      padding: 1.5rem 2rem;
      margin: 2rem 0;
      border-left: 3px solid;
      color: #5E6974;
      background: #F1F6F8;
      position: relative;
      font-style: italic;
      font-weight: 500;
      border-radius: 0 .5rem .5rem 0;
      & > :first-child { margin-top: 0; }
      & > :last-child { margin-bottom: 0; }
    }
    a {
      color: #245aff;
      text-decoration: none;
      &:is(:hover, :focus) { text-decoration: underline; }
    }
    simplecast-player, youtube-video, custom-embed, img { margin-block: 3rem; }
    & > figure {
      margin: 3rem 0;
      img { margin: 0 auto; }
    }
    hr {
      color: #A0A8B0;
      border-style: solid;
      border-width: 1px 0 0;
      margin: 4rem;
    }
    img {
      max-width: 100%;
      height: auto;
    }
    ul {
      list-style: disc inside;
      padding: 0 0 0 1rem;
      margin: 2rem 0;
      li::marker { content: "\2022\2000"; }
    }
    .tweet {
      padding: 1.5rem 2rem;
      margin: 2rem 0;
      border: 1px solid #9FB3BB;
      border-radius: 1rem;
      & > a {
        float: right;
        display: flex;
        align-items: center;
        gap: .5ch;
        color: black;
        padding: .5rem;
        margin: 0 -.5rem 1rem 0;
        border-radius: 2rem;
        text-decoration: none;
        transition: opacity .2s;
        &:is(:hover, :focus){ opacity: .8; }
        svg {
          width: 2rem;
          height: 2rem;
        }
        @media(width > 40rem){
          padding: .625rem 1rem;
          color: white;
          background: black;
          &::before {
            content: "View on ";
            content: "View on " / "";
          }
          svg {
            width: 1.5rem;
            height: 1.5rem;
          }
        }
      }
      cite {
        display: grid;
        grid: auto auto / 3rem 1fr;
        gap: 0 1rem;
        width: max-content;
        font-style: normal;
        img {
          grid-row: span 2;
          width: 3rem;
          height: 3rem;
          margin: 0;
          object-fit: cover;
          border-radius: 50%;
        }
        .tweet-username { font-weight: 600; }
        .tweet-handle { color: #536471; }
      }
      blockquote {
        margin: 2rem 0 0;
      }
      blockquote + figure {
        img { margin: 0; }
        &:has(img:nth-child(2)){
          display: flex;
          flex-flow: row wrap;
          aspect-ratio: 2 / 1;
          img {
            flex: 1 0 50%;
            min-width: 0;
            object-fit: cover;
          }
        }
      }
      time {
        display: block;
        text-align: end;
        font-style: italic;
        color: #536471;
      }
    }
  }
  @media(width < 60rem){
    display: block;
    aside {
      display: grid;
      grid: auto / 1fr 2fr;
      position: static;
      h2 {
        margin: 0;
        border: none;
      }
      ul {
        padding: 2rem;
      }
    }
  }
  @media(width < 40rem){
    aside {
      display: block;
      ul { padding-top: 0; }
    }
  }
}

.footer-cta {
  background-image: url("/-/layouts/story/footer-cta.svg?v=foCz13wWWc");
  color: white;
  a {
    padding: .875rem 1.5rem;
    border-radius: .5rem;
  }
  a:first-child {
    color: black;
    background: white;
    border: 2px solid white;
  }
  a:last-child {
    color: white;
    background: none;
    border: 2px solid #FFF8;
    transition: border-color .2s;
    &:hover {
      border-color: white;
      text-decoration: none;
    }
  }
}
