/* ===== ELEGANT MATHEMATICAL AESTHETIC ===== */

/* Content width constraint - better approach */
body {
  max-width: 100vw;
  overflow-x: hidden;
}

body > * {
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  font-size: 14pt
}

/* Padding only on actual content containers, not list wrappers */
body > main,
body > article,
body > div:not(.hero-section):not(.fullbleed-canvas) {
  padding-left: 2rem;
  padding-right: 2rem;
}

/* Full width exceptions */
body > .hero-section,
body > nav,
body > .main-nav,
body > header {
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

body {
  font-family: 'Berkeley Mono', monospace;
  line-height: 1;
}

/* Prevent orphaned punctuation and improve typography */
article p,
article li {
  text-wrap: pretty; /* Modern browsers */
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Prevent single characters/punctuation on new lines */
article p::after,
article li::after {
  content: "\00a0\00a0"; /* Non-breaking spaces to prevent orphans */
  display: inline;
  width: 0;
  font-size: 0;
}

html {
  margin: 0;
  padding: 0;
}

@media (max-width: 900px) {
  main,
  article {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 600px) {
  main,
  article {
    padding: 1.5rem 1rem;
  }
}

/* Fix LaTeX/Math equation overflow with horizontal scroll */
.math,
.katex-display,
.MathJax,
.MathJax_Display,
mjx-container,
.mjx-chtml {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.5rem 0;
  margin: 1rem 0;
}

/* Scrollable container for math blocks */
.math-display,
.katex-display {
  padding: 0.4rem;
  border-radius: 4px;
  overflow-x: auto;
  overflow-y: hidden;
}

/* Inline math should not scroll */
.math.inline,
.katex.inline,
mjx-container[display="inline"] {
  overflow-x: visible;
  padding: 0;
  margin: 0;
}

/* Custom scrollbar for math containers */
.math-display::-webkit-scrollbar,
.katex-display::-webkit-scrollbar {
  height: 6px;
}

.math-display::-webkit-scrollbar-track,
.katex-display::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 3px;
}

.math-display::-webkit-scrollbar-thumb,
.katex-display::-webkit-scrollbar-thumb {
  background: rgba(233, 60, 172, 0.3);
  border-radius: 3px;
}

.math-display::-webkit-scrollbar-thumb:hover,
.katex-display::-webkit-scrollbar-thumb:hover {
  background: rgba(233, 60, 172, 0.5);
}

/* Firefox scrollbar */
.math-display,
.katex-display {
  scrollbar-width: thin;
  scrollbar-color: rgba(233, 60, 172, 0.3) rgba(0, 0, 0, 0.05);
}

/* Ensure tables in math don't break */
.math table,
.katex-display table {
  margin: 0;
  white-space: nowrap;
}

/* Ensure regular tables take full width */
/* Tables take full width */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
}

/* Optional: style the table cells */
th, td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

th {
  font-weight: 600;
  border-bottom: 2px solid rgba(233, 60, 172, 0.3);
  background: rgba(233, 60, 172, 0.02);
}

/* Alternating row colors for readability */
tr:nth-child(even) {
  background: rgba(0, 0, 0, 0.02);
}

/* Dark mode table styling */
@media (prefers-color-scheme: dark) {
  th, td {
    border-bottom-color: rgba(255, 255, 255, 0.1);
  }
  
  th {
    border-bottom-color: rgba(233, 60, 172, 0.4);
    background: rgba(233, 60, 172, 0.05);
  }
  
  tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
  }
}

/* Code blocks should also scroll horizontally */
pre {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 1rem;
  margin: 1rem 0;
  background: rgba(0, 0, 0, 0.03);
  border-left: 3px solid #E93CAC;
  border-radius: 4px;
}

pre::-webkit-scrollbar {
  height: 6px;
}

pre::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 3px;
}

pre::-webkit-scrollbar-thumb {
  background: rgba(233, 60, 172, 0.3);
  border-radius: 3px;
}

pre::-webkit-scrollbar-thumb:hover {
  background: rgba(233, 60, 172, 0.5);
}

/* Prevent horizontal page scroll */
html,
body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* Images should never overflow */
img {
  max-width: 100%;
  height: auto;
}

/* Dark mode adjustments */
@media (prefers-color-scheme: dark) {
  body {
  }
  
  .math-display,
  .katex-display {
    background: rgba(255, 255, 255, 0.03);
  }
  
  pre {
    background: rgba(255, 255, 255, 0.03);
  }
}

/* Clean, readable typography */
h1 {
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: -0.02em;
}

h2 {
  font-weight: 700;
  color: #1a1a1a;
  margin-top: 2rem;
}

.hero-section {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  height: 500px;
  margin-bottom: 3rem;
}

.hero-section iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  opacity: 0.75; /* Make it subtle background */
}

.hero-section h1 {
  position: relative;
  z-index: 10;
  text-align: center;
  padding-top: 20px;
  margin: 0;
  font-size: 3rem;
  font-weight: 600;
}

.hero-section .tagline {
  position: relative;
  z-index: 10;
  text-align: center;
  margin-top: 1rem;
  color: #666;
  font-size: 0.9rem;
}

/* Lissajous curve decoration - appears on page load */
body::before {
  content: "";
  position: fixed;
  top: 60px;
  right: 40px;
  width: 120px;
  height: 120px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50,10 Q80,30 90,50 Q80,70 50,90 Q20,70 10,50 Q20,30 50,10' stroke='%23666' stroke-width='0.5' fill='none' opacity='0.2'/%3E%3Cpath d='M30,20 Q70,35 80,50 Q70,65 30,80 Q20,65 20,50 Q20,35 30,20' stroke='%23666' stroke-width='0.5' fill='none' opacity='0.15'/%3E%3Ccircle cx='50' cy='50' r='2' fill='%23333' opacity='0.3'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  animation: curveRotate 20s linear infinite;
  pointer-events: none;
  opacity: 0.3;
  z-index: -1;
}

@keyframes curveRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}


main::before {
  content: "";
  position: fixed;
  bottom: 40px;
  left: 40px;
  width: 150px;
  height: 150px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50,50 Q50,30 65,20 Q80,20 90,35 Q90,60 70,75 Q40,90 15,75 Q0,50 10,25 Q30,5 55,5' stroke='%23888' stroke-width='0.5' fill='none' opacity='0.15'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  animation: spiralPulse 12s ease-in-out infinite;
  pointer-events: none;
  opacity: 0.2;
  z-index: -1;
}

@keyframes spiralPulse {
  0%, 100% { 
    transform: scale(1) rotate(0deg);
    opacity: 0.15;
  }
  50% { 
    transform: scale(1.1) rotate(15deg);
    opacity: 0.25;
  }
}

/* Clean image styling */
img {
  display: block;
  margin: 2rem auto;
  max-width: 100%;
  border: 1px solid #e0e0e0;
  padding: 4px;
  background: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Refined links */
a {
  color: #2a2a2a;
  text-decoration: none;
  border-bottom: 1px solid #ccc;
  transition: border-color 0.2s ease;
}

a:hover {
  border-bottom-color: #333;
}

/* ===== ENHANCED CODE BLOCK STYLING ===== */

/* Inline code */
code {
  font-family: 'Berkeley Mono', monospace;
  font-size: 0.9em;
  color: #E93CAC;
  background: rgba(233, 60, 172, 0.08);
  padding: 0.15em 0.4em;
  border-radius: 3px;
  font-weight: 500;
}

/* Code blocks */
pre {
  font-family: 'Berkeley Mono', monospace;
  font-size: 0.85rem;
  line-height: 1.6;
  padding: 1.5rem;
  margin: 2rem 0;
  background: #1a1a1a;
  border-radius: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  position: relative;
  border: 1px solid rgba(233, 60, 172, 0.2);
}

/* Pink accent bar on left */
pre::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #E93CAC, #ff6ec7);
  border-radius: 6px 0 0 6px;
}

/* Code inside pre blocks shouldn't have inline styling */
pre code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
  border-radius: 0;
}

/* Syntax highlighting container */
.highlight {
  position: relative;
  margin: 2rem 0;
}

.highlight pre {
  margin: 0;
}

/* Optional: Language label in top-right corner */
.highlight::after {
  content: attr(data-lang);
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  font-size: 0.7rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: 'Berkeley Mono', monospace;
}

/* Scrollbar styling for code blocks */
pre::-webkit-scrollbar {
  height: 8px;
}

pre::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

pre::-webkit-scrollbar-thumb {
  background: rgba(233, 60, 172, 0.4);
  border-radius: 4px;
}

pre::-webkit-scrollbar-thumb:hover {
  background: rgba(233, 60, 172, 0.6);
}

/* Firefox */
pre {
  scrollbar-width: thin;
  scrollbar-color: rgba(233, 60, 172, 0.4) rgba(255, 255, 255, 0.05);
}

/* Light theme override if you want light code blocks */
@media (prefers-color-scheme: light) {
  pre {
    background: #f8f8f8;
    border-color: rgba(233, 60, 172, 0.15);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  }
  
  pre::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
  }
}

/* Enhanced selection in code blocks */
pre ::selection {
  background: rgba(233, 60, 172, 0.3);
  color: inherit;
}

/* Copy button styling (if you add copy functionality) */
.code-copy-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  padding: 0.4rem 0.6rem;
  background: rgba(233, 60, 172, 0.1);
  border: 1px solid rgba(233, 60, 172, 0.3);
  border-radius: 4px;
  color: #E93CAC;
  font-size: 0.75rem;
  cursor: pointer;
  opacity: 0;
  transition: all 0.2s ease;
  font-family: 'Berkeley Mono', monospace;
}

.highlight:hover .code-copy-btn {
  opacity: 1;
}

.code-copy-btn:hover {
  background: rgba(233, 60, 172, 0.2);
  border-color: #E93CAC;
}

/* Mobile optimization */
@media (max-width: 768px) {
  pre {
    font-size: 0.8rem;
    padding: 1rem;
    margin: 1.5rem -1rem;
    border-radius: 0;
  }
  
  code {
    font-size: 0.85em;
  }
}

/* Alternative: Card-style code blocks */
.code-card pre {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  border: none;
  box-shadow: 
    0 4px 6px rgba(0, 0, 0, 0.1),
    0 1px 3px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Alternative: Minimal style with subtle background */
.minimal-code pre {
  background: transparent;
  border: 1px solid rgba(233, 60, 172, 0.2);
  box-shadow: none;
  padding: 1.25rem;
}

.minimal-code pre::before {
  background: #E93CAC;
  width: 3px;
}

/* ===== BLOG POST LIST STYLING ===== */

/* Post list container */
ul {
  list-style: none;
  padding: 0;
}

/* Individual post items */
ul li {
  margin-bottom: 0.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  position: relative;
}

ul li:last-child {
  border-bottom: none;
}

/* Hover effect */
ul li:hover {
  padding-left: 1rem;
  border-left: 2px solid #E93CAC;
  background: rgba(233, 60, 172, 0.02);
}

/* Date styling - metadata tag look */
ul li::before {
  content: attr(data-date);
  display: inline-block;
  font-family: 'Berkeley Mono', monospace;
  font-size: 0.85rem;
  color: #888;
  margin-right: 1rem;
  min-width: 100px;
  letter-spacing: 0.02em;
}

/* Alternative if dates aren't in data attributes */
/* Assuming dates are in format: YYYY/MM/DD at start of li */
ul li {
  display: flex;
  align-items: baseline;
  gap: 1rem;
}

/* Date text (first part before link) */
ul li::before {
  content: none; /* Remove if using this approach */
}

/* Style the text before the link as date */
ul li {
  font-size: 0.95rem;
}

/* Links */
ul li a {
  color: #2a2a2a;
  text-decoration: underline;
  font-weight: 400;
  border-bottom: 1px solid transparent;
  transition: all 0.2s ease;
  flex: 1;
}

ul li a:hover {
  color: #E93CAC;
  border-bottom-color: #E93CAC;
}

/* Year dividers - if you want to group by year */
.year-divider {
  font-family: 'Berkeley Mono', monospace;
  font-size: 0.85rem;
  color: #888;
  margin: 2rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(233, 60, 172, 0.2);
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.year-divider::before {
  content: "∫";
  font-size: 1.2rem;
  color: #E93CAC;
}

/* Metadata tags for categories/tags */
.post-meta {
  display: inline-block;
  font-size: 0.75rem;
  color: #999;
  margin-left: 0.5rem;
  padding: 0.2rem 0.5rem;
  background: rgba(233, 60, 172, 0.05);
  border-radius: 3px;
  border: 1px solid rgba(233, 60, 172, 0.1);
  transition: all 0.2s ease;
}

.post-meta:hover {
  background: rgba(233, 60, 172, 0.1);
  border-color: rgba(233, 60, 172, 0.3);
}

/* Fade in animation for posts */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

ul li {
  animation: fadeInUp 0.4s ease backwards;
}

ul li:nth-child(1) { animation-delay: 0.05s; }
ul li:nth-child(2) { animation-delay: 0.1s; }
ul li:nth-child(3) { animation-delay: 0.15s; }
ul li:nth-child(4) { animation-delay: 0.2s; }
ul li:nth-child(5) { animation-delay: 0.25s; }
ul li:nth-child(6) { animation-delay: 0.3s; }
ul li:nth-child(7) { animation-delay: 0.35s; }
ul li:nth-child(8) { animation-delay: 0.4s; }

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  ul li {
    border-bottom-color: rgba(255, 255, 255, 0.1);
  }
  
  ul li a {
  }
  
  .year-divider {
    color: #999;
    border-bottom-color: rgba(233, 60, 172, 0.3);
  }
}

/* Emphasis - subtle but clear */
strong {
  font-weight: 600;
  color: #1a1a1a;
}

em {
  font-style: italic;
}

/* Selection */
::selection {
  background: #e8e8e8;
  color: #1a1a1a;
}

/* Smooth transitions */
* {
  transition: opacity 0.2s ease;
}

/* Responsive */
@media (max-width: 768px) {
  body::before,
  main::before {
    display: none;
  }
  
  main {
    padding: 1rem;
  }
  
  h1::after {
    height: 60px;
  }
}

/* ===== CENTERED MINIMAL NAVIGATION ===== */

/* Navigation container */
.main-nav {
  text-align: center;
  padding: 1.5rem 0;
  margin: 0;
  font-family: 'Berkeley Mono', monospace;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}

/* Navigation list */
.main-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.main-nav li {
  display: inline;
  margin: 0;
  padding: 0;
  border: none;
  animation: none; /* Override post list animations */
}

.main-nav li:hover {
  padding-left: 0; /* Override post list hover */
  border-left: none;
  background: none;
}

/* Navigation links */
.main-nav a {
  color: #666;
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
  display: inline-block;
}

.main-nav a:hover {
  color: #E93CAC;
  border-bottom-color: #E93CAC;
}

.main-nav a.active {
  color: #2a2a2a;
  border-bottom-color: #E93CAC;
}

/* Dot separators */
.main-nav li:not(:last-child)::after {
  content: "·";
  color: #ccc;
  margin-left: 0.5rem;
  font-size: 1.2rem;
  line-height: 1;
}

/* Mobile optimization */
@media (max-width: 768px) {
  .main-nav {
    padding: 1rem 0;
    font-size: 0.9rem;
  }

  body > * {
      font-size: 12pt;
  }
  
  .main-nav a {
    padding: 0.4rem 0.6rem;
  }
  
  .main-nav li:not(:last-child)::after {
    margin-left: 0.3rem;
  }
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
  .main-nav a {
    color: #aaa;
  }
  
  .main-nav a.active {
    color: #e0e0e0;
  }
  
  .main-nav li:not(:last-child)::after {
    color: #555;
  }
}

/* Alternative style: no separators, just spacing */
.main-nav.no-separators li:not(:last-child)::after {
  content: none;
}

.main-nav.no-separators ul {
  gap: 2rem;
}

/* Alternative style: pills */
.main-nav.pills a {
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid #e0e0e0;
}

.main-nav.pills a:hover,
.main-nav.pills a.active {
  border-color: #E93CAC;
  background: rgba(233, 60, 172, 0.05);
}

/* ===== BLOG POST TITLE & METADATA STYLING ===== */

/* Article/Post container */
article {
  max-width: 750px;
  margin: 0 auto;
  padding: 2rem 1rem;
  font-family: 'Hack Nerd Font Mono', monospace;
  font-size: 11pt;
}

/* Post title */
article h1,
.post-title {
  font-family: 'Berkeley Mono', monospace;
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.02em;
}

/* Post metadata container */
.post-meta,
article > p:first-of-type {
  font-family: 'Berkeley Mono', monospace;
  font-size: 0.85rem;
  color: #888;
  margin: 0 0 3rem 0;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(233, 60, 172, 0.15);
  letter-spacing: 0.02em;
}



/* Date styling with icon */
.post-date::before {
  content: "◆";
  color: #E93CAC;
  margin-right: 0.5rem;
  font-size: 0.7rem;
}

/* Alternative: date with mathematical symbol */
.post-date.math-style::before {
  content: "∂";
  color: #E93CAC;
  margin-right: 0.5rem;
  font-size: 1rem;
}

/* Reading time estimate (if you want to add it) */
.reading-time {
  color: #aaa;
  margin-left: 1rem;
}

.reading-time::before {
  content: "·";
  margin-right: 0.5rem;
}

/* Tags/Categories in metadata */
.post-tags {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.post-tag {
  display: inline-block;
  font-size: 0.75rem;
  color: #666;
  padding: 0.2rem 0.6rem;
  background: rgba(233, 60, 172, 0.05);
  border: 1px solid rgba(233, 60, 172, 0.15);
  border-radius: 3px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.post-tag:hover {
  background: rgba(233, 60, 172, 0.1);
  border-color: #E93CAC;
  color: #E93CAC;
}

/* Post header section (title + meta together) */
.post-header {
  margin-bottom: 3rem;
  text-align: left;
}

/* Centered variant */
.post-header.centered {
  text-align: center;
}

.post-header.centered .post-meta {
  justify-content: center;
}

/* Minimal divider after header */
.post-header::after {
  content: "";
  display: block;
  width: 70%;
  height: 2px;
  background: linear-gradient(90deg, #E93CAC, transparent);
  margin: 2rem 0;
}

.post-header.centered::after {
  margin: 2rem auto;
}

/* Callout/Alert styling */
blockquote {
  margin: 2rem 0;
  padding: 1rem 1.5rem;
  border-left: 3px solid #000;
  border-radius: 4px;
  line-height: 1.3;
}

/* Remove default indentation */
blockquote {
  margin-left: 0;
  margin-right: 0;
}

/* GitHub-style alerts */
blockquote[data-callout="note"],
blockquote:has(> p:first-child > strong:first-child:contains("note")),
.alert-note {
  border-left-color: #0969da;
  background: rgba(9, 105, 218, 0.05);
}

blockquote[data-callout="warning"],
blockquote:has(> p:first-child > strong:first-child:contains("warning")),
.alert-warning {
  border-left-color: #d29922;
  background: rgba(210, 153, 34, 0.05);
}

blockquote[data-callout="important"],
blockquote:has(> p:first-child > strong:first-child:contains("important")),
.alert-important {
  border-left-color: #8250df;
  background: rgba(130, 80, 223, 0.05);
}

blockquote[data-callout="caution"],
blockquote:has(> p:first-child > strong:first-child:contains("caution")),
.alert-caution {
  border-left-color: #d1242f;
  background: rgba(209, 36, 47, 0.05);
}

blockquote[data-callout="tip"],
blockquote:has(> p:first-child > strong:first-child:contains("tip")),
.alert-tip {
  border-left-color: #1a7f37;
  background: rgba(26, 127, 55, 0.05);
}

/* Hide the [!note] marker if using Hugo syntax */
blockquote > p:first-child > strong:first-child {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
  blockquote {
  }
  
  .alert-note { background: rgba(9, 105, 218, 0.1); }
  .alert-warning { background: rgba(210, 153, 34, 0.1); }
  .alert-important { background: rgba(130, 80, 223, 0.1); }
  .alert-caution { background: rgba(209, 36, 47, 0.1); }
  .alert-tip { background: rgba(26, 127, 55, 0.1); }
}

/* Post content styling */
article > p {
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

/* First paragraph drop cap (optional, for style) */
article > p:first-of-type:first-letter {
  font-size: 3.5rem;
  line-height: 0.9;
  float: left;
  margin: 0.1rem 0.1rem 0 0;
  color: #E93CAC;
  font-weight: 500;
}

/* Remove drop cap if you don't want it */
article.no-drop-cap > p:first-of-type:first-letter {
  font-size: inherit;
  line-height: inherit;
  float: none;
  margin: 0;
  color: inherit;
  font-weight: inherit;
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
  article h1,
  .post-title {
  }
  
  .post-meta {
    color: #999;
    border-bottom-color: rgba(233, 60, 172, 0.2);
  }
  
  .post-tag {
    color: #aaa;
    background: rgba(233, 60, 172, 0.1);
    border-color: rgba(233, 60, 172, 0.2);
  }
}

/* Mobile optimization */
@media (max-width: 768px) {
  article h1,
  .post-title {
    font-size: 2rem;
  }

  .hero-section {
    height: 110px;
  }

  article {
      font-size: 10pt;
      margin-left: -1.5rem;
      margin-right: -1.5rem;
  }
  
  .post-header::after {
    margin: 1.5rem 0;
  }

    blockquote {
      font-size: 10pt;
    }
}

/* Footer with social icons */
footer {
  text-align: center;
  padding: 2rem 2rem 2rem;
  border-top: 1px solid rgba(233, 60, 172, 0.15);
}

.social-links {
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: center;
}

.social-links a {
  color: #666;
  text-decoration: none;
  border-bottom: none;
  transition: all 0.2s ease;
  display: inline-block;
  width: 24px;
  height: 24px;
}

.social-links a:hover {
  color: #E93CAC;
  transform: translateY(-2px);
}

.social-links svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

@media (prefers-color-scheme: dark) {
  footer {
    border-top-color: rgba(233, 60, 172, 0.2);
  }
  
  .social-links a {
    color: #aaa;
  }
}

/* Reset general lists to normal behavior */
article ul,
main ul {
  list-style: disc;
  padding-left: 2rem;
  margin: 1rem 0;
}

article ul li,
main ul li {
  display: list-item;
  padding: 0;
  border: none;
  gap: 0;
  align-items: initial;
  line-height: 1.2;
  font-size: 12pt;
}

article ul li:hover,
main ul li:hover {
  padding-left: 0;
  border-left: none;
  background: none;
}

article ul li::before,
main ul li::before {
  content: none;
}

/* Post list styling ONLY for homepage/list pages */
body > main > ul li,
/*.post-list li {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  list-style: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  animation: fadeInUp 0.4s ease backwards;
  }
  /* ... rest of your post list styles */

