@charset "UTF-8";
/* ── Variables ─────────────────────────────────────── */
:root {
  --bg: #0d1117;
  --surface: #161b22;
  --border: #30363d;
  --text: #e6edf3;
  --text-muted: #8b949e;
  --accent: #58a6ff;
  --accent-dim: rgba(88, 166, 255, 0.15);
  --radius: 8px;
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a:hover {
  text-decoration: underline;
}

/* ── Header / Nav ───────────────────────────────────── */
.site-header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 17, 23, 0.85);
  backdrop-filter: blur(12px);
}

.nav-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-title {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  letter-spacing: -0.01em;
}

.site-title:hover {
  text-decoration: none;
  color: var(--accent);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 28px;
}

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

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  text-decoration: none;
}

/* ── Main ───────────────────────────────────────────── */
.main-content {
  flex: 1;
}

/* ── Home layout (sidebar + main) ──────────────────────── */
.home-layout {
  display: flex;
  gap: 56px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 60px 32px 80px;
  align-items: flex-start;
}

/* ── Sidebar ────────────────────────────────────────────── */
.sidebar {
  width: 200px;
  flex-shrink: 0;
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.sidebar-avatar {
  margin-bottom: 18px;
}

.headshot {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border);
  box-shadow: 0 0 0 4px var(--accent-dim);
  display: block;
}

.headshot-placeholder {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--accent);
}

.sidebar-name {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 6px;
}

.sidebar-tagline {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 6px;
}

.sidebar-location {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-bottom: 20px;
}

.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.sidebar-links .btn {
  width: 100%;
  text-align: center;
  padding: 7px 14px;
}

/* ── Home main content ──────────────────────────────────── */
.home-main {
  flex: 1;
  min-width: 0;
}

.btn {
  display: inline-block;
  padding: 8px 18px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.15s;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #0d1117;
}

.btn-primary:hover {
  background: #79b8ff;
  text-decoration: none;
}

.btn-outline {
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

/* ── Content Section ────────────────────────────────── */
.content-section {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.content-section h2 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-mono);
  margin-bottom: 20px;
  margin-top: 48px;
}

.content-section h2:first-child {
  margin-top: 0;
}

.content-section p {
  color: var(--text-muted);
  margin-bottom: 16px;
  max-width: 640px;
}

/* ── Page layout ────────────────────────────────────── */
.page-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}

.page-content h1 {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 32px;
}

/* ── Post body prose ────────────────────────────────── */
.post-body h1, .post-body h2, .post-body h3 {
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 36px 0 12px;
  color: var(--text);
}

.post-body h1 {
  font-size: 1.6rem;
}

.post-body h2 {
  font-size: 1.25rem;
}

.post-body h3 {
  font-size: 1.05rem;
}

.post-body p {
  color: var(--text-muted);
  margin-bottom: 18px;
  max-width: 680px;
}

.post-body ul, .post-body ol {
  color: var(--text-muted);
  padding-left: 24px;
  margin-bottom: 18px;
  max-width: 680px;
}

.post-body li {
  margin-bottom: 6px;
}

.post-body blockquote {
  border-left: 3px solid var(--accent);
  margin: 24px 0;
  padding: 8px 20px;
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-muted);
  font-style: italic;
}

.post-body img {
  max-width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin: 24px 0;
  display: block;
}

/* ── Footer ─────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ── Code blocks ────────────────────────────────────── */
.code-block {
  margin: 28px 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid #2d333b;
  background: #1a1e27;
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background: #222731;
  border-bottom: 1px solid #2d333b;
}

.code-lang {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #6e7681;
  text-transform: lowercase;
  letter-spacing: 0.05em;
}

.copy-btn {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #6e7681;
  background: transparent;
  border: 1px solid #2d333b;
  border-radius: 4px;
  padding: 2px 10px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.copy-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.code-block pre {
  margin: 0;
  border-radius: 0;
  border: none;
  background: #1a1e27 !important;
  padding: 20px;
  overflow-x: auto;
}

.code-block pre code {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.65;
  background: transparent !important;
}

/* inline code */
.page-content code,
.post-body code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: #1a1e27;
  border: 1px solid #2d333b;
  border-radius: 4px;
  padding: 1px 6px;
  color: #e6edf3;
}

.code-block code {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}

/* ── Post list ──────────────────────────────────────── */
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-bottom: 28px;
}

/* ── Post grid ───────────────────────────────────────── */
.post-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

/* ── Post card ───────────────────────────────────────── */
.post-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, transform 0.15s;
}

.post-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  text-decoration: none;
}

.post-card-image {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--border);
}

.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.post-card:hover .post-card-image img {
  transform: scale(1.03);
}

/* gradient placeholder for posts without an image */
.post-card-image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1c2333 0%, #0d1117 50%, #161b22 100%);
  position: relative;
}

.post-card-image-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(88, 166, 255, 0.03) 20px, rgba(88, 166, 255, 0.03) 40px);
}

.post-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-card-cats {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.post-cat {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--accent);
  background: var(--accent-dim);
  padding: 2px 8px;
  border-radius: 20px;
  white-space: nowrap;
}

.post-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.post-card-date {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  margin-bottom: 10px;
}

.post-card-excerpt {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}

/* ── Pagination ──────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.pagination-btn {
  display: inline-block;
  padding: 8px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: all 0.15s;
}

a.pagination-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

.pagination-btn.disabled {
  opacity: 0.3;
  cursor: default;
}

.pagination-info {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

/* ── Video Embeds ───────────────────────────────────── */
.video-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  margin: 1.5rem 0;
}

.video-embed iframe,
.video-embed object,
.video-embed embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ── Responsive ─────────────────────────────────────── */
/* Tablet and below: stack sidebar above posts */
@media (max-width: 768px) {
  .home-layout {
    flex-direction: column;
    gap: 40px;
    padding: 40px 24px 60px;
  }
  .sidebar {
    position: static;
    width: 100%;
    align-items: center;
    text-align: center;
  }
  .sidebar-links {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
  }
  .sidebar-links .btn {
    width: auto;
  }
}
/* Mobile: single-column post grid */
@media (max-width: 600px) {
  .post-grid {
    grid-template-columns: 1fr;
  }
}

/*# sourceMappingURL=main.css.map */