/* The colours and type are longlost.no's (HomepageV2 src/styles/tokens.css), the few this page uses. */
@font-face {
  font-family: 'DM Sans Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 1000;
  src: url('/fonts/dm-sans-latin.woff2') format('woff2-variations');
}

:root {
  --bg: #06090c;
  --text: #f3f2ee;
  --text-secondary: #b1b2af;
  --accent: #f2573d;
  --accent-fill: #ce4a34;
  --accent-fill-hover: #c24631;
  color-scheme: dark;
}

html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans Variable', 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* The whole window: first the title slide with the consent banner, then the deck. */
.pitch {
  min-height: 100vh;
  min-height: 100dvh;
}

/* The deck's title slide, from our own art. The shade at the foot is for the banner. */
.poster {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 12vh 1rem 0;
  background: url('/poster.webp') center 30% / cover no-repeat;
}

.poster::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(6 9 12 / 90%) 0, rgb(6 9 12 / 0%) 45%);
}

.poster__title {
  position: relative;
  z-index: 1;
  margin: 0;
}

.poster__title img {
  display: block;
  width: min(64vw, 44rem);
  height: auto;
}

.consent {
  position: fixed;
  z-index: 2;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  width: min(100% - 2rem, 56rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 4px;
  background: rgb(13 16 19 / 94%);
  box-shadow: 0 24px 48px rgb(0 0 0 / 50%);
}

.consent__title {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 600;
}

.consent__text p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.consent__text a {
  color: var(--text);
  text-underline-offset: 3px;
}

.consent__actions {
  display: flex;
  flex: none;
  align-items: center;
  gap: 1.25rem;
}

.consent__accept {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.85rem 1.25rem;
  border-radius: 3px;
  background: var(--accent-fill);
  color: #fff;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.consent__accept:hover {
  background: var(--accent-fill-hover);
}

.consent__open {
  color: var(--accent);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  text-underline-offset: 4px;
  white-space: nowrap;
}

.consent__open:hover {
  text-decoration: underline;
}

@media (max-width: 40rem) {
  .consent {
    flex-direction: column;
    align-items: stretch;
    bottom: 1rem;
  }

  .consent__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    text-align: center;
  }
}

/* A phone on its side: the banner takes the lower half, so the logo moves up out of its way. */
@media (max-height: 30rem) {
  .poster {
    place-items: start center;
    padding-top: 1.5rem;
  }

  .poster__title img {
    width: min(50vw, 22rem);
  }
}

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

.deck {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
