/* ============================================
   Hypervisor Studio - CSS Foundation
   Dark minimal theme for GitHub Pages
   ============================================ */

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

/* Custom Properties */
:root {
  --bg: #0a0a0a;
  --surface: #141414;
  --border: #222222;
  --text: #d4d4d4;
  --text-heading: #ffffff;
  --text-muted: #777777;
  --accent: #4a9eff;
  --max-width: 1200px;
  --content-width: 700px;
}

/* Body */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Links */
a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s;
}

a:hover {
  opacity: 0.8;
}

/* Header */
.header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem 2rem;
}

/* Logo */
.logo {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--text-heading);
  letter-spacing: -0.02em;
  text-decoration: none;
}

/* Nav */
.nav {
  display: flex;
  gap: 2rem;
}

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

.nav a:hover,
.nav a.active {
  color: var(--text-heading);
  opacity: 1;
}

/* Main */
main {
  flex: 1;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 2rem;
}

/* Gallery */
.gallery {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

/* Cards */
.card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.card a {
  color: inherit;
  text-decoration: none;
}

.card-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  display: block;
  background: var(--bg);
}

.card-body {
  padding: 1.5rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 0.25rem;
}

.card-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* About */
.about-content {
  max-width: var(--content-width);
  margin: 0 auto;
}

.about-content h1 {
  font-size: 2rem;
  font-weight: bold;
  color: var(--text-heading);
  margin-bottom: 1.5rem;
}

.about-content p {
  margin-bottom: 1rem;
}

/* Page content */
.page-content {
  max-width: var(--content-width);
  margin: 0 auto;
}

.page-content h1 {
  font-size: 2rem;
  font-weight: bold;
  color: var(--text-heading);
  margin-bottom: 0.5rem;
}

.page-content h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.page-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.page-content p {
  margin-bottom: 1rem;
}

.page-content ul,
.page-content ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.page-content li {
  margin-bottom: 0.25rem;
}

.page-content blockquote {
  border-left: 3px solid var(--border);
  padding-left: 1rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.page-content code {
  background: var(--surface);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9em;
}

.page-content pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  overflow-x: auto;
  margin-bottom: 1rem;
}

.page-content pre code {
  background: none;
  padding: 0;
  border-radius: 0;
}

.page-content img {
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.page-content strong {
  color: var(--text-heading);
}

.page-content a {
  color: var(--accent);
}

.page-content a:hover {
  opacity: 0.8;
}

.post-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

/* Blog index */
.post-list {
  list-style: none;
  padding: 0;
}

.post-list li {
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}

.post-list li:last-child {
  border-bottom: none;
}

.post-list a {
  color: inherit;
  text-decoration: none;
  display: block;
}

.post-list a:hover .post-list-title {
  color: var(--accent);
}

.post-list-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 0.25rem;
  transition: color 0.2s;
}

.post-list-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.post-list-excerpt {
  font-size: 0.95rem;
  color: var(--text);
}

/* Footer */
.footer {
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer a {
  color: var(--text-muted);
  text-decoration: none;
}

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

.footer-sep {
  margin: 0 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .gallery {
    grid-template-columns: 1fr;
  }

  .header {
    padding: 1rem 1rem;
  }

  main {
    padding: 1rem;
  }
}
