:root {
  --ink: #f7f4ee;
  --mute: #c9c0d4;
  --lime: #c8f04d;
  --void: #0a0614;
  --display: "Schibsted Grotesk", ui-sans-serif, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  background: var(--void);
  font-family: var(--display);
}

body {
  min-height: 100dvh;
  overflow-x: hidden;
}

.sky {
  position: fixed;
  inset: -6%;
  background-image: image-set(
    url("/bg.avif") type("image/avif"),
    url("/bg.webp") type("image/webp"),
    url("/bg.jpg") type("image/jpeg")
  );
  background-position: center 28%;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.06);
  animation: drift 28s ease-in-out infinite alternate;
  z-index: 0;
}

.scrim {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(6, 3, 14, 0.78) 0%, rgba(6, 3, 14, 0.42) 38%, rgba(6, 3, 14, 0.08) 64%, transparent 78%),
    linear-gradient(180deg, rgba(6, 3, 14, 0.28) 0%, transparent 22%, transparent 58%, rgba(6, 3, 14, 0.55) 100%);
}

.mast,
main {
  position: relative;
  z-index: 2;
}

.mast {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 28px 32px 0;
}

.mark {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

nav {
  display: flex;
  gap: 22px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

nav a:hover { color: var(--ink); }
nav a:focus-visible,
.cta:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

main {
  width: min(560px, calc(100% - 48px));
  padding: 18vh 32px 56px;
  animation: rise 0.9s ease-out both;
}

.kicker {
  margin: 0 0 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lime);
}

.kicker a,
.ca a {
  color: inherit;
  text-decoration: none;
}

.kicker a:hover,
.ca a:hover { text-decoration: underline; text-underline-offset: 3px; }

.kicker a:focus-visible,
.ca a:focus-visible,
nav a:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

.ca {
  margin: 0 0 18px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.45;
  letter-spacing: 0.02em;
  word-break: break-all;
  color: var(--mute);
  max-width: 42ch;
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 5.4vw, 58px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.02;
  text-wrap: balance;
}

.lede {
  margin: 0 0 28px;
  max-width: 36ch;
  font-size: 17px;
  line-height: 1.45;
  color: var(--mute);
}

.cta {
  display: inline-block;
  padding: 13px 22px;
  background: var(--lime);
  color: #111;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(200, 240, 77, 0.28);
}

@keyframes drift {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to { transform: scale(1.12) translate3d(-1.4%, -1.2%, 0); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 720px) {
  .sky { background-position: center 18%; }
  .scrim {
    background:
      linear-gradient(180deg, rgba(6, 3, 14, 0.2) 0%, transparent 28%, rgba(6, 3, 14, 0.55) 62%, rgba(6, 3, 14, 0.82) 100%);
  }
  .mast { padding: 20px 20px 0; }
  main {
    width: auto;
    padding: 42vh 20px 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sky, main { animation: none; }
  .cta { transition: none; }
}
