/* ── Base ─────────────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }

/* ── Typography helpers ───────────────────────────────────────────── */
.section-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a8a29e;
  margin-bottom: 1.25rem;
}

/* ── Buttons ──────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  background-color: #1c1917;
  color: #fafaf9;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.6rem 1.4rem;
  border-radius: 9999px;
  text-decoration: none;
  cursor: pointer;
  border: none;
}
.btn-primary:hover  { background-color: #292524; }
.btn-primary:active { transform: scale(0.97); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-secondary {
  display: inline-block;
  background-color: transparent;
  color: #44403c;
  font-size: 0.875rem;
  font-weight: 400;
  padding: 0.6rem 1.4rem;
  border-radius: 9999px;
  border: 1px solid #a8a29e;
  text-decoration: none;
  cursor: pointer;
}
.btn-secondary:hover  { border-color: #78716c; color: #1c1917; }
.btn-secondary:active { transform: scale(0.97); }

/* ── Tags & pills ─────────────────────────────────────────────────── */
.tag {
  font-size: 0.75rem;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  background-color: #e7e5e4;
  color: #44403c;
  border: 1px solid #d6d3d1;
}

.stack-pill {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  padding: 0.15rem 0.55rem;
  border-radius: 9999px;
  background-color: #dbeafe;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.tl-pill {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  padding: 0.15rem 0.55rem;
  border-radius: 9999px;
  background-color: #e7e5e4;
  color: #57534e;
  border: 1px solid #d6d3d1;
}

/* ── Project cards ────────────────────────────────────────────────── */
.project-card {
  display: flex;
  flex-direction: column;
  background-color: #fafaf9;
  border: 1px solid #d6d3d1;
  border-radius: 1rem;
  padding: 1.1rem 1.2rem;
}
.project-card:hover {
  border-color: #78716c;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

/* ── Timeline ─────────────────────────────────────────────────────── */
.timeline-item {
  display: flex;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid #d6d3d1;
}

.tl-left {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 90px;
  flex-shrink: 0;
  padding-top: 2px;
}

.tl-date {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  color: #a8a29e;
}

.tl-geo {
  font-size: 0.7rem;
  color: #78716c;
}
.tl-geo::before { content: '↟ '; font-size: 0.6rem; opacity: 0.5; }

.tl-body { flex: 1; min-width: 0; }

.tl-company {
  font-size: 0.9rem;
  font-weight: 500;
  color: #1c1917;
  margin-bottom: 0.15rem;
}

.tl-role {
  font-size: 0.8rem;
  color: #57534e;
  line-height: 1.5;
  margin-bottom: 0.6rem;
}

.tl-pills { display: flex; flex-wrap: wrap; gap: 0.35rem; }

/* ── Employment type badges ───────────────────────────────────────── */
.badge-freelance,
.badge-salaried,
.badge-edu {
  display: inline-block;
  font-size: 0.6rem;
  font-family: 'DM Mono', monospace;
  padding: 0.1rem 0.45rem;
  border-radius: 9999px;
  width: fit-content;
  margin-top: 0.25rem;
  letter-spacing: 0.03em;
}

.badge-freelance {
  background-color: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.badge-salaried {
  background-color: #e7e5e4;
  color: #78716c;
  border: 1px solid #d6d3d1;
}

.badge-edu {
  background-color: #deecd3;
  color: #3a6122;
  border: 1px solid #bad9a8;
}

/* ── Crosslink card ───────────────────────────────────────────────── */
.crosslink {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background-color: #e7e5e4;
  border: 1px solid #d6d3d1;
  border-radius: 1rem;
  cursor: pointer;
  text-decoration: none;
}
.crosslink:hover {
  border-color: #a8a29e;
  background-color: #d6d3d1;
}

/* ── Form inputs ──────────────────────────────────────────────────── */
.form-input {
  width: 100%;
  padding: 0.65rem 0.9rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  color: #1c1917;
  background-color: #fafaf9;
  border: 1px solid #a8a29e;
  border-radius: 0.6rem;
  outline: none;
}
.form-input::placeholder { color: #a8a29e; }
.form-input:focus {
  border-color: #57534e;
  box-shadow: 0 0 0 3px rgba(87, 83, 78, 0.12);
}



/* ── Nav active state ─────────────────────────────────────────────── */
.active-nav { color: #1c1917 !important; font-weight: 500; }

/* ── Mobile timeline ──────────────────────────────────────────────── */
@media (max-width: 480px) {
  .timeline-item { flex-direction: column; gap: 0.5rem; }
  .tl-left {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    min-width: unset;
  }
  .badge-freelance, .badge-salaried, .badge-edu { margin-top: 0; }
}


