/* Óscar Trabazos — personal site. Overrides shared design system tokens
   and adds the few classes the shared components.css doesn't cover. */

:root {
  --primary: #12213E;
  --primary-hover: #0B1730;
  --primary-soft: #E9ECF4;
  --primary-on-dark: #C9A227;
  --accent: #C9A227;
}

/* ─── Hero (dark, profile) ────────────────────────────────────────────── */
.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin: 0 0 2rem;
}
.bg-dark .eyebrow { color: var(--primary-on-dark); }

/* Split hero with photo — left column text, right column portrait */
.hero-profile { text-align: left; padding: 4.5rem 0; }
.hero-profile-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}
.hero-profile-grid h1 { margin: 0 0 1.2rem; }
.hero-profile-grid .lead { margin: 0 0 1.5rem; max-width: 520px; }
.hero-profile .hero-pills, .hero-profile .hero-cta { justify-content: flex-start; }
.hero-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(201, 162, 39, 0.25);
}
.hero-photo img { width: 100%; height: auto; display: block; }

@media (max-width: 860px) {
  .hero-profile-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-profile-grid .lead { margin-left: auto; margin-right: auto; }
  .hero-profile .hero-pills, .hero-profile .hero-cta { justify-content: center; }
  .hero-photo { max-width: 320px; margin: 0 auto; }
}
.bg-dark .pill {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: #e7eaf0;
}
.bg-dark .btn-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}
.bg-dark .btn-secondary:hover { background: rgba(255, 255, 255, 0.08); }
.bg-dark .btn-primary { background: var(--accent); color: #12213E; border-color: var(--accent); }
.bg-dark .btn-primary:hover { background: #b8931f; color: #12213E; }

/* ─── Founder callout ─────────────────────────────────────────────────── */
.card-founder { border-left: 4px solid var(--accent); }
.founder-tag {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 0.3rem;
}

/* ─── Skills ──────────────────────────────────────────────────────────── */
.skill-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.75rem 0 0; }

/* ─── Talks grid ──────────────────────────────────────────────────────── */
.card-accent-left { border-left: 3px solid var(--primary); }

/* ─── Data tables (proyectos) ─────────────────────────────────────────── */
.table-wrap { overflow-x: auto; margin-top: 1.5rem; border: 1px solid var(--border); border-radius: var(--radius-lg); }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.data-table th, .data-table td { padding: 0.75rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.data-table th { background: var(--bg-soft); font-weight: 600; color: var(--text-main); white-space: nowrap; }
.data-table td:first-child { font-weight: 600; white-space: nowrap; }
.data-table td:last-child { color: var(--text-muted); }
.data-table tr:last-child td { border-bottom: none; }

/* ─── Press list ──────────────────────────────────────────────────────── */
.press-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0.6rem; }
.press-list li { padding: 0.9rem 1.1rem; background: var(--bg-soft); border-radius: var(--radius); border-left: 3px solid var(--accent); font-size: 0.95rem; }

/* ─── Blog search + archive ──────────────────────────────────────────── */
.blog-search { display: flex; gap: 0.6rem; max-width: 480px; margin: 0 auto 1.5rem; }
.blog-search .form-input { flex: 1; }
.blog-archive { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; }
.pill { cursor: pointer; border: 1px solid var(--border); background: var(--bg-soft); color: var(--text-muted); text-decoration: none; }
.pill:hover { border-color: var(--border-strong); color: var(--text-main); }
.pill--active { background: var(--primary); border-color: var(--primary); color: #fff; }
.pill--active .text-soft { color: rgba(255,255,255,0.75); }
