  /* ============================================================
     BASE COLORS
     ============================================================ */
    :root {
      --bg: #ffffff;
      --text: #1a1a1a;
      --text-muted: #555;
      --border: #eaeaea;
    }

  /* Reset & Base Fonts */
    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    body {
      font-family: 'Inconsolata', monospace;
      color: var(--text);
      background-color: var(--bg);
      text-align: justify;
    }

    /* Site Header */
    .site-header {
      width: 100%;
      padding: 20px 40px;
    }

    .header-top {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 16px;
    }

    .site-title {
      font-size: 1.5rem;
      font-family: 'Inconsolata', monospace;
      font-weight: bold;
      color: var(--text);
      text-decoration: none;
      letter-spacing: 1px;
    }

    /* Navigation Bar */
    .nav-bar {
      display: flex;
      align-items: center;
      border-top: 1px solid var(--border);
      border-bottom: 1px solid orange;
      padding: 12px 0;
      padding-top: 5px;
    }

    .nav-links {
      display: flex;
      align-items: center;
      gap: 28px;
    }

    .nav-links a {
      color: var(--text-muted);
      text-decoration: none;
      font-size: 1.1rem;
      font-family: 'Inconsolata', monospace;
      transition: color 0.2s ease;
    }

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

    /* Social icons group */
    .social-icons {
      display: flex;
      align-items: center;
      gap: 14px;
    }

    .social-icons a {
      color: var(--text-muted);
      display: flex;
      align-items: center;
      text-decoration: none;
      transition: color 0.2s ease;
    }

    .social-icons a:hover {
      color: var(--text);
    }

    /* Main Content Area */
    main {
      max-width: 900px;
      margin: 40px auto;
      padding: 0 20px;
    }

/* ============================================================
   HOME PAGE — fixed full-viewport, no scroll
   ============================================================ */
body.home-body {
  height: 100vh;
  overflow: auto;
  display: flex;
  flex-direction: column;
}

/* Nav — sits at top */
.home-nav {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  background-color: var(--bg);
  padding: 28px 20px 16px;
}

/* Inner nav container — same max-width as content */
.home-nav-inner {
  max-width: 640px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

/* Right side: social icons */
.home-nav-right {
  display: flex;
  align-items: center;
}

.home-logo {
  font-family: 'Give You Glory', cursive;
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
}

/* Center wrapper — grows to fill space between nav and footer */
.home-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  overflow: hidden;
}

/* Home main content */
.home-content {
  max-width: 680px;
  width: 100%;
}

.home-content h1 {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 2rem;
}

.home-content p {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  color: var(--text);
}

/* Bottom links */
.home-links {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2.5rem;
  text-decoration: solid;
}

.home-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  font-family: 'Inconsolata', monospace;
  transition: color 0.2s ease;
}

.home-links a:hover {
  color: var(--text-muted);
  text-decoration: underline;
}

/* Footer bar — pinned at bottom */
.home-footer-bar {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  padding: 0 20px;
}

.home-footer-inner {
  max-width: 680px;
  width: 100%;
}

/* Divider */
.home-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0 0 0.75rem;
}

/* Footer text */
.home-footer {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding-bottom: 1.25rem;
}

.home-footer a {
  color: var(--text-muted);
  transition: color 0.2s ease;
}

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

/* ============================================================
   PAGE LAYOUT — scrollable, mirrors home design
   ============================================================ */
body.page-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 48px 20px;
}

.page-content {
  max-width: 680px;
  width: 100%;
}

.page-content h4 {
  font-family: 'Outfit', sans-serif;
}

/* Back to home link */
.back-home {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 3rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 1.0rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.back-home:hover {
  color: var(--text);
}

/* ============================================================
   PROJECT CARDS
   ============================================================ */
.project-card {
  width: 100%;
}

.project-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 4px;
  transition: opacity 0.2s ease;
}

.project-card-link:hover {
  opacity: 1;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.25rem;
}

.title-group {
  font-size: 1.1rem;
  line-height: 1.4;
}

.title-primary {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--text);
}

.title-separator {
  color: var(--text-muted);
  margin: 0 0.2rem;
}

.title-secondary {
  font-family: 'Outfit', sans-serif;
  color: #666666;
  font-weight: 400;
}

.title-link {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.title-link:hover {
  color: var(--text);
}

.project-year {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-family: 'Inconsolata', monospace;
}

.card-description {
  font-size: 1rem;
  line-height: 1.6;
  color: #4a4a4a;
  margin-bottom: 1.5rem;
}

.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  font-family: 'Inconsolata', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #666666;
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  background-color: var(--bg);
}

.project-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

/* ============================================================
   WRITINGS / POST LIST
   ============================================================ */
.page-content h1 {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 2rem;
}

.post-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.post-list-item {
  border-top: 1px solid var(--border);
  padding: 1rem 0;
}

.post-list-item:last-child {
  border-bottom: 1px solid var(--border);
}

.post-list-link {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  text-decoration: none;
  color: var(--text);
  transition: opacity 0.2s ease;
}

.post-list-link:hover {
  opacity: 1;
}

.post-list-title {
  font-family: 'Inconsolata', monospace;
  font-size: 1rem;
}

.post-list-date {
  font-family: 'Inconsolata', monospace;
  font-size: 0.85rem;
  color: var(--text-muted);
  white-space: nowrap;
}

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

/* ============================================================
   BLOG POST PAGE
   ============================================================ */
body.post-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.post-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 64px 20px 48px;
}

.post-content-area {
  max-width: 680px;
  width: 100%;
}

.post-header {
  margin-bottom: 2.5rem;
}

.post-title {
  font-size: 1.4rem;
  font-weight: bold;
  font-family: 'Inconsolata', monospace;
  color: var(--text);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.post-date {
  display: block;
  font-family: 'Inconsolata', monospace;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.post-body-content {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text);
  word-break: break-word;
  overflow-wrap: break-word;
}

.post-body-content p {
  margin-bottom: 1.6rem;
}

.post-body-content h1,
.post-body-content h2,
.post-body-content h3 {
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.post-body-content h1 {
  font-size: 1.2rem;
  font-weight: bold;
}

.post-body-content h2 {
  font-size: 1.15rem;
  font-weight: bold;
}

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

.post-body-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.5rem 0;
  border-radius: 4px;
  cursor: zoom-in;
}

/* Lightbox */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  cursor: zoom-out;
}

.lightbox-overlay.active {
  display: flex;
}

.lightbox-overlay img {
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
  border-radius: 4px;
  cursor: zoom-out;
}

.post-body-content a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post-body-content ul,
.post-body-content ol {
  margin: 0 0 1.4rem 1.5rem;
}

.post-body-content li {
  margin-bottom: 0.4rem;
}

.post-body-content code {
  font-family: 'Inconsolata', monospace;
  font-size: 0.9em;
  background: #f4f4f4;
  padding: 0.1em 0.4em;
  border-radius: 3px;
}

.post-body-content pre {
  background: #f4f4f4;
  padding: 1rem;
  border-radius: 4px;
  overflow-x: auto;
  margin-bottom: 1.4rem;
}

.post-body-content pre code {
  background: none;
  padding: 0;
}

/* Share bar */
.post-share {
  margin-top: 3rem;
}

.post-share-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin-bottom: 1.25rem;
}

.post-share-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.post-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--text-muted);
  font-family: 'Inconsolata', monospace;
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.post-share-btn:hover {
  color: var(--text);
}

/* Back to writings link */
.back-writings {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 2.5rem;
  font-family: 'Inconsolata', monospace;
  font-size: 1rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.back-writings:hover {
  color: var(--text);
}

/* ============================================================
   MOBILE RESPONSIVE
   ============================================================ */
@media (max-width: 600px) {
  body.home-body {
    height: auto;
    min-height: 100vh;
    overflow: auto;
  }

  .home-wrapper {
    padding: 24px 16px 16px;
    align-items: flex-start;
  }

  .home-nav {
    padding: 20px 16px 12px;
  }

  .home-footer-bar {
    padding: 0 16px;
  }

  .page-wrapper {
    padding: 16px 16px 32px;
  }

  .page-content {
    max-width: 100%;
  }

  .home-links {
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.75rem;
    font-size:1.0rem;
    text-decoration: solid;
  }

  .home-logo {
    font-family: 'Give You Glory', cursive;
    font-size: 1.2rem;
  }

  .social-icons {
    gap: 10px;
  }

  .social-icons a svg {
    width: 14px;
    height: 14px;
  }

  .home-content h1 {
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
  }

  .home-content p {
    font-size: 1.0rem;
    margin-bottom: 1rem;
  }

  .home-links a {
    font-size: 0.88rem;
  }

  .home-footer {
    font-size: 0.75rem;
  }

  .page-content,
  .page-content p,
  .page-content h1,
  .page-content h2,
  .page-content h3,
  .page-content h4,
  .card-description {
    text-align: justify;
  }

  .home-logo {
    font-family: 'Give You Glory', cursive;
    font-size: 1.2rem;
  }

  .title-primary,
  .title-secondary {
    font-size: 1.05rem;
  }

  .title-group {
    font-size: 1.05rem;
  }

  .card-description {
    font-size: 0.95rem;
  }

  .nav-links a {
    font-size: 1.05rem;
  }

  .post-wrapper {
    padding: 32px 8px 32px;
  }

  .post-content-area {
    max-width: 100%;
  }

  .post-title {
    font-size: 1.15rem;
  }

  .post-body-content {
    font-size: 0.95rem;
    line-height: 1.6;
    word-break: break-word;
    overflow-wrap: break-word;
  }

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

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

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