@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

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

:root {
  --font: 'JetBrains Mono', 'Menlo', 'Consolas', monospace;

  --bg: #0a0a0a;
  --bg-elevated: #101010;
  --text: #a0a0a0;
  --text-bright: #d4d4d4;
  --text-dim: #404040;
  --accent: #4ade80;
  --accent-dim: rgba(74, 222, 128, 0.08);
  --border: #1a1a1a;
}

::selection {
  background-color: var(--accent);
  color: var(--bg);
}

html {
  min-width: 360px;
  background-color: var(--bg);
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: 0.875rem;
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--text-bright);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent);
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-dim);
}

/* ── Top accent bar ── */

.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  z-index: 100;
  opacity: 0.7;
}

/* ── Layout ── */

.container {
  max-width: 52rem;
  margin: 0 auto;
  padding: 4rem 1.5rem 3rem;
}

@media (min-width: 768px) {
  .container {
    padding: 5rem 2rem 3rem;
  }
}

/* ── Header / Prompt ── */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4rem;
  gap: 1rem;
}

@media (min-width: 768px) {
  .nav {
    margin-bottom: 6rem;
  }
}

.prompt {
  font-size: 0.8125rem;
  white-space: nowrap;
  color: var(--text-dim);
}

.prompt-user {
  color: var(--accent);
}

.prompt-at {
  color: var(--text-dim);
}

.prompt-host {
  color: var(--text-bright);
}

.prompt-sep,
.prompt-path {
  color: var(--text-dim);
}

.prompt-dollar {
  color: var(--accent);
  margin-left: 0.25rem;
}

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

.nav-links a {
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--accent);
}

/* ── Hero ── */

.hero {
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .hero {
    margin-bottom: 5rem;
  }
}

.display {
  font-family: var(--font);
  font-weight: 700;
  font-size: 2.25rem;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text-bright);
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .display {
    font-size: 3.25rem;
  }
}

.cursor {
  display: inline-block;
  color: var(--accent);
  font-weight: 400;
  opacity: 0.4;
}

.hero-sub {
  max-width: 40rem;
  color: var(--text);
  line-height: 1.8;
}

/* ── Sections ── */

.section {
  margin-bottom: 3.5rem;
}

.section > p {
  color: var(--text);
  line-height: 1.8;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.prompt-marker {
  color: var(--accent);
  font-weight: 400;
  font-size: 0.875rem;
}

.highlight {
  color: var(--accent);
}

/* ── Horizontal rule ── */

.hr {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 3rem 0;
  position: relative;
}

.hr::before {
  content: '────';
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  color: var(--text-dim);
  font-size: 0.75rem;
  background: var(--bg);
  padding-right: 0.75rem;
  letter-spacing: 0.15em;
}

/* ── Entries (education, etc.) ── */

.entry {
  margin-bottom: 1.75rem;
  padding-left: 1rem;
  border-left: 1px solid var(--border);
}

.entry:last-child {
  margin-bottom: 0;
}

.entry h3 {
  font-family: var(--font);
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--text-bright);
  letter-spacing: -0.01em;
  line-height: 1.4;
}

.entry-meta {
  color: var(--text);
  font-size: 0.8125rem;
}

.entry-detail {
  font-size: 0.8125rem;
  color: var(--text-dim);
  margin-top: 0.125rem;
  font-style: italic;
}

/* ── Experience rows ── */

.exp-row {
  display: block;
}

.entry-period {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .exp-row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: 1rem;
  }

  .entry-period {
    text-align: right;
    padding-top: 0.125rem;
  }
}

/* ── Consulting ── */

.consulting-name {
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--text-bright);
  margin-bottom: 0.5rem;
}

/* ── Publications ── */

.pub {
  margin-bottom: 1.5rem;
  padding-left: 1rem;
  border-left: 1px solid var(--border);
  line-height: 1.8;
}

.pub:last-child {
  margin-bottom: 0;
}

.pub-authors {
  color: var(--text-bright);
}

.pub em {
  color: var(--text);
  font-style: italic;
}

.text-dim {
  color: var(--text-dim);
}

/* ── Footer ── */

.footer {
  margin-top: 5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.footer-prompt {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
}

.footer-prompt .prompt-marker {
  font-size: 0.75rem;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* ── Scanlines overlay ── */

.scanlines {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255, 255, 255, 0.008) 2px,
    rgba(255, 255, 255, 0.008) 4px
  );
}

/* ── Animations ── */

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.anim-in {
  opacity: 0;
  animation: reveal 0.5s ease-out forwards;
}

.d1 { animation-delay: 0.08s; }
.d2 { animation-delay: 0.16s; }
.d3 { animation-delay: 0.24s; }
.d4 { animation-delay: 0.32s; }
.d5 { animation-delay: 0.40s; }
.d6 { animation-delay: 0.48s; }
.d7 { animation-delay: 0.56s; }
.d8 { animation-delay: 0.64s; }

/* ── Focus styles ── */

a:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 2px;
}
