/* ─── Page Layout ───────────────────────────────────── */
.page-wrapper {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* ─── Shared: section body copy ─────────────────────── */
/* All muted paragraph instances share these rules. */
.hero-subheadline,
.validator-sub,
.about-text em,
.post-result-cta {
  font-family: var(--font-mono);
  font-size: var(--text-base);
  color: var(--text-muted);
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
  text-align: center;
}

/* ─── Header ────────────────────────────────────────── */
.site-header {
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--border);
}

.site-header .page-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-decoration: none;
  color: var(--text);
  border-bottom: none;
}

.logo:hover {
  color: var(--text);
}

.logo-wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-xl);
  letter-spacing: -0.03em;
  text-transform: uppercase;
  line-height: 1;
}

.logo-entropy {
  color: var(--text);
}

.logo-eater {
  color: var(--accent);
}

.logo-descriptor {
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--text-faint);
}

/* ─── Hero ──────────────────────────────────────────── */
.hero {
  padding: var(--space-10) 0 var(--space-6);
  text-align: center;
}

.hero-headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-4xl);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-4);
}

.hero-subheadline {
  margin-bottom: var(--space-6);
  letter-spacing: 0.02em;
}

/* ─── Machine Section ───────────────────────────────── */
.machine-section {
  margin-bottom: var(--space-6);
}

/* ─── Result Section ────────────────────────────────── */
.result-section {
  max-height: 0;
  overflow: hidden;
  padding: 0;
  text-align: center;
  transition: max-height 0.6s var(--ease-out), padding 0.5s var(--ease-out);
}

.result-section.has-result {
  max-height: 1000px;
  padding: var(--space-6) 0;
}

/* ─── Post-result CTA ───────────────────────────────── */
.post-result-cta {
  margin-top: var(--space-6);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out) 0.8s;
}

.post-result-cta.visible {
  opacity: 1;
}

.post-result-cta a {
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
}

.post-result-cta a:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

/* ─── About Section ─────────────────────────────────── */
.about-section {
  padding: var(--space-10) 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.about-text {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  line-height: 1.55;
  color: var(--text);
  margin-bottom: var(--space-6);
}

.about-text em {
  display: block;
  margin-top: var(--space-4);
  font-style: normal;
}

.about-link {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  border-bottom: none;
  transition: gap 0.15s, color 0.15s;
}

.about-link:hover {
  gap: var(--space-3);
  color: var(--accent);
  border-bottom: none;
}

/* ─── Validator Section ──────────────────────────────── */
.validator-section {
  padding: var(--space-10) 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.validator-label {
  font-size: var(--text-xs);
  color: var(--text-faint);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

.validator-headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-3xl);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: var(--space-4);
}

.validator-sub {
  margin-top: var(--space-4);
}

.validator-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-6);
  padding: var(--space-4) var(--space-8);
  background: var(--accent);
  color: #08080f;
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
}

.validator-cta-btn:hover {
  background: #f5ff30;
  transform: translateY(-1px);
}

.validator-cta-btn:active {
  transform: translateY(1px);
}

.validator-idea-preview {
  margin-top: var(--space-4);
  font-size: var(--text-xs);
  color: var(--text-faint);
  letter-spacing: 0.04em;
  font-style: italic;
  min-height: 1.4em;
}

/* ─── Footer ────────────────────────────────────────── */
.site-footer {
  padding: var(--space-6) 0;
  border-top: 1px solid var(--border);
}

.site-footer .page-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.footer-brand a {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
  letter-spacing: 0.08em;
  border-bottom: none;
  transition: color 0.15s;
}

.footer-brand a:hover {
  color: var(--text);
  border-bottom: none;
}

.footer-copy {
  font-size: var(--text-xs);
  color: var(--text-faint);
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
}

/* ─── Responsive ────────────────────────────────────── */
@media (max-width: 680px) {
  .hero {
    padding: var(--space-8) 0 var(--space-6);
  }

  .hero-headline {
    font-size: var(--text-3xl);
  }

  .site-footer .page-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }
}
