/* ── Per-project landing pages ──
   Reuses the Dracula variables and nav/hero/footer classes from style.css.
   Only article-body content needs its own rules. */

.proj-hero {
  padding: 6rem 0 3rem;
  background: var(--bg-section);
  border-bottom: 1px solid var(--border);
}

.proj-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.proj-title {
  font-family: var(--font-mono);
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  background-image: var(--gradient-text);
  background-size: 200% 200%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.proj-title-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.proj-title-row .proj-title {
  margin-bottom: 0;
}

.proj-icon {
  flex: none;
  width: clamp(44px, 6vw, 64px);
  height: auto;
  border-radius: 22%;
  box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.35);
}

.proj-tagline {
  font-size: clamp(1.05rem, 2.5vw, 1.4rem);
  color: var(--text);
  opacity: 0.9;
  max-width: 60ch;
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.proj-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.proj-version {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.proj-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.proj-topic {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-purple);
  background: var(--card-icon-bg);
  border: 1px solid var(--border-accent);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
}

/* ── Article body ── */
.article {
  padding: 3.5rem 0;
}

.article .container {
  max-width: 760px;
}

.article h2 {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  color: var(--accent-hover);
  margin: 2.5rem 0 1rem;
}

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

.article p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text);
  opacity: 0.92;
  margin-bottom: 1.1rem;
}

.article ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.article li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.6rem;
  line-height: 1.65;
  color: var(--text);
  opacity: 0.92;
}

.article li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.article a {
  color: var(--link-green);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}

.article a:hover {
  border-bottom-color: var(--link-green);
}

.article code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  background: var(--bg-section-alt);
  color: var(--accent-yellow);
  padding: 0.12em 0.4em;
  border-radius: 4px;
}

.article pre {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.6;
  background: var(--bg-section-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.1rem 1.25rem;
  overflow-x: auto;
  margin: 0 0 1.5rem;
  color: var(--text);
}

.article pre code {
  background: none;
  color: inherit;
  padding: 0;
}

/* ── Cross-links to sibling projects ── */
.siblings {
  padding: 3rem 0 4rem;
  background: var(--bg-section-alt);
  border-top: 1px solid var(--border);
}

.siblings h2 {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  color: var(--text);
  margin-bottom: 1.25rem;
  opacity: 0.9;
}

.sibling-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
}

.sibling-card {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg-section);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.9rem 1rem;
  text-decoration: none;
  transition:
    transform 0.15s,
    border-color 0.15s;
}

.sibling-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-accent);
  color: var(--accent-hover);
}

.sibling-card .sib-name {
  font-weight: 700;
  color: var(--accent-purple);
}

.sibling-card .sib-sub {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* ── Footer link row (homepage + project pages) ── */
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.footer-links a {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--footer-link);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-links a:hover {
  color: var(--accent-hover);
}

@media (max-width: 640px) {
  .proj-hero {
    padding: 4.5rem 0 2.5rem;
  }
  .article {
    padding: 2.5rem 0;
  }
}
