/* --- 1. Global Reset & Variables --- */
:root {
  --bg-body: #f4f6f8;          /* Light gray background to define the layout boundaries */
  --bg-card: #ffffff;          /* Crisp white cards for the text content */
  --text-color: #2b2b2b;       
  --accent-color: #0066cc;     
  --border-color: #eaeaea;
  --meta-color: #6c757d;
  --font-stack: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

body {
  font-family: var(--font-stack);
  line-height: 1.6;            
  color: var(--text-color);
  background-color: var(--bg-body);
  padding: 2rem 1rem;
}

ul,
ol {
  padding-left: 0.85rem;
  padding-inline-start: 0.85rem;
  margin: 0.25rem 0;
  line-height: 1.4;
}

ul ul,
ol ul,
ul ol,
ol ol {
  margin: 0.25rem 0 0.25rem 1rem;
}

ul {
  list-style-type: disc;
}

li {
  margin: 0 0 0.15rem;
}

li:last-child {
  margin-bottom: 0;
}

li > p {
  margin-bottom: 0;
}

/* --- 2. Layout Containers --- */
.container {
  max-width: 760px;            /* Narrower width for optimal reading balance */
  margin: 0 auto;              /* Centers the container horizontally on the screen */
}

header {
  text-align: center;          /* Centers header title and description text */
  padding: 3rem 1rem;
  margin-bottom: 2rem;
}

header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

header p {
  color: var(--meta-color);
  font-size: 1.1rem;
}

/* --- 3. Blog Post Cards --- */
.post {
  background-color: var(--bg-card);
  padding: 2.5rem;             /* Generous padding removes the hard-left edge feel */
  border-radius: 12px;         /* Smooth, modern rounded corners */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02), 0 1px 3px rgba(0, 0, 0, 0.05); /* Subtle depth */
  margin-bottom: 2rem;
}

.post-title {
  font-size: 1.75rem;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.post-title a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

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

.post-content p {
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
}

.post-content p:last-child {
  margin-bottom: 0;            /* Removes trailing margin from the last paragraph */
}

.post-abstract {
  margin: 0.75rem 0 0;
  color: var(--meta-color);
  font-size: 0.98rem;
  line-height: 1.5;
}

/* --- 4. Global Links & Media --- */
a {
  color: var(--accent-color);
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 1.5rem 0;
}

.about-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

.about-sidebar {
  width: 100%;
  max-width: 220px;
}

.about-content {
  width: 100%;
}

.profile-img {
  max-width: 180px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 0 1rem 0;
}

@media (max-width: 720px) {
  .about-sidebar {
    max-width: 100%;
  }
}

/* --- 5. Footer --- */
footer {
  text-align: center;          /* Centers the copyright notice */
  margin-top: 4rem;
  padding: 2rem 0;
  font-size: 0.9rem;
  color: var(--meta-color);
}

pre {
  background-color: #e8e8e8;
  margin: 1.25rem 0;
  padding: 0.9rem;
  border-radius: 6px;
  overflow: auto;
}

/* --- 6. Taxonomies (tags & categories) --- */
.taxonomies {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}
.taxonomies h2 {
  font-size: 1.05rem;
  margin: 0 0 0.5rem 0;
}
.taxonomies p {
  margin: 0 0 0.25rem 0;
}
.taxonomies a {
  display: inline-block;
  background: #f1f6fb;
  color: var(--accent-color);
  padding: 0.25rem 0.6rem;
  margin: 0 0.5rem 0.5rem 0;
  border-radius: 999px;
  font-size: 0.9rem;
  text-decoration: none;
  border: 1px solid transparent;
}
.taxonomies a:hover {
  background: #e6f0fb;
  border-color: #d0e6fb;
}


