:root {
  --bg: #0a0a0a;
  --card-bg: #131313;
  --red: #e50914;
  --red-soft: #ff5c5c;
  --text: #f2b8b8;
  --muted: #8a5a5a;
  --border: #2a1414;
  --max-width: 1100px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

a { color: inherit; }

header {
  border-bottom: 1px solid var(--border);
  padding: 2rem 1.5rem 1.5rem;
}

header .wrap {
  max-width: var(--max-width);
  margin: 0 auto;
}

header a { text-decoration: none; }

.site-title {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--red);
}

.site-tagline {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 0.25rem;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

/* ---- grid of post cards (YouTube-style) ---- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.75rem 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  display: block;
}

.card:hover .thumb {
  border-color: var(--red);
}

.card-title {
  margin-top: 0.6rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--red-soft);
}

.card:hover .card-title {
  color: var(--red);
}

.card-summary {
  margin-top: 0.25rem;
  font-size: 0.9rem;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-date {
  margin-top: 0.3rem;
  font-size: 0.78rem;
  color: var(--muted);
}

/* ---- single post page ---- */
article .hero {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

article h1 {
  font-size: 1.9rem;
  margin-bottom: 0.25rem;
  letter-spacing: -0.02em;
  color: var(--red);
}

article .post-meta {
  margin-bottom: 1.5rem;
  color: var(--muted);
  font-size: 0.85rem;
}

article p {
  margin-bottom: 1.2rem;
}

.back-link {
  display: inline-block;
  margin-bottom: 2rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.back-link:hover { color: var(--red); }

footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}
