/* ==================== HOMEPAGE AND PROJECTS PAGE ==================== */

.project-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.project-panel--stacked {
  grid-template-columns: minmax(0, 1fr);
  gap: 0.5rem;
}

.project-panel--reverse .project-panel-preview {
  order: -1;
}

.project-panel h2 {
  margin-bottom: 0.5rem;
}

.project-panel-text > p + .other-project,
.other-project + .other-project {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.other-project h3 {
  margin-bottom: 0.35rem;
}

/* Each other project is its text with a preview image beside it, in the same two columns (and gap) as the card project panels above */
.other-project {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem 2.5rem;
  align-items: center;
}

.other-project-preview img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--main-radius);
}

.project-panel .player-card {
  margin: 0 auto;
}

.project-panel .schedule-preview {
  margin: 1.5rem auto 0;
}

.hero {
  position: relative;
  overflow: hidden;
  margin: 1.5rem 0 1.25rem;
  padding: 3rem 2rem;
  text-align: center;
  background-color: var(--bg-section);
  border: var(--border);
  border-radius: var(--main-radius);
  box-shadow: var(--box-shadow);
}

.hero p {
  text-align: center;
}

main .hero h1 {
  margin: 0 0 1.25rem;
  font-family: var(--font-nav-title);
  font-size: clamp(2.75rem, 7vw, 4.75rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
}

.hero-lead {
  max-width: 42rem;
  margin: 0 auto;
  color: var(--text-muted);
  text-align: center;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 2.5rem 0 1rem;
}

.section-header a {
  font-weight: bold;
  white-space: nowrap;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  container-type: inline-size;
  overflow: hidden;
  background-color: var(--bg-section);
  border: var(--border);
  border-radius: var(--main-radius);
  box-shadow: var(--box-shadow);
}

.project-card-body {
  padding: 1.5rem 1.75rem 0.5rem;
}

.project-card h3 {
  margin: 0 0 0.4rem;
}

.project-card p {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  color: var(--text-muted);
}

.project-card-footer {
  padding: 0.5rem 1.75rem 1.5rem;
}

.project-card-footer .content-button {
  justify-content: flex-start;
}

/* Room above and below the fan for the cards' rotation (about 7% of card width) plus an even gap
   to the description above and the button below. */

.project-card .card-preview {
  height: auto;
  aspect-ratio: auto;
  margin: 0;
  padding: calc(var(--card-w) * 0.07 + 0.75rem) 0 calc(var(--card-w) * 0.07 + 1.1cqw + 0.75rem);
}

.home-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.section-header + .home-split {
  margin-top: 0;
}

.home-split .panel,
.social-panel {
  margin: 0;
}

.social-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 1.25rem;
}

.social-panel h2 {
  margin-bottom: 1rem;
}

.social-panel .instagram-embed-blockquote {
  margin-left: auto;
  margin-right: auto;
}

.project-card--post .project-card-body {
  padding-bottom: 1.5rem;
}

.project-card--post .post-date {
  margin: 0 0 0.6rem;
  font-size: 0.9rem;
}

.content-button--left,
.horizontal-buttons--left,
.project-card-body .content-button {
  justify-content: flex-start;
}

.panel > p:last-child {
  margin-bottom: 0;
}

.about-strip {
  text-align: left;
}

.about-strip-photo {
  width: 5.5rem;
  height: 5.5rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  border: var(--border);
  object-fit: cover;
}

.about-strip .horizontal-buttons {
  gap: 0.5rem;
}

.about-strip .content-button a {
  margin: 0;
  padding: 0.55rem 1rem;
}

.support-panel p {
  color: var(--text-muted);
}

@media (max-width: 860px) {
  .other-project {
    grid-template-columns: minmax(0, 1fr);
  }

  .other-project-preview {
    justify-self: center;
    max-width: 30rem;
  }

  .project-panel--reverse .project-panel-preview {
    order: 0;
  }

  .project-panel .content-button--left {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 2rem 1.25rem;
  }
}

/* Preview image in the stats project panel on the projects page */
.stats-preview-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--main-radius);
}

.schedule-preview {
  display: block;
  width: 100%;
  max-width: 90rem;
  margin: 2rem auto;
  border-radius: var(--main-radius);
}
