:root {
  --bg: #000000;
  --surface: #000000;
  --ink: #2E9BFF;
  --muted: #5FB0FF;
  --line: #123c6b;
  --accent: #2E9BFF;
  --radius: 0px;
  --sans: "Helvetica Neue", Helvetica, "Archivo", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { height: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  text-transform: uppercase;
  letter-spacing: 0;
  font-weight: 700;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 860px; margin: 0 auto; padding: 0 24px; }

/* ===== HOMEPAGE: one post per screen, no scroll ===== */
body.locked { height: 100%; overflow: hidden; display: flex; flex-direction: column; }
body.locked main { flex: 1; min-height: 0; display: flex; flex-direction: column; }

.hero { flex: 0 0 auto; text-align: center; padding: 14px 8px 4px; }
.hero-title {
  font-size: clamp(1.3rem, 14vw, 4.5rem);
  line-height: 1;
  font-weight: 800;
  margin: 0;
  white-space: nowrap;
}

.emoji-bar { flex: 0 0 auto; width: 100%; padding: 4px 12px 6px; }
.emoji-bar .home-post-title { white-space: nowrap; overflow: hidden; max-width: 100%; font-size: 1.25rem; margin: 0; }

.home-post { flex: 1; min-height: 0; overflow: hidden; padding: 8px 24px 20px; display: flex; flex-direction: column; }
.home-post-media { width: 100%; max-width: 100%; margin: 0 auto 12px; }
.home-post-media iframe { display: block; width: 100%; aspect-ratio: 16/9; border: 0; }
.home-post-media video { display: block; width: 100%; height: auto; background: #000; }
.home-post-right { flex: 1; min-height: 0; min-width: 0; display: flex; flex-direction: column; }
.home-post-title { font-size: 1.45rem; font-weight: 800; margin: 0 0 8px; }
.home-post-body { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; font-size: 1.05rem; line-height: 1.6; scrollbar-width: thin; scrollbar-color: #123c6b transparent; }
.home-post-body::-webkit-scrollbar { width: 6px; }
.home-post-body::-webkit-scrollbar-thumb { background: #123c6b; }
.home-post-body::-webkit-scrollbar-track { background: transparent; }
.home-post-body p { margin: 0.6em 0; }
.home-post-body img, .home-post-body video { max-width: 100%; max-height: 30vh; width: auto; height: auto; }
.home-post-body h2 { font-size: 1.2rem; margin: 0.6em 0 0.25em; }
.home-post-body iframe { max-width: 100%; max-height: 30vh; }

/* ===== ASCII art gallery ===== */
.home-post-body pre { background: transparent; border: none; padding: 8px 0; margin: 0.8em 0; overflow-x: auto; }
.home-post-body pre code {
  display: block; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: clamp(1rem, 2.2vw, 1.9rem); line-height: 1.2; white-space: pre; color: var(--ink);
  background: transparent; padding: 0;
}
.home-post-body h4 { font-size: 0.95rem; letter-spacing: 3px; color: var(--muted); margin: 1.6em 0 0.2em; }
.home-post-body hr { border: 0; border-top: 1px solid var(--line); margin: 1.6em 0; }

/* ===== DESKTOP / LANDSCAPE: full-width title + left image + scrollable right text ===== */
@media (min-width: 768px), (orientation: landscape) {
  .hero { padding: 20px 28px 8px; }
  .hero-title { font-size: clamp(2.2rem, 12vw, 12rem); }
  .emoji-bar { padding: 2px 28px 10px; }
  .emoji-bar .home-post-title { font-size: 1.4rem; }

  .home-post { flex-direction: row; align-items: stretch; gap: 30px; padding: 4px 28px 20px; }
  .home-post-media {
    flex: 0 0 42%;
    width: 42%;
    margin: 0;
    align-self: center;
  }
  .home-post-media iframe { display: block; width: 100%; aspect-ratio: 16/9; border: 0; }
  .home-post-media video { display: block; width: 100%; height: auto; background: #000; }
  .home-post-right { flex: 1; min-height: 0; min-width: 0; }
  .home-post-title { font-size: 1.8rem; margin-bottom: 12px; }
  .home-post-body { font-size: 1.4rem; line-height: 1.65; }
  .home-post-body img, .home-post-body video { max-height: 40vh; }
  .home-post-body h2 { font-size: 1.5rem; }
}

/* ===== Standard pages (full post, archive) — scrollable ===== */
.page-title { font-size: 2.4rem; margin: 48px 0 28px; font-weight: 800; }
.post-list { display: flex; flex-direction: column; gap: 16px; }
.post-row { display: flex; flex-direction: column; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; text-decoration: none; color: inherit; }
.post-row:hover { border-color: var(--ink); }
.post-row-title { margin: 0; font-size: 1.3rem; font-weight: 800; }
.post-row-meta { margin: 0; color: var(--muted); font-size: 0.9rem; }
.post-row-excerpt { margin: 0; color: var(--muted); font-size: 1rem; }

.post { padding: 40px 0 80px; }
.post-header { margin-bottom: 32px; }
.post-title { font-size: clamp(2.2rem, 5.5vw, 3.3rem); line-height: 1.08; font-weight: 800; margin: 10px 0 14px; }
.post-meta { color: var(--muted); margin: 0; font-size: 0.96rem; }
.post-hero { width: 100%; border-radius: var(--radius); margin-top: 24px; }
.post-body { font-family: var(--sans); font-size: 1.2rem; line-height: 1.85; color: var(--ink); }
.post-body h2 { font-size: 1.54rem; margin-top: 40px; font-weight: 800; color: var(--ink); }
.post-body img, .post-body video { max-width: 100%; border-radius: var(--radius); }
.post-body p { margin: 1.2em 0; }
.post-body strong { color: var(--ink); }
