@font-face {
  font-family: Inter;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: #fff;
  color: #1e293b;
  font: 1rem/1.6 Inter, "Segoe UI", -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

main {
  width: min(100%, 60rem);
  margin-inline: auto;
  padding: 4rem 1.5rem;
}

.publication-header { text-align: center; }

.publication-title {
  margin: 0 auto;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
  text-wrap: balance;
}

.publication-authors {
  margin: 1.6rem 0 0;
  font-size: 1.25rem;
  font-weight: 500;
}

.teaser {
  position: relative;
  margin-top: 3rem;
  border-radius: 1rem;
  overflow: hidden;
  background: #080a0c;
  box-shadow: 0 10px 15px -3px rgb(15 23 42 / 12%), 0 4px 6px -4px rgb(15 23 42 / 10%);
}

video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}

.play-button {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: white;
  cursor: pointer;
}

.play-icon {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  border: 1px solid rgb(255 255 255 / 70%);
  border-radius: 50%;
  background: rgb(15 23 42 / 82%);
}

.play-button[hidden] { display: none; }
.play-button svg { transform: translateX(1px); }
.play-button:hover .play-icon { background: #1e293b; }
.play-button:focus-visible { outline-offset: -4px; }

:focus-visible { outline: 3px solid #2563eb; outline-offset: 3px; }
video:focus-visible { outline-offset: -3px; }

footer {
  margin-top: auto;
  padding: 1.5rem;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
  text-align: center;
  font-size: 0.875rem;
  color: #64748b;
}

footer a { color: #475569; text-underline-offset: 0.2em; }
footer a:hover { color: #1d4ed8; }

@media (max-width: 48rem) {
  main { padding: 2rem 1rem 3rem; }
  .publication-title { font-size: 2.5rem; line-height: 1.2; }
  .publication-authors { margin-top: 1.25rem; font-size: 1rem; }
  .teaser { margin-top: 2rem; }
}

@media (max-width: 30rem) {
  main { padding-inline: 0.75rem; }
  .publication-title { font-size: 2rem; }
  .teaser { border-radius: 0.75rem; }
  .play-icon { width: 3.25rem; height: 3.25rem; }
}
