@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,300;0,400;1,300;1,400&display=swap');

:root {
  --bg:    #141414;
  --ink:   #c8c8c8;
  --dim:   #4a4a4a;
  --faint: #1a1a1a;
  --rule:  #1e1e1e;
  --red:   #888888;
  --max:   640px;
}

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

html { background: var(--bg); }

body {
  font-family: 'IBM Plex Mono', 'Courier New', monospace;
  max-width: var(--max);
  margin: 0 auto;
  padding: 4rem 2rem 8rem;
  color: var(--ink);
  font-size: 13.5px;
  line-height: 1.8;
}

a { color: inherit; text-decoration: none; }

/* ── Header ── */
header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1.4rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-name {
  font-weight: 400;
  font-size: 0.88rem;
  letter-spacing: 0.12em;
  color: var(--ink);
}

.site-name::after {
  content: '_';
  color: var(--red);
  animation: blink 1.2s step-end infinite;
}

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

nav {
  display: flex;
  gap: 1.6rem;
  flex-wrap: wrap;
}

nav a {
  font-size: 0.68rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--dim);
  transition: color 0.15s;
}

nav a:hover,
nav a.active { color: var(--ink); }

/* ── Section label ── */
.label {
  font-size: 0.6rem;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 1.6rem;
}

/* ── Divider ── */
hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 3.5rem 0;
}

/* ── Footer ── */
footer {
  margin-top: 5rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.6rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--dim);
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ── Custom cursor ── */
* { cursor: none; }

#cursor-dot {
  position: fixed;
  top: -3px;
  left: -3px;
  width: 6px;
  height: 6px;
  background: var(--ink);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  will-change: transform;
  transition: opacity 0.15s, width 0.12s, height 0.12s, top 0.12s, left 0.12s;
  opacity: 0;
}

#cursor-dot.visible { opacity: 1; }

#cursor-dot.is-over {
  width: 10px;
  height: 10px;
  top: -5px;
  left: -5px;
  opacity: 0.3;
}


/* ── Scanlines ── */
html::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0,0,0,0.04) 3px,
    rgba(0,0,0,0.04) 4px
  );
  pointer-events: none;
  z-index: 1000;
}

/* ── Section reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── Post item left accent ── */
.post-item {
  position: relative;
}

.post-item::before {
  content: '';
  position: absolute;
  left: -1px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--dim);
  opacity: 0;
  transition: opacity 0.2s;
}

.post-item:hover::before { opacity: 1; }

/* ── Ambient panels ── */
.ambient-panel {
  position: fixed;
  top: 5rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.52rem;
  font-weight: 300;
  color: var(--ink);
  opacity: 0.09;
  line-height: 1.9;
  letter-spacing: 0.04em;
  pointer-events: none;
  user-select: none;
  width: 190px;
}

.ambient-left  { left:  calc(50% - 320px - 210px); }
.ambient-right { right: calc(50% - 320px - 210px); text-align: right; }

@media (max-width: 1080px) {
  .ambient-panel { display: none; }
}

/* ── Responsive ── */
@media (max-width: 480px) {
  body { padding: 2.5rem 1.2rem 5rem; }
  header { flex-direction: column; gap: 1rem; }
  footer { flex-direction: column; }
}
