/* One section per block type. Class names match templates/blocks/. */

/* hero: the name in wet paint, with a spill beside it */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(1rem, 4vw, 3rem);
  padding: clamp(1.5rem, 5vw, 4rem) var(--inset) clamp(2.5rem, 6vw, 5rem);
}
.hero h1 { color: var(--magenta); }
.hero .moniker { font: 800 clamp(1.3rem, 2.6vw, 1.9rem)/1.15 var(--display); margin: 0 0 0.8rem; }
.lede { font-size: clamp(1.15rem, 1.9vw, 1.35rem); line-height: 1.5; max-width: 34ch; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.75rem 0 0; }
.spill { margin: 0; justify-self: center; width: min(100%, 36rem); }
.spill svg { width: 100%; height: auto; overflow: visible; }

/* prose */
.prose-text { max-width: 44rem; }
.prose-text p { font-size: 1.2rem; }
.prose.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.prose .aside { border-left: 0.7rem solid var(--teal); border-radius: 0.35rem; padding-left: 1rem; font: 700 1.35rem/1.25 var(--display); }
.prose-media { margin: 0; }
.prose-media img { width: 100%; border-radius: var(--radius); }

/* video-grid */
.video-grid .intro { font-size: 1.15rem; }
.videos { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr)); gap: 1.5rem 1.1rem; }
.videos a { display: block; color: var(--ink); text-decoration: none; }
.videos .thumb { aspect-ratio: 9 / 16; border-radius: var(--radius); overflow: hidden; background: var(--tile, var(--splash)); display: grid; place-items: center; }
.videos li:nth-child(4n+1) { --tile: var(--magenta); }
.videos li:nth-child(4n+2) { --tile: var(--yellow); }
.videos li:nth-child(4n+3) { --tile: var(--teal); }
.videos li:nth-child(4n) { --tile: var(--orange); }
.videos img { width: 100%; height: 100%; object-fit: cover; }
.videos a:hover .thumb, .videos a:focus-visible .thumb { outline: 4px solid var(--ink); outline-offset: 3px; }
.videos .caption { margin: 0.6rem 0 0; font-size: 0.98rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.videos time { display: block; font-size: 0.85rem; opacity: 0.75; margin-top: 0.15rem; }
.video-grid .more { margin: 2.25rem 0 0; }

/* other-ways */
.ways { list-style: none; margin: 2rem 0 0; padding: 0; border-top: 3px solid var(--ink); }
.ways li {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr) auto;
  gap: 0.5rem 2rem;
  align-items: baseline;
  padding: 1.3rem 0;
  border-bottom: 3px solid var(--ink);
}
.ways h3, .ways p { margin: 0; }
.go { font-weight: 700; white-space: nowrap; }

/* policy: terms, privacy, accessibility */
.policy > * { max-width: 46rem; }
.policy h1 { color: var(--ink); font: 800 clamp(2rem, 4.6vw, 3.2rem)/1.05 var(--display); letter-spacing: -0.02em; }
.policy .when { font-weight: 700; }
.policy-intro { font-size: 1.2rem; }
.policy-sections { list-style: none; margin: 2.5rem 0 0; padding: 0; counter-reset: policy; }
.policy-sections > li { counter-increment: policy; border-top: 3px solid var(--ink); padding: 1.4rem 0 0.6rem; }
.policy-sections h2 { font-size: 1.45rem; letter-spacing: -0.01em; }
.policy-sections h2::before { content: counter(policy) ". "; }
.policy-sections h2::after { display: none; }
.policy-sections ul { margin: 0 0 1em; padding-left: 1.2rem; }

@media (max-width: 52rem) {
  .hero { grid-template-columns: 1fr; }
  .spill { order: -1; width: min(70%, 20rem); justify-self: start; }
  .prose.split { grid-template-columns: 1fr; }
  .ways li { grid-template-columns: 1fr; }
  .videos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
