* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --accent: #c9a227;
  --accent-dim: #a68520;
}

body {
  min-height: 100vh;
  background: #1a1a1a;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  display: flex;
  flex-direction: column;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 1.5rem;
  background: #0d0d0d;
  border-bottom: 1px solid #333;
}

.nav-brand {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.25rem;
  margin-right: 0.5rem;
}

.nav-brand:hover {
  color: #e0b83a;
}

.nav-brand:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.nav-link {
  color: #e0e0e0;
  text-decoration: none;
  font-weight: 500;
}

.nav-link:hover {
  color: #fff;
}

.nav-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Active page in nav */
.page-home .nav-link[href="index.html"]:not(.nav-brand),
.page-projects .nav-link[href="projects.html"],
.page-harley .nav-link[href="harley-work.html"],
.page-woodworking .nav-link[href="custom-woodworking.html"],
.page-games .nav-link[href="games.html"] {
  color: var(--accent);
  font-weight: 600;
}

/* Lightbox overlay */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
.lightbox.open {
  display: flex;
}
.lightbox img {
  max-width: 92vw;
  max-height: 90vh;
  border-radius: 4px;
  box-shadow: 0 8px 60px rgba(0,0,0,0.7);
  cursor: default;
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.8;
}
.lightbox-close:hover { opacity: 1; }

/* Make thumbnails show pointer */
.photo-frame img,
.project-card-thumb {
  cursor: zoom-in;
}

.hero {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 53px - 60px);
  flex: 1;
}

.hero-image {
  width: auto;
  max-width: 100%;
  max-height: 78vh;
  display: block;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.hero-text {
  text-align: center;
  margin-top: 1.5rem;
}

.hero-title {
  color: #fff;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero-tagline {
  color: #a0a0a0;
  font-size: 1.1rem;
  margin-top: 0.35rem;
}

.page-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  flex: 1;
}

.page-title {
  color: #e0e0e0;
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.page-description {
  color: #a0a0a0;
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.project-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.project-item {
  color: #c0c0c0;
  font-size: 1.125rem;
  padding: 1rem 1.25rem;
  border: 1px solid #333;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
}

.project-item:hover {
  border-color: #444;
  background: rgba(255, 255, 255, 0.04);
}

.project-item a {
  color: inherit;
  text-decoration: none;
  display: block;
  cursor: pointer;
}

.project-item:has(a):hover {
  border-color: var(--accent);
  cursor: pointer;
}

.project-item a:hover {
  color: var(--accent);
}

/* Project tile cards with thumbnails */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.project-card {
  display: block;
  text-decoration: none;
  border: 1px solid #333;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.2s, background 0.2s;
}

.project-card:hover {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.05);
}

.project-card-thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.project-card-thumb-placeholder {
  width: 100%;
  height: 180px;
  background: #2a2a2a;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.project-card-info {
  padding: 0.9rem 1.1rem;
}

.project-card-title {
  color: #e0e0e0;
  font-size: 1.05rem;
  font-weight: 600;
}

.project-card:hover .project-card-title {
  color: var(--accent);
}

.project-card-sub {
  color: #888;
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

@media (max-width: 600px) {
  .project-grid {
    grid-template-columns: 1fr;
  }
}

.back-link {
  display: inline-block;
  color: #888;
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.back-link:hover {
  color: #ccc;
}

.project-detail {
  max-width: 860px;
}

.project-body {
  color: #c0c0c0;
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.photo-frame {
  background: #fff;
  padding: 8px;
  border-radius: 4px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

.photo-frame img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
  border-radius: 2px;
}

.photo-frame--single {
  display: block;
  margin-top: 2rem;
  max-width: 480px;
}

.photo-frame--single img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
}

.video-block {
  margin-bottom: 1rem;
}

.video-caption {
  color: #888;
  font-size: 0.9rem;
  margin-top: 0.6rem;
  font-style: italic;
}

.video-block video {
  width: 100%;
  max-width: 340px;
  border-radius: 6px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  cursor: pointer;
}

@media (max-width: 600px) {
  .photo-grid {
    grid-template-columns: 1fr;
  }
}

.site-footer {
  text-align: center;
  padding: 1rem 1.5rem;
  background: #0d0d0d;
  border-top: 1px solid #333;
  color: #666;
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  .nav {
    flex-wrap: wrap;
    gap: 1rem;
  }
  .hero {
    padding: 0.5rem;
    min-height: auto;
  }
  .hero-image {
    border-radius: 4px;
  }
  .hero-title {
    font-size: 1.5rem;
  }
  .hero-tagline {
    font-size: 1rem;
  }
  .page-content {
    padding: 1.5rem 1rem;
  }
}
