/* ─── Reset & Base ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:           #0d0d10;
  --surface:      #16161a;
  --surface-2:    #1e1e24;
  --border:       #26262f;
  --border-hover: #38384a;
  --accent:       #7c9ef8;
  --accent-dim:   #7c9ef814;
  --accent-border:#7c9ef830;
  --text:         #e0e0ea;
  --muted:        #7a7a90;
  --subtle:       #4a4a60;
  --green:        #4ade80;
  --green-dim:    #4ade8014;
  --radius:       8px;
  --width:        660px;
}

html { -webkit-font-smoothing: antialiased; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.65;
  padding: 0 1.5rem;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ─── Focus styles (keyboard accessibility) ─────────────────────────── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ─── Layout ────────────────────────────────────────────────────────── */
.container {
  max-width: var(--width);
  margin: 0 auto;
}

main {
  max-width: var(--width);
  margin: 0 auto;
  padding-bottom: 6rem;
}

/* ─── Nav ───────────────────────────────────────────────────────────── */
nav {
  max-width: var(--width);
  margin: 0 auto;
  padding: 1.75rem 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3.5rem;
}

.nav-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  letter-spacing: -0.01em;
  transition: color 0.15s;
}
.nav-name:hover { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 1.75rem;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.875rem;
  transition: color 0.15s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }

/* ─── Footer ────────────────────────────────────────────────────────── */
footer {
  max-width: var(--width);
  margin: 0 auto;
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
footer span { color: var(--muted); font-size: 0.8rem; }
footer a { color: var(--muted); font-size: 0.8rem; transition: color 0.15s; }
footer a:hover { color: var(--text); }

/* ─── Badge ─────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--green-dim);
  color: var(--green);
  border: 1px solid #4ade8030;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.2rem 0.65rem;
  margin-bottom: 1.5rem;
}
.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.85); }
}

/* ─── Section label ─────────────────────────────────────────────────── */
.label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

/* ─── Section spacing ───────────────────────────────────────────────── */
section { margin-top: 3rem; }

/* ─── Prose ─────────────────────────────────────────────────────────── */
h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--text);
}
h2 {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 0.2rem;
}
h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}
p { color: var(--muted); font-size: 0.95rem; }
p + p { margin-top: 0.75rem; }

/* ─── Cards ─────────────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  transition: border-color 0.15s;
}
.card:hover { border-color: var(--border-hover); }

.card-grid {
  display: grid;
  gap: 0.75rem;
}

/* ─── Tags ──────────────────────────────────────────────────────────── */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}
.tag {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.15rem 0.55rem;
  border-radius: 4px;
}

/* ─── Status pill ───────────────────────────────────────────────────── */
.status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.15rem 0.55rem;
  border-radius: 4px;
  margin-bottom: 0.6rem;
}
.status.live    { background: var(--green-dim); color: var(--green); border: 1px solid #4ade8028; }
.status.building{ background: var(--accent-dim); color: var(--accent); border: 1px solid var(--accent-border); }

/* ─── Social links ──────────────────────────────────────────────────── */
.social-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 2rem;
}
.social-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.875rem;
  transition: color 0.15s;
}
.social-link:hover { color: var(--text); }
.social-link svg { flex-shrink: 0; }

/* ─── Resume-specific ───────────────────────────────────────────────── */
.resume-header { margin-bottom: 2.5rem; }
.resume-header h1 { margin-bottom: 0.4rem; }
.resume-header .subtitle {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.resume-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}
.resume-contact a {
  color: var(--muted);
  font-size: 0.85rem;
  transition: color 0.15s;
}
.resume-contact a:hover { color: var(--text); }

.resume-section { margin-top: 2.25rem; }
.resume-section .label { margin-bottom: 1rem; }

.job { padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); margin-bottom: 1.5rem; }
.job:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-bottom: 0.15rem;
}
.job-title  { font-size: 0.95rem; font-weight: 600; color: var(--text); }
.job-date   { font-size: 0.8rem; color: var(--muted); white-space: nowrap; }
.job-company{ font-size: 0.85rem; color: var(--accent); margin-bottom: 0.75rem; }

.job ul { list-style: none; display: flex; flex-direction: column; gap: 0.45rem; }
.job ul li {
  font-size: 0.875rem;
  color: var(--muted);
  padding-left: 1rem;
  position: relative;
}
.job ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--subtle);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
}
.skill-group h3 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.skill-group p {
  font-size: 0.82rem;
  color: var(--subtle);
  line-height: 1.7;
}

.cert-list { display: flex; flex-direction: column; gap: 0.4rem; }
.cert-list li {
  font-size: 0.875rem;
  color: var(--muted);
  list-style: none;
  padding-left: 1rem;
  position: relative;
}
.cert-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.7rem;
  top: 0.15rem;
}

/* ─── Blog empty state ───────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--muted);
}
.empty-state .icon { font-size: 2rem; margin-bottom: 1rem; }
.empty-state h2 { font-size: 1rem; color: var(--text); margin-bottom: 0.5rem; }
.empty-state p  { font-size: 0.875rem; max-width: 380px; margin: 0 auto; }

/* ─── Uses ───────────────────────────────────────────────────────────── */
.uses-group { margin-bottom: 2.5rem; }
.uses-item {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.uses-item:last-child { border-bottom: none; }
.uses-item-name { font-size: 0.9rem; font-weight: 500; color: var(--text); }
.uses-item-desc { font-size: 0.85rem; color: var(--muted); }

/* ─── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 540px) {
  .nav-links { gap: 1.1rem; }
  .skills-grid { grid-template-columns: 1fr; }
  .job-header { flex-direction: column; }
}

/* ─── Rounds Job Board ────────────────────────────────────────────────── */
.filters {
  margin-bottom: 2rem;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-pill {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s;
}
.filter-pill:hover {
  border-color: var(--border-hover);
  color: var(--text);
}
.filter-pill.active {
  background: var(--accent-dim);
  color: var(--accent);
  border-color: var(--accent-border);
}
