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

/* hero: navy field, rendering cut with the stepped edge of the ArtPlace wordmark */
.hero {
  background: var(--ink);
  color: #fff;
  padding: clamp(2.5rem, 6vw, 5rem) var(--inset) 0;
}
.hero-text { max-width: 60rem; }
.lede { font-size: clamp(1.15rem, 1.9vw, 1.4rem); line-height: 1.5; max-width: 46ch; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.75rem 0 0; }
.hero .btn-plain { color: #fff; border-color: #fff; }
.hero .btn-plain:hover { background: #fff; color: var(--ink); }
.steps { margin: clamp(2rem, 5vw, 3.5rem) 0 0; }
.steps img {
  width: 100%;
  aspect-ratio: 2.1 / 1;
  object-fit: cover;
  object-position: 60% 55%;
  /* seven steps down, left to right, like the wordmark */
  clip-path: polygon(
    0 0, 14.28% 0, 14.28% 4%, 28.57% 4%, 28.57% 8%, 42.85% 8%, 42.85% 12%,
    57.14% 12%, 57.14% 16%, 71.42% 16%, 71.42% 20%, 85.71% 20%, 85.71% 24%,
    100% 24%, 100% 100%, 0 100%);
}

/* prose */
.prose-text { max-width: 46rem; }
.prose-text p { font-size: 1.125rem; }
.prose.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.prose .when { font-weight: 700; margin-bottom: 0.4rem; }
.prose .aside { border-left: 6px solid var(--corten); padding-left: 1rem; font: 700 1.5rem/1.15 var(--display); letter-spacing: 0.01em; }
.prose-media { margin: 0; }
.prose-media img { width: 100%; }
.prose-media.video { aspect-ratio: 16 / 9; }
.prose-media.video iframe { width: 100%; height: 100%; border: 0; }

/* gallery */
.gallery-grid { display: grid; gap: 1rem; align-items: start; }
.gallery-three .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gallery-two .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 1.88 / 1; object-fit: cover; }
.gallery figcaption, .gallery .note { font-size: 0.95rem; padding-top: 0.5rem; }
.gallery .note { margin: 0.4rem 0 0; opacity: 0.9; }

/* programs-grid */
.programs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3rem); margin-top: 2rem; }
.programs article { border-top: 8px solid var(--ink); padding-top: 1.25rem; }
.programs article:nth-child(2) { border-top-color: var(--corten); }
.programs img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 1.1rem; }
.programs h3 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 0.1em; }
.programs .where { font-weight: 700; margin-bottom: 0.6rem; }
.programs .go { font-weight: 700; }

/* stats-3 */
.stats-3 dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem 2.5rem; margin: 1.5rem 0 0; }
.stats-3 dl > div { border-top: 6px solid var(--corten); padding-top: 1rem; }
.stats-3 dt { font: 800 1.6rem/1.05 var(--display); letter-spacing: 0.01em; margin-bottom: 0.4rem; }
.stats-3 dd { margin: 0; }

/* timeline */
.timeline ol { list-style: none; margin: 2rem 0 0; padding: 0; border-top: 2px solid var(--ink); }
.timeline li { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 0.25rem 2rem; padding: 1.1rem 0; border-bottom: 2px solid var(--ink); align-items: baseline; }
.timeline time { font: 800 1.6rem/1 var(--display); letter-spacing: 0.01em; color: var(--cobalt); }
.timeline p { margin: 0; }
.timeline strong { display: block; }

/* donate-band */
.donate-band { background: var(--concrete); }
.donate-band h2 { max-width: 16ch; }
.donate-band p { font-size: 1.2rem; }
.meter { max-width: 40rem; height: 1.6rem; background: #fff; border: 2px solid var(--ink); overflow: hidden; margin-block: 1.5rem 0.6rem; }
.meter-fill { height: 100%; background: var(--corten); border-right: 2px solid var(--ink); }
.donate-band .meter-label { font-size: 1.05rem; }

/* other-ways */
.ways { list-style: none; margin: 2rem 0 0; padding: 0; border-top: 2px 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: 2px 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 .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: 2px solid var(--ink); padding: 1.4rem 0 0.6rem; }
.policy-sections h2 { font-size: 1.7rem; }
.policy-sections h2::before { content: counter(policy) ". "; }
.policy-sections ul { margin: 0 0 1em; padding-left: 1.2rem; }
.policy-sections ul li { margin-bottom: 0.3rem; }

@media (max-width: 52rem) {
  .prose.split, .stats-3 dl, .programs,
  .gallery-three .gallery-grid, .gallery-two .gallery-grid { grid-template-columns: 1fr; }
  .ways li, .timeline li { grid-template-columns: 1fr; }
  .steps img { aspect-ratio: 1.5 / 1; }
}
