:root {
  --bg: #0a0d0a;
  --panel: #0f1410;
  --text: #b9e7b0;
  --muted: #7fa57a;
  --line: #2c402b;
  --accent: #dbffcd;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: "Courier New", Courier, monospace;
  color: var(--text);
  background: var(--bg);
  line-height: 1.45;
  padding: 1.7rem 1rem 2.3rem;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(185, 231, 176, 0.03) 0,
    rgba(185, 231, 176, 0.03) 1px,
    transparent 1px,
    transparent 3px
  );
}

.site-header {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.9rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.65rem;
}

.logo {
  text-decoration: none;
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9rem;
}

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

main {
  max-width: 780px;
  margin: 1.25rem auto 0;
}

.hero {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 0.2rem;
  padding: 1.2rem;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  color: var(--muted);
}

h1,
h2,
h3 {
  font-family: "Courier New", Courier, monospace;
  line-height: 1.1;
}

h1 {
  margin: 0.7rem 0 0;
  font-size: clamp(1.55rem, 4vw, 2rem);
  font-weight: 700;
}

.hero-copy {
  max-width: 50ch;
  color: var(--muted);
  margin: 0.8rem 0 1.1rem;
}

.cursor {
  animation: blink 1s step-end infinite;
}

.cta {
  display: inline-block;
  background: transparent;
  color: var(--accent);
  text-decoration: none;
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 0.15rem;
  font-weight: 600;
  font-size: 0.88rem;
}

.section {
  margin-top: 1.8rem;
}

.section-header h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.section-header p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.project-list {
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 0.2rem;
  background: var(--panel);
}

.project-list li {
  border-bottom: 1px solid var(--line);
}

.project-list li:last-child {
  border-bottom: 0;
}

.project-link {
  display: grid;
  grid-template-columns: 1.2fr 1.8fr;
  gap: 0.8rem;
  align-items: baseline;
  width: 100%;
  padding: 0.7rem 0.8rem;
  text-decoration: none;
  color: inherit;
  transition: background-color 120ms ease;
}

.project-link:hover {
  background: rgba(219, 255, 205, 0.06);
}

.project-link:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: -1px;
}

.project-name {
  color: var(--text);
}

.project-desc {
  color: var(--muted);
  font-size: 0.9rem;
}

.about-copy {
  color: var(--muted);
  max-width: 60ch;
}

.copy-buffer {
  position: absolute;
  left: -9999px;
}

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

@media (max-width: 800px) {
  .hero {
    padding: 1rem;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .project-link {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }

  body {
    padding: 1.1rem 0.85rem 1.8rem;
  }
}
