* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #e5e7eb;
  color: #1e293b;
  font-family: "Inter", system-ui, sans-serif;
  line-height: 1.55;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: #0d0d0d;
}

.back-link {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.9rem;
}
.back-link:hover {
  color: #00f5ff;
}

.btn-print {
  background: linear-gradient(135deg, #00f5ff, #a855f7);
  color: #0d0d0d;
  border: none;
  border-radius: 999px;
  padding: 0.6rem 1.3rem;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  font-family: inherit;
}
.btn-print:hover {
  filter: brightness(1.08);
}

.sheet {
  max-width: 900px;
  margin: 2rem auto;
  display: grid;
  grid-template-columns: 270px 1fr;
  background: #ffffff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  border-radius: 10px;
  overflow: hidden;
}

/* ---------- sidebar ---------- */
.sidebar {
  background: #14141f;
  color: #cbd5e1;
  padding: 2.25rem 1.75rem;
}
.photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 2rem;
  border: 3px solid #2a2a3d;
}
.side-block {
  margin-bottom: 1.9rem;
}
.side-block h3 {
  margin: 0 0 0.8rem;
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #00f5ff;
}
.side-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.85rem;
  word-break: break-word;
}
.side-list a {
  color: #cbd5e1;
  text-decoration: none;
}
.side-list a:hover {
  color: #00f5ff;
}
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.pills span {
  background: #1f1f30;
  border: 1px solid #2f2f45;
  color: #e2e8f0;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  font-size: 0.78rem;
}
.side-text {
  margin: 0 0 0.4rem;
  font-size: 0.85rem;
  color: #94a3b8;
}
.side-text-strong {
  color: #e2e8f0;
  font-weight: 600;
}

/* ---------- main content ---------- */
.content {
  padding: 2.5rem 2.5rem 3rem;
}
.content h1 {
  margin: 0 0 0.2rem;
  font-size: 2rem;
  font-weight: 800;
  color: #0f172a;
}
.role {
  margin: 0 0 1.1rem;
  color: #7c3aed;
  font-weight: 600;
}
.summary {
  margin: 0 0 1.8rem;
  color: #475569;
  font-size: 0.92rem;
}
.content h2 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #0f172a;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 0.5rem;
  margin: 1.8rem 0 1.1rem;
}
.job {
  margin-bottom: 1.3rem;
  break-inside: avoid;
}
.job-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
}
.job-head h3 {
  margin: 0;
  font-size: 0.98rem;
  color: #0f172a;
}
.job-date {
  font-size: 0.8rem;
  color: #94a3b8;
  white-space: nowrap;
}
.job-links {
  font-size: 0.8rem;
  white-space: nowrap;
}
.job-links a {
  color: #0891b2;
  text-decoration: none;
}
.job-links a:hover {
  text-decoration: underline;
}
.job ul {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
  color: #475569;
  font-size: 0.88rem;
}
.job ul li {
  margin-bottom: 0.35rem;
}
.job ul li b {
  color: #1e293b;
}
.stack {
  margin: 0.4rem 0 0;
  font-size: 0.8rem;
  color: #0891b2;
}

@media (max-width: 680px) {
  .sheet {
    grid-template-columns: 1fr;
    margin: 0;
    border-radius: 0;
  }
}

@media print {
  .no-print,
  .topbar {
    display: none !important;
  }
  body {
    background: #fff;
  }
  .sheet {
    margin: 0;
    box-shadow: none;
    border-radius: 0;
    max-width: 100%;
  }
}
