:root {
  --bg: #0a0a0a;
  --surface: #111111;
  --border: #1e1e1e;
  --text: #c9d1d9;
  --green: #00ff88;
  --dim: #6e7681;
  --dot-red: #ff5f57;
  --dot-yellow: #febc2e;
  --dot-green: #28c840;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "JetBrains Mono", "Fira Code", "Cascadia Code", monospace;
  font-size: 15px;
  line-height: 1.7;
}

.shell {
  width: min(900px, calc(100% - 2.5rem));
  margin: 0 auto;
}

/* ── HEADER ── */

.site-header {
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 100;
}

.site-header .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  color: var(--green);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.875rem;
}

.brand::before {
  content: "$ ";
  color: var(--dim);
  font-weight: 400;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
}

.site-nav a {
  color: var(--dim);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.15s;
}

.site-nav a:hover,
.site-nav a:focus {
  color: var(--green);
}

/* ── HERO ── */

.hero {
  padding: 5rem 0 4rem;
}

.terminal-prompt {
  color: var(--dim);
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
}

.prompt-symbol {
  color: var(--green);
  font-weight: 700;
}

h1 {
  font-size: clamp(2.4rem, 7vw, 4rem);
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.25rem;
  line-height: 1.1;
}

.hero-title {
  color: var(--green);
  font-size: 1rem;
  margin: 0 0 1rem;
}

.tagline {
  color: var(--dim);
  font-size: 0.875rem;
  margin: 0 0 2rem;
  max-width: 520px;
}

.hero-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-links a {
  color: var(--green);
  text-decoration: none;
  font-size: 0.875rem;
  transition: opacity 0.15s;
}

.hero-links a:hover {
  opacity: 0.65;
}

.cursor {
  display: inline-block;
  color: var(--green);
  font-size: 1.4rem;
  line-height: 1;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

/* ── SECTIONS ── */

.section {
  padding: 4rem 0;
  border-top: 1px solid var(--border);
}

.section-header {
  font-size: 0.8rem;
  color: var(--dim);
  margin-bottom: 2.5rem;
}

/* ── EXPERIENCE ── */

.experience-entry {
  margin-bottom: 2.5rem;
  padding-left: 1.25rem;
  border-left: 2px solid var(--border);
  transition: border-color 0.15s;
}

.experience-entry:hover {
  border-left-color: var(--green);
}

.exp-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.2rem;
}

.exp-company {
  color: var(--green);
  font-weight: 700;
  font-size: 0.9rem;
}

.exp-dates {
  color: var(--dim);
  font-size: 0.775rem;
}

.exp-title {
  color: var(--text);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.exp-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
}

.exp-bullets li {
  position: relative;
  padding-left: 1.25rem;
  color: var(--dim);
  font-size: 0.825rem;
  line-height: 1.65;
  margin-bottom: 0.2rem;
}

.exp-bullets li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--green);
}

/* ── PROJECTS ── */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1rem;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.25rem;
  transition: border-color 0.15s;
}

.project-card:hover {
  border-color: var(--green);
}

.card-chrome {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-red {
  background: var(--dot-red);
}
.dot-yellow {
  background: var(--dot-yellow);
}
.dot-green {
  background: var(--dot-green);
}

.project-name {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.project-desc {
  color: var(--dim);
  font-size: 0.825rem;
  margin: 0 0 1rem;
  line-height: 1.65;
}

.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.tag {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--dim);
  font-size: 0.725rem;
  padding: 0.1rem 0.45rem;
}

.project-links {
  display: flex;
  gap: 0.75rem;
}

.project-links a {
  color: var(--green);
  text-decoration: none;
  font-size: 0.8rem;
  transition: opacity 0.15s;
}

.project-links a:hover {
  opacity: 0.65;
}

/* ── FOOTER ── */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  margin-top: 4rem;
}

.site-footer small {
  color: var(--dim);
  font-size: 0.775rem;
}

/* ── PROSE (single/list pages) ── */

article.prose {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2rem;
  margin: 2.5rem auto;
  max-width: 720px;
}

a {
  color: var(--green);
}

/* ── MOBILE ── */

@media (max-width: 640px) {
  .site-header .shell {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .exp-meta {
    flex-direction: column;
    gap: 0.1rem;
  }
}
