/* The home page. Load after site.css. */

/* Hero: the statement leads */
.hero.on-dark {
  min-height: min(96vh, 1000px);
}

.stage-scrim {
  background: linear-gradient(
    to bottom,
    rgba(11, 11, 11, 0.58) 0%,
    rgba(11, 11, 11, 0.2) 30%,
    rgba(11, 11, 11, 0.55) 62%,
    rgba(11, 11, 11, 0.86) 100%
  );
}

.hero-statement {
  font-family: "EB Garamond", Garamond, Georgia, serif;
  font-weight: 400;
  font-size: clamp(60px, 9vw, 136px);
  line-height: 1;
  letter-spacing: -0.025em;
}

.hero-statement em {
  font-style: italic;
}

.hero-line {
  display: block;
  white-space: nowrap;
}

.hero-statement .dot {
  width: 0.1em;
  height: 0.1em;
  margin-left: 0.04em;
}

.hero.on-dark .hero-foot {
  margin-top: clamp(36px, 4.4vw, 72px);
}

/* Who it's for: each discipline and its role read as one line */
.disciplines-head {
  margin-bottom: 32px;
}

.discipline {
  border-top: 1px solid var(--rule);
  padding: 18px 0 16px;
  font-size: var(--text-2xl);
  white-space: nowrap;
}

.discipline:last-child {
  border-bottom: 1px solid var(--rule);
}

/* Photographs from the evenings, scrolling past */
/* Same space above the strip as below the "Small rooms" band that follows it. */
.marquee {
  background: var(--ink);
  color: #fff;
  padding-top: var(--section);
}

.marquee-window {
  overflow: hidden;
}

/* home.js takes over the motion, so the strip becomes a scroller. */
.marquee.is-scripted .marquee-window {
  overflow-x: auto;
  scrollbar-width: none;
  cursor: grab;
}

.marquee.is-scripted .marquee-window::-webkit-scrollbar {
  display: none;
}

.marquee.is-scripted .marquee-track {
  animation: none;
}

.marquee-window.is-dragging,
.marquee-window.is-dragging .shot-open {
  cursor: grabbing;
}

.marquee-set .shot-open {
  cursor: zoom-in;
}

.marquee-set img {
  -webkit-user-drag: none;
  user-select: none;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 80s linear infinite;
}

.marquee-window:hover .marquee-track {
  animation-play-state: paused;
}

/* Each set ends in the same right margin, so -50% lands exactly on the copy. */
.marquee-set {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

.marquee-set li {
  flex: none;
  width: 270px;
  aspect-ratio: 2 / 3;
  margin-right: 12px;
  overflow: hidden;
  background: #1c1c1c;
}

.marquee-set img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.06);
  transition: filter 0.5s ease;
}

.marquee-set li:hover img {
  filter: none;
}

/* Without hover, black and white would never turn to colour. */
@media (hover: none) {
  .marquee-set img {
    filter: none;
  }
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
    padding: 0 var(--pad);
  }
  .marquee-window {
    overflow-x: auto;
  }
  .marquee-set[aria-hidden="true"] {
    display: none;
  }
}

/* In the room: continues the strip's dark band */
.marquee + .band > .section {
  padding-top: clamp(64px, 7vw, 112px);
}

.room-question {
  display: block;
  margin-top: 0.3em;
}

.room-actions {
  margin-top: clamp(40px, 4.4vw, 64px);
}

/* Friends of More Life */
#friends .people {
  margin-top: 56px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 40px;
}

@media (max-width: 1100px) {
  #friends .people {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Past evenings: one same-size card each, newest first */
/* Follows Friends, whose bottom padding already separates the two. */
.past {
  padding: 0 var(--pad);
}

.past-lede {
  font-weight: 400;
  font-size: var(--text-2xl);
}

.past-note {
  max-width: 40ch;
  margin-top: 16px;
  font-size: var(--text-md);
}

.gatherings {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px 24px;
  margin: clamp(40px, 4.4vw, 64px) 0 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 1100px) {
  .gatherings {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.gathering > a,
.gathering > div {
  display: block;
  text-decoration: none;
}

.gathering-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--well);
}

.gathering-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gathering a:hover .gathering-photo img {
  transform: scale(1.02);
}

.gathering-meta {
  display: block;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: var(--text-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.gathering-title {
  display: block;
  margin-top: 6px;
  font-size: var(--text-lg);
  line-height: 1.25;
}

.gathering-title svg {
  margin-left: 0.4em;
  vertical-align: 0.15em;
  transition: transform 0.25s ease;
}

.gathering > a:hover {
  opacity: 1;
}

.gathering a:hover .gathering-title svg {
  transform: translateX(3px);
}

.past-actions {
  margin-top: clamp(40px, 4.4vw, 64px);
}

@media (max-width: 700px) {
  .marquee-set li {
    width: 180px;
    margin-right: 8px;
  }
  .marquee-track {
    animation-duration: 60s;
  }
  .disciplines {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 16px;
    border-bottom: 1px solid var(--rule);
  }
  .discipline {
    padding: 16px 0 22px;
    font-size: var(--text-xl);
    white-space: normal;
  }
  .discipline:last-child {
    border-bottom: 0;
  }
  .discipline-name,
  .discipline-role {
    display: block;
  }
  .discipline-role {
    margin-top: 6px;
    font-size: var(--text-sm);
    letter-spacing: 0;
  }
  .gatherings {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  #friends .people {
    grid-template-columns: 1fr;
  }
}
