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

:root {
  --ink: #050807;
  --text: #e9f1ec;
  --text-quiet: rgba(233, 241, 236, 0.5);
  color-scheme: dark;
}

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

html {
  height: 100%;
  background: var(--ink);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  background: var(--ink);
  color: var(--text);
  font-family: "Inter Konsiens", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* The still picture behind everything: what shows without WebGL, before the first frame, or without scripts. */
.sky {
  position: fixed;
  inset: 0;
  height: 100vh;
  height: 100lvh;
  z-index: 0;
  background:
    radial-gradient(60% 34% at 50% 47%, rgba(3, 6, 5, 0.75), transparent 72%),
    linear-gradient(203deg, transparent 14%, rgba(28, 120, 80, 0.20) 24%, rgba(205, 240, 218, 0.22) 28.5%, rgba(28, 120, 80, 0.18) 32%, transparent 44%),
    linear-gradient(196deg, transparent 58%, rgba(22, 104, 70, 0.18) 68%, rgba(196, 232, 200, 0.16) 72%, rgba(22, 104, 70, 0.14) 75%, transparent 86%),
    radial-gradient(90% 60% at 30% 18%, rgba(18, 82, 58, 0.30), transparent 70%),
    #030605;
}

/* The moving light. It is drawn small and scaled up: the picture is soft, so nothing is lost. */
.light {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100lvh;
  z-index: 1;
  display: block;
  opacity: 0;
  transition: opacity 2.4s ease;
}
.light.on { opacity: 1; }

.stage {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 16px 64px;
  padding:
    max(24px, env(safe-area-inset-top))
    max(16px, env(safe-area-inset-right))
    calc(max(24px, env(safe-area-inset-bottom)) + 5svh)
    max(16px, env(safe-area-inset-left));
}

.mark {
  margin: 0;
  line-height: 0;
  font-size: 1rem;
}
.mark img,
.mark a {
  display: block;
}
.mark img {
  width: min(66vw, 300px);
  height: auto;
}

.state {
  margin: clamp(30px, 6.5vw, 48px) 0 0;
  font-size: clamp(15px, 0.9rem + 0.35vw, 19px);
  font-weight: 340;
  letter-spacing: 0.06em;
  line-height: 1.4;
  color: var(--text);
}

.state-en {
  margin: 0.5em 0 0;
  font-size: clamp(12px, 0.7rem + 0.2vw, 14px);
  font-weight: 300;
  letter-spacing: 0.08em;
  line-height: 1.4;
  color: var(--text-quiet);
}

.state a,
.state-en a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
  text-decoration-color: rgba(233, 241, 236, 0.35);
}
.state a:hover,
.state a:focus-visible { text-decoration-color: currentColor; }
a:focus-visible { outline: 1px solid rgba(233, 241, 236, 0.6); outline-offset: 6px; border-radius: 2px; }

/* The words come up gently after the logo. */
.mark, .state, .state-en {
  animation: rise 1.8s cubic-bezier(0.2, 0.6, 0.2, 1) both;
}
.state { animation-delay: 0.5s; }
.state-en { animation-delay: 0.8s; }

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

@media (min-width: 900px) {
  .mark img { width: 440px; }
}

@media (prefers-reduced-motion: reduce) {
  .mark, .state, .state-en { animation: none; }
  .light { transition: none; }
}
