@font-face {
  font-display: swap;
  font-family: 'Hermit';
  font-style: normal;
  font-weight: 400;
  src: url('/static/fonts/hermit-regular.woff2') format('woff2');
}

:root {
  --void: #0a0b0c;
  --phosphor: #268bd2;
  --phosphor-dim: #1a5a8a;
  --signal: #d94f5c;
  --static: #2a2d2f;
  --text: #c4cbc9;
  --muted: #5f6664;
  --mono: 'Hermit', monospace;
}

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

html { font-size: 16px; }

body {
  font-family: var(--mono);
  background: var(--void);
  color: var(--text);
  line-height: 1.7;
  padding: 0 1.5rem;
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

/* subtle scanline / noise overlay, no image assets */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: repeating-linear-gradient(
    0deg,
    rgba(255,255,255,0.015) 0px,
    rgba(255,255,255,0.015) 1px,
    transparent 1px,
    transparent 3px
  );
}

#presence-gate {
  min-height: 100vh;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  position: fixed;
  inset: 0;
  z-index: 10;
  background: var(--void);
  font-size: 13px;
}

body.state-gate #presence-gate {
  display: flex;
}

#presence-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

#presence-input {
  background: none;
  border: none;
  border-bottom: 1px solid var(--phosphor-dim);
  color: var(--phosphor);
  font-family: var(--mono);
  font-size: 14px;
  text-align: center;
  padding: 4px 0;
  width: 14ch;
  outline: none;
}

#presence-input::placeholder { color: var(--muted); }
#presence-input:focus { border-bottom-color: var(--phosphor); }

.gate-hint {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.05em;
}

#boot-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--phosphor);
  letter-spacing: 0.02em;
  position: fixed;
  inset: 0;
  z-index: 10;
  background: var(--void);
  animation: boot-hide 0.5s ease 2.2s forwards;
}

/* default state: only the gate is visible */
#boot-screen, #main-content { display: none; }

body.state-boot #presence-gate { display: none; }
body.state-boot #boot-screen { display: flex; }

body.state-main #presence-gate { display: none; }
body.state-main #boot-screen { display: none; }
body.state-main #main-content { display: block; }

.boot-line {
  opacity: 0;
  animation: boot-line-in 0.3s ease forwards;
}

.line-1 { animation-delay: 0.3s; }
.line-2 { animation-delay: 1.1s; }
.line-3 { animation-delay: 1.5s; }

@keyframes boot-line-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes boot-hide {
  to { opacity: 0; visibility: hidden; pointer-events: none; }
}

#main-content { animation: fadein 0.5s ease both; }

.wrapper {
  max-width: 620px;
  margin: 0 auto;
  padding: 3rem 0 5rem;
  position: relative;
  z-index: 2;
  animation: fadein 0.5s ease both;
}

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

/* prompt-style nav */
nav {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--static);
  padding-bottom: 1rem;
  margin-bottom: 3rem;
}

.nav-name {
  font-size: 15px;
  color: var(--phosphor);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.nav-name .prompt {
  color: var(--muted);
}

.cursor {
  display: inline-block;
  width: 0.55em;
  background: var(--phosphor);
  animation: blink 1.1s step-end infinite;
  margin-left: 1px;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  font-size: 11px;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  transition: color 0.15s ease;
}

.nav-links a:hover { color: var(--phosphor); }

/* hero */
.hero {
  margin-bottom: 4rem;
}

.hero-glyph {
  font-size: 11px;
  color: var(--phosphor-dim);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-size: 22px;
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}

.hero h1 span {
  color: var(--phosphor);
}

.hero p {
  font-size: 13px;
  color: var(--muted);
  max-width: 46ch;
}

.hero p .accent {
  color: var(--signal);
}

.hero p .accent-known {
  color: var(--phosphor);
}

/* sections */
.section-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--phosphor-dim);
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--static);
}

.log-intro {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 2rem;
}

.about-body {
  font-size: 13px;
  color: var(--text);
  max-width: 46ch;
  margin-bottom: 1.25rem;
}

.about-line {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 2.5rem;
}

.entries {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-bottom: 3.5rem;
}

.entry {
  display: flex;
  gap: 1rem;
  font-size: 13px;
  text-decoration: none;
  color: var(--text);
  align-items: baseline;
  transition: color 0.15s ease;
}

.entry:hover { color: var(--phosphor); }

.entry.static:hover {
  color: var(--text);
}

.entry .addr {
  color: var(--muted);
  font-size: 11px;
  flex-shrink: 0;
  width: 5.5em;
}

.entry:hover .addr { color: var(--phosphor-dim); }

.entry.static:hover .addr {
  color: var(--muted);
}

.irc-hint {
  font-size: 11px;
  color: var(--muted);
  margin-top: -2.5rem;
  margin-bottom: 3rem;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.3s ease, max-height 0.3s ease;
}

.irc-hint.visible {
  opacity: 1;
  max-height: 2rem;
}

.error-heading {
  font-size: 22px;
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 3rem;
}

/* footer */
footer {
  margin-top: 4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--static);
  font-size: 10px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  letter-spacing: 0.04em;
}

footer a { color: var(--phosphor-dim); text-decoration: none; }
footer a:hover { color: var(--phosphor); }

@media (max-width: 600px) {
  nav { flex-wrap: wrap; gap: 0.75rem; }
  .hero h1 { font-size: 19px; }
}
