/* ===========================
   Global Typography & Colors
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Source+Serif+4:wght@400;600;700&display=swap');

:root {
  --accent: #c4956e;         /* warm terracotta — primary accent */
  --accent-light: #f0e0d3;   /* light wash for hover backgrounds */
  --text-dark: #2c3e50;
  --text-mid: #555;
  --heading: #1a1a1a;
  --border-light: #e8e8e8;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.7;
  color: var(--text-dark);
}

h1, h2, h3, .navbar-brand {
  font-family: 'Source Serif 4', serif;
  font-weight: 700;
  color: var(--heading);
}

/* ===========================
   Navbar
   =========================== */

.navbar {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border-light);
}

/* ===========================
   Links — unified accent color
   =========================== */

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: #a87a58;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ===========================
   About Page (Solana/Trestles)
   =========================== */

.quarto-about-solana .about-contents,
.quarto-about-trestles .about-contents {
  max-width: 100% !important;
  flex-grow: 1;
}

.about-entity {
  width: 100% !important;
}

.about-contents p {
  font-size: 1.15rem;
  line-height: 1.7;
  text-align: left;
}

/* About links (buttons/pills) — accent color */
.about-link {
  border: 1px solid var(--accent) !important;
  border-radius: 4px !important;
  color: var(--accent) !important;
  font-size: 0.8rem !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
}

.about-link:hover {
  background-color: var(--accent-light) !important;
  border-color: var(--accent) !important;
  color: #a87a58 !important;
}

/* ===========================
   Badges / Pills (Homepage)
   =========================== */

.badge {
  display: inline-block;
  padding: 3px 12px;
  margin-right: 5px;
  margin-bottom: 4px;
  background-color: var(--accent-light);
  border: 1px solid var(--accent);
  color: #a87a58;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* ===========================
   Research Grid Styling
   =========================== */

.quarto-listing-container-grid .quarto-grid-item {
  border: 1px solid var(--border-light) !important;
  border-radius: 8px;
  background-color: #ffffff;
  transition: all 0.3s ease;
  padding: 1rem;
}

.quarto-listing-container-grid .quarto-grid-item:hover {
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
  border-color: var(--accent) !important;
  transform: translateY(-3px);
}

.listing-title {
  font-family: 'Source Serif 4', serif;
  font-weight: 700;
  color: var(--heading);
}

.listing-description {
  font-family: 'Inter', sans-serif;
  color: var(--text-mid);
  font-size: 0.9rem;
}

/* ===========================
   Default Listing (Publications)
   =========================== */

.quarto-post {
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #eee;
}

.quarto-listing-default .quarto-post .listing-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

/* Date/Year styling */
.quarto-listing-default .quarto-post .metadata,
.quarto-listing-default .quarto-post .listing-date {
  font-weight: 600;
  color: var(--text-mid);
}

/* Description (authors, outlet, icons, links) */
.quarto-listing-default .quarto-post .listing-description {
  color: var(--text-mid);
  margin-top: 0.5rem;
  line-height: 1.6;
}

/* Links inside description (DOI, Video, etc.) */
.quarto-listing-default .quarto-post .listing-description a {
  text-decoration: none;
  margin-right: 15px;
  color: var(--accent);
  font-weight: 500;
}

.quarto-listing-default .quarto-post .listing-description a:hover {
  color: #a87a58;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ===========================
   Listing Categories as Tags
   =========================== */

.quarto-listing .listing-categories {
  margin: 0.25rem 0 0.25rem 0;
}

.quarto-listing .listing-categories .listing-category {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  margin-right: 0.25rem;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.12);
  font-size: 0.75em;
  color: var(--text-mid);
}

.quarto-listing-default .listing-categories {
  margin-top: 0.15rem;
  margin-bottom: 0.35rem;
}

/* ===========================
   Back-link utility
   =========================== */

.back-link {
  display: inline-block;
  margin: 0.5rem 0 1rem 0;
  font-weight: 600;
}
