:root {
  --color-bg: #fafafa;
  --color-surface: #ffffff;
  --color-text: #1a1a2e;
  --color-text-muted: #64648c;
  --color-primary: #4f46e5;
  --color-primary-light: #eef2ff;
  --color-accent: #f59e0b;
  --color-border: #e5e7eb;
  --color-tag-bg: #f3f4f6;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-lg: 0 4px 12px rgba(0,0,0,0.08);
  --max-width: 800px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: var(--max-width); margin: 0 auto; padding: 2rem 1.5rem; }

/* -- Header -- */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 0;
}
.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0;
  padding-bottom: 0;
}
.site-header .logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
}
.site-header .logo span { color: var(--color-text); }
.site-header nav a {
  color: var(--color-text-muted);
  text-decoration: none;
  margin-left: 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
}
.site-header nav a:hover { color: var(--color-primary); }

/* -- Profile Card -- */
.profile-header {
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.5rem;
  margin-bottom: 2rem;
}
.profile-header h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}
.profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}
.profile-meta .meta-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.profile-meta .meta-icon { font-size: 1rem; }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.tag {
  background: var(--color-primary-light);
  color: var(--color-primary);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* -- Content Sections -- */
.profile-body {
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.5rem;
  margin-bottom: 2rem;
}
.profile-body h2 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-primary-light);
}
.profile-body h2:first-child { margin-top: 0; }
.profile-body p { margin-bottom: 1rem; color: var(--color-text); }
.profile-body ul, .profile-body ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}
.profile-body li {
  margin-bottom: 0.4rem;
  color: var(--color-text);
}
.profile-body li::marker { color: var(--color-primary); }

/* -- Sidebar Info Boxes -- */
.info-box {
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.info-box h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}
.info-box ul {
  list-style: none;
  padding: 0;
}
.info-box li {
  padding: 0.35rem 0;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--color-border);
}
.info-box li:last-child { border-bottom: none; }

/* -- Hiring Process Steps -- */
.process-steps { counter-reset: step; }
.process-step {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
  align-items: flex-start;
}
.process-step::before {
  counter-increment: step;
  content: counter(step);
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  background: var(--color-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
}
.process-step-content h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}
.process-step-content p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 0;
}

/* -- Apply CTA -- */
.apply-cta {
  background: var(--color-primary);
  color: white;
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: opacity 0.2s;
}
.apply-cta:hover { opacity: 0.9; }

/* -- Footer -- */
.site-footer {
  text-align: center;
  padding: 2rem 0;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

/* -- Index Page -- */
.profile-list { list-style: none; padding: 0; }
.profile-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem 2rem;
  margin-bottom: 1rem;
  text-decoration: none;
  display: block;
  transition: box-shadow 0.2s;
}
.profile-card:hover { box-shadow: var(--shadow-lg); }
.profile-card h2 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.25rem;
}
.profile-card .card-meta {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* -- Responsive -- */
@media (min-width: 900px) {
  .profile-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 2rem;
    align-items: start;
  }
  .container { padding: 2.5rem 1.5rem; }
}

@media print {
  .site-header, .site-footer, .apply-cta { display: none; }
  .profile-body, .profile-header, .info-box { box-shadow: none; border: 1px solid #ddd; }
}
