:root { color-scheme: dark; --bg: #0d1117; --fg: #e6edf3; --muted: #9aa7b4; --line: #30363d; --accent: #6cb6ff; }
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; height: auto; }

.site-header { max-width: 72rem; margin: 0 auto; padding: 3rem 1.25rem 1rem; }
.site-header h1 { margin: 0 0 .25rem; font-size: 2rem; letter-spacing: -.02em; }
.tagline, .location { color: var(--muted); margin: 0; }
.back a { color: var(--muted); }

main { max-width: 72rem; margin: 0 auto; padding: 1rem 1.25rem 4rem; }

.gallery {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
  gap: 1.5rem;
}
.card a { display: block; color: inherit; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.card a:hover { border-color: var(--accent); text-decoration: none; }
.card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.card-body { padding: .9rem 1rem 1.1rem; }
.card-body h2 { margin: 0 0 .35rem; font-size: 1.1rem; }
.card-body time { color: var(--muted); font-size: .85rem; }

article { max-width: 54rem; margin: 0 auto; }
article .hero { border-radius: 14px; margin-bottom: 1.5rem; }
article h1 { font-size: 2rem; margin: .2rem 0 .35rem; letter-spacing: -.02em; }
article time { color: var(--muted); font-size: .9rem; }
.body { white-space: pre-line; margin: 1.5rem 0; color: #c3ccd6; }

.details { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1.2rem; margin: 2rem 0 0; }
.details dt { color: var(--muted); }
.details dd { margin: 0; }

.tags { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.5rem 0 0; padding: 0; }
.tags li { border: 1px solid var(--line); border-radius: 999px; padding: .25rem .75rem; font-size: .85rem; color: var(--muted); }

.empty { color: var(--muted); }

/* --- Magnifier lens (1:1 zoom) ------------------------------------------ */
.zoomable { cursor: zoom-in; }
.lens {
  position: fixed;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  border: 2px solid var(--line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .55);
  pointer-events: none;
  z-index: 50;
  display: none;
  background-repeat: no-repeat;
  overflow: hidden;
}
.lens.on { display: block; }
.lens::after {
  content: "1:1";
  position: absolute;
  right: 1rem;
  bottom: .9rem;
  padding: .1rem .5rem;
  border-radius: 999px;
  background: rgba(13, 17, 23, .8);
  color: var(--muted);
  font-size: .7rem;
}
/* No hover on touch devices -- the lens never triggers there. */
@media (hover: none) { .zoomable { cursor: default; } }

footer { border-top: 1px solid var(--line); }
footer p { max-width: 72rem; margin: 0 auto; padding: 1.5rem 1.25rem; color: #6e7b8a; font-size: .85rem; }
