/* Geist Pixel — SIL Open Font License, see fonts/OFL.txt */
@font-face {
  font-family: "Geist Pixel Grid";
  src: url("fonts/GeistPixel-Grid.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Geist Pixel Line";
  src: url("fonts/GeistPixel-Line.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Geist Pixel Square";
  src: url("fonts/GeistPixel-Square.woff2") format("woff2");
  font-display: swap;
}

:root {
  --bg: #efeee9;
  --ink: #111111;
  --pad: clamp(1.25rem, 6vw, 8rem);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0e0e;
    --ink: #e9e8e3;
  }
}

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

html,
body {
  height: 100%;
}

body {
  background: var(--bg);
  overflow: hidden;
  touch-action: none;
  font-family: "Geist Pixel Square", ui-monospace, Menlo, monospace;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

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

main {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--pad);
  color: var(--ink);
}

h1 {
  font-family: "Geist Pixel Grid", ui-monospace, Menlo, monospace;
  font-weight: 400;
  font-size: clamp(1.25rem, 8.6vw, 10rem); /* name is ~9.75em wide; 8.6vw fits inside the 6vw side padding */
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

h1 .alt {
  font-family: "Geist Pixel Line", ui-monospace, Menlo, monospace;
  opacity: 0.45;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2.25rem;
  margin-top: clamp(1.5rem, 3.5vw, 2.75rem);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.soon {
  opacity: 0.5;
  padding: 0.3em 0;
}

/* Ellipsis types itself out one dot at a time; width is reserved so the nav never reflows. */
.soon .dots {
  display: inline-block;
  width: 3ch;
  animation: dots 1.6s steps(4, jump-none) infinite;
}

@keyframes dots {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .soon .dots {
    animation: none;
  }
}

footer {
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  opacity: 0.7;
}

a {
  position: relative;
  padding: 0.3em 0;
  color: inherit;
  text-decoration: none;
}

footer a {
  padding: 0.15em 0;
  white-space: nowrap;
}

a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}

a:hover::after,
a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

a:focus-visible {
  outline: 1px dashed currentColor;
  outline-offset: 6px;
}
