:root {
  --bg: #e4e4e6;
  --ink: #1a1a1a;
  --muted: #4a4a4c;
  --rule: #b9b9bc;
  --overlay: rgba(20, 20, 20, 0.86);
  --overlay-ink: #f4f4f2;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'EB Garamond', Garamond, Georgia, serif;
}

a { color: var(--ink); }
a:hover { color: #555; }

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 24px 96px;
  display: flex;
  flex-direction: column;
  gap: 120px;
}

/* Header */
.masthead { text-align: center; }
.masthead h1 {
  margin: 0;
  font-size: clamp(44px, 7vw, 80px);
  font-weight: 400;
  line-height: 1.05;
}
.tagline {
  margin: 6px 0 0;
  font-size: clamp(24px, 3.4vw, 38px);
  font-style: italic;
}

/* Credits grid */
.credits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 32px;
  row-gap: 32px;
  align-items: start;
}
@media (max-width: 960px) { .credits { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .credits { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; row-gap: 16px; } }

.card {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.card:focus { outline: 2px solid var(--ink); outline-offset: 4px; }

.frame {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #c9c9cc;
}
.frame.square { aspect-ratio: 1 / 1; }
.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .25s ease;
}
.card:hover .frame.square { aspect-ratio: 1 / 1; }
.frame img { transform: scale(1.02); }

/* Shown when a poster file is missing */
.placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  font-size: clamp(20px, 2.2vw, 28px);
  color: var(--muted);
}

.info {
  position: absolute;
  inset: 0;
  background: var(--overlay);
  color: var(--overlay-ink);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 20px;
  opacity: 0;
  transition: opacity .25s ease;
}
.card:hover .info,
.card:focus .info,
.card.open .info { opacity: 1; }
.info .title { font-size: 22px; line-height: 1.15; }
.info .artist { font-size: 18px; margin-top: -4px; }
.info .role { font-size: 18px; font-style: italic; }
.info .meta { font-size: 14px; letter-spacing: 1px; text-transform: uppercase; color: #d9d9d6; }
.info .blurb { font-size: 16px; line-height: 1.35; }

/* Phones: tiles are ~160px wide, so shrink the overlay text to fit */
@media (max-width: 700px) {
  .info { padding: 10px; gap: 3px; justify-content: safe flex-end; overflow-y: auto; }
  .info .title { font-size: 16px; }
  .info .artist, .info .role { font-size: 14px; line-height: 1.2; }
  .info .artist { margin-top: 0; }
  .info .meta { font-size: 10px; letter-spacing: .5px; }
  .info .blurb { font-size: 13px; line-height: 1.25; }
}


/* Contact */
.contact {
  text-align: center;
  border-top: 1px solid var(--rule);
  padding-top: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.contact h2 { margin: 0; font-size: 34px; font-weight: 400; font-style: italic; }
.contact p, .contact a { margin: 0; font-size: 20px; }
.contact .copyright { font-size: 16px; color: var(--muted); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
