/* Simple Blog CSS - exact copy of junshern.github.io */

a {
  color: #1772d0;
  text-decoration: none;
}

a:focus,
a:hover {
  color: #f09228;
  text-decoration: none;
}

body {
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 14px;
}

td,
th,
tr,
p {
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 14px;
}
heading {
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 22px;
}

papertitle {
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 700
}

name {
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 32px;
}

/* Profile photo styling */
img[alt="profile photo"] {
  border-radius: 50% !important;
  object-fit: cover;
  width: 100%;
  max-width: 100%;
}

/* Article page */
.article-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 2% 10px;
}

.article-content {
    margin-top: 2rem;
    margin-left: auto;
    margin-right: auto;
    max-width: 700px;
    font-family: 'Lato', Verdana, Helvetica, sans-serif;
    font-size: 18px;
}

.article-content * {
    font-family: 'Lato', Verdana, Helvetica, sans-serif;
}

.article-content h1 {
    margin-bottom: 1rem;
    font-family: 'Lato', Verdana, Helvetica, sans-serif;
    font-size: 32px;
    font-weight: 700;
}

/* Header anchor link styling */
.article-content .content h1 .header-anchor,
.article-content .content h2 .header-anchor,
.article-content .content h3 .header-anchor,
.article-content .content h4 .header-anchor,
.article-content .content h5 .header-anchor,
.article-content .content h6 .header-anchor {
    visibility: hidden;
    margin-left: 0.5rem;
    text-decoration: none;
    font-size: 0.9em;
    color: #aaa;
}

.article-content .content h1:hover .header-anchor,
.article-content .content h2:hover .header-anchor,
.article-content .content h3:hover .header-anchor,
.article-content .content h4:hover .header-anchor,
.article-content .content h5:hover .header-anchor,
.article-content .content h6:hover .header-anchor {
    visibility: visible;
}

.article-content .content .header-anchor:hover {
    color: #666;
}

/* Copy feedback */
.article-content .content .header-anchor.copied {
    color: #2aa198; /* teal-ish */
}

.article-content .meta {
    color: #666;
    font-size: 18px;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
    font-family: 'Lato', Verdana, Helvetica, sans-serif;
}

.article-content p {
    margin-bottom: 1.5rem;
    font-family: 'Lato', Verdana, Helvetica, sans-serif;
    font-size: 18px;
}

.article-content ul, .article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    font-family: 'Lato', Verdana, Helvetica, sans-serif;
    font-size: 18px;
}

.article-content li {
    margin-bottom: 0.5rem;
    font-family: 'Lato', Verdana, Helvetica, sans-serif;
    font-size: 18px;
}

.article-content code {
    background-color: #f8f9fa;
    color: #e83e8c;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', monospace;
    font-size: 0.9rem;
    border: 1px solid #e9ecef;
}

.article-content pre {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    overflow-x: auto;
    margin: 2rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.article-content pre code {
    background-color: transparent;
    color: #333;
    padding: 0;
    border: none;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Inline code styling */
.article-content p code,
.article-content li code {
    background-color: #f1f3f4;
    color: #d73a49;
    padding: 0.15rem 0.3rem;
    border-radius: 3px;
    font-size: 0.85rem;
    border: 1px solid #e1e4e8;
}

/* Back link */
.back-link {
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.back-link a {
    color: #666;
}

.back-link a:hover {
    color: #0066cc;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
    font-size: 1.5rem;
    font-family: 'Lato', Verdana, Helvetica, sans-serif;
}

h3 {
    font-size: 1.2rem;
    font-family: 'Lato', Verdana, Helvetica, sans-serif;
}
    
    .profile-photo {
        float: none;
        display: block;
        margin: 1rem auto;
        width: 120px;
        height: 120px;
    }
} 