:root {
  color-scheme: dark;
  --background: #17130e;
  --text: #fffaf1;
  --muted: #e8ded0;
  --accent: #ffc16a;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 20rem;
  background: var(--background);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: var(--background);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

.background-media {
  position: fixed;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  background: var(--background) url("/zug-sunset-poster.webp") center / cover no-repeat;
}

.background-media::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgb(8 10 8 / 82%) 0%, rgb(8 10 8 / 48%) 44%, rgb(8 10 8 / 10%) 76%),
    linear-gradient(0deg, rgb(8 10 8 / 74%) 0%, transparent 58%);
  content: "";
}

.background-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 54% center;
}

.page-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100svh;
  padding: clamp(1.5rem, 4vw, 3.5rem);
}

.site-header {
  align-self: start;
}

.intro {
  align-self: end;
  width: min(100%, 46rem);
  padding-block: clamp(2rem, 7vh, 5rem) 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-mark {
  display: inline-grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border: 1px solid rgb(255 250 241 / 55%);
  border-radius: 50%;
  color: var(--accent);
  background: rgb(8 10 8 / 38%);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(3.5rem, 9vw, 6rem);
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 0.92;
  text-wrap: balance;
}

.lead {
  max-width: 26ch;
  margin: 1.75rem 0 0;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  line-height: 1.35;
}

.supporting {
  max-width: 38ch;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1rem;
}

@media (max-width: 30rem) {
  .page-shell {
    padding: 1.5rem;
  }

  .background-media::after {
    background:
      linear-gradient(0deg, rgb(8 10 8 / 88%) 0%, rgb(8 10 8 / 48%) 62%, rgb(8 10 8 / 14%) 100%),
      linear-gradient(90deg, rgb(8 10 8 / 40%), transparent 75%);
  }
}

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