:root {
  --lime: #9dff00;
  --ink: #ffffff;
  --fuchsia: #ff00ff;
  --blue: #1f4dff;
  --yellow: #ffe600;
  --cyan: #00ffff;
  --bg: #8e8f92;
  /* Dark halo so small text stays readable over bright footage */
  --halo: 0 1px 2px rgba(0, 0, 0, 0.8), 0 0 12px rgba(0, 0, 0, 0.5);
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

/* Video fills the whole screen behind everything */
video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  /* Keep the video on its own layer so the text on top isn't redrawn each frame */
  transform: translateZ(0);
}

/* Text layer: title in the middle, details at the bottom */
.page {
  position: relative;
  z-index: 1;
  transform: translateZ(0);
  will-change: transform;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 0;
}

h1 {
  margin: 0;
  font-weight: 900;
  font-size: clamp(3rem, 11vw, 10rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  text-align: center;
  color: var(--lime);
  text-shadow: 0 0 24px rgba(157, 255, 0, 0.45), 0 4px 30px rgba(0, 0, 0, 0.35);
}

.soon {
  margin: 0.6em 0 0;
  font-size: clamp(1.4rem, 3.6vw, 2.8rem);
  font-weight: bold;
  letter-spacing: 0.15em;
  color: var(--lime);
  text-shadow: 0 0 18px rgba(157, 255, 0, 0.45), 0 2px 12px rgba(0, 0, 0, 0.35);
}

main {
  max-width: 860px;
  font-size: clamp(1.35rem, 3vw, 2.1rem);
  line-height: 1.35;
  color: var(--fuchsia);
  text-shadow: var(--halo);
}

main p { margin: 0 0 0.8em; }

.etymology em { font-weight: bold; color: var(--blue); }

.operator { color: var(--yellow); }

.subscribe {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6em;
  font-size: 0.75em;
}

/* Understated field: just an underline, no box */
.subscribe input {
  width: 16em;
  max-width: 100%;
  padding: 0.2em 0;
  font: inherit;
  color: var(--cyan);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--cyan);
  border-radius: 0;
  text-shadow: var(--halo);
  outline: none;
}

.subscribe input::placeholder { color: var(--cyan); opacity: 0.7; }
.subscribe input:focus { border-bottom-width: 2px; }

.subscribe button {
  padding: 0;
  font: inherit;
  color: var(--cyan);
  background: none;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-shadow: var(--halo);
  cursor: pointer;
}

.subscribe button:hover { text-decoration: none; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

a {
  color: var(--lime);
  text-underline-offset: 3px;
}

a:hover { text-decoration: none; }

@media (max-width: 600px) {
  .page { padding: 16px; }
  body { font-size: 15px; }
}

.center h1 a {
  color: inherit;
  text-decoration: none;
}

/* ---------- Post pages ---------- */

/* Plain dark background for reading, no video */
body.reading {
  background: #0e0f11;
  color: #e9e9e6;
  font-size: 19px;
  line-height: 1.7;
}

.bar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px;
  font-size: 0.9rem;
}

.bar a { color: var(--cyan); }
.bar .bar-home {
  color: var(--lime);
  font-weight: 900;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.bar-foot { padding-top: 48px; padding-bottom: 64px; }

.post,
.list {
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  text-shadow: none;
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 16px 0;
}

.post h1,
.list h1 {
  text-align: left;
  text-shadow: none;
  margin: 0 0 0.3em;
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--lime);
}

.post { padding-bottom: 96px; }

.post-meta {
  margin: 0 0 2em;
  color: var(--yellow);
  font-size: 0.9rem;
}

.post-cover {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 2em;
}

.post-body h2,
.post-body h3 { color: var(--fuchsia); line-height: 1.25; margin: 1.8em 0 0.6em; }
.post-body a { color: var(--cyan); }
.post-body img { max-width: 100%; height: auto; }
.post-body blockquote {
  margin: 1.5em 0;
  padding-left: 1em;
  border-left: 3px solid var(--fuchsia);
  color: #c9c9c4;
}
.post-body hr { border: 0; border-top: 1px solid #34363b; margin: 2.5em 0; }

/* Posts list */
.list ul { list-style: none; margin: 0; padding: 0; }
.list li:first-child { border-top: 0; padding-top: 8px; }
.list li { padding: 24px 0; border-top: 1px solid #34363b; }
.list li a {
  color: var(--fuchsia);
  font-size: 1.4rem;
  font-weight: bold;
  text-decoration: none;
}
.list li a:hover { text-decoration: underline; }
.list time { display: block; color: var(--yellow); font-size: 0.85rem; margin-top: 4px; }
.list li p { margin: 8px 0 0; color: #c9c9c4; }
.list .empty { color: var(--yellow); margin-top: 32px; }
