/* css styles */

/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=Crimson+Text:ital@1&family=Noto+Sans+SC:wght@400;500;700&display=swap');

/* ========================================
   Typography - Classic magazine style
   ======================================== */

:root {
  --line-color: #e0e0e0;
  --text-color: #333;
  --text-color-muted: #666;
}

body {
  font-family: "Times New Roman", "Noto Sans SC", Georgia, sans-serif;
  font-size: 17px;
  line-height: 1.85;
  color: var(--text-color);
  background-color: #fff;
}

/* Site logo / blog name - classic magazine style */
.navbar-brand, .navbar-title, #logo {
  font-family: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  font-size: 38px;
  font-weight: 700;
  color: #1a1a1a;
  text-decoration: none;
  letter-spacing: -0.02em;
}

/* Navigation links */
.navbar a, .nav-link {
  font-family: "Palatino Linotype", Palatino, Georgia, serif;
  font-weight: 500;
}

/* Headings - classic magazine style */
h1, h2, h3, h4, h5, h6 {
  font-family: Georgia, "Noto Sans SC", "Times New Roman", serif;
  font-weight: 600;
  color: #1a1a1a;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

h1 { font-size: 28px; }
h2 { font-size: 22px; }
h3 { font-size: 18px; }

/* Article titles in listing */
.quarto-listing h3,
.quarto-listing .listing-title,
.quarto-post .title,
.list-group-item h3 {
  font-family: Georgia, "Noto Sans SC", "Times New Roman", serif;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

/* Article title on article page */
.quarto-title h1.title {
  font-family: Georgia, "Noto Sans SC", "Times New Roman", serif;
  font-size: 28px;
  font-weight: 700;
}

/* Listing description / excerpt */
.quarto-listing .listing-description,
.quarto-post .description {
  font-size: 14px;
  color: var(--text-color-muted);
}

/* Listing date */
.quarto-listing .listing-date,
.quarto-post .date {
  font-size: 12px;
  color: #999;
}

/* Code fonts - Cascadia Code */
code, pre {
  font-family: "Cascadia Code NF", "Cascadia Code", "Fira Code", Menlo, Monaco, Consolas, monospace;
  font-size: 14px;
}

/* Links - default */
a {
  color: #1a1a1a;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Content links - blue for readability (article body only, exclude listing & title) */
#quarto-document-content p a,
#quarto-document-content li a,
#quarto-document-content td a,
#quarto-document-content dd a {
  color: #2563eb;
}

#quarto-document-content p a:hover,
#quarto-document-content li a:hover,
#quarto-document-content td a:hover,
#quarto-document-content dd a:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

/* Sidebar categories - hover darken */
.listing-category, .quarto-category {
  color: var(--text-color-muted);
  transition: color 0.2s;
}

.listing-category:hover, .quarto-category:hover {
  color: #1a1a1a;
}

/* ========================================
   Minimal lines - only key separators
   ======================================== */

/* Navigation bar - bottom line */
.navbar, header nav {
  border-bottom: 1px solid var(--line-color);
}

/* Sidebar / TOC area */
.sidebar nav[role="doc-toc"] {
  border-left: 1px solid var(--line-color);
  padding-left: 1rem;
  font-size: 13px;
}

.sidebar nav[role="doc-toc"] a {
  text-decoration: none;
  color: var(--text-color-muted);
}

.sidebar nav[role="doc-toc"] a:hover {
  color: var(--text-color);
}

/* Author info in sidebar */
.author-info {
  text-align: center;
  padding: 1rem 0;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--line-color);
}

.author-info .avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0.5rem;
}

.author-info .slogan {
  font-family: 'Crimson Text', Georgia, serif;
  font-size: 0.9rem;
  color: var(--text-color-muted);
  margin: 0.5rem 0;
  font-style: italic;
}

.author-info .social-links {
  margin-top: 0.5rem;
}

.author-info .social-links a {
  margin: 0 0.5rem;
  font-size: 1.2rem;
  color: var(--text-color-muted);
  text-decoration: none;
}

.author-info .social-links a:hover {
  color: var(--text-color);
}

/* Categories widget in sidebar */
.sidebar .widget {
  border-bottom: 1px solid var(--line-color);
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

/* Right sidebar border */
#sidebar, .sidebar-right {
  border-left: 1px solid var(--line-color);
}

/* ========================================
   Clean content styling
   ======================================== */

/* Remove borders from content areas */
.content, main, article {
  border: none;
}

/* Clean title block */
.quarto-title {
  border: none;
}

.quarto-title h1.title {
  border: none;
}

/* Listing items - clean look */
.quarto-listing-default .list-group-item,
.quarto-post {
  border: none;
  border-bottom: 1px solid var(--line-color);
  padding: 0.75rem 0;
  background: transparent;
}

.quarto-listing-default .list-group-item:last-child,
.quarto-post:last-child {
  border-bottom: none;
}

/* Tables */
table {
  border-collapse: collapse;
  width: 100%;
  margin: 1.5rem 0;
}

th, td {
  border-bottom: 1px solid var(--line-color);
  padding: 0.5rem 0.75rem;
  text-align: left;
  font-size: 14px;
}

th {
  font-weight: bold;
}

/* Blockquotes */
blockquote {
  border-left: 2px solid var(--line-color);
  margin: 1rem 0;
  padding: 0.25rem 1rem;
  color: var(--text-color-muted);
}

/* Code blocks */
pre {
  background-color: #f8f8f8;
  padding: 1rem;
  overflow-x: auto;
}

/* Margin notes */
.column-margin {
  font-size: 12px;
  color: var(--text-color-muted);
}

/* ========================================
   Pagination
   ======================================== */

.listing-pagination {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line-color);
}

.listing-pagination .pagination {
  justify-content: center;
  gap: 0.25rem;
}

.listing-pagination .page-item .page-link {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  color: var(--text-color-muted);
  background: none;
  border: none;
  padding: 0.4rem 0.75rem;
  border-radius: 0;
}

.listing-pagination .page-item .page-link:hover {
  color: var(--text-color);
  background: none;
  text-decoration: underline;
}

.listing-pagination .page-item.active .page-link {
  color: #1a1a1a;
  background: none;
  font-weight: 700;
  border-bottom: 2px solid #1a1a1a;
}

.listing-pagination .page-item.disabled .page-link {
  color: var(--line-color);
  background: none;
}
