/* fogkiss — floating in the middle of the universe */
:root {
  --bg: #000000;
  --text: #f2f4f8;
  --muted: rgba(226, 230, 238, 0.52);
  --font: "IBM Plex Sans", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC",
    "Noto Sans CJK SC", "Microsoft YaHei", system-ui, sans-serif;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans-300.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}

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

html,
body {
  height: 100%;
  background: #000;
  color-scheme: dark;
}

html {
  background: #000;
}

body {
  margin: 0;
  min-height: 100svh;
  font-family: var(--font);
  font-weight: 300;
  color: var(--text);
  background: #000;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  touch-action: none;
  overscroll-behavior: none;
}

::selection {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

a {
  color: inherit;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: 0.4rem 0.65rem;
  background: #000;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.skip:focus {
  top: 1rem;
}

#space-back,
#space-front,
.vignette,
.grain {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#space-back {
  z-index: 0;
  background: #000;
}

#space-front {
  z-index: 3;
}

.vignette {
  z-index: 4;
  background: radial-gradient(
    ellipse 82% 72% at 50% 50%,
    transparent 42%,
    rgba(0, 0, 0, 0.18) 78%,
    rgba(0, 0, 0, 0.48) 100%
  );
}

.grain {
  z-index: 5;
  opacity: 0.018;
  background: url("../img/grain.png") repeat;
}

main {
  position: relative;
  z-index: 2;
  height: 100svh;
  width: 100%;
  pointer-events: none;
}

.brand {
  position: absolute;
  right: 4.2vw;
  bottom: 5.2vh;
  text-align: right;
  pointer-events: auto;
  max-width: min(92vw, 24rem);
}

.wordmark {
  margin: 0;
  font-family: var(--font);
  font-weight: 300;
  font-size: clamp(1.45rem, 3.6vw, 2.05rem);
  letter-spacing: 0.42em;
  padding-left: 0.42em;
  line-height: 1;
  color: rgba(248, 249, 252, 0.94);
  text-shadow: 0 0 28px rgba(255, 255, 255, 0.2);
  white-space: nowrap;
}

.tagline {
  margin: 0.75rem 0 0;
  font-weight: 300;
  font-size: clamp(0.72rem, 1.45vw, 0.88rem);
  letter-spacing: 0.14em;
  line-height: 1.55;
  color: rgba(226, 230, 238, 0.42);
}

.contact {
  position: absolute;
  pointer-events: auto;
  text-decoration: none;
  font-weight: 300;
  font-size: clamp(0.95rem, 2.1vw, 1.18rem);
  letter-spacing: 0.14em;
  color: rgba(230, 234, 242, 0.7);
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.12);
  white-space: nowrap;
  transition: color 0.35s ease;
}
.contact:hover,
.contact:focus-visible { color: rgba(255, 255, 255, 0.95); }

.mail { left: 5vw; top: 46%; }
.tg   { right: 5.2vw; top: 18%; }
.film { left: 5vw; bottom: 24%; }

@media (max-width: 820px) {
  .mail,
  .tg,
  .film {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }
  .mail { top: 16%; bottom: auto; }
  .tg { top: 24%; bottom: auto; }
  .film { top: 32%; bottom: auto; }
  .brand { right: 6vw; bottom: 7vh; }
  .wordmark { font-size: clamp(1.35rem, 7vw, 1.85rem); letter-spacing: 0.32em; }
}

@media (prefers-reduced-motion: reduce) {
  .bob,
  .wordmark-inner {
    animation: none;
  }
}
