/* Tokens */
:root {
  --ink-0: #03060c;
  --ink-1: #070c16;
  --ink-2: #121a26;
  --ink-3: #1c2738;
  --ink-4: #3a4a63;
  --ink-5: #8aa0bf;
  --ink-6: #cfdcec;
  --ink-7: #f4f7fb;
  --cyan: #7CFCE4;
  --cyan-hover: #b5fff1;
  --display: 'Instrument Serif', Georgia, serif;
  --sans: 'IBM Plex Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --gutter: 20px;
}

@media (min-width: 768px) {
  :root {
    --gutter: 48px;
  }
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

html {
  scroll-behavior: smooth
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto
  }
}

body {
  background: var(--ink-0);
  color: var(--ink-6);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased
}

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

a {
  color: var(--cyan);
  text-decoration: none
}

a:hover {
  color: var(--cyan-hover)
}

button {
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
  font: inherit
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 150ms, border-color 150ms, color 150ms
}

.btn svg {
  flex-shrink: 0
}

.btn-primary {
  background: var(--cyan);
  color: var(--ink-0);
  font-weight: 600
}

.btn-primary:hover {
  background: var(--cyan-hover);
  color: var(--ink-0)
}

.btn-ghost {
  border: 1px solid rgba(207, 220, 236, .4);
  background: rgba(3, 6, 12, .45);
  color: var(--ink-7)
}

.btn-ghost:hover {
  border-color: var(--ink-6);
  color: var(--ink-7)
}

.btn-lg {
  min-height: 56px;
  padding: 0 30px;
  font-size: 17px
}

.btn-icon {
  width: 44px;
  padding: 0
}

/* Header */
.site-header {
  position: relative;
  z-index: 50;
  height: 72px;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--ink-2)
}

.site-header--overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  border-bottom: 0
}

@media (min-width: 768px) {
  .site-header {
    height: 88px
  }
}

.site-header__logo img {
  height: 18px;
  width: auto
}

@media (min-width: 768px) {
  .site-header__logo img {
    height: 22px
  }
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 8px
}

.site-header__trailer,
.site-header__wishlist-long {
  display: none
}

@media (min-width: 768px) {
  .site-header__actions {
    gap: 12px
  }

  .site-header__trailer,
  .site-header__wishlist-long {
    display: inline
  }

  .site-header__trailer {
    display: inline-flex
  }

  .site-header__wishlist-short {
    display: none
  }
}

/* Menu */
.menu {
  position: relative
}

.menu__panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  padding: 8px;
  border: 1px solid var(--ink-3);
  border-radius: 12px;
  background: var(--ink-1);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .5);
  display: none;
  flex-direction: column
}

.menu__panel.is-open {
  display: flex
}

.menu__panel a {
  padding: 12px 14px;
  border-radius: 8px;
  color: var(--ink-6);
  font-size: 15px
}

.menu__panel a:hover {
  background: var(--ink-2);
  color: var(--ink-7)
}

/* Footer */
.site-footer {
  padding: 32px var(--gutter);
  border-top: 1px solid var(--ink-2);
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: var(--ink-5)
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px
}

.site-footer nav a {
  color: var(--ink-6);
  padding: 8px 0
}

.site-footer nav a:hover {
  color: var(--ink-7)
}

/* Page title block (press kit, research) */
.page-head {
  padding: 64px var(--gutter) 48px;
  max-width: 1200px
}

@media (min-width: 1024px) {
  .page-head {
    padding: 88px 120px 64px
  }
}

.page-head h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(56px, 8vw, 88px);
  line-height: 1;
  color: var(--ink-7)
}

.page-head p {
  margin-top: 16px;
  max-width: 820px;
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-6)
}

.page-head .meta {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-5)
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  padding: 24px;
  background: rgba(0, 0, 0, .9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
  cursor: zoom-out
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto
}

.lightbox img,
.lightbox iframe {
  max-width: 95vw;
  max-height: 90vh;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .6)
}

.lightbox iframe {
  width: min(95vw, 1280px);
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0
}

.lightbox__close {
  position: absolute;
  top: 12px;
  right: 16px;
  width: 44px;
  height: 44px;
  font-size: 28px;
  line-height: 1;
  color: #fff;
  opacity: .75
}

.lightbox__close:hover {
  opacity: 1
}
