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

/* hero: her name, large, beside three of her paintings hung on a night wall */
.hero {
  background: var(--night);
  color: #fff;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding: clamp(2.5rem, 6vw, 5rem) var(--inset) clamp(3rem, 7vw, 6rem);
  overflow: hidden;
}
.hero.no-art { grid-template-columns: minmax(0, 52rem); }
.hero .studio { font: italic 700 clamp(1.4rem, 2.6vw, 2rem)/1.15 var(--display); color: var(--ochre); margin: 0.9rem 0 1.1rem; }
.lede { font-size: clamp(1.15rem, 1.9vw, 1.35rem); line-height: 1.5; max-width: 32ch; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.75rem 0 0; }
.hero .btn-give { background: var(--ochre); border-color: var(--ochre); color: var(--night); }
.hero .btn-give:hover { background: #fff; border-color: #fff; }
.hero .btn-plain { color: #fff; border-color: #fff; }
.hero .btn-plain:hover { background: #fff; color: var(--night); }

.wall { position: relative; margin: 0; width: 100%; max-width: 34rem; justify-self: center; aspect-ratio: 1 / 1.02; }
.wall svg { position: absolute; inset: -8% -10%; width: 120%; height: 116%; }
.wall a {
  position: absolute; display: block; width: 44%;
  border: 0.55rem solid #fff; border-radius: 3px;
  box-shadow: 0 1.4rem 2.6rem rgba(0, 0, 0, 0.5);
  background: #fff;
}
.wall img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; display: block; }
.wall a:nth-of-type(1) { left: 0; top: 14%; transform: rotate(-7deg); }
.wall a:nth-of-type(2) { left: 29%; top: 0; transform: rotate(3deg); z-index: 1; }
.wall a:nth-of-type(3) { right: 0; top: 20%; transform: rotate(9deg); }
.wall a:hover, .wall a:focus-visible { z-index: 2; outline: 4px solid var(--ochre); outline-offset: 2px; }

/* prose */
.prose-text { max-width: 44rem; }
.prose-text p { font-size: 1.25rem; }
.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.6rem solid var(--ochre); border-radius: 0.3rem; padding-left: 1rem; font: italic 700 1.5rem/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.6rem 1.1rem; }
.videos a { display: block; color: var(--night); text-decoration: none; }
.videos .thumb { aspect-ratio: 9 / 16; border-radius: var(--radius); overflow: hidden; background: var(--night); }
.videos img { width: 100%; height: 100%; object-fit: cover; }
.videos a:hover .thumb, .videos a:focus-visible .thumb { outline: 4px solid var(--ember); 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(--night); }
.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(--night);
}
.ways h3 { font-size: 1.5rem; }
.ways h3, .ways p { margin: 0; }
.go { font-weight: 700; white-space: nowrap; }

/* policy: terms, privacy, accessibility */
.policy > * { max-width: 46rem; }
.policy h1 { font: 800 clamp(2.1rem, 4.8vw, 3.4rem)/1.05 var(--display); letter-spacing: -0.01em; }
.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(--night); padding: 1.4rem 0 0.6rem; }
.policy-sections h2 { font-size: 1.6rem; }
.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; }
  .wall { max-width: 24rem; justify-self: start; margin-top: 1rem; }
  .prose.split { grid-template-columns: 1fr; }
  .ways li { grid-template-columns: 1fr; }
  .videos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
