/* Phase 2 additions. styles.css is Cole's mockup CSS, used verbatim; these are the only new rules. */

/* Hero video slot: the poster shows until a video source is added. */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 42%;
  filter: brightness(0.82) contrast(1.05) saturate(0.94);
}
.hero#home .hero-video {
  object-position: 42% 58%;
  filter: brightness(0.78) contrast(1.06) saturate(0.96);
}
@media (max-width: 720px) {
  .hero#home .hero-video { object-position: 72% 40%; }
}

/* The "Next article" link is long; .text-cta is inline-flex, so its text
   cannot wrap and it overflows at 390px. Let it flow inline here. */
.article-next .text-cta { display: inline; white-space: normal; }
.article-next .text-cta .arrow {
  display: inline-block;
  vertical-align: middle;
  margin-left: 0.7rem;
}

/* Visualizer iframe, per EMBED_FOR_RAFA.md. */
.viz-iframe {
  width: 100%;
  min-height: 720px;
  border: 0;
  border-radius: 6px;
  background: #2E2A25;
  display: block;
}

/* Honeypot: hidden from people, present for bots. */
.hp-field {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Form error state. Shown only after a failed submit, with the server
   error text plus the phone and email backup. */
.form-error {
  display: none;
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(180, 60, 40, 0.55);
  background: rgba(180, 60, 40, 0.08);
  border-radius: 6px;
  font-size: 0.95rem;
}
.form-error.is-on { display: block; }
.form-error a { text-decoration: underline; }
.surface-charcoal .form-error,
.book-card .form-error { color: var(--cream); }
.surface-charcoal .form-error a,
.book-card .form-error a { color: var(--gold-sun); }
button[type="submit"][disabled] { opacity: 0.6; cursor: wait; }

/* Small note under a field. */
.field-note {
  font-size: 0.9rem;
  color: var(--brown-soft);
  margin-top: 0.2rem;
}
.surface-charcoal .field-note { color: var(--cream-muted); }
.surface-charcoal .field-note a { color: var(--gold-sun); }

/* Articles index: card grid, one column on mobile, three on desktop. */
.article-cards {
  list-style: none;
  display: grid;
  gap: 1.5rem;
  margin-top: 2.5rem;
}
@media (min-width: 800px) {
  .article-cards { grid-template-columns: repeat(3, 1fr); }
}
.article-cards li {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.8rem 1.6rem;
  border: 1px solid rgba(140, 107, 61, 0.25);
  border-radius: 6px;
  background: rgba(234, 224, 210, 0.04);
}
.article-cards .cat {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-sun);
}
.article-cards h3 {
  font-size: 1.35rem;
  color: var(--cream);
  line-height: 1.25;
}
.article-cards p { color: var(--cream-muted); }
.article-cards .read-time {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-sun);
}
.article-cards .card-actions {
  margin-top: auto;
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  align-items: flex-start;
}

/* Project cards link to their detail pages: the whole cover is a link. */
.cover-link { position: absolute; inset: 0; z-index: 3; }

/* Project detail pages: a taller cover than the home cards. */
.proj-detail .cover-single { height: min(68vh, 42rem); min-height: 28rem; }

/* "View the project" link under a card description. */
.view-link { margin-top: 1rem; }
