/* ============================================================
   hero.css — Hero / profile section
   Depends on CSS custom properties from base.css:
     --serif, --mono, --ink, --muted, --accent, --accent2,
     --card, --border
   ============================================================ */

/* ── HERO ── */
.hero {
  display: grid;
  grid-template-columns: 220px 1fr;
  column-gap: 4rem;
  max-width: 960px;
  margin: 0 auto;
  padding: 5rem 2rem 4rem;
  align-items: start;
}

/* Each column is an independent flex stack — no shared row heights */
.hero-left,
.hero-right {
  display: flex;
  flex-direction: column;
}

.hero-left  { gap: 1.2rem; }
.hero-right { gap: 1.2rem; }

.hero-photo {
  width: 200px;
  height: 200px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, #ddd8cf 0%, #c8c2b8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.hero-bio h1 {
  font-family: var(--serif);
  font-size: 2.6rem;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 0.35rem;
}

.hero-org a { color: var(--accent2); text-decoration: none; }
.hero-org a:hover { text-decoration: underline; }

.hero-bio a { color: var(--accent2); text-decoration: none; }
.hero-bio a:hover { text-decoration: underline; }

.hero-bio p {
  font-size: 0.95rem;
  color: var(--ink);
  max-width: 580px;
  text-align: justify;
}

.hero-bio .hero-role {
  color: var(--accent);
  font-size: 0.75rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.2rem;
}

.hero-bio .hero-org {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 1.2rem;
}
/* Social links */
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.3em 0.8em 0.3em 0.6em;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.social-link:hover {
  color: var(--ink);
  border-color: var(--muted);
  background: var(--card);
}

.social-link svg { width: 14px; height: 14px; flex-shrink: 0; }

/* Sidebar block heading */
.sidebar-block h3 {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.8rem;
}

/* Languages */
.lang-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.lang-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.87rem;
}

.lang-name { color: var(--ink); }

.lang-level {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.1em 0.55em;
  cursor: default;
}

/* Interests */
.interests-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.interests-list li {
  font-size: 0.87rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.interests-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.interests-list a { color: var(--ink); text-decoration: none; }
.interests-list a:hover { color: var(--accent); }

/* Tech stack */
.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem 2rem;
}

.tech-stack > div { display: flex; flex-direction: column; }

.tech-group-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.tech-pills { display: flex; flex-wrap: wrap; gap: 0.3rem; }

.tech-pill {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.18em 0.55em;
}

/* ── Mobile ──────────────────────────────────────────────────
   Switch to flex column, reorder blocks explicitly:
   1. photo  2. bio  3. links  4. languages  5. interests  6. tech */
@media (max-width: 700px) {
  .hero {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 3rem 1.2rem 2.5rem;
  }

  /* Dissolve wrappers so children become direct flex items */
  .hero-left,
  .hero-right { display: contents; }

  /* Order each block individually */
  .hero-photo     { order: 1; width: 120px; height: 120px; }
  .hero-bio       { order: 2; }
  .hero-links     { order: 3; }
  .hero-languages { order: 4; }
  .hero-interests { order: 5; }
  .hero-tech      { order: 6; }
}