@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&display=swap');

/* ── Tokyo Night palette ──────────────────────────────── */
:root {
  --bg:        #1a1b26;
  --bg-dark:   #16161e;
  --surface:   #292e42;
  --fg:        #c0caf5;
  --fg-dim:    #a9b1d6;
  --comment:   #565f89;
  --blue:      #7aa2f7;
  --cyan:      #7dcfff;
  --green:     #9ece6a;
  --magenta:   #bb9af7;
  --yellow:    #e0af68;
  --red:       #f7768e;
}

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

body {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.95rem;
  line-height: 1.7;
  background: var(--bg);
  color: var(--fg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: color .15s;
}

a:hover {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Layout ───────────────────────────────────────────── */
.container {
  width: min(44rem, 92vw);
  margin: 0 auto;
  padding: 5rem 0;
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

/* ── Header ───────────────────────────────────────────── */
header h1 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: .01em;
}

header .tagline {
  color: var(--comment);
  font-size: 0.9rem;
}

header .tagline::before {
  content: '// ';
  color: var(--magenta);
}

/* ── About ────────────────────────────────────────────── */
.about p {
  color: var(--fg-dim);
  margin-bottom: 0.9rem;
  max-width: 40rem;
}

.about p:last-child {
  margin-bottom: 0;
}

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

/* ── More links ───────────────────────────────────────── */
.more {
  color: var(--comment);
  font-size: 0.95rem;
}

.more .sep {
  color: var(--comment);
  margin: 0 .35rem;
}

.more a {
  color: var(--fg-dim);
}

.more a:hover {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Footer email ─────────────────────────────────────── */
footer a.email {
  color: var(--green);
  font-size: 0.95rem;
}

footer a.email:hover {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Projects page ────────────────────────────────────── */
.back {
  font-size: 0.9rem;
}

.back a {
  color: var(--comment);
}

.back a:hover {
  color: var(--cyan);
}

.page-title {
  font-size: 1.1rem;
  color: var(--fg);
  margin-bottom: 0.25rem;
}

.project-list h2 {
  font-size: 0.85rem;
  color: var(--magenta);
  margin-bottom: 0.5rem;
  letter-spacing: .05em;
}

.project-list h2 .dash {
  color: var(--comment);
}

.project {
  margin-bottom: 1.4rem;
}

.project .p-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue);
}

.project .p-title:hover {
  color: var(--cyan);
}

.project .p-meta {
  color: var(--comment);
  font-size: 0.8rem;
  margin-left: .4rem;
}

.project .p-desc {
  color: var(--fg-dim);
  font-size: 0.88rem;
  margin-top: .1rem;
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 600px) {
  .container {
    padding: 3rem 0;
  }
  body {
    font-size: 0.9rem;
  }
}
