/* ===========================================================================
   Project detail pages (projects/*.html). Builds on css/custom.css tokens.
   =========================================================================== */

body {
  margin: 0;
  background: #fff;
  color: #444;
  font-family: 'Poppins', helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  text-align: left;
}

a { color: var(--gold); }
a:hover { color: #9c8565; }

.project-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  box-shadow: 0 2px 30px rgba(0,0,0,.08);
}
.project-nav .inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.project-nav .back {
  font: 500 14px 'Poppins', sans-serif;
  color: #777;
  text-decoration: none;
  white-space: nowrap;
}
.project-nav .back:hover { color: var(--gold); }

.project-hero {
  background: var(--ink);
  color: #fff;
  padding: 64px 20px 56px;
}
.project-hero .inner { max-width: 1040px; margin: 0 auto; }
.project-hero .demo-tag { color: var(--gold); margin-bottom: 10px; }
.project-hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.15;
  margin: 0 0 14px;
  color: #fff;
}
.project-hero .lede { font-size: 18px; color: #d9d9d9; max-width: 760px; margin: 0 0 8px; }
.project-hero .authors { font-size: 14px; color: #aaa; margin: 0 0 18px; }
.project-hero .authors b { color: #fff; font-weight: 500; }
.project-hero .demo-links a { color: #fff; border-color: #555; }
.project-hero .demo-links a:hover { color: var(--gold); border-color: var(--gold); }
.project-hero .demo-links .soon { color: #888; }

.project-body { max-width: 1040px; margin: 0 auto; padding: 40px 20px 80px; }
.project-media { margin: -20px 0 40px; border-radius: 6px; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,.12); }
.project-media + .project-media { margin-top: 0; }
.project-media-caption { font-size: 13px; color: #999; margin: -30px 0 40px; }

.project-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 48px; }
@media (max-width: 820px) { .project-grid { grid-template-columns: 1fr; gap: 24px; } }

.project-body h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 26px;
  color: var(--ink);
  margin: 36px 0 12px;
}
.project-body h2:first-child { margin-top: 0; }
.project-body ul { padding-left: 20px; }
.project-body li { margin-bottom: 8px; }

.project-facts {
  background: var(--paper);
  border-radius: 6px;
  padding: 22px 24px;
  align-self: start;
  position: sticky;
  top: 90px;
}
.project-facts h3 {
  font: 600 12px 'Poppins', sans-serif;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--gold);
  margin: 0 0 4px;
}
.project-facts p { margin: 0 0 16px; font-size: 14px; line-height: 1.6; }
.project-facts p:last-child { margin-bottom: 0; }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 8px;
}
.gallery figure { margin: 0; }
.gallery img { width: 100%; height: auto; border-radius: 4px; border: 1px solid #eee; background: #fff; }
.gallery figcaption { font-size: 13px; color: #999; margin-top: 4px; }
.gallery-placeholder {
  aspect-ratio: 4 / 3;
  border: 2px dashed #ddd;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: 14px;
  text-align: center;
  padding: 12px;
}

.project-footer {
  background: var(--ink);
  color: #aaa;
  text-align: center;
  padding: 28px 20px;
  font-size: 14px;
}
.project-footer a { color: #fff; }
