/* Personal styling on top of the Quarto theme.
   (style.css is the old stylesheet, kept only for the yuvals-notes page.) */

/* --- general styles --- */
:root {
  --bs-body-color: #000000;
  --gray-dark:  #28282a;      /* secondary text: subtitles, entry descriptions */
  --gray-light: rgb(51, 51, 52);   /* tertiary text: captions, paper authors/venue, notes */
  --bs-body-bg: #ffffff;  /* background color */
}

/* Navbar styles */
#quarto-header .navbar {
  --bs-navbar-color:        #111;     /* the page links */
  --bs-navbar-active-color: #2761e3;  /* the link for the page you're on */
  --bs-navbar-hover-color:  #2761e3;  /* a link while the mouse is over it */
  --bs-navbar-brand-color:  #111;   /* "Yuval Amit" on the left */
  font-weight: 700; 
  & .navbar-title {
    font-weight: 700;                 /* bold "Yuval Amit" */
  }
  background-color: #cbd2ee;    /* background color */
}

/* Links */
a {
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* --- homepage --- */
.subtitle-lines { color: var(--gray-dark); line-height: 1.5; margin-bottom: 1.75rem; }

.about { display: flex; gap: 2.5rem; align-items: flex-start; }
.about-text { flex: 1 1 auto; min-width: 0; }
.about-photo { flex: 0 0 10rem; }
.about-photo figure { margin: .3rem 0 0; }
.about-photo figcaption { font-size: .85rem; color: var(--gray-light); text-align: center; }

@media (max-width: 576px) {
  .about { flex-direction: column-reverse; align-items: center; gap: 1.5rem; }
  .about-photo { flex-basis: auto; width: 9rem; }
}

/* --- papers (Research page) --- */
.paper { margin-bottom: 1.6rem; }
.paper-title { font-size: 1.02em; }
.paper-authors,
.paper-venue { color: var(--gray-light); font-size: .85em; }
.paper-blurb { margin-top: .2rem; }

/* --- lists of entries: courses, links --- */
.entry { margin-bottom: 1.25rem; }
.entry p { color: var(--gray-dark); }
/* --- courses (Notes page) --- */
.course { margin-bottom: 1.3rem; }
.course p { margin-bottom: 0; color: var(--gray-dark); }
/* .course p:first-child { line-height: 1.2; }   tighter gap between lines 1 and 2 */
.course p + p { margin-top: .1rem; }          /* space between lines 2 and 3 */
.course-links { margin-left: .9em; }           /* "PDF · HTML" after a course name */
.course-links a + a::before { content: "·"; display: inline-block; margin: 0 .4em; color: var(--gray-light); }
.course-info { display: block; margin-left: 0em; font-size: .85em; color: var(--gray-light); }
.source-note { color: var(--gray-light); margin-top: 1.5rem; }

/* --- misc --- */
.remark { color: var(--gray-light); }