@font-face {
  font-family: Rubik;
  src: url("assets/rubik.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f6f3ed;
  --ink: #272522;
  --gold: #e2ae37;
  --muted: #605a51;
  --edge: clamp(1.25rem, 5.3vw, 6rem);
  font-family: Rubik, system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
}

*, *::before, *::after { box-sizing: border-box; }

body, h1, h2, p { margin: 0; }

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-underline-offset: 0.25em; }

a:focus-visible, button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

button { font: inherit; color: inherit; }

.poster {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
  grid-template-rows: auto 1fr auto;
  grid-template-areas:
    "language photo"
    "name photo"
    "links photo";
  min-height: 100vh;
  min-height: 100svh;
}

.poster-header {
  grid-area: language;
  padding: clamp(0.8rem, 3vh, 2.2rem) var(--edge) 0;
}

.languages {
  display: flex;
  gap: 0.3rem;
  align-items: center;
}

.languages a {
  display: inline-grid;
  min-width: 2.75rem;
  min-height: 2.75rem;
  place-items: center;
  border: 1px solid transparent;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1;
  text-decoration: none;
}

.languages a[aria-current="page"] {
  border-color: currentColor;
  border-radius: 50%;
  color: var(--ink);
}

.languages a:hover { color: var(--ink); text-decoration: underline; }

.poster-title {
  grid-area: name;
  align-self: center;
  padding: clamp(1.5rem, 4.2vh, 3rem) var(--edge);
}

.poster-title img {
  width: min(100%, 34rem);
  max-height: 65svh;
  object-fit: contain;
  object-position: left center;
}

.poster-image {
  position: relative;
  grid-area: photo;
  background: #3b3732;
}

.poster-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 60%;
}

.film-trigger {
  position: absolute;
  z-index: 1;
  bottom: clamp(2rem, 9vh, 6rem);
  left: 0;
  display: grid;
  width: clamp(4rem, 7.1vw, 6.7rem);
  aspect-ratio: 1;
  place-items: center;
  transform: translateX(-50%);
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
}

.film-trigger:hover { background: var(--paper); }

.film-trigger span {
  width: 0;
  height: 0;
  margin-left: 0.26rem;
  border-top: 0.59rem solid transparent;
  border-bottom: 0.59rem solid transparent;
  border-left: 0.96rem solid currentColor;
}

.poster-links {
  grid-area: links;
  padding: 0 var(--edge) clamp(1rem, 3.6vh, 2.75rem);
}

.social, .legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 clamp(1.1rem, 2.7vw, 2.45rem);
}

.social a, .legal-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  min-height: 2.75rem;
}

.social a {
  font-size: clamp(1.23rem, 2.15vw, 1.95rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  text-decoration: none;
}

.social span {
  font-family: system-ui, sans-serif;
  font-size: 0.63em;
  font-weight: 400;
}

.social a:hover { text-decoration: underline; }

.legal-links a {
  color: var(--muted);
  font-size: 0.76rem;
}

.film-dialog {
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: clamp(0.55rem, 2vw, 1.45rem);
  border: 0;
  background: #181715;
  color: var(--paper);
  color-scheme: dark;
}

.film-dialog[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 0.4rem;
}

.film-dialog::backdrop { background: #181715; }

.film-close, .film-choices button {
  cursor: pointer;
  background: transparent;
}

.film-close {
  justify-self: end;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid #847d72;
  border-radius: 50%;
  font-size: 1.65rem;
  line-height: 1;
}

.film-media { min-height: 0; }

.film-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.film-media video[hidden] { display: none; }

.film-choices {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 0.75rem;
}

.film-choices button {
  min-height: 2.75rem;
  padding: 0.4rem 0.55rem;
  border: 0;
  border-bottom: 1px solid transparent;
  font-size: 0.85rem;
}

.film-choices button[aria-pressed="true"] {
  border-color: var(--gold);
  color: var(--gold);
}

.film-close:hover, .film-choices button:hover { color: var(--gold); }

.shell {
  width: min(100% - var(--edge) * 2, 42rem);
  margin-inline: auto;
}

.legal { padding-block: 1.5rem 2rem; overflow-wrap: anywhere; }

.legal h1 {
  margin: 1.25rem 0 1.2rem;
  font-size: clamp(2rem, 6vw, 3.2rem);
  font-weight: 500;
  line-height: 1.1;
}

.legal h2 { margin: 1.65rem 0 0.35rem; font-size: 1.1rem; font-weight: 500; }
.legal address { font-style: normal; }
.legal p + p { margin-top: 0.7rem; }

.legal-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 1rem;
  padding-top: 1rem;
}

.text-link { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--muted); }

.footer {
  padding-block: 0.6rem 1.5rem;
  border-top: 1px solid #d5cfc4;
}

@media (max-width: 48rem) {
  .poster {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto minmax(14rem, 1fr) auto;
    grid-template-areas: "language" "name" "photo" "links";
  }

  .poster-header { padding-top: 0.55rem; }

  .poster-title { padding-block: 0.55rem 1.35rem; }
  .poster-title img { width: min(66vw, 15rem); max-height: none; }

  .poster-image img { object-position: 50% 57%; }

  .film-trigger {
    right: var(--edge);
    bottom: 1rem;
    left: auto;
    transform: none;
  }

  .poster-links { padding-block: 0.5rem 0.25rem; }
  .social a { font-size: clamp(1.35rem, 5vw, 1.7rem); }
}
