/* Pyropia: hero art follows the light and dark theme. Tokens only; colors live in fleet/brands.yaml. */

:root {
  --hero-art: url("/assets/images/hero-light.webp");
  --brand-display: Baskerville, "Libre Baskerville", "Iowan Old Style", Georgia, serif;
}

:root[data-theme="dark"] {
  --hero-art: url("/assets/images/hero-dark.webp");
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.cb-row[id] {
  scroll-margin-top: 1rem;
}

.cb-row--full .cb-row-inner {
  padding-inline: 0;
}

.hero.hero--full {
  display: flex;
  align-items: center;
  min-height: clamp(26rem, 44vw, 40rem);
  margin: 0;
  padding: 3rem 1.25rem;
  border: 0;
  background: var(--bg) var(--hero-art) right center / cover no-repeat;
}

.hero.hero--full .hero-inner {
  width: 100%;
  justify-items: start;
  padding: 0 clamp(0.5rem, 4vw, 3rem);
}

.hero.hero--full .hero-copy {
  max-width: min(30rem, 46vw);
}

.hero.hero--full .hero-eyebrow {
  color: var(--accent);
}

.hero.hero--full .hero-title {
  font-family: var(--brand-display);
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.02;
}

.hero.hero--full .hero-tagline {
  color: var(--text);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
}

.cb-feature-grid-title,
.cb-photo-tiles__title {
  font-family: var(--brand-display);
  font-weight: 400;
  letter-spacing: -0.01em;
}

.cb-fern-prose {
  max-width: 46rem;
}

/* Captions sit under the screenshots so nothing covers them. */
.cb-photo-tiles__tile {
  display: block;
  min-height: 0;
  border: 1px solid var(--border);
  background: var(--bg-elev);
}

.cb-photo-tiles__image {
  position: static;
  display: block;
  height: auto;
  aspect-ratio: 16 / 10;
}

.cb-photo-tiles__tile:hover .cb-photo-tiles__image {
  transform: none;
}

.cb-photo-tiles__copy {
  padding: 0.75rem 1rem 1rem;
  background: none;
  color: var(--text);
}

.cb-photo-tiles__subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 400;
  opacity: 1;
}

@media (max-width: 767px) {
  .hero.hero--full {
    display: block;
    min-height: 0;
    padding: 0;
    background: var(--bg-elev);
  }

  .hero.hero--full::before {
    content: "";
    display: block;
    aspect-ratio: 16 / 10;
    background: var(--hero-art) 92% center / cover no-repeat;
  }

  .hero.hero--full .hero-inner {
    padding: 1.5rem 1.25rem 2rem;
  }

  .hero.hero--full .hero-copy {
    max-width: none;
  }
}
