/* ── Reset & base ─────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:       #0a0a0a;
  --surface:  #111;
  --text:     #e8e8e8;
  --muted:    #666;
  --accent:   #fff;
  --gap:      4px;
  --header-h: 48px;
}

html { font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Georgia', serif;
  min-height: 100vh;
}

/* ── Header ──────────────────────────────────────────────────────────────── */
header {
  height: var(--header-h);
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  border-bottom: 1px solid #1e1e1e;
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 10;
}

.site-title {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: lowercase;
}

/* ── HEB info block ──────────────────────────────────────────────────────── */
.heb-info {
  max-width: 960px;
  margin: 3rem auto 2.5rem;
  padding: 0 1.5rem;
  border-bottom: 1px solid #1e1e1e;
  padding-bottom: 2.5rem;
}

.heb-title {
  font-size: 1.5625rem;
  font-weight: bold;
  font-family: system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.heb-body p {
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.heb-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

.heb-columns h2 {
  font-size: 0.875rem;
  font-weight: normal;
  font-family: system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 0.5rem;
  margin-top: 1.25rem;
}

.heb-columns h2:first-child {
  margin-top: 0;
}

.heb-columns p {
  color: var(--text);
  font-size: 0.875rem;
  line-height: 1.7;
  margin-bottom: 0;
}

.heb-about-heading {
  font-size: 0.875rem;
  font-weight: normal;
  font-family: system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-top: 1.75rem;
  margin-bottom: 0.6rem;
}

.heb-about {
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.75;
  margin-bottom: 0;
}

.heb-list {
  list-style: disc;
  padding-left: 1.25rem;
  margin-top: 0.5rem;
}

.heb-list li {
  color: var(--text);
  font-size: 0.875rem;
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.heb-list li:last-child {
  margin-bottom: 0;
}

.heb-citation {
  margin-top: 1.75rem;
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.heb-more-heading {
  font-size: 0.875rem;
  font-weight: normal;
  font-family: system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}

.heb-citation a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s;
}

.heb-citation a:hover {
  color: var(--muted);
}

.heb-columns a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s;
}

.heb-columns a:hover {
  color: var(--accent);
}

@media (max-width: 600px) {
  .heb-columns {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* ── Photo documentary intro ──────────────────────────────────────────────── */
.photo-intro {
  max-width: 960px;
  margin: 3rem auto 2rem;
  padding: 0 1.5rem;
}

.photo-intro-title {
  font-size: 1rem;
  font-weight: normal;
  font-family: system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.photo-intro-body {
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.photo-intro-disclaimer {
  font-size: 0.75rem;
  line-height: 1.7;
  color: var(--muted);
  border-left: 2px solid #2a2a2a;
  padding-left: 1rem;
}

.photo-intro-disclaimer strong {
  color: var(--text);
}

/* ── Month divider ───────────────────────────────────────────────────────── */
.month-divider {
  padding: 0 1.5rem 2rem;
  margin-top: 6rem;
}

.month-divider:first-of-type {
  margin-top: 1.5rem;
}

.month-divider hr {
  width: 75%;
  border: none;
  border-top: 1px solid #333;
  margin: 0 0 2rem 0;
}

.month-label {
  font-size: 1.25rem;
  font-family: system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text);
}

/* ── Grid ────────────────────────────────────────────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--gap);
  padding: var(--gap);
}

.grid-item {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
}

.grid-item img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s ease;
}

.grid-item:hover img {
  opacity: 0.8;
}

.grid-filename {
  display: block;
  padding: 0.4rem 0.5rem;
  font-size: 0.7rem;
  color: var(--muted);
  font-family: monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0;
}

/* ── Photo detail ─────────────────────────────────────────────────────────── */
.photo-detail {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.photo-image img {
  width: 100%;
  height: auto;
  display: block;
}

.photo-meta {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.photo-date {
  color: var(--muted);
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.photo-map {
  height: 300px;
  width: 100%;
  border: 1px solid #1e1e1e;
}

/* ── Photo navigation ─────────────────────────────────────────────────────── */
.photo-nav {
  margin-top: 3rem;
  display: flex;
  justify-content: space-between;
  padding-bottom: 4rem;
  border-top: 1px solid #1e1e1e;
  padding-top: 1.5rem;
}

.photo-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  transition: color 0.15s;
}

.photo-nav a:hover {
  color: var(--accent);
}

.nav-next {
  margin-left: auto;
}

/* ── Empty state ──────────────────────────────────────────────────────────── */
.empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--header-h));
  color: var(--muted);
  font-size: 0.875rem;
  letter-spacing: 0.05em;
}

.empty code {
  font-family: monospace;
  color: var(--text);
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
    padding: 2px;
  }

  .photo-detail {
    margin: 1rem auto;
    padding: 0 1rem;
  }

  .photo-map {
    height: 220px;
  }
}
