/* lexend-latin-400-normal */
@font-face {
  font-family: 'Lexend';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/cf-fonts/s/lexend/5/latin/400/normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* source-code-pro-latin-400-normal */
@font-face {
  font-family: 'Source Code Pro';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/cf-fonts/s/source-code-pro/5/latin/400/normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* Base Variables */
:root {
  --bg-color: #ffffff;
  --text-color: #333333;
  --link-color: #0066ff;
  --meta-color: #666666;
  --border-color: #eaeaea;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-color: #111111;
    --text-color: #e0e0e0;
    --link-color: #3291ff;
    --meta-color: #888888;
    --border-color: #333333;
  }
}

/* Global Reset & Typography */
body {
  font-family: Lexend, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

a:hover, a:focus {
  text-decoration: underline;
}

/* Layout Container */
.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

h1 {
  font-size: 2.12rem;
  letter-spacing: -1px;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

/* Images (Responsive & Zoomable) */
.post-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 2rem auto;
  border-radius: 8px;
  cursor: zoom-in;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.post-content img:hover {
  transform: scale(1.02);
}

/* Metadata */
.meta {
  font-size: 0.875rem;
  color: var(--meta-color);
  margin-bottom: 1.5rem;
}

hr {
  border: 0;
  border-top: 1px solid var(--border-color);
  margin: 2rem 0;
}

/* Lightbox Modal */
#lightbox {
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(5px);
}

#lightbox.active {
  display: flex;
  opacity: 1;
}

#lightbox img {
  max-width: 95%;
  max-height: 95vh;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  border-radius: 4px;
  object-fit: contain;
}

#lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  cursor: pointer;
  z-index: 10000;
  user-select: none;
}