/* Epikase landing page. Black and white, like the wordmark: lit pixels on a dark screen. No scripts. */
:root {
  --ink: #fff;
  --paper: #000;
  /* The wordmark is a bitmap face, so the labels are set in the device's fixed-width face and the buttons
     have square corners: nothing on the page is rounder than the logo's pixels. */
  --face: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); color-scheme: dark; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 48px 24px calc(64px + env(safe-area-inset-bottom));
  background: var(--paper);
  color: var(--ink);
  font-family: var(--face);
  -webkit-font-smoothing: antialiased;
}

main { width: 100%; max-width: 340px; text-align: center; }

h1 { margin: 0; }
/* The word is seven tenths as wide as the buttons (Andy, 2026-11-12). The drawing keeps room around the word
   for its glow (the word is 506 of its 566 units), so the picture itself is a little wider than that. */
h1 img {
  display: block;
  width: 78.3%;
  height: auto;
  margin: 0 auto;
  animation: on 600ms steps(1, end);
}

nav { display: grid; gap: 12px; margin-top: 28px; }

nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 20px;
  border: 1.5px solid var(--ink);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 140ms ease, color 140ms ease, transform 140ms ease;
}
/* The platform marks keep their own colours; TikTok's note takes the label's colour, as it does in their own mark. */
nav svg { flex: none; width: 22px; height: 22px; }

@media (hover: hover) {
  nav a:hover { background: var(--ink); color: var(--paper); }
}
nav a:active { background: var(--ink); color: var(--paper); transform: scale(.98); }
nav a:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* The one moment of motion: the wordmark flickers twice, like a sign settling. It is lit from the first frame, so
   a picture of the page taken at any moment shows it. */
@keyframes on {
  0% { opacity: 1; }
  14% { opacity: .15; }
  26% { opacity: 1; }
  40% { opacity: .45; }
  52%, 100% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  h1 img { animation: none; }
  nav a { transition: none; }
}

@media (min-width: 700px) {
  main { max-width: 380px; }
  nav { margin-top: 32px; }
}
