@charset "UTF-8";

#home-main {
  --home-section-gap: var(--space-4xl);
  --home-section-gap-mobile: var(--space-3xl);
  display: flex;
  flex-direction: column;
  gap: var(--home-section-gap);
  width: 100%;
}

.section-paper,
.section-paper-deep,
.section-ink {
  width: 100%;
}

.section-paper {
  background-color: var(--color-paper);
}

.section-paper-deep {
  background-color: var(--color-paper-deep);
}

.section-ink {
  background-color: var(--color-ink);
  color: var(--color-on-dark);
}

.section-kicker {
  margin-block-end: var(--space-md);
}

/* Hero */
.home-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  min-height: 520px;
  width: 100%;
  overflow: hidden;
  background-color: var(--color-ink);
}

.home-hero__media,
.home-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.home-hero__image {
  object-fit: cover;
  object-position: center right;
}

.home-hero__scrim {
  position: absolute;
  inset: 0;
  background-color: rgba(30, 28, 26, 0.78);
  z-index: 1;
}

.home-hero__content {
  position: relative;
  z-index: 2;
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-lg);
  padding-block: var(--space-3xl);
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
}

.home-hero__kicker {
  color: var(--color-on-dark-muted);
  margin-block-end: 0;
}

.home-hero__title {
  color: var(--color-on-dark);
  max-width: 9ch;
  margin-block-end: 0;
}

.home-hero__standfirst {
  color: var(--color-on-dark);
  max-width: 56ch;
  margin-block-end: 0;
}

.home-hero__cta {
  margin-block-start: var(--space-xs);
}

/* Featured Review */
.home-featured-review__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

.home-featured-review__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-md);
  min-width: 0;
  padding-block-start: var(--space-md);
  border-block-start: var(--border-charcoal-line);
}

.home-featured-review__title {
  max-width: 24ch;
  margin-block-end: 0;
}

.home-featured-review__meta {
  font-size: var(--text-small-size);
  line-height: var(--text-small-line-height);
  margin-block-end: 0;
}

.home-featured-review__verdict {
  max-width: 68ch;
  margin-block-end: 0;
}

.home-featured-review__media {
  margin-block-end: 0;
  min-width: 0;
}

.home-featured-review__image {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
}

/* Top 10 */
.home-top10__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

.home-top10__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-md);
  min-width: 0;
}

.home-top10__rank {
  font-family: var(--font-heading);
  font-size: clamp(4rem, 10vw, 7rem);
  line-height: 0.8;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--color-ember);
}

.home-top10__title {
  color: var(--color-on-dark);
  margin-block-end: 0;
}

.home-top10__description {
  color: var(--color-on-dark);
  max-width: 68ch;
  margin-block-end: 0;
}

.home-top10__link {
  color: var(--color-ember);
}

.home-top10__link:hover,
.home-top10__link:focus-visible {
  color: var(--color-ember-deep);
}

.home-top10__media {
  margin-block-end: 0;
  min-width: 0;
}

.home-top10__image {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
}

.home-top10__media .caption {
  color: var(--color-on-dark-muted);
  border-block-start-color: var(--color-paper-line);
}

/* Scene Spotlight */
.home-scene-spotlight {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  min-height: 520px;
  width: 100%;
  overflow: hidden;
  background-color: var(--color-ink);
}

.home-scene-spotlight__media,
.home-scene-spotlight__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.home-scene-spotlight__image {
  object-fit: cover;
  object-position: center;
}

.home-scene-spotlight__scrim {
  position: absolute;
  inset: 0;
  background-color: rgba(30, 28, 26, 0.78);
  z-index: 1;
}

.home-scene-spotlight__content {
  position: relative;
  z-index: 2;
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-md);
  padding-block: var(--space-3xl);
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
}

.home-scene-spotlight__marker {
  font-family: var(--font-heading);
  font-size: var(--text-h3-size);
  line-height: 1;
  font-weight: 800;
  color: var(--color-ember);
}

.home-scene-spotlight__title {
  color: var(--color-on-dark);
  max-width: 18ch;
  margin-block-end: 0;
}

.home-scene-spotlight__analysis {
  color: var(--color-on-dark);
  max-width: 68ch;
  margin-block-end: 0;
}

.home-scene-spotlight__link {
  color: var(--color-ember);
}

.home-scene-spotlight__link:hover,
.home-scene-spotlight__link:focus-visible {
  color: var(--color-ember-deep);
}

/* Behind the Scenes */
.home-behind-scenes__panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-xl);
  border: var(--border-charcoal-line);
  max-width: 100%;
}

.home-behind-scenes__title {
  margin-block-end: 0;
}

.home-behind-scenes__text {
  max-width: 68ch;
  margin-block-end: 0;
}

.home-behind-scenes__link {
  color: var(--color-burgundy);
}

.home-behind-scenes__link:hover,
.home-behind-scenes__link:focus-visible {
  color: var(--color-ember-deep);
}

/* Thematic Article */
.home-thematic__block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-md);
  max-width: 100%;
  padding-block-start: var(--space-md);
  border-block-start: 2px solid var(--color-ember);
}

.home-thematic__title {
  max-width: 24ch;
  margin-block-end: 0;
}

.home-thematic__excerpt {
  max-width: 68ch;
  margin-block-end: 0;
}

/* Film Facts */
.home-facts__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  margin-block-end: var(--space-xl);
}

.home-facts__item {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  min-width: 0;
  padding-block-start: var(--space-md);
  border-block-start: var(--border-charcoal-line);
}

.home-facts__item-title {
  margin-block-end: 0;
}

.home-facts__item p {
  margin-block-end: 0;
}

.home-facts__link {
  color: var(--color-ember);
}

.home-facts__link:hover,
.home-facts__link:focus-visible {
  color: var(--color-ember-deep);
}

/* Poker in Cinema */
.home-poker__block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-md);
  max-width: 100%;
  padding-block-start: var(--space-md);
  border-block-start: 2px solid var(--color-burgundy);
}

.home-poker__title {
  max-width: 24ch;
  margin-block-end: 0;
}

.home-poker__text {
  max-width: 68ch;
  margin-block-end: 0;
}

/* Plot & Characters */
.home-plot__block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-md);
  max-width: 100%;
}

.home-plot__title {
  max-width: 24ch;
  margin-block-end: 0;
}

.home-plot__text {
  max-width: 68ch;
  margin-block-end: 0;
}

/* CTA */
.home-cta__block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  padding-block: var(--space-4xl);
  text-align: center;
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
}

.home-cta__title {
  color: var(--color-on-dark);
  max-width: 24ch;
  margin-block-end: 0;
}

.home-cta__button {
  min-width: 220px;
}

/* Tablet */
@media (min-width: 768px) {
  .home-featured-review__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: var(--space-3xl);
    align-items: center;
  }

  .home-top10__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: var(--space-3xl);
    align-items: center;
  }

  .home-facts__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-2xl);
  }

  .home-behind-scenes__panel {
    max-width: 66.666%;
    margin-inline-start: auto;
  }

  .home-thematic__block {
    max-width: 58.333%;
  }

  .home-poker__block {
    max-width: 50%;
  }

  .home-plot__block {
    max-width: 50%;
  }

  .home-cta__block {
    max-width: 50%;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .home-hero {
    min-height: 640px;
  }

  .home-hero__content {
    padding-block: var(--space-4xl);
  }

  .home-scene-spotlight {
    min-height: 640px;
  }

  .home-scene-spotlight__content {
    padding-block: var(--space-4xl);
  }

  .home-featured-review__grid {
    gap: var(--space-4xl);
  }

  .home-top10__grid {
    gap: var(--space-4xl);
  }
}

/* Mobile refinements */
@media (max-width: 767px) {
  #home-main {
    gap: var(--home-section-gap-mobile);
  }

  .home-hero,
  .home-scene-spotlight {
    min-height: 0;
  }

  .home-hero__media,
  .home-hero__image,
  .home-scene-spotlight__media,
  .home-scene-spotlight__image {
    position: relative;
    inset: auto;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .home-hero__scrim,
  .home-scene-spotlight__scrim {
    display: none;
  }

  .home-hero__content,
  .home-scene-spotlight__content {
    position: static;
    padding-block: var(--space-xl);
    background-color: var(--color-ink);
  }

  .home-hero__title {
    font-size: var(--text-h2-size);
    line-height: var(--text-h2-line-height);
    letter-spacing: var(--text-h2-tracking);
    font-weight: var(--text-h2-weight);
  }

  .home-hero__standfirst {
    font-size: var(--text-body-size);
    line-height: var(--text-body-line-height);
  }

  .home-hero__cta {
    width: 100%;
    justify-content: center;
  }

  .home-scene-spotlight__content {
    background-color: var(--color-paper);
  }

  .home-scene-spotlight__title {
    color: var(--color-ink);
  }

  .home-scene-spotlight__analysis {
    color: var(--color-ink);
  }

  .home-behind-scenes__panel,
  .home-thematic__block,
  .home-poker__block,
  .home-plot__block,
  .home-cta__block {
    max-width: 100%;
    margin-inline-start: 0;
  }

  .home-cta__button {
    width: 100%;
  }
}
