@font-face {
  font-family: Studio Sans;
  src: url("assets/body.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Studio Sans;
  src: url("assets/bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: Playfair;
  src: url("assets/playfair.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --navy: #101b36;
  --midnight: #080f23;
  --cream: #fff9ed;
  --warm-white: #fff4dc;
  --gold: #fbd38c;
  --ink: #172541;
  --muted: #586075;
  --serif: Playfair, Georgia, serif;
  color: var(--ink);
  background: var(--cream);
  font: 1rem/1.55 "Studio Sans", system-ui, sans-serif;
  scroll-behavior: smooth;
}
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid #438bc5; outline-offset: 4px; }
.wrap { width: min(1200px, calc(100% - 86px)); margin-inline: auto; }
.skip { position: fixed; z-index: 10; inset: 8px auto auto 8px; translate: 0 -170%; padding: .7em 1em; background: var(--cream); }
.skip:focus { translate: 0; }

.header { background: var(--midnight); color: var(--warm-white); border-bottom: 1px solid #e6c38045; }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: center; min-height: 78px; }
.brand { display: block; width: 103px; margin-block: 7px; }
nav { display: flex; align-items: center; gap: clamp(16px, 4vw, 49px); }
nav a { color: inherit; font-weight: 700; text-decoration: none; }
nav a:hover { color: var(--gold); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  width: fit-content;
  min-height: 44px;
  padding: .63rem 1.15rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: translate 180ms ease, background-color 180ms ease;
}
.button:hover { translate: 0 -2px; }
.button:active { translate: 0 1px; }
.nav-button { justify-self: end; color: var(--gold); }
.nav-button:hover { background-color: #d9a85421; }
.triangle { width: 0; height: 0; border-block: 5px solid transparent; border-left: 8px solid currentColor; }
.primary { color: #251d2b; border-color: #ffdea7; background: linear-gradient(#ffe3a7, #efba66); box-shadow: 0 3px 13px #e19a4038; }
.primary:hover { background: #ffe6b3; }

.hero {
  position: relative;
  padding-block: 0;
  isolation: isolate;
  overflow: hidden;
  color: var(--warm-white);
  background: #111b33;
  border-bottom: 2px solid #cfa96e;
}
.hero-scene, .hero::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-scene { z-index: -2; }
.hero-scene img { width: 100%; height: 100%; object-fit: cover; object-position: center 54%; }
.hero::after { content: ""; z-index: -1; background: linear-gradient(90deg, #091226f5 0%, #0a1528d1 24%, #0a152869 46%, transparent 70%), linear-gradient(0deg, #1118296e, transparent 24%); }
.hero-inner {
  display: grid;
  align-items: center;
  min-height: clamp(500px, 51vw, 810px);
  padding-block: 52px 65px;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 700; }
h1 { max-width: 10.5em; font-size: clamp(59px, 6.4vw, 105px); line-height: 1.01; letter-spacing: -.056em; text-shadow: 0 4px 25px #080d1d80; }
h1 em { color: var(--gold); font-family: Georgia, serif; font-weight: 400; }
.hero-copy p { max-width: 36ch; margin-top: 20px; color: #f9f4ea; font-size: clamp(1.07rem, 1.6vw, 1.3rem); text-wrap: pretty; }
.hero-copy .button { margin-top: 25px; }

.lineup {
  padding-block: clamp(48px, 5.6vw, 87px) clamp(58px, 7vw, 106px);
  color: var(--warm-white);
  background:
    linear-gradient(90deg, #080f23aa, #080f2338 55%, #080f232e),
    linear-gradient(0deg, #080f23b8, transparent 43%),
    #101b36 url("assets/storybook-lobby.webp") center top / cover no-repeat;
}
.lineup-heading h2 { text-shadow: 0 2px 15px #080f23; }
.lineup-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: clamp(22px, 3vw, 36px); }
h2 { font-size: clamp(2.65rem, 5vw, 4.65rem); line-height: 1.02; letter-spacing: -.045em; }
.surprise { color: #734315; border-color: #c69e65; background: #fff6e5; }
.surprise:hover { background: #fbe4b8; }
.surprise span { color: #a26a27; }
.show-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(15px, 2.1vw, 28px); }
.show-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #d7b987;
  border-radius: 21px;
  box-shadow: 0 12px 30px #080f2366;
  color: var(--ink);
  background: #fffdf7;
}
.show-picture { display: block; }
.poster-controls { display: none; }
.show-art { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; border-bottom: 3px solid var(--accent); }
.show-card.nia { --accent: #79ba93; }
.show-card.polly { --accent: #e5ab62; }
.show-card.cats { --accent: #76aacc; }
.show-copy { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: clamp(18px, 2vw, 29px); }
h3 { font-size: clamp(1.55rem, 2.6vw, 2.43rem); line-height: 1.1; letter-spacing: -.04em; }
.show-copy p { margin-block: .65rem 1.05rem; color: var(--muted); }
.show-button {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: auto;
  min-height: 42px;
  padding: .4rem .75rem;
  border: 1px solid #d9c39b;
  border-radius: 999px;
  background: #fff7e8;
  color: var(--ink);
  font-weight: 700;
  font-size: .92rem;
}
.show-button:hover { background: #f2dfb8; }
.cat-art { overflow: hidden; display: flex; justify-content: center; align-items: end; gap: 1%; background: radial-gradient(circle, #fef4b4, #ffca63); }
.cat-art img { height: 93%; width: 32%; object-fit: contain; object-position: bottom; }
.cat-art img:last-of-type { height: 82%; }

.studio {
  padding-block: clamp(45px, 7vw, 94px);
  color: var(--warm-white);
  border-block: 1px solid #d7b987;
  background: radial-gradient(ellipse at 30% 30%, #23395a, transparent 70%), var(--navy);
}
.studio-inner { display: grid; grid-template-columns: minmax(125px, .35fr) minmax(0, .65fr); align-items: center; gap: clamp(25px, 6vw, 88px); }
.studio-mark { width: min(100%, 255px); justify-self: end; filter: drop-shadow(0 8px 24px #e4c58f3c); }
.studio h2 { font-size: clamp(2.3rem, 4.65vw, 4.4rem); }
.studio p { max-width: 57ch; margin-block: .8rem; color: #f1e7d7; font-size: 1.1rem; }
.text-link { font-weight: 700; text-underline-offset: .24em; }
.studio .text-link { color: var(--gold); }

footer { background: var(--midnight); color: #f3e7d1; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; min-height: 87px; gap: 15px; }
.footer-inner .brand { width: 85px; }
.footer-inner > a:last-child { font-weight: 700; text-underline-offset: .23em; }

dialog {
  width: min(680px, calc(100% - 28px));
  max-height: calc(100% - 26px);
  padding: 0;
  border: 3px solid #cfa96e;
  border-radius: 23px;
  color: var(--ink);
  background: var(--cream);
  box-shadow: 0 20px 80px #080e2388;
}
dialog::backdrop { background: #080f23dd; }
html:has(dialog[open]) { overflow: hidden; }
.close {
  display: grid;
  place-items: center;
  position: absolute;
  z-index: 1;
  top: 9px;
  right: 9px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #cfa96e;
  border-radius: 50%;
  color: var(--ink);
  background: var(--cream);
  font-size: 1.65rem;
  line-height: 1;
}
.close:hover { background: #ffe4b7; }
.dialog-art { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.dialog-copy { padding: clamp(20px, 3vw, 36px); }
.dialog-copy h2 { font-size: clamp(2.2rem, 5.2vw, 3.65rem); }
.dialog-copy p { margin-top: .72rem; }
.dialog-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem 1rem; margin-top: 1.15rem; }
.show-logo { width: min(57%, 240px); margin-bottom: .8rem; }

@media (max-width: 940px) {
  .wrap { width: calc(100% - 56px); }
  .hero-scene img { object-position: 88% 61%; }
}
@media (max-width: 700px) {
  .wrap { width: calc(100% - 34px); }
  .header-inner { min-height: 63px; grid-template-columns: auto 1fr; gap: 10px; }
  .header .brand { width: 79px; }
  nav { justify-self: end; }
  .nav-button { display: none; }
  .hero-inner { min-height: 0; padding-block: 36px max(248px, 59vw); }
  .hero-copy { text-align: center; }
  .hero-copy p { margin: 14px auto 0; }
  .hero-copy .button { margin-top: 17px; }
  h1 { font-size: clamp(44px, 10.7vw, 69px); margin-inline: auto; }
  .hero-scene { inset: auto 0 0; height: auto; aspect-ratio: 1.51; }
  .hero-scene img { object-position: center 60%; }
  .hero::after { background: linear-gradient(180deg, #111b33 49%, #111b33ba 53%, #111b3300 64%), linear-gradient(0deg, #0a14244a, transparent 20%); }
  .lineup {
    background-image:
      linear-gradient(180deg, #080f236b, #080f231a 30%, #080f23b8),
      url("assets/storybook-lobby.webp");
    background-position: center, 65% top;
    background-size: auto, cover;
  }
  .lineup-heading { max-width: 490px; margin-inline: auto; }
  .lineup-heading h2 { font-size: clamp(2.05rem, 9vw, 3.4rem); }
  .surprise { font-size: .86rem; padding-inline: .73rem; }
  .lineup > .wrap { max-width: 490px; }
  .show-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    gap: 12px;
    margin-inline: -17px;
    padding: 0 17px 12px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-padding-inline: 17px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .show-card {
    position: relative;
    isolation: isolate;
    justify-content: flex-end;
    aspect-ratio: 2 / 3;
    border-radius: 20px;
    background: var(--navy);
    box-shadow: 0 5px 10px #35251224;
    scroll-snap-align: start;
  }
  .show-card:focus-within { outline: 3px solid #438bc5; outline-offset: 2px; }
  .show-picture, .show-art { width: 100%; height: 100%; }
  .show-picture { position: absolute; inset: 0; z-index: -1; }
  .show-art { border: 0; }
  .show-copy {
    flex: 0 0 auto;
    padding: 65px 18px 18px;
    color: var(--warm-white);
    background: linear-gradient(transparent, #070d20eb 67%, #070d20);
  }
  .show-copy h3 { font-size: clamp(1.65rem, 7vw, 2.4rem); }
  .show-copy p { display: none; }
  .show-button {
    min-height: 36px;
    margin-top: .65rem;
    border-color: #fbd38c80;
    color: var(--gold);
    background: #080f237a;
  }
  .show-button:hover { background: #26314b; }
  .show-button::after { content: ""; position: absolute; inset: 0; }
  .poster-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 3px;
  }
  .poster-position { min-width: 4.3em; color: var(--warm-white); font-size: .87rem; text-align: center; }
  .poster-arrow {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid #c69e65;
    border-radius: 50%;
    color: var(--ink);
    background: #fff6e5;
    font-size: 1.25rem;
  }
  .poster-arrow:disabled { opacity: .42; cursor: default; }
  .studio-inner { grid-template-columns: 1fr; gap: 16px; }
  .studio-mark { width: 126px; justify-self: start; }
  .studio p { font-size: 1rem; }
  .footer-inner { font-size: .86rem; }
  .footer-inner .brand { width: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  .button { transition: none; }
}
