/* Story visuals: breaks up the text on the pieces, About, Contact and Thank You */

/* Title band, with a scatter of Tetris pieces on the right */
.story-hero {
  background-color: #f3ebe1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 100'%3E%3Cg fill='%23a8322d'%3E%3Crect x='10' y='10' width='12' height='12' rx='1.5'/%3E%3Crect x='24' y='10' width='12' height='12' rx='1.5'/%3E%3Crect x='38' y='10' width='12' height='12' rx='1.5'/%3E%3Crect x='24' y='24' width='12' height='12' rx='1.5'/%3E%3C/g%3E%3Cg fill='%23d9cfc0'%3E%3Crect x='74' y='8' width='12' height='12' rx='1.5'/%3E%3Crect x='88' y='8' width='12' height='12' rx='1.5'/%3E%3Crect x='74' y='22' width='12' height='12' rx='1.5'/%3E%3Crect x='88' y='22' width='12' height='12' rx='1.5'/%3E%3C/g%3E%3Cg fill='%236e1f1b'%3E%3Crect x='44' y='56' width='12' height='12' rx='1.5'/%3E%3Crect x='58' y='56' width='12' height='12' rx='1.5'/%3E%3Crect x='30' y='70' width='12' height='12' rx='1.5'/%3E%3Crect x='44' y='70' width='12' height='12' rx='1.5'/%3E%3C/g%3E%3Cg fill='%23e0a39c'%3E%3Crect x='90' y='48' width='12' height='12' rx='1.5'/%3E%3Crect x='90' y='62' width='12' height='12' rx='1.5'/%3E%3Crect x='90' y='76' width='12' height='12' rx='1.5'/%3E%3Crect x='104' y='76' width='12' height='12' rx='1.5'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 3rem center;
  background-size: 12rem auto;
  border-bottom: 3px solid var(--accent);
  padding: 3.5rem 0 2.5rem;
  margin-bottom: 1.5rem;
}
.story-hero h1 { margin-bottom: 0.75rem; }

/* A small Tetris piece above each section heading, cycling through shapes */
.story-part { padding-top: 0.5rem; }
.story-part h2::before {
  content: "";
  display: block;
  width: 26px; height: 17px;
  margin-bottom: 0.6rem;
  background: no-repeat left top / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 17'%3E%3Cg fill='%23a8322d'%3E%3Crect x='0' y='0' width='8' height='8' rx='1'/%3E%3Crect x='9' y='0' width='8' height='8' rx='1'/%3E%3Crect x='18' y='0' width='8' height='8' rx='1'/%3E%3Crect x='9' y='9' width='8' height='8' rx='1'/%3E%3C/g%3E%3C/svg%3E");
}
.story-part:nth-of-type(3n+2) h2::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 17'%3E%3Cg fill='%236e1f1b'%3E%3Crect x='9' y='0' width='8' height='8' rx='1'/%3E%3Crect x='18' y='0' width='8' height='8' rx='1'/%3E%3Crect x='0' y='9' width='8' height='8' rx='1'/%3E%3Crect x='9' y='9' width='8' height='8' rx='1'/%3E%3C/g%3E%3C/svg%3E");
}
.story-part:nth-of-type(3n) h2::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 17'%3E%3Cg fill='%23c8665e'%3E%3Crect x='0' y='0' width='8' height='8' rx='1'/%3E%3Crect x='0' y='9' width='8' height='8' rx='1'/%3E%3Crect x='9' y='9' width='8' height='8' rx='1'/%3E%3Crect x='18' y='9' width='8' height='8' rx='1'/%3E%3C/g%3E%3C/svg%3E");
}

/* Drop cap on the first paragraph of the story */
.story-hero + .story-part .wrap > p:first-of-type::first-letter {
  float: left;
  font-family: var(--sans); font-weight: 700;
  font-size: 3.4em; line-height: 0.9;
  margin: 0.08em 0.12em 0 0;
  color: var(--accent);
}

/* "Still not sure" callouts: bigger and easier to spot */
.story-aside {
  margin-top: 1.75rem;
  padding: 1.5rem 1.75rem;
  border-left-width: 5px;
  font-size: 1.15rem; font-style: italic;
  box-shadow: 0 1px 3px rgba(31, 35, 40, 0.06);
}

/* Keep the blocks clear of the text on narrower screens */
@media (max-width: 64rem) {
  .story-hero { background-image: none; }
}
@media (max-width: 40rem) {
  .story-hero { padding: 2.25rem 0 1.75rem; }
  .story-aside { padding: 1.25rem 1.25rem; font-size: 1.05rem; }
}