:root {
  color-scheme: light dark;
  --bg: #f6f6f8;
  --surface: #ffffff;
  --ink: #1d1d1f;
  --muted: #66666c;
  --line: #e4e4e9;
  --accent: #c73e2f;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 12px 36px rgba(0, 0, 0, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b10;
    --surface: #1c1c1f;
    --ink: #f5f5f7;
    --muted: #a1a1a8;
    --line: #2c2c31;
    --accent: #ef7b64;
    --shadow: 0 8px 20px rgba(0, 0, 0, 0.35), 0 24px 64px rgba(0, 0, 0, 0.45);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

a { color: inherit; text-decoration: none; }

main {
  width: min(1000px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 72px;
}

.home-link,
.back {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 28px;
}

.home-link:hover,
.back:hover { color: var(--accent); }

.site-head h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: 0.03em;
}

.site-head p {
  margin: 12px 0 0;
  color: var(--muted);
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 34px;
}

.shot-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.shot-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
}

.shot-media {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--line);
}

.shot-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shot-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px 16px;
}

.shot-body time,
.shot-head time,
.shot-location {
  color: var(--muted);
  font-size: 0.78rem;
}

.shot-title {
  font-size: 1.03rem;
  font-weight: 650;
}

.shot-caption {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.empty {
  margin-top: 34px;
  color: var(--muted);
}

.shot-single {
  max-width: 760px;
  margin: 0 auto;
}

.shot-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 24px;
}

.shot-head h1 {
  flex: 1 1 100%;
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  letter-spacing: 0.02em;
}

.shot-full {
  margin: 0;
}

.shot-full img {
  display: block;
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.shot-full figcaption {
  margin-top: 12px;
  color: var(--muted);
  text-align: center;
}

.shot-content {
  margin-top: 28px;
  font-size: 1.05rem;
  line-height: 1.9;
}
