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

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

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/source-serif-4-400.woff2") format("woff2");
}

:root {
  --navy: #0B1B33;
  --navy-deep: #060F1F;
  --navy-light: #D9E3F2;
  --ember: #FF9F63;
  --white: #fff;

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;

  --gutter: clamp(1rem, 4vw, 2.5rem);
}

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

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--white);
  background: var(--navy);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--navy) url("../media/hero-poster.jpg") 68% center / cover no-repeat;
  pointer-events: none;
}

.backdrop video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% center;
}

.backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 15, 31, 0.88) 0%, rgba(6, 15, 31, 0.55) 55%, rgba(6, 15, 31, 0.15) 100%),
    linear-gradient(0deg, rgba(6, 15, 31, 0.7) 0%, transparent 30%);
}

.site-header,
.hero,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem var(--gutter);
}

.logo {
  display: block;
  width: 9.5rem;
  color: var(--white);
}

.logo svg {
  display: block;
  width: 100%;
  height: auto;
}

.video-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.12s ease, border-color 0.12s ease;
}

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

.video-toggle svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.video-toggle.is-playing .icon-play,
.video-toggle:not(.is-playing) .icon-pause {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .video-toggle:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.7);
  }
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem var(--gutter) 4rem;
}

.hero h1 {
  max-width: 10ch;
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 1.6rem + 5vw, 5rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.hero p {
  max-width: 34ch;
  margin-top: 2rem;
  font-family: var(--font-serif);
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  line-height: 1.55;
  color: var(--navy-light);
  text-wrap: pretty;
}

.site-footer {
  padding: 1.5rem var(--gutter) 2rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--navy-light);
}

::selection {
  color: var(--navy);
  background: var(--ember);
}

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

@media (min-width: 768px) {
  .site-header {
    padding-top: 2rem;
  }

  .logo {
    width: 12.5rem;
  }

  .hero {
    padding-left: calc(var(--gutter) + 6vw);
    padding-bottom: 6rem;
  }

  .hero p {
    margin-left: 18%;
  }

  .site-footer {
    padding-bottom: 3rem;
  }
}

@media (min-width: 1024px) {
  .hero {
    padding-left: calc(var(--gutter) + 9vw);
  }

  .hero h1 {
    font-size: calc(clamp(2.75rem, 1.6rem + 5vw, 5rem) * 1.08);
  }

  .hero p {
    margin-top: 3rem;
    margin-left: 26%;
  }
}

@media (min-width: 1536px) {
  .hero {
    padding-left: 12vw;
  }

  .hero h1 {
    font-size: 5.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .video-toggle {
    transition: none;
  }
}
