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

body {
  font-family: monospace;
  font-size: 14px;
  line-height: 1.6;
  color: #000;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

body.loading {
  overflow: hidden;
}

/* Preloader */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.preloader.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader canvas {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

::selection {
  background: #f90;
  color: #fff;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  height: 100dvh;
  padding: 40px 20px;
}

.hero-compact {
  height: auto;
  min-height: 0;
  padding: 60px 20px 20px;
}

.pixel-logo {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  display: block;
  margin-bottom: 24px;
}

nav {
  font-family: monospace;
  font-size: 14px;
  text-align: center;
}

nav a {
  color: #000;
  text-decoration: none;
}

nav a:hover {
  text-decoration: underline;
}

nav .sep {
  margin: 0 4px;
  color: #999;
}

nav .highlight {
  color: #f90;
  font-weight: normal;
}

.content {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 20px 80px;
}

.page-heading,
h2 {
  font-family: monospace;
  font-size: 20px;
  font-weight: bold;
  margin: 0 0 16px;
}

.section {
  border-top: 1px solid #ccc;
  padding-top: 28px;
  margin-top: 28px;
}

p {
  margin-bottom: 12px;
}

a {
  color: #000;
  text-decoration: underline;
}

a:hover {
  color: #f90;
}

.accent {
  color: #f90;
}

strong {
  font-weight: bold;
}

.faq-item {
  margin-bottom: 20px;
}

.faq-item h3 {
  font-family: monospace;
  font-size: 14px;
  font-weight: normal;
  font-style: italic;
  margin-bottom: 4px;
}

.faq-item p {
  margin-bottom: 0;
}

.principles {
  margin: 12px 0;
}

.principles strong {
  display: block;
  margin-bottom: 2px;
}

.principles .principle {
  margin-bottom: 12px;
}

.principles .sub {
  color: #555;
  margin-left: 0;
}

.services-list {
  margin: 8px 0 12px;
  padding-left: 0;
  list-style: none;
}

.services-list li::before {
  content: "→ ";
  color: #f90;
}

.cta-link {
  color: #f90;
  font-weight: bold;
  text-decoration: underline;
}

.cta-link:hover {
  color: #000;
}

/* Portfolio */
.project {
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid #eee;
}

.project:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.project-name {
  font-family: monospace;
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 4px;
}

.project-name a {
  color: #000;
  text-decoration: none;
}

.project-name a:hover {
  color: #f90;
}

.project-meta {
  font-size: 12px;
  color: #999;
  margin-bottom: 8px;
}

.project-meta span + span::before {
  content: " · ";
}

.project-desc {
  margin-bottom: 8px;
}

.project-stack {
  font-size: 12px;
  color: #777;
  margin-bottom: 8px;
}

.project-links a {
  font-size: 13px;
  margin-right: 12px;
  color: #f90;
  text-decoration: none;
}

.project-links a:hover {
  text-decoration: underline;
  color: #000;
}

.project-links a::before {
  content: "→ ";
}

.view-all {
  display: inline-block;
  margin-top: 8px;
  color: #f90;
  font-weight: bold;
  text-decoration: none;
}

.view-all:hover {
  color: #000;
  text-decoration: underline;
}

.view-all::after {
  content: " →";
}

/* Back link for subpages */
.back-link {
  display: inline-block;
  margin-bottom: 20px;
  color: #999;
  text-decoration: none;
  font-size: 13px;
}

.back-link::before {
  content: "← ";
}

.back-link:hover {
  color: #f90;
}

/* Footer */
.footer {
  border-top: 1px solid #ccc;
  padding: 28px 0 40px;
  margin-top: 28px;
  text-align: center;
  font-size: 12px;
  color: #999;
}

.footer a {
  color: #999;
}

.footer a:hover {
  color: #f90;
}

@media (max-width: 480px) {
  .hero {
    padding: 32px 16px;
  }

  .hero-compact {
    padding: 40px 16px 16px;
  }

  .content {
    padding: 0 16px 60px;
  }

  nav {
    font-size: 12px;
    line-height: 2;
  }
}
