/* Film Characters page styles */

#film-characters-main {
  --fc-section-pad: var(--space-9);
  --fc-section-pad-tablet: var(--space-8);
  --fc-section-pad-mobile: var(--space-7);
  --fc-grid-gap: var(--space-6);
  --fc-card-border: 1px solid var(--soft-stone-grey);
  --fc-ochre-rule: 1px solid var(--muted-ochre);
  overflow: clip;
}

/* Masthead */
.fc-masthead {
  padding-block: var(--fc-section-pad);
  background-color: var(--gallery-ivory);
  position: relative;
}

.fc-masthead__inner {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-gutter-mobile);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-5) var(--space-6);
}

.fc-masthead__kicker {
  grid-column: 1 / -1;
  margin-block-end: 0;
}

.fc-masthead__title {
  grid-column: 1 / -1;
  font-size: clamp(2.5rem, 4.5vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  max-width: 24ch;
  margin-block-end: var(--space-5);
}

.fc-masthead__standfirst {
  grid-column: 1 / -1;
  font-size: 1.25rem;
  line-height: 1.6;
  max-width: 68ch;
  color: var(--cinema-charcoal);
  margin-block-end: 0;
}

/* Featured Profile */
.fc-feature-profile {
  padding-block: var(--fc-section-pad);
  background-color: var(--gallery-ivory);
  border-block-start: var(--fc-ochre-rule);
}

.fc-feature-profile__inner {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-gutter-mobile);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-6);
  align-items: start;
}

.fc-feature-profile__media {
  grid-column: 1 / -1;
  margin: 0;
  min-width: 0;
}

.fc-feature-profile__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fc-feature-profile__caption {
  margin-block-start: var(--space-3);
}

.fc-feature-profile__content {
  grid-column: 1 / -1;
  min-width: 0;
}

.fc-feature-profile__kicker {
  margin-block-end: var(--space-3);
}

.fc-feature-profile__title {
  font-size: var(--text-h2);
  line-height: 1.1;
  letter-spacing: -0.01em;
  max-width: 32ch;
  margin-block-end: var(--space-3);
}

.fc-feature-profile__meta {
  font-size: var(--text-small);
  color: var(--soft-stone-grey);
  margin-block-end: var(--space-5);
}

.fc-feature-profile__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.fc-feature-profile__body h3 {
  font-size: var(--text-h3);
  line-height: 1.2;
  margin-block-end: var(--space-2);
}

.fc-feature-profile__body p {
  max-width: 68ch;
  margin-block-end: 0;
}

/* Gallery */
.fc-gallery {
  padding-block: var(--fc-section-pad);
  background-color: var(--gallery-ivory);
  border-block-start: var(--fc-ochre-rule);
  overflow: hidden;
}

.fc-gallery__header {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-gutter-mobile);
  margin-block-end: var(--space-6);
}

.fc-gallery__kicker {
  margin-block-end: var(--space-3);
}

.fc-gallery__title {
  font-size: var(--text-h2);
  line-height: 1.1;
  letter-spacing: -0.01em;
  max-width: 32ch;
  margin-block-end: 0;
}

.fc-gallery__track {
  display: flex;
  gap: var(--space-5);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-inline: var(--container-gutter-mobile);
  padding-block-end: var(--space-4);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--muted-ochre) transparent;
}

.fc-gallery__track > * {
  flex-shrink: 0;
  scroll-snap-align: start;
}

.fc-gallery-card {
  width: 80%;
  min-width: 280px;
  max-width: 360px;
  border: var(--fc-card-border);
  background-color: var(--gallery-ivory);
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition-image);
}

.fc-gallery-card:hover {
  box-shadow: var(--shadow-lifted);
}

.fc-gallery-card__media {
  margin: 0;
  width: 100%;
}

.fc-gallery-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fc-gallery-card__body {
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.fc-gallery-card__title {
  font-size: var(--text-h3);
  line-height: 1.2;
  font-weight: 500;
  margin-block-end: 0;
}

.fc-gallery-card__meta {
  font-size: var(--text-caption);
  color: var(--soft-stone-grey);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-block-end: 0;
}

.fc-gallery-card__verdict {
  font-size: var(--text-small);
  color: var(--deep-petrol-blue);
  line-height: 1.5;
  max-width: 40ch;
  margin-block-end: 0;
}

/* Editorial Approach */
.fc-approach {
  padding-block: var(--fc-section-pad);
  background-color: var(--gallery-ivory);
  border-block-start: var(--fc-ochre-rule);
}

.fc-approach__inner {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-gutter-mobile);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-5) var(--space-6);
}

.fc-approach__kicker {
  grid-column: 1 / -1;
  margin-block-end: 0;
}

.fc-approach__title {
  grid-column: 1 / -1;
  font-size: var(--text-h2);
  line-height: 1.1;
  letter-spacing: -0.01em;
  max-width: 32ch;
  margin-block-end: var(--space-5);
}

.fc-approach__body {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.fc-approach__body p {
  max-width: 68ch;
  margin-block-end: 0;
}

.fc-approach__note {
  font-size: var(--text-small);
  color: var(--soft-stone-grey);
  border-inline-start: 2px solid var(--muted-ochre);
  padding-inline-start: var(--space-4);
}

/* Archetypes */
.fc-archetypes {
  padding-block: var(--fc-section-pad);
  background-color: var(--gallery-ivory);
  border-block-start: var(--fc-ochre-rule);
}

.fc-archetypes__header {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-gutter-mobile);
  margin-block-end: var(--space-6);
}

.fc-archetypes__kicker {
  margin-block-end: var(--space-3);
}

.fc-archetypes__title {
  font-size: var(--text-h2);
  line-height: 1.1;
  letter-spacing: -0.01em;
  max-width: 32ch;
  margin-block-end: 0;
}

.fc-archetypes__grid {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-gutter-mobile);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

.fc-archetype-card {
  border: var(--fc-card-border);
  padding: var(--space-5);
  background-color: var(--gallery-ivory);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-width: 0;
}

.fc-archetype-card__title {
  font-size: var(--text-h3);
  line-height: 1.2;
  font-weight: 500;
  margin-block-end: 0;
  position: relative;
  padding-block-start: var(--space-4);
}

.fc-archetype-card__title::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background-color: var(--muted-ochre);
  margin-block-end: var(--space-3);
}

.fc-archetype-card__text {
  font-size: var(--text-body);
  line-height: 1.7;
  max-width: 50ch;
  margin-block-end: 0;
}

/* Pull Quote */
.fc-pullquote {
  padding-block: var(--fc-section-pad);
  background-color: var(--gallery-ivory);
  border-block-start: var(--fc-ochre-rule);
}

.fc-pullquote__inner {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-gutter-mobile);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-5) var(--space-6);
}

.fc-pullquote__quote {
  grid-column: 1 / -1;
  margin-block: 0;
  padding-block-start: var(--space-5);
  border-block-start: var(--fc-ochre-rule);
  position: relative;
}

.fc-pullquote__quote::before {
  content: '';
  display: block;
  width: 48px;
  height: 1px;
  background-color: var(--muted-ochre);
  margin-block-end: var(--space-4);
}

.fc-pullquote__quote p {
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  line-height: 1.25;
  max-width: 32ch;
  margin-block-end: var(--space-4);
}

.fc-pullquote__quote footer {
  font-size: var(--text-small);
  color: var(--soft-stone-grey);
}

/* Spotlight */
.fc-spotlight {
  padding-block: var(--fc-section-pad);
  background-color: var(--gallery-ivory);
  border-block-start: var(--fc-ochre-rule);
}

.fc-spotlight__inner {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-gutter-mobile);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-6);
  align-items: start;
}

.fc-spotlight__content {
  grid-column: 1 / -1;
  min-width: 0;
}

.fc-spotlight__kicker {
  margin-block-end: var(--space-3);
}

.fc-spotlight__title {
  font-size: var(--text-h2);
  line-height: 1.1;
  letter-spacing: -0.01em;
  max-width: 32ch;
  margin-block-end: var(--space-3);
}

.fc-spotlight__meta {
  font-size: var(--text-small);
  color: var(--soft-stone-grey);
  margin-block-end: var(--space-5);
}

.fc-spotlight__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.fc-spotlight__body h3 {
  font-size: var(--text-h3);
  line-height: 1.2;
  margin-block-end: var(--space-2);
}

.fc-spotlight__body p {
  max-width: 68ch;
  margin-block-end: 0;
}

.fc-spotlight__media {
  grid-column: 1 / -1;
  margin: 0;
  min-width: 0;
}

.fc-spotlight__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fc-spotlight__caption {
  margin-block-start: var(--space-3);
}

/* Explore Further */
.fc-explore {
  padding-block: var(--fc-section-pad);
  background-color: var(--gallery-ivory);
  border-block-start: var(--fc-ochre-rule);
  border-block-end: var(--fc-ochre-rule);
}

.fc-explore__inner {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-gutter-mobile);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-5) var(--space-6);
  align-items: center;
}

.fc-explore__text {
  grid-column: 1 / -1;
  min-width: 0;
}

.fc-explore__kicker {
  margin-block-end: var(--space-3);
}

.fc-explore__title {
  font-size: var(--text-h2);
  line-height: 1.1;
  letter-spacing: -0.01em;
  max-width: 32ch;
  margin-block-end: var(--space-3);
}

.fc-explore__description {
  font-size: var(--text-body);
  line-height: 1.7;
  max-width: 68ch;
  margin-block-end: 0;
}

.fc-explore__links {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-width: 0;
}

.fc-explore__btn {
  width: 100%;
  justify-content: center;
}

/* Editorial Note */
.fc-note {
  padding-block: var(--fc-section-pad);
  background-color: var(--gallery-ivory);
}

.fc-note__inner {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-gutter-mobile);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-5) var(--space-6);
}

.fc-note__text {
  grid-column: 1 / -1;
  font-size: var(--text-small);
  line-height: 1.6;
  color: var(--soft-stone-grey);
  border: 1px solid var(--soft-stone-grey);
  padding: var(--space-5);
  max-width: 68ch;
  margin-block-end: 0;
}

.fc-note__text a {
  color: var(--deep-petrol-blue);
  text-decoration: underline;
  text-decoration-color: var(--deep-petrol-blue);
  text-underline-offset: 3px;
}

.fc-note__text a:hover {
  color: var(--festival-red);
  text-decoration-color: var(--festival-red);
}

/* Tablet */
@media (min-width: 768px) {
  #film-characters-main {
    --fc-section-pad: var(--fc-section-pad-tablet);
  }

  .fc-masthead__inner,
  .fc-feature-profile__inner,
  .fc-approach__inner,
  .fc-pullquote__inner,
  .fc-spotlight__inner,
  .fc-explore__inner,
  .fc-note__inner {
    padding-inline: var(--container-gutter-tablet);
  }

  .fc-gallery__header,
  .fc-archetypes__header,
  .fc-archetypes__grid {
    padding-inline: var(--container-gutter-tablet);
  }

  .fc-gallery__track {
    padding-inline: var(--container-gutter-tablet);
  }

  .fc-masthead__title {
    grid-column: 1 / 9;
  }

  .fc-masthead__standfirst {
    grid-column: 1 / 7;
  }

  .fc-feature-profile__media {
    grid-column: 1 / 6;
  }

  .fc-feature-profile__content {
    grid-column: 7 / -1;
  }

  .fc-approach__kicker,
  .fc-approach__title {
    grid-column: 1 / 8;
  }

  .fc-approach__body {
    grid-column: 1 / 8;
  }

  .fc-archetypes__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fc-pullquote__quote {
    grid-column: 3 / -1;
  }

  .fc-spotlight__content {
    grid-column: 1 / 7;
  }

  .fc-spotlight__media {
    grid-column: 8 / -1;
  }

  .fc-explore__text {
    grid-column: 1 / 7;
  }

  .fc-explore__links {
    grid-column: 8 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .fc-explore__btn {
    width: auto;
    min-width: 160px;
  }

  .fc-note__text {
    grid-column: 2 / 10;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  #film-characters-main {
    --fc-section-pad: var(--space-9);
  }

  .fc-masthead__inner,
  .fc-feature-profile__inner,
  .fc-approach__inner,
  .fc-pullquote__inner,
  .fc-spotlight__inner,
  .fc-explore__inner,
  .fc-note__inner {
    padding-inline: var(--container-gutter-desktop);
  }

  .fc-gallery__header,
  .fc-archetypes__header,
  .fc-archetypes__grid {
    padding-inline: var(--container-gutter-desktop);
  }

  .fc-gallery__track {
    padding-inline: var(--container-gutter-desktop);
  }

  .fc-gallery-card {
    width: calc((100% - (var(--space-5) * 3)) / 4);
    min-width: 0;
    max-width: none;
  }

  .fc-feature-profile__media {
    grid-column: 1 / 6;
  }

  .fc-feature-profile__content {
    grid-column: 7 / -1;
  }

  .fc-spotlight__content {
    grid-column: 1 / 7;
  }

  .fc-spotlight__media {
    grid-column: 8 / -1;
  }

  .fc-explore__text {
    grid-column: 1 / 7;
  }

  .fc-explore__links {
    grid-column: 8 / -1;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .fc-gallery__track {
    scroll-behavior: auto;
  }

  .fc-gallery-card:hover {
    box-shadow: none;
  }

  .media-frame--hover:hover img {
    transform: none;
  }
}
