/* System fonts only — no external requests, no tracking. */
:root {
  --bg: #fcfcfb; --fg: #1a1a1a; --muted: #6b6b6b; --line: #e6e4df;
  --accent: #1a1a1a; --chip: #efede8; --maxw: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root { --bg:#121211; --fg:#eceae5; --muted:#9a978f; --line:#2a2a28;
          --accent:#eceae5; --chip:#232321; }
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55; font-size: 17px;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 2px; }
button { font: inherit; cursor: pointer; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { padding-top: 36px; padding-bottom: 24px; }
.site-title { font-size: 1.5rem; font-weight: 650; letter-spacing: -0.01em;
  text-decoration: none; color: var(--fg); }
.site-tagline { margin: 4px 0 0; color: var(--muted); font-size: 0.95rem; }

/* Tag filter chips */
.filters { display: flex; flex-wrap: wrap; gap: 8px; padding: 22px 0 6px; }
.chip {
  border: 1px solid var(--line); background: var(--chip); color: var(--fg);
  padding: 5px 12px; border-radius: 999px; font-size: 0.85rem;
}
.chip[aria-pressed="true"] { background: var(--accent); color: var(--bg);
  border-color: var(--accent); }

/* Grids */
.grid { display: grid; gap: 18px; padding: 18px 0 64px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card { text-decoration: none; color: inherit; display: block; }
.card .cover, .card .noimg {
  width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 6px;
  background: var(--line); }
.card-title { font-weight: 550; margin-top: 8px; }
.card-sub { color: var(--muted); font-size: 0.85rem; }
.card:hover .cover { opacity: 0.92; }

.photos { columns: 3 260px; column-gap: 14px; padding: 18px 0 64px; }
.photos button { border: 0; background: none; padding: 0; width: 100%;
  margin: 0 0 14px; break-inside: avoid; display: block; }
.photos img { width: 100%; border-radius: 6px; }

.crumbs { padding-top: 22px; color: var(--muted); font-size: 0.9rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.album-head { padding: 6px 0 0; }
.album-head h1 { margin: 2px 0; font-size: 1.7rem; letter-spacing: -0.02em; }
.album-head .meta { color: var(--muted); font-size: 0.9rem; }

.empty { padding: 48px 0; color: var(--muted); }
.site-footer { border-top: 1px solid var(--line); color: var(--muted);
  font-size: 0.85rem; }
.site-footer .wrap { padding: 20px; }
.site-footer a { color: var(--muted); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.94);
  display: none; align-items: center; justify-content: center; z-index: 50; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 94vw; max-height: 90vh; width: auto; border-radius: 4px; }
.lb-btn { position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.12); color: #fff; border: 0; border-radius: 50%;
  width: 48px; height: 48px; font-size: 1.5rem; }
.lb-prev { left: 16px; } .lb-next { right: 16px; }
.lb-close { position: absolute; top: 14px; right: 16px; background: none;
  color: #fff; border: 0; font-size: 2rem; line-height: 1; }
.lb-count { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center;
  color: rgba(255,255,255,0.7); font-size: 0.85rem; }
