/* Ape Coin — black and white, nothing else. */

:root {
  --bg: #000;
  --fg: #fff;
  --dim: #8b8b8b;
  --rule: #242424;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

body.booting { overflow: hidden; }

.wrap { max-width: 720px; margin: 0 auto; padding: 0 24px; }

/* ---------- boot ---------- */

#boot {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg);
  padding: 12vh 7vw;
  overflow: hidden;
  cursor: pointer;
}

#boot.done {
  opacity: 0;
  transition: opacity .55s ease;
  pointer-events: none;
}

#bootlog {
  margin: 0;
  font-family: var(--mono);
  font-size: clamp(11px, 2.6vw, 14px);
  line-height: 1.95;
  color: var(--fg);
  white-space: pre-wrap;
  word-break: break-word;
}

/* the caret rides the end of the log */
#bootlog::after {
  content: "";
  display: inline-block;
  width: .55em;
  height: 1.05em;
  background: var(--fg);
  vertical-align: -.18em;
  margin-left: .12em;
  animation: blink 1.05s steps(1) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

#skip {
  position: absolute;
  left: 7vw;
  bottom: 8vh;
  margin: 0;
  font-size: 11px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: #4a4a4a;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 90px 24px;
}

.mark {
  width: min(210px, 46vw);
  height: auto;
  display: block;
  margin: 0 0 46px;
}

.wordmark {
  width: min(420px, 74vw);
  height: auto;
  display: block;
}

/* long enough that wide tracking would hurt it, so keep it readable */
.tagline {
  margin: 32px auto 0;
  max-width: 34em;
  font-size: clamp(12px, 1.6vw, 14px);
  line-height: 1.7;
  letter-spacing: .06em;
  color: var(--dim);
}

.actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 48px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 160px;
  padding: 13px 26px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--fg);
  background: transparent;
  border: 1px solid var(--fg);
  border-radius: 6px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
  -webkit-appearance: none;
  appearance: none;
}

.btn:hover,
.btn:focus-visible { background: var(--fg); color: var(--bg); }

.btn.is-flash { background: var(--fg); color: var(--bg); }

.btn svg { width: 14px; height: 14px; flex: none; }

/* ---------- sections ---------- */

section { padding: 110px 0; border-top: 1px solid var(--rule); }

h2 {
  font-weight: 400;
  font-size: 12px;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--dim);
  margin: 0 0 44px;
}

p { margin: 0 0 24px; max-width: 62ch; }
p:last-child { margin-bottom: 0; }

.dim { color: var(--dim); }

/* ---------- parameters ---------- */

dl.params { margin: 0; }

dl.params > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 15px 0;
  border-bottom: 1px solid var(--rule);
}
dl.params > div:first-child { border-top: 1px solid var(--rule); }

dl.params dt {
  color: var(--dim);
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

dl.params dd { margin: 0; text-align: right; white-space: nowrap; }

.genesis {
  margin-top: 46px;
  padding: 28px 24px;
  border: 1px solid var(--rule);
  text-align: center;
}
.genesis span {
  display: block;
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 14px;
}

/* ---------- thread ---------- */

.post { padding: 26px 0; border-bottom: 1px solid var(--rule); }
.post:first-of-type { border-top: 1px solid var(--rule); }

.post b {
  display: block;
  font-weight: 400;
  color: var(--dim);
  font-size: 13px;
  letter-spacing: .1em;
  margin-bottom: 12px;
}

.post p { margin: 0 0 14px; }
.post p:last-child { margin-bottom: 0; }

/* ---------- footer ---------- */

footer { padding: 84px 0 104px; border-top: 1px solid var(--rule); text-align: center; }

footer .sym {
  font-size: 12px;
  letter-spacing: .34em;
  color: var(--dim);
  margin: 0 0 20px;
  max-width: none;
}

footer p {
  margin: 0 auto;
  max-width: 48ch;
  font-size: 12px;
  color: var(--dim);
  line-height: 1.75;
}

@media (max-width: 600px) {
  section { padding: 80px 0; }
  dl.params > div { flex-direction: column; gap: 2px; }
  dl.params dd { text-align: left; }
  #skip { left: 7vw; bottom: 6vh; }
}

/* ---------- lightspeed ---------- */

#lightspeed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  pointer-events: none;   /* clicks fall through to .hero, which drives it */
}

/* hero content rides above the streaks */
.hero > *:not(#lightspeed) { position: relative; z-index: 1; }
