@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(/fonts/ibm-plex-sans-latin-300-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/ibm-plex-sans-latin-400-normal.woff2) format('woff2');
}

:root {
  color-scheme: dark;
  --bg: #121212;
  --text: #c4c4c4;
  --muted: #747474;
  --rule: #353535;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background-color: var(--bg);
  background-image: radial-gradient(120% 85% at 50% 40%, #1b1b1b 0%, #131313 58%, #0d0d0d 100%);
  color: var(--text);
  font-family: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

#sky {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

main {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
}

.mark {
  display: grid;
  place-items: center;
  padding: 0 16px;
}

.mark h1 { margin: 0; line-height: 0; }

.mark img {
  width: min(580px, 80vw);
  height: auto;
  opacity: 0;
  animation: arrive 1.8s cubic-bezier(.2, .7, .2, 1) .15s forwards;
}

footer {
  padding: 0 16px max(6vh, 28px);
  padding-bottom: max(6vh, 28px, env(safe-area-inset-bottom));
  text-align: center;
}

.slogan {
  margin: 0;
  font-weight: 300;
  font-size: clamp(18px, 2.1vw, 26px);
  letter-spacing: .005em;
  color: var(--text);
  opacity: 0;
  animation: arrive 1.8s cubic-bezier(.2, .7, .2, 1) 1s forwards;
}

.contact {
  margin: 14px 0 0;
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  opacity: 0;
  animation: arrive 1.8s cubic-bezier(.2, .7, .2, 1) 1.5s forwards;
}

.contact a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1px;
  transition: color .2s, border-color .2s;
}

.contact a:hover,
.contact a:focus-visible {
  color: #b0b0b0;
  border-color: #6a6a6a;
  outline: none;
}

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

@media (prefers-reduced-motion: reduce) {
  .mark img, .slogan, .contact { animation: none; opacity: 1; }
}
