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

:root {
  --bg: #0a100d;
  --cyan: #39c5cf;
  --white: #e8d5b7;
  --dim: #9a8868;
  --link: #39c5cf;
  --border: #2a2a2a;
  --green: #5cb85c;
}

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

body {
  background: var(--bg);
  background-image: radial-gradient(ellipse at top, #0d1a1a 0%, var(--bg) 60%);
  color: var(--white);
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  line-height: 1.8;
  min-height: 100vh;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: 700px;
  margin: 0 auto;
  padding: 32px 24px 60px;
}

nav {
  display: flex;
  gap: 24px;
  margin-bottom: 48px;
  font-size: 13px;
}

nav a {
  font-weight: 700;
}

h1 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 24px;
}

h1 .prompt {
  color: var(--cyan);
}

.intro {
  color: var(--white);
  margin-bottom: 12px;
  max-width: 580px;
}

.intro .hl {
  color: var(--cyan);
  font-weight: 700;
}

.links-row {
  margin: 28px 0 48px;
  font-size: 13px;
  text-align: center;
}

.links-row .sep {
  color: var(--dim);
  margin: 0 4px;
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0 0 48px;
}

/* terminal block (homepage) */

.terminal {
  border: 1px solid var(--border);
  padding: 24px;
  margin-bottom: 48px;
  min-height: 200px;
}

.terminal .cmd {
  color: var(--dim);
  margin-bottom: 16px;
}

.terminal .cmd span {
  color: var(--white);
}

.terminal .section-head {
  color: var(--cyan);
  font-weight: 700;
  margin-top: 20px;
  margin-bottom: 4px;
}

.terminal .output-line {
  color: var(--dim);
  margin-bottom: 2px;
}

.terminal .cursor {
  display: inline-block;
  width: 7px;
  height: 14px;
  background: var(--dim);
  animation: blink 1s step-end infinite;
  vertical-align: middle;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.terminal .typed-output {
  display: none;
}

/* project boxes */

.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.project-card {
  border: 1px solid var(--border);
  padding: 28px;
  transition: border-color 0.2s ease;
}

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

.project-card h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 12px;
}

.project-card p {
  color: var(--dim);
  margin-bottom: 12px;
}

.project-card .project-links {
  font-size: 13px;
}

.project-card .project-links .sep {
  color: var(--dim);
  margin: 0 4px;
}

.project-card .project-img {
  width: 100%;
  border: 1px solid var(--border);
  margin-bottom: 16px;
  display: block;
}

/* wip wip traffic flow diagram */

.traffic-flow {
  width: 100%;
  margin: 8px 0 16px;
}

.traffic-flow svg {
  width: 100%;
  height: auto;
  display: block;
}

/* footer */

footer {
  text-align: center;
  color: var(--dim);
  font-size: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  line-height: 2;
}

@media (max-width: 600px) {
  .container {
    padding: 20px 16px 40px;
  }

  nav {
    gap: 16px;
  }

  .project-card {
    padding: 20px;
  }
}