/* Import nice font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Global styling */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #2d3748;
}

/* Title - compact and elegant */
h1.title {
  color: #1e293b;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  font-size: 2rem;
}

/* Description/Journal */
.description {
  color: #64748b;
  font-size: 0.95rem;
  font-style: italic;
  margin-top: 0;
  margin-bottom: 1rem;
}

/* Author */
.author {
  color: #475569;
  font-size: 0.95rem;
  font-weight: 400;
  margin: 0.5rem 0;
}

/* Hide "AUTHOR" label for cleaner look */
.quarto-title-meta-heading {
  display: none;
}

/* Title block - compact */
.quarto-title-block {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e2e8f0;
}

/* Resource Section - compact and elegant */
.resource-section {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}

.resource-heading {
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.6rem;
}

.resource-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.resource-btn {
  padding: 0.35rem 0.7rem;
  border-radius: 5px;
  font-weight: 500;
  font-size: 0.8rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
  border: 1px solid;
  color: white;
}

/* Resource button colors */
.doi-btn {
  background: #475569;
  border-color: #475569;
}

.pdf-btn {
  background: #dc2626;
  border-color: #dc2626;
}

.publisher-btn {
  background: #2563eb;
  border-color: #2563eb;
}

.github-btn {
  background: #1f2937;
  border-color: #1f2937;
}

.code-btn {
  background: #0891b2;
  border-color: #0891b2;
}

.arxiv-btn {
  background: #b91c1c;
  border-color: #b91c1c;
}

.preprint-btn {
  background: #7c3aed;
  border-color: #7c3aed;
}

.data-btn {
  background: #059669;
  border-color: #059669;
}

.slides-btn {
  background: #9333ea;
  border-color: #9333ea;
}

.video-btn {
  background: #ea580c;
  border-color: #ea580c;
}

.demo-btn {
  background: #0284c7;
  border-color: #0284c7;
}

.bibtex-btn {
  background: #64748b;
  border-color: #64748b;
}

.resource-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  text-decoration: none;
  opacity: 0.9;
  color: white;
}

/* Abstract box - compact */
.abstract-box {
  background: #f8fafc;
  padding: 1.25rem 1.5rem;
  border-radius: 6px;
  border-left: 3px solid #64748b;
  margin: 1.25rem 0;
  border: 1px solid #e2e8f0;
}

.abstract-box p {
  margin-bottom: 0.75rem;
  line-height: 1.65;
  font-size: 0.95rem;
}

.abstract-box p:last-child {
  margin-bottom: 0;
}

/* Section headers - compact */
h2 {
  color: #1e293b;
  border-bottom: 2px solid #cbd5e1;
  padding-bottom: 0.35rem;
  margin-top: 1.75rem;
  margin-bottom: 1rem;
  font-weight: 600;
  font-size: 1.4rem;
}

h3 {
  color: #334155;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

/* Paragraph styling - compact */
p {
  margin-bottom: 1rem;
  line-height: 1.65;
  font-size: 0.95rem;
}

strong {
  color: #1e293b;
  font-weight: 600;
}

/* Link styling */
a {
  color: #2563eb;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #1d4ed8;
}