:root {
  --bg: #0e0e10;
  --fg: #f2f2f2;
  --muted: #8a8a90;
  --accent: #3c9fe8;
  --maxw: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

/* Nav */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  z-index: 100;
  background: linear-gradient(to bottom, rgba(0,0,0,0.7), transparent);
  backdrop-filter: blur(8px);
}
.site-nav .logo {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}
.site-nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

/* Hero */
.hero {
  position: relative;
  height: 100vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 50%);
}
.hero-content {
  position: relative;
  padding: 4rem 2rem;
  width: 100%;
  max-width: none;
}
.hero-content h1 {
  /* title stays on the left */
  text-align: left;
}
.hero-content .cta-row {
  margin-top: 2rem;
  display: flex;
  justify-content: flex-end;
  padding-right: 2rem;
}
.hero h1 {
  font-size: clamp(2.5rem, 8vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 1rem;
}
.hero p {
  font-size: 1.25rem;
  color: var(--muted);
}
.hero .cta {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--fg);
  border-radius: 4px;
  transition: all 0.2s;
}
.hero .cta:hover {
  background: var(--fg);
  color: var(--bg);
}

/* Content sections */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 4rem 2rem;
}
.section h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.section .subtitle {
  color: var(--muted);
  font-size: 1.125rem;
  margin-bottom: 2rem;
}
.section .prose {
  margin: 0 0 0.75rem 0;
  color: var(--fg);
  font-size: 1.0625rem;
  line-height: 1.6;
}
.section .prose p { margin-bottom: 0.5rem; }
.section .prose p:last-child { margin-bottom: 0; }

/* Photo grid */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 4px;
}
.photo-grid a {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: #1a1a1e;
}
.photo-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
  display: block;
}
.photo-grid a:hover img { transform: scale(1.05); }

/* Era blocks */
.era {
  margin-bottom: 1.25rem;
}
.era h3 {
  font-size: 1.5rem;
  margin-bottom: 0.1rem;
  margin-top: 0.5rem;
}
.era .meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

/* Footer */
.site-footer {
  padding: 2rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.875rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* Loading state */
.loading {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--muted);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  z-index: 1000;
  user-select: none;
}
.lightbox.open { display: flex; align-items: center; justify-content: center; }
.lightbox-img {
  max-width: calc(100vw - 120px);
  max-height: calc(100vh - 80px);
  object-fit: contain;
  user-select: none;
  pointer-events: none;
}
.lightbox-caption {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--fg);
  font-size: 0.9rem;
  background: rgba(0, 0, 0, 0.5);
  padding: 0.4rem 0.9rem;
  border-radius: 4px;
  max-width: 80vw;
  text-align: center;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: fixed;
  background: rgba(255, 255, 255, 0.12);
  color: var(--fg);
  border: 0;
  cursor: pointer;
  font-size: 1.4rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.15s;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255, 255, 255, 0.28); }
.lightbox-close { top: 16px; right: 16px; }
.lightbox-prev  { left:  16px; top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-counter {
  position: fixed;
  top: 20px;
  left: 20px;
  color: var(--muted);
  font-size: 0.875rem;
}
@media (max-width: 600px) {
  .lightbox-img { max-width: 100vw; max-height: calc(100vh - 120px); }
  .lightbox-close { top: 8px; right: 8px; }
}
