/* ============================================================================
   pers-ui - kits/site.css
   Site-page components (hero, card grids, projects, languages, contact) layered
   on core/base.css. Token-driven; a skin supplies the values. Pair with
   core/base.css + a skin + a templates/site/<family>.css. See README.md.
   ============================================================================ */

/* ---- hero ----------------------------------------------------------------- */
.hero { padding-block: clamp(3.5rem, 10vw, 7rem); }
.hero-lead {
  font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--text-muted);
  max-width: 60ch; margin-top: 1.2rem;
}
.hero-title { margin-top: 0.4rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }
.hero-meta {
  list-style: none; padding: 0; margin-top: 2.6rem;
  display: flex; flex-wrap: wrap; gap: 1.6rem;
}
.hero-meta li { display: flex; flex-direction: column; gap: 0.15rem; }
.hero-meta .meta-value { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; }
.hero-meta .meta-label { font-size: 0.82rem; color: var(--text-faint); font-family: var(--font-mono); letter-spacing: 0.03em; }

.hero-inner { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(1.5rem, 5vw, 3.5rem); }
.hero-text { flex: 1 1 22rem; }
.hero-aside { flex: 0 0 auto; margin-inline: auto; }
.avatar {
  width: clamp(9rem, 22vw, 13rem); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(2.6rem, 7vw, 4rem);
  color: var(--accent); background: var(--accent-soft);
  border: 1px solid var(--border);
  object-fit: cover; /* crop the headshot square when .avatar is an <img> */
}

/* ---- skills / projects grids ---------------------------------------------- */
.skills-grid, .projects-grid {
  display: grid; gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.skill-group h3 { margin-bottom: 0.9rem; }

/* ---- projects ------------------------------------------------------------- */
.project { display: flex; flex-direction: column; gap: 0.8rem; }
.project-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.8rem; }
.project-head h3 { margin: 0; }
.project p { color: var(--text-muted); }
.project .tags { margin-top: auto; }
.project-link { font-weight: 600; font-size: 0.9rem; align-self: flex-start; }
.project-link::after { content: " \2192"; }

/* ---- languages + contact -------------------------------------------------- */
.languages { margin-top: 1.6rem; }
.languages h3 { margin-bottom: 0.8rem; }

.contact-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.8rem; }
.contact-list li { display: flex; flex-wrap: wrap; gap: 0.3rem 0.9rem; align-items: baseline; }
.contact-label {
  font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-faint); min-width: 5rem;
}
.contact-direct h3 { margin-bottom: 1.1rem; }
