:root {
  --bg: #0d0d0f;
  --fg: #ececec;
  --muted: #8a8a92;
  --line: #23232a;
  --maxw: 1100px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 48px 20px 80px;
}

.site-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 40px;
}

.site-header img.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.site-header h1 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
}

.site-header a { text-decoration: none; }
.site-header .sub { color: var(--muted); font-size: 0.9rem; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 4px;
}

.grid a {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #17171b;
}

.grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.grid a:hover img { transform: scale(1.03); }

.photo-page figure {
  margin: 0;
}

.photo-page img.full {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 4px;
}

.exif {
  margin: 28px auto 0;
  max-width: 720px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 4px 24px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  color: var(--muted);
  font-size: 0.85rem;
}

.exif .k { color: var(--muted); }
.exif .v { color: var(--fg); }
.exif div { display: flex; justify-content: space-between; gap: 12px; }

.backlink {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}
.backlink:hover { color: var(--fg); }

.empty {
  color: var(--muted);
  padding: 60px 0;
  text-align: center;
}
