:root {
  color-scheme: dark;
  --bg: #050505;
  --paper: #ffffff;
  --ink: #f4f1ea;
  --muted: rgb(244 241 234 / 58%);
  --quiet: rgb(244 241 234 / 36%);
  --line: rgb(244 241 234 / 13%);
  --light-x: 50%;
  --light-y: 50%;
  --light-opacity: 0;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
}

body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 2rem;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family:
    "SF Pro Display", "SF Pro Text", Inter, ui-sans-serif, system-ui,
    -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: geometricprecision;
  -webkit-font-smoothing: antialiased;
  transition: color 720ms ease;
}

body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: 0;
}

body::before {
  inset: 0;
  background:
    radial-gradient(circle at 50% 46%, rgb(244 241 234 / 2.5%), transparent 26rem),
    linear-gradient(180deg, #080808 0%, var(--bg) 48%, #030303 100%);
  transition: opacity 720ms ease;
}

body::after {
  inset: 0;
  background-image:
    linear-gradient(rgb(255 255 255 / 1.6%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 1.4%) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(circle at 50% 50%, black, transparent 62%);
  opacity: 0.28;
  transition: opacity 720ms ease;
}

.lighthouse {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: var(--light-opacity);
  background: radial-gradient(
    circle 2.2rem at var(--light-x) var(--light-y),
    #ffffff 0%,
    #ffffff 32%,
    rgb(255 255 255 / 88%) 46%,
    rgb(255 255 255 / 34%) 68%,
    transparent 100%
  );
  filter: blur(0.1px);
  transition: opacity 160ms ease;
}

.site {
  width: min(100%, 42rem);
  margin-inline: auto;
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: enter 1200ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

h1 {
  width: 100%;
  margin: 0;
  color: var(--ink);
  font-family:
    "SF Pro Display", Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(2.3rem, 6.4vw, 4.8rem);
  font-weight: 760;
  letter-spacing: 0.18em;
  line-height: 1;
  text-indent: 0.18em;
  text-align: center;
  transition: color 720ms ease;
}

.statement {
  max-width: 34rem;
  margin: 3.15rem auto 0;
  color: var(--muted);
  font-family:
    "SF Pro Text", Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(1.02rem, 2vw, 1.22rem);
  font-weight: 360;
  letter-spacing: -0.012em;
  line-height: 1.65;
  text-align: center;
  transition: color 720ms ease;
}

.contact {
  width: 100%;
  margin: 2.4rem 0 0;
  color: rgb(244 241 234 / 42%);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  line-height: 1.7;
  text-align: center;
  user-select: text;
  transition: color 720ms ease;
}

.pavilion-reveal {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: var(--light-opacity);
  -webkit-mask-image: radial-gradient(
    circle 2.55rem at var(--light-x) var(--light-y),
    black 0%,
    black 52%,
    rgb(0 0 0 / 64%) 70%,
    transparent 100%
  );
  mask-image: radial-gradient(
    circle 2.55rem at var(--light-x) var(--light-y),
    black 0%,
    black 52%,
    rgb(0 0 0 / 64%) 70%,
    transparent 100%
  );
  transition: opacity 160ms ease;
}

.pavilion-reveal img {
  position: absolute;
  left: 50%;
  bottom: 5.25rem;
  width: clamp(14rem, 28vw, 20rem);
  height: auto;
  display: block;
  mix-blend-mode: multiply;
  transform: translateX(-50%);
  user-select: none;
}

.location {
  position: fixed;
  left: 50%;
  bottom: 2rem;
  z-index: 3;
  margin: 0;
  color: var(--quiet);
  font-size: 0.68rem;
  font-weight: 520;
  letter-spacing: 0.22em;
  line-height: 1.4;
  text-transform: uppercase;
  text-align: center;
  transform: translateX(-50%);
  white-space: nowrap;
  transition: color 720ms ease;
}

body.is-inverted::before,
body.is-inverted::after {
  opacity: 0;
}

body.is-inverted .lighthouse {
  opacity: 0;
}

body.is-inverted h1,
body.is-inverted .statement,
body.is-inverted .contact,
body.is-inverted .location {
  color: #050505;
}

body.is-inverted .pavilion-reveal {
  opacity: 1;
  -webkit-mask-image: none;
  mask-image: none;
}

@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(0.7rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

@media (max-width: 640px) {
  body {
    padding: 1.5rem;
  }

  .statement {
    margin-top: 2.5rem;
  }

  .location {
    bottom: 1.5rem;
  }

  .pavilion-reveal img {
    bottom: 4.6rem;
    width: 13rem;
  }
}
