* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

html {
  overflow-x: clip;
  background: #000;
}

body {
  margin: 0;
  overflow-x: clip;
  overscroll-behavior-y: auto;
  background: #000;
}

.top {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100dvh;
  overflow: hidden;
  background: #000 url("esbg-low.jpg") center / cover no-repeat;
}

/* Medium-resolution intermediate layer between esbg-low.jpg and high-res .bg */
.top::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--stage-bg, none) center / cover no-repeat;
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 0;
  pointer-events: none;
}

.top.has-med::before {
  opacity: 1;
}

.top .bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.45s ease;
  z-index: 0;
  pointer-events: none;
}

.top .bg.is-loaded {
  opacity: 1;
}

.top .grain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.25;
  mix-blend-mode: overlay;
  contain: strict;
}

.top h1,
.top nav {
  position: relative;
  z-index: 2;
}

.top,
.top::before,
.top .bg,
.top .grain {
  user-select: none;
  -webkit-user-select: none;
}

img:not(.bg) {
  width: min(85vw, 350px);
  height: auto;
  pointer-events: none;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 0;
}

nav a {
  display: block;
  padding: 8px;
}

h1 {
  color: white;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  font-family: "IM Fell Double Pica", Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-style: normal;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: 0.02em;
  font-synthesis-weight: none;
  filter: blur(0.2px);
}

h1 .letter,
h1 .letter-space {
  display: inline-block;
  --fade-duration: 900ms;
  transition:
    opacity var(--fade-duration, 900ms) ease-out,
    filter var(--fade-duration, 900ms) ease-out;
  will-change: opacity, filter;
}

h1 .letter.is-hovered {
  /*opacity: 0.9;*/
  filter: blur(0.8px);
}

@media (prefers-reduced-motion: reduce) {
  h1 .letter,
  h1 .letter-space {
    transition: none;
    will-change: auto;
  }

  h1 .letter.is-hovered {
    opacity: 1;
    filter: none;
  }
}

nav svg {
  display: block;
  width: 24px;
  height: 24px;
  fill: #ffffff;
  filter: drop-shadow(0 2px 4px rgba(0, 10, 0, 0.15));
  transition: fill 0.1s ease;
}

nav a:hover svg,
nav a:focus-visible svg {
  fill: #d2e3f6;
}

a {
  all: unset;
  cursor: pointer;
}