:root {
  --bg: #14161c;
  --panel: #1e222b;
  --text: #e8eaf0;
  --muted: #8fa0b8;
  --accent: #7aa2ff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
}

.topbar {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .7rem 1.2rem;
  background: var(--panel);
  position: sticky;
  top: 0;
  z-index: 2;
}

.brand { color: var(--accent); font-weight: 600; text-decoration: none; font-size: 1.05rem; }
.brand:hover { text-decoration: underline; }

.crumb-sep { color: var(--muted); }
.crumb { color: var(--text); text-decoration: none; }
a.crumb:hover { text-decoration: underline; }

main { max-width: 1400px; margin: 0 auto; padding: 1.2rem; }

.page-title { margin: .2rem 0 1rem; font-weight: 650; }
.page-title small { color: var(--muted); font-weight: 400; }

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

.tile {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  background: var(--panel);
  text-decoration: none;
}

.tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile-empty { display: grid; place-items: center; height: 100%; color: var(--muted); font-size: 1.4rem; }

.tile-label {
  position: absolute;
  inset: auto 0 0 0;
  padding: .45rem .6rem;
  background: linear-gradient(transparent, rgba(10, 12, 16, .85));
  color: var(--text);
  font-weight: 600;
}
.tile-label small { color: var(--muted); font-weight: 400; }

/* photo grid */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: .8rem;
}

.photo {
  position: relative;
  display: block;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel);
  text-decoration: none;
}

.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo:hover img { transform: scale(1.04); transition: transform .15s ease; }

.photo-label {
  position: absolute;
  inset: auto 0 0 0;
  padding: .3rem .5rem;
  font-size: .78rem;
  background: linear-gradient(transparent, rgba(10, 12, 16, .85));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge { color: var(--muted); font-size: .7rem; text-transform: uppercase; }

/* pager */
.pager {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  justify-content: center;
  padding: 1.4rem 0;
}
.pager a { color: var(--accent); text-decoration: none; font-weight: 600; }
.pager a:hover { text-decoration: underline; }
.pager span { color: var(--muted); }
