body{
  margin:0;
  font-family: 'Georgia', serif;
  background: radial-gradient(#000015, #000);
  color:#f0f0f0;
  overflow-x:hidden;
  position:relative;
}

canvas#stars{
  position:fixed;
  top:0;left:0;
  z-index:-1;
}

.container{
  max-width: 980px;
  margin: 100px auto 80px;
  padding: 0 20px;
}

h1{
  text-align:center;
  font-size:2.4em;
  color:#f9d6f7;
  margin-bottom:10px;
}

.subtitle{
  text-align:center;
  color:#ccccff;
  opacity:.95;
  margin-bottom:26px;
}

/* top-left quick nav (match diary) */
.quick-nav{
  position:fixed;
  top:16px; left:16px;
  display:inline-flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  z-index:21;
  padding:8px 10px;
  border-radius:999px;
  background: rgba(17, 17, 34, 0.42);
  border: 1px solid rgba(170, 170, 255, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 0 0 2px rgba(170, 170, 255, 0.06);
}

a.tag, span.tag{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background-color: rgba(170, 170, 255, 0.08);
  border: 1px solid rgba(170, 170, 255, 0.55);
  border-radius:999px;
  color:#aaaaff;
  padding:6px 14px;
  font-size:0.9em;
  line-height:1;
  text-decoration:none;
  user-select:none;
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

a.tag:hover{
  background-color: rgba(170, 170, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.55);
}

.quick-nav span.tag[aria-current="page"]{
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.10);
  color:#f2f2ff;
}

/* toolbar */
.toolbar{
  display:flex;
  justify-content:center;
  gap:10px;
  flex-wrap:wrap;
  margin: 10px 0 26px;
}

.pill{
  background: transparent;
  border: 1px solid rgba(170, 170, 255, 0.55);
  border-radius:999px;
  color:#aaaaff;
  padding: 7px 14px;
  cursor:pointer;
}

.pill.active{
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.55);
  color:#f2f2ff;
}

/* grid */
.grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}

.card{
  margin:0;
  background: #ffffff0a;
  border: 1px solid rgba(170,170,255,.18);
  border-radius: 14px;
  overflow:hidden;
  box-shadow: 0 0 14px rgba(255, 180, 230, 0.08);
  transition: transform .18s ease, box-shadow .18s ease;
}

.card:hover{
  transform: translateY(-3px);
  box-shadow: 0 0 20px rgba(170,170,255,0.14), 0 0 28px rgba(255,180,230,0.10);
}

.card img{
  width:100%;
  height: 180px;
  object-fit: cover;
  display:block;
}

figcaption{
  padding: 12px 12px 14px;
}

.title{
  color:#ffddee;
  font-size: 0.98em;
  margin-bottom: 6px;
}

.meta{
  font-size: 0.82em;
  opacity: .75;
  margin-bottom: 10px;
}

.tags{
  display:flex;
  flex-wrap:wrap;
  gap: 6px;
}

.chip{
  font-size: 0.78em;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(170,170,255,.35);
  color:#ccccff;
  background: rgba(170,170,255,.06);
}

.empty{
  grid-column: 1 / -1;
  text-align:center;
  opacity:.9;
  padding: 28px 12px;
  background: rgba(255,255,255,.06);
  border: 1px dashed rgba(170,170,255,.25);
  border-radius: 14px;
}