:root{
  --maxw: 980px;
  --bg: #ffffff;
  --text: #111;
  --muted: #666;
  --border: #e6e8eb;
  --navbg: #0b1220;
}

*{ box-sizing: border-box; }

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

a{
  color: #0969da;
  text-decoration: none;
}
a:hover{ text-decoration: underline; }

.container{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1rem;
}

/* ---------- NAVBAR ---------- */

.header{
  background: var(--navbg);
  color: white;
}

.nav{
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 0.9rem 0;
  flex-wrap: wrap;
}

.nav a{
  color: white;
  opacity: 0.9;
}
.nav a:hover{ opacity: 1; }

.brand{
  font-weight: 700;
  margin-right: 0.5rem;
}

/* ---------- MAIN ---------- */

.main{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.25rem 1rem 3rem;
}

.meta{
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0.5rem 0 1.25rem;
}

/* ---------- CARDS ---------- */

.card{
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
  margin: 1rem 0;
  background: white;
}

.grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.badge{
  display: inline-block;
  font-size: 0.8rem;
  padding: 0.15rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
}

/* ---------- FOOTER ---------- */

.footer{
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
  padding: 1rem 0 2rem;
}

details summary{
  cursor: pointer;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

details summary::-webkit-details-marker{
  display: none;
}

details summary::before{
  content: "▶";
  display: inline-block;
  margin-right: 0.5rem;
  opacity: 0.8;
}

details[open] summary::before{
  content: "▼";
}

.story-image{
  display: block;
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: 12px;
  margin: 0.6rem 0 0.8rem;
}

