/* BRUTALIST GREYSCALE — dark grey, white, nothing else */

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

body {
  font-family: Georgia, 'Times New Roman', serif;
  background-color: #1a1a1a;
  background-image:
    linear-gradient(0deg, transparent 24%, rgba(255,255,255,.03) 25%, rgba(255,255,255,.03) 26%, transparent 27%, transparent 74%, rgba(255,255,255,.03) 75%, rgba(255,255,255,.03) 76%, transparent 77%, transparent),
    linear-gradient(90deg, transparent 24%, rgba(255,255,255,.03) 25%, rgba(255,255,255,.03) 26%, transparent 27%, transparent 74%, rgba(255,255,255,.03) 75%, rgba(255,255,255,.03) 76%, transparent 77%, transparent);
  background-size: 60px 60px;
  color: #ccc;
  line-height: 1.6;
  min-height: 100vh;
}

/* ── HEADER ─────────────────────────────────────── */

header {
  border-bottom: 4px solid #fff;
  padding: 3rem 2rem 2rem 2rem;
  background: #151515;
}

header h1 {
  font-size: 3.5rem;
  text-transform: uppercase;
  letter-spacing: -1px;
  line-height: 0.9;
  color: #fff;
}

header p.tagline {
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.75rem;
  text-transform: lowercase;
  letter-spacing: 3px;
}

/* ── NAV ─────────────────────────────────────────── */

nav {
  background: #222;
  border-bottom: 1px solid #444;
  padding: 0.75rem 2rem;
  display: flex;
  gap: 1.5rem;
}

nav a {
  color: #888;
  text-decoration: none;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 2px;
  padding: 0.25rem 0.5rem;
}

nav a:hover,
nav a.active {
  color: #fff;
  background: #444;
}

/* ── MAIN LAYOUT ─────────────────────────────────── */

main {
  max-width: 960px;
  margin: 2rem auto;
  padding: 0 2rem;
}

/* ── POST LIST (index) ───────────────────────────── */

.post-list {
  list-style: none;
}

.post-item {
  border: 1px solid #444;
  background: #1e1e1e;
  padding: 2rem;
  margin-bottom: 1px;
  position: relative;
  transition: background 0.2s;
}

.post-item:hover {
  background: #252525;
}

.post-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: #555;
  transition: background 0.2s;
}

.post-item:hover::before {
  background: #fff;
}

.post-meta {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: #666;
  border-bottom: 1px solid #333;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.post-item h2 {
  font-size: 1.4rem;
  text-transform: uppercase;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.post-item h2 a {
  color: #aaa;
  text-decoration: none;
}

.post-item h2 a:hover {
  color: #fff;
}

.post-excerpt {
  font-size: 0.9rem;
  color: #888;
  line-height: 1.7;
}

/* ── SINGLE POST ─────────────────────────────────── */

.post-full h2 {
  font-size: 2.8rem;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 0.5rem;
  color: #fff;
}

.post-full .post-meta {
  padding-top: 0.75rem;
  font-size: 0.7rem;
}

/* ── BACK LINK ───────────────────────────────────── */

.back-link {
  display: inline-block;
  margin-bottom: 2.5rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #888;
  text-decoration: none;
  border: 1px solid #444;
  padding: 0.5rem 1.25rem;
}

.back-link:hover {
  color: #fff;
  background: #444;
}

/* ── CONTENT ─────────────────────────────────────── */

.post-content {
  font-size: 1rem;
  background: #161616;
  border: 1px solid #333;
  padding: 2.5rem;
  margin-top: 1.5rem;
}

.post-content h3 {
  font-size: 1.3rem;
  text-transform: uppercase;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: #fff;
  border-left: 3px solid #fff;
  padding-left: 1rem;
}

.post-content p {
  margin-bottom: 1.25rem;
  color: #aaa;
}

.post-content ul,
.post-content ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.post-content li {
  margin-bottom: 0.75rem;
  color: #aaa;
}

.post-content li strong {
  color: #ddd;
}

.post-content blockquote {
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  font-style: italic;
  color: #777;
  background: #1a1a1a;
  border-left: 3px solid #fff;
}

.post-content code {
  background: #222;
  color: #ddd;
  padding: 0.2rem 0.5rem;
  font-size: 0.85rem;
}

.post-content pre {
  background: #141414;
  color: #999;
  padding: 1.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid #333;
}

.post-content pre code {
  background: none;
  color: #fff;
  padding: 0;
}

/* ── TAGS ────────────────────────────────────────── */

.tag {
  display: inline-block;
  background: #222;
  border: 1px solid #555;
  padding: 0.15rem 0.6rem;
  font-size: 0.65rem;
  text-transform: uppercase;
  margin-right: 0.4rem;
  color: #888;
}

/* ── FOOTER ──────────────────────────────────────── */

footer {
  border-top: 1px solid #333;
  background: #141414;
  color: #666;
  text-align: center;
  padding: 3rem 2rem;
  margin-top: 4rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 3px;
}

footer a {
  color: #888;
}

footer a:hover {
  color: #fff;
}

/* ── RESPONSIVE ──────────────────────────────────── */

@media (max-width: 640px) {
  header h1 {
    font-size: 2.2rem;
  }

  main {
    padding: 0 1rem;
  }

  nav {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .post-full h2 {
    font-size: 1.8rem;
  }

  .post-content {
    padding: 1.5rem;
  }
}
