/*
 * Vernon Tian Research — Academic Personal Site
 * Inspired by clean academic Google Sites layout
 * Color: burgundy/maroon accent (#7F1146), white background, Lato font
 */

/* ========================================
   Import Lato font
   ======================================== */
@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&display=swap');

/* ========================================
   Base
   ======================================== */
html {
  font-size: 16px;
}

body {
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #212121;
  background: #fff;
  line-height: 1.7;
}

/* ========================================
   Links — burgundy accent
   ======================================== */
a {
  color: #A1004E;
  text-decoration: none;
}

a:hover {
  color: #C12872;
  text-decoration: underline;
}

a:visited {
  color: #7F1146;
}

/* ========================================
   Headings
   ======================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  color: #212121;
}

h1 {
  font-size: 2.2rem;
  font-weight: 300;
  margin-top: 0.3em;
  margin-bottom: 0.3em;
}

h2 {
  font-size: 1.5rem;
  font-weight: 400;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 0.3em;
  margin-top: 1.8em;
}

/* ========================================
   Navbar & Sidebar — burgundy theme
   ======================================== */
.navbar {
  background-color: #fff !important;
  border-bottom: 1px solid #e0e0e0;
}

.navbar .nav-link {
  color: #212121 !important;
  font-family: 'Lato', sans-serif;
  text-transform: none;
  font-size: 0.95rem;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: #7F1146 !important;
}

.sidebar {
  background-color: #fafafa;
  border-right: 1px solid #e0e0e0;
}

.sidebar .sidebar-title a {
  color: #212121 !important;
  font-weight: 700;
}

.sidebar .sidebar-item {
  font-family: 'Lato', sans-serif;
}

.sidebar .sidebar-item .sidebar-link {
  color: #555;
}

.sidebar .sidebar-item .sidebar-link:hover,
.sidebar .sidebar-item .sidebar-link.active {
  color: #7F1146;
}

.sidebar .sidebar-section .sidebar-section-title {
  color: #7F1146;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ========================================
   Title block — hero area on homepage
   ======================================== */
#title-block-header {
  margin-bottom: 2em;
}

#title-block-header h1.title {
  font-size: 2.4rem;
  font-weight: 300;
  color: #212121;
  margin-bottom: 0.2em;
}

#title-block-header .quarto-title-meta {
  font-family: 'Lato', sans-serif;
  color: #666;
}

/* ========================================
   Quote block
   ======================================== */
blockquote {
  border-left: 4px solid #7F1146;
  margin: 1.5em 0;
  padding: 0.8em 1.2em;
  background: #fdf7fa;
  border-radius: 0 6px 6px 0;
  font-style: italic;
  color: #555;
}

blockquote p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.7;
}

blockquote p:last-child {
  margin-top: 0.5em;
  font-style: normal;
  font-weight: 600;
  color: #7F1146;
  font-size: 0.95rem;
}

/* ========================================
   Profile photo / cover image
   ======================================== */
.profile-photo {
  max-width: 180px;
  border-radius: 50%;
  margin-bottom: 1em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* ========================================
   Callouts — burgundy-customized
   ======================================== */
.callout {
  margin: 1.2em 0;
  border-radius: 6px;
  border-left: 5px solid #7F1146;
  background-color: #fdf7fa;
  padding: 0.8em 1.2em;
}

.callout-title {
  color: #7F1146;
  font-weight: 600;
}

.callout-note {
  border-left-color: #4582ec;
  background-color: #f0f5fe;
}

.callout-note .callout-title { color: #305fdd; }

.callout-tip {
  border-left-color: #02b875;
  background-color: #ecfaf5;
}

.callout-tip .callout-title { color: #1e7e34; }

.callout-warning {
  border-left-color: #f0ad4e;
  background-color: #fefaf0;
}

.callout-warning .callout-title { color: #8a6d3b; }

.callout-important {
  border-left-color: #d9534f;
  background-color: #fef5f5;
}

.callout-important .callout-title { color: #a94442; }

/* ========================================
   Buttons
   ======================================== */
.btn-primary, .btn {
  background-color: #7F1146;
  border-color: #7F1146;
  color: #fff;
  font-family: 'Lato', sans-serif;
}

.btn-primary:hover, .btn:hover {
  background-color: #A1004E;
  border-color: #A1004E;
}

/* ========================================
   Footer
   ======================================== */
.footer {
  border-top: 1px solid #e0e0e0;
  padding: 1.5em 0;
  font-size: 0.85rem;
  color: #888;
}

/* ========================================
   Publication list style
   ======================================== */
.pub-list li {
  margin-bottom: 0.8em;
  line-height: 1.6;
}

.pub-list .pub-title {
  font-weight: 600;
}

.pub-list .pub-journal {
  font-style: italic;
  color: #666;
}

.pub-list .pub-links a {
  font-size: 0.85rem;
  margin-right: 0.8em;
}

/* ========================================
   CV page
   ======================================== */
.cv-section {
  margin-bottom: 1.5em;
}

.cv-section h3 {
  color: #7F1146;
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 0.3em;
}

.cv-entry {
  margin-bottom: 1em;
}

.cv-entry .cv-date {
  color: #888;
  font-size: 0.9rem;
}

.cv-entry .cv-title {
  font-weight: 600;
}

.cv-entry .cv-detail {
  color: #555;
  font-size: 0.95rem;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
  body {
    font-size: 15px;
  }

  #title-block-header h1.title {
    font-size: 1.8rem;
  }
}
