:root {
  --bg: #fff;
  --fg: #000;
  --muted: #555;
  --line: #e5e5e5;
  --link: #000;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
}

.container {
  width: min(760px, 92vw);
  margin: 0 auto;
  padding: 3.5rem 0 4rem;
}

.hero {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  padding: .1rem 0;
}

.hero-matrix {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 220ms ease;
}

.hero.active .hero-matrix,
.hero:hover .hero-matrix,
.hero:focus-within .hero-matrix {
  opacity: 0.28;
}

.hero-terminal {
  position: relative;
  z-index: 2;
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #111;
}

.hero-title {
  font-size: clamp(1.5rem, 4vw, 2.15rem);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.caret {
  display: inline-block;
  width: .62ch;
  height: 1.02em;
  background: #111;
  margin-left: .08ch;
  vertical-align: -0.06em;
  animation: caretBlink 1.05s steps(1, end) infinite;
}

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

.tagline {
  position: relative;
  z-index: 2;
  margin-top: 0.62rem;
  color: var(--muted);
}

.section {
  margin-top: 2.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

h2 {
  margin: 0 0 0.8rem;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

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

.posts {
  list-style: none;
  padding: 0;
  margin: 0;
}

.posts li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.footer {
  margin-top: 3rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.post article h1 {
  margin: 0.8rem 0 0.5rem;
  font-size: clamp(1.5rem, 4.8vw, 2.25rem);
}

nav a { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .caret { animation: none; }
  .hero-matrix { transition: none; }
}
