/* The studio's home page: the toy theatre (design B). Values from tokens.css. */

.section { padding-top: var(--space-section); padding-bottom: var(--space-section); }
.section .wrap { display: grid; gap: var(--space-8); }
.section--paper { background: var(--color-paper); border-top: var(--line-thin) solid var(--color-ink); border-bottom: var(--line-thin) solid var(--color-ink); }

/* The hero: the studio film on a dark stage the width of the screen; the film's own edges fall
   to black, so it has no frame. */
.hero { background: var(--color-film); color: var(--color-on-ink); }
.hero .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-6) var(--space-12); padding-top: var(--space-6); padding-bottom: var(--space-6); }
.hero-copy { flex: 1 1 var(--size-basis-l); min-width: 0; display: grid; gap: var(--space-6); }
.hero-copy .lede { color: var(--color-on-ink-body); }
.theatre { position: relative; flex: 0 1 auto; width: min(100%, var(--size-theatre)); aspect-ratio: 9 / 16; margin-inline: auto; }
.theatre video, .theatre .poster {
  display: block; width: 100%; height: 100%; object-fit: cover;
  mask-image: linear-gradient(to right, transparent, var(--color-film) var(--size-fade), var(--color-film) calc(100% - var(--size-fade)), transparent),
    linear-gradient(transparent, var(--color-film) var(--size-fade), var(--color-film) calc(100% - var(--size-fade)), transparent);
  mask-composite: intersect;
}
.theatre .poster { display: none; }
.replay { position: absolute; right: 0; bottom: var(--space-6); }

/* Each game: its own title screen, then what it is and where it stands. */
.games { display: grid; grid-template-columns: repeat(auto-fit, minmax(var(--size-col-l), 1fr)); gap: var(--space-8); }
.game { display: flex; flex-direction: column; overflow: hidden; border: var(--line-thin) solid var(--color-ink); border-radius: var(--radius-l); text-decoration: none; }
.game-art { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 0; border-bottom: var(--line-thin) solid var(--color-ink); }
.game-body { display: grid; gap: var(--space-2); padding: var(--space-6) var(--space-7) var(--space-7); }
.game h3 { font-size: var(--text-4xl); }
.game p { font-size: var(--text-base); font-weight: var(--weight-bold); }
.game-status { margin-top: var(--space-2); font-size: var(--text-s); font-weight: var(--weight-black); }
.game--lime { background: var(--color-lime); color: var(--color-ink); box-shadow: var(--lip-m) var(--color-ink); transition: transform var(--motion-lift); }
.game--ink { background: var(--color-ink); color: var(--color-on-ink); box-shadow: var(--lip-m) var(--color-ink-deep); }
.game--ink .game-status { color: var(--color-lime); }
@media (hover: hover) { a.game:hover { transform: translateY(var(--motion-lift-y)); } }

.news { display: grid; grid-template-columns: repeat(auto-fit, minmax(var(--size-col-l), 1fr)); gap: var(--space-6); }
.news-card { display: flex; flex-direction: column; overflow: hidden; }
.news-art { height: var(--size-art-band); border-bottom: var(--line-thin) solid var(--color-ink); background: var(--color-stage); }
.news-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.news-body { display: grid; gap: var(--space-2); padding: var(--space-5) var(--space-5) var(--space-6); }
.news-body time { font-size: var(--text-s); font-weight: var(--weight-bold); color: var(--color-soft); }
.news-body h3 { font-size: var(--text-xl); font-weight: var(--weight-black); line-height: var(--leading-snug); }
.news-body p { font-size: var(--text-m); color: var(--color-soft); }

.about .wrap { display: flex; flex-wrap: wrap; gap: var(--space-12); align-items: center; }
.about-mark { flex: 0 1 var(--size-basis-s); min-width: 0; display: flex; justify-content: center; }
.about-mark img { width: var(--size-mark); transform: rotate(-6deg); filter: var(--outline-drop); }
.about-copy { flex: 1 1 var(--size-basis-m); min-width: 0; display: grid; gap: var(--space-4); }
.about-copy p { font-size: var(--text-l); color: var(--color-soft); }

@media (prefers-reduced-motion: reduce) {
  .theatre:not(.is-playing) video { display: none; }
  .theatre:not(.is-playing) .poster { display: block; }
  .game, a.game:hover { transition: none; transform: none; }
}
